Hacker Newsnew | past | comments | ask | show | jobs | submit | photonbucket's commentslogin

Feels like something Apple might want to do a first-party version of


thanks


I once thought it would be nice to write a toy riscv isa simulator, but was also surprised and discouraged by the natural language spec


Here is one in less than 200 lines of python: https://github.com/s-holst/tinyrv . It uses machine-readable specs from https://github.com/riscv/riscv-opcodes ; yet I needed to extract immediate bit scrambling from their LaTeX sources :). I wonder if there is an easier way. Anyways, the opcode semantics are hand-coded and it simulates enough to boot linux.


If you only want to simulate the core instruction, and perhaps the Multiply extension or so, and only plan to support single threaded operation, then the natural language spec ain't so bad.


Greencards have a MRZ just like passports though.

Green cards are effectively entry-only passports (from the perspective of the US). You can enter the country by land with just the GC with no passport. Additionally, if you arrive by air and you have global entry they don't look at your passport at all, just the GC.


They could easily change the cost-cap to exclude engines (if they arent already).

The big teams who actually develop the engines aren't actually short on cash


They already dropped the MGU-H from the 2026 V6 engines in order to convince Audi and GM to enter as engine manufacturers since that component addend extra cost and had no applications in road vehicles so we can assume that they wouldn't have been thrilled to enter if they had to developed V10s now.

Yeah, maybe Ferrari had unlimited moneys for V10 development, but for Mercedes Daimler already is skeptical about the benefits of the F1 program, and Renault's engines just suck this season, and Honda left the F1 program in 2020 then decided to not leave just for Aston Martin but would have probably nto been the case had they needed to switch to V10s.


Is there any tooling which can tell you exactly which parts of a crate that you actually use and produce a minimized version for vendoring/auditing?


I like this idea. Theoretically, the compiler already has the machinery to remove dead code. Next step could package up just the source you touch.


it's not trivial to do if you have multiple build targets and features

i.e. you would need to vendor one version for each features x target tripple combination combined with cfg expansion and (proc) macro expansion inlining and then a static reachability analysis to prune all unused code (and dependencies). That would likely not be good enough so you probably need to have some runtime code coverage analysis to find "likely dead code" (but not statically provable dead code) and then manual choices to keep/remove combined with some bisecting/testing to make sure the choices are sane.

Afik such tool doesn't exist.

And it's non trivial.

But it's also very viable to create it.


You can get that info from code coverage, via `cargo llvm-cov` etc, though that would require exercising all code paths into the deps or else you might underestimate how much of the deps you need to vendor. But at least if you underestimate in this way, you'll probably just get a compiler error rather than anything breaking at runtime.


I have been spitballing about this recently too [1]. The way I'd imagine it would work is the toolchain takes one pass over your crate, compiles everything, then takes another pass to trim all the dead code from your vendored deps. Then your git diff basically has your code + all the lines of all your deps that didn't get trimmed.

There would probably need to be some more work to make it more user friendly, but I think it's really important that all the code which ultimately ends up in your binary goes in the diff otherwise reviewers won't actually look at it.

Disclaimer: I don't know enough about compilers, or the Rust toolchain specifically, to know if this is even possible or whether it would actually help anyone in the real world. But it seems "naively reasonable" for some definition.

[1] https://news.ycombinator.com/item?id=39828499


This is commonly called the "tree shaking" [1] which is a particular mode of the general dead code elimination. One of main challenges would be the reproduction of somehow readable source code after the tree shaking.

[1] https://en.wikipedia.org/wiki/Tree_shaking


What's going on in that part of western australia? It's a very empty area


Grey areas: Few people live there and none have set up a public ADS receiver. And/or no planes flying in the area. https://gpsjam.org/faq/#why-arent-there-red-or-green

Red areas: Military experiments and exercises, probably. https://gpsjam.org/faq/#what-can-cause-aircraft-to-report-lo...


I'm not expert on it, but I suspect that two of them might somehow be related to the Transmit and Receive stations for Australia's JORN (over the horizon radar) that are located in Western Australia near Laverton.

Though if that were the case, I'd probably guess there should be more areas at the other site locations around northern Australia - so that might invalidate my guess.

https://en.wikipedia.org/wiki/Jindalee_Operational_Radar_Net...

https://www.google.com/maps/place/28%C2%B019'02.6%22S+122%C2...

https://www.google.com/maps/place/28%C2%B019'36.3%22S+122%C2...


> What's going on in that part of western australia? It's a very empty area

You answered your own question. Put 2+2 together.

Hint... https://www.flightradar24.com/apply-for-receiver/


I don't live in that country though


> I don't live in that country though

Exactly.

You don't live there.

Not many people live in the Australian desert.

Conclusion: No data or very limited data


Ok, but let's acknowledge the difference between no data (depicted as no colored cell in the map) and data which reports high interference (depicted as a red cell). In remote western Aus we see a few red cells to the west of a large area of empty cells. So they do have ADS-B receivers there, and at least some of them are reporting a troublesome NIC, and there are enough reports for FR24 to place a colored cell there rather than an empty cell. Why exactly do you think that a red cell comes from no data or very limited data, when the article does not indicate that no data / limited data results in a red cell?


"No data" cells are grey on that map, but western Australia has a couple of red ("high interference") cells.


> but western Australia has a couple of red ("high interference") cells.

Erm mate, have you tried looking at different days ? Those cells you find so suspicious in Australia are not there on other days !

Seriously, given the largely community-based nature of FR24 data I would not expect too much in term of accuracy.


> Erm mate, have you tried looking at different days ? Those cells you find so suspicious in Australia are not there on other days !

That kind of disproves the "no data" hypothesis though, no?

One explanation could be they have a simplistic algorithm like "if uncertainty > (something indicating more than 5 minutes of GNSS-to-INS fallback) on more than 50% of all flights of a day", and there's only one flight per day in that region.

> Seriously, given the largely community-based nature of FR24 data I would not expect too much in term of accuracy.

Flightradar24 data is accurate enough for some commercial entities to rely on it. Also, in case of a lack of ADS-B receiver data we'd also expect a grey square, not a red one, right?


I thought it might have been Square Kilometer Array interference but that's to the north of those spots.


If green or "no data" areas randomly turn red sometimes, I'd expect to see them elsewhere in the world sometimes on different days as well. But I've checked every day that's available and I never see them appear in e.g. that big empty space in eastern Russia.

I don't really see any other evidence that low data areas can turn into red areas when there's no actual interference.


If I could get a really well sound-insulated 3 or 4 bedroom apartment, awesome, but it's either just too hard to find, or too hard to verify that it'll actually be quiet without some certification/guarantee.

With a SFH you can control your own destiny to some extent.


I'm curious about "why sand", is it better at holding heat than say water?


It's more effective volume wise. I did the math, some time ago here are the rough numbers.

Sand has way less heat capacity then water per kg (about half).

Water can be heated to 95C with standard unpressurized vessel. Sand in this application is heated to 600C.

Sand is denser then water (kg/m3).

For the same heat energy stored this comes out to about 2.5x more volume of water(95C) compared to sand(600C).

Water and Sand are both dirt-cheap.

Hot water can be managed with standard plumbing equipment.

Sand needs some high temperature piping (hot air to water heat-exchanger, resistive heat tho heat up the sand).

How well both contain the heat is primarily dependent on the isolation. Which favors the smaller footprint of sand, but needs to isolate a higher temperature difference...


One advantage of heating water over sand is that you can heat it up with high temperature heat pumps which currently have CoPs ranging between 2.4 to 5.8 [1]. So for every kW of electrical energy you put in you get at least 2.4kW of thermal energy out.

So yes, the volume of 95C water would be much greater than that of 600C sand, but if volume wasn't an issue you could do it much more efficiently. Alternatively, you could use battery storage for just the electrical capacity required and not the (much higher) thermal capacity which may be more cost effective when you look at the conversion.

[1] https://www.sciencedirect.com/science/article/abs/pii/S03605...


In short: Sand for industry scale heat storage, water for private heating storage.

Using a heat pump will increase the yield. Usable temp range from 95C water all the way to 0C ice in theory (latent heat).

And a modern isolated home helps, but seasonal heat water storage is basically a big tank, with a house build around it.

https://www.energie-experten.ch/de/wissen/detail/waermespeic...


The temperature also matters. If you need at least 50 C water to run district heating, about half of the energy stored in near boiling water cannot be utilized. This is much less with 600 C sand.


And 50C is too low. That is minimum temperature of the heated tap water(Legionella and other diseases). And preferably you want some higher. And then as distance increases there are losses and other people using the heat. So temperature you need is actually quite high and in very cold days can be over 100C...


Sand is cheap, and stays stable up to 1200 C or so. For conversion back to work the efficiency will be much higher than for lower temperature water.


It’s probably less likely to turn into gas, increase in pressure, and explode the silo.


Probably not.

But sand doesn't freeze (or perhaps, sand doesn't melt) under normal temperatures. That's probably more important for an icy region.


Probably not relevant to the specific problem at hand because sand that's getting heated to 600 degrees is going to quickly boil off any residual moisture. As a warning, though, so that people don't experience the pain I got to experience, a pile of sand is really good at holding onto water internally and freezing when it gets cold. We had to replace our sewer line a while back and for various reasons were taking care of filling the hole and redoing the concrete ourselves. The sand guys left a big pile in the driveway for us and as soon as winter came the whole pile turned into a single giant rock despite having been out in the hot sun previously.

Exactly to your point, though, one of the great things about using sand for this application instead of water is that you can probably just shut the thing off for maintenance without having to worry about draining all of the sand out. If it freezes up due a bit of residual moisture content it's not going to expand nearly the same way that a silo full of water would, and it should be easy enough to thaw out just by putting some heat into it.


Can store a lot more heat by volume. Water has other bad properties. The higher the temperature the higher the pressure.


> [Sand] Can store a lot more heat by volume.

A quick caveat/clarification: It's only true if you're pushing the system over the 100°C mark. Otherwise a volume of liquid water--with its greater latent heat-capacity--will outclass the same volume of sand.

Water's heat-capacity is 4.186 J/g°C, while estimates for sand run towards ~0.830 J/g°C. If we also assume the sand is 1.6x denser, then our below-boiling water still comes out ahead at ~3.15x the joules per volume.

There are hints [0] this system tops out around 600°C.

[0] https://polarnightenergy.fi/sand-battery


Yeah see that but i imagine the safety engineering is a fair bit easier due to not having to worry about the pressure of super heated water.


I think the original plan was to convert the heat back into electricity with a turbine. So the higher temperature of sand would greatly improve thermodynamic efficiency.


>I think the original plan was to convert the heat back into electricity with a turbine.

Is that just speculation or did you read it somewhere? IIRC the original motivation of PNE was a bunch of engineers at uni speculating on how to build the perfect building for engineers, and making it self-sufficient would require handling its own heating, which they originally thought would be best done with a big hot-water tank to store the heat. No turbine was suggested, IIRC.


No advective heat transport in sand. In tanks of water, on the other hand...

That means that the hot middle of a sand pile stays hot, instead of advecting to the outside, where it cools by conduction.


In addition to what others have said, isn't one of the weird properties of water that it tends to take in energy easily, but not give it back so easily? I've never really understood how that works, but I think I've leqrned that at some stage. Hence why it's used in cooling so much. Somebody jump in and tell me how wrong I am, or if I'm on a track that doesn't lead completely nowhere.


Water vaporizes, and at that point blows up just about every container you can build around it. As will ice when it cools down. Sand is just sand, very little difference, very unreactive from way under freezing temps to about 1300 degrees.

And you might vent steam, but you should probably take into account that while water < 45 degrees or so is pretty innocent, steam will strip flesh from bone starting at 180 degrees or so, it won't "just" burn you.


That’s the other bizarre thing about water/ice: most things expand as you heat them, but very few things expand as you cool them. Water has maximum density at 4C, so even before you freeze it it’s already starting to expand as you cool it.


You have it backwards. Density is mass/volume so with the same mass when density increases the volume decreses


You're right about how density works, but I don't have it backwards:

A given mass of water:

- At 20C is less dense/higher volume than water at 4C

- As you cool it the density increases and the water shrinks

- At 4C the water is now at maximum density and minimum volume

- As you continue cooling it from 4C, it starts expanding again

- At 3C the water is lower density than it was at 4C and is again expanding

- At 0C where the water starts to transition to a solid the volume expands significantly

I guess I wasn't clear that the expansion only starts again as you go from 4C -> 0C in the liquid phase.


ah OK, I get your point :) It doesn't really matter though because water when liquid doesn't cause any problem when expanding or contracting, its level in a vessel will just slightly change. It's only the ice that can fuck up pipes etc


maybe this? https://en.wikipedia.org/wiki/Mpemba_effect Or, more generally: "Heating and cooling are fundamentally asymmetric and evolve along distinct pathways" https://www.nature.com/articles/s41567-023-02269-z


Note here is also that district heating uses water that is heated to 65-115C.

Which means that you have rather little of delta to work with. And at upper end it becomes somewhat risky to have large container of water that is beyond boiling in normal pressure...

With sand you can use very simple heat-exchangers. No need to use exotic heat pumps that require extra energy...


> Why would anyone review a design/ architecture after it's already been built?

Many reasons. They might not have known it was being built, or they might disapprove of how it's turned out compared to initial presentation, or there might have been a shift in priority making the current project not a good fit.


Or in my world, "We skated around the security/risk review by claiming it is a low-risk application [no PII data, not customer facing, only a PoC, etc], but now we're doing all of those things. The auditors caught on to us and are saying we have to have a review by security. It's already in production so we're not changing a thing. You guys figure out how to make the auditors happy since we won't be held accountable.". Good times.


A special case of, "I got all the glory for doing the easy part, you get to take the hard part."


Which companies that already rent out H100s would risk the ire of nvidia providing them less capacity next time?

edit: It seems cudocompute and dataknox is willing to rent them out


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: