HN user

explodingwaffle

294 karma
Posts5
Comments48
View on HN

just because it is digital doesn't mean it has to be a microcontroller though, right?? i see no reason this wouldnt just be a state machine or whatever out of plain old logic.

I tested with 1.1.1.1 first, didn’t get anything, and gave up for the night. Maybe I should put a different provider as DNS backup? (any DNS gurus to say that that’s a bad idea?)

Who says you can’t make a library that does both? Rust makes it pretty easy to conditionally compile code based on architecture.

It could even be possible to make some sort of “ABA primitive” and use that for these sort of data structures. This could well exist: I’ve not looked. These sorts of things really aren’t that common in my experience.

On LR/SC: to any atomics experts listening, isn’t it technically “obstruction-free” (as per the Wikipedia definitions at least) rather than lock-free? (though in practice this makes basically no difference and still counts as lock-free in the C++ (and Rust) sense) Just something that stuck out last time I got sucked into this rabbit hole.

What would you consider the “RISC-V equivalent” of TrustZone? Last time I was curious I didn’t find anything.

(FWIW I agree with the other commenter that these ""security"" features are useless, and feel to me more like check-box compliance than anything else (Why does TrustZone work with function calls? What’s wrong with IPC! Also, what’s wrong with privileged mode?). Just seems like a bit of a waste of silicon really.)

that page + the book Hacker's Delight are a big part of the reason I am so convinced of this :)

If compilers/languages/standard libraries provided these bit permutations, and it was just something ~everyone had learned, it would be a lot easier to work with bits without needing to come up with the bitwise ops (or use that generator). In addition it would probably make better use of the hardware: sure, people like to pretend that we’re still programming C for PDP11, but modern hardware supports more operations than C has operators for (RISC-V B extension and co have the right idea <3)

Modern compilers are probably pretty good? but I doubt they are perfect at turning code like that in OP into the best instructions. It is probably a bit late for C/C++ though. maaaybe possible to get it into LLVM and Rust.

The more and more bit-hacks I see, the more convinced I am that they should be handled by a cleverer compiler. Some intrinsic(s) where you say “do x, y, to these bits” and it just figures out the optimum way of doing it for whatever platform you compile for.

I wouldn’t call it a pet peeve but I understand where you’re coming from with this: but I think the main reason for it is electronic engineers, with little-to-no product design or even mechanical design/CAD background. IMO it’s a shame: it’s sort of like the open source hardware version of the “Blender before it got good UX” problem.

Yes: because Apple actually got this added to the spec: https://www.usb.org/document-library/usb-type-cr-cable-and-c... which is the real story IMO (I am impressed no one bothered looking at the Type-C spec update after the Type-C iPhone finally came out)

This actually replaced the analog audio mode (good riddance- whoever thought adding analog audio into a port that also does digital audio was a good idea?)

Raspberry Pi 5 3 years ago

It’s worth noting that this is _allowed_ by the USB-PD spec, but you’re right that 5V @ 5A is not common because it is not required. At least it’s better than the Pi 4 was at launch? :D

"To protect your organization from excessive usage and Denial of Service attacks, we limit the number of allowed content delivery views within a twenty-four hour period. Try viewing the content again later."

C'mon guys, I was reading that 240 page government contract!

“feeds”

People keep using this word when talking about what’s been happening with the internet recently- but they don’t realise how close it is to the actual answer. RSS has been around forever and it’s exactly what is needed. A feed reader can check thousands of blogs, comment sections, youtube channels, newsletters (imagine never being asked for your email randomly ever again), podcasts, whatever.

The real issue is (and should be) discovery. Make feeds more obvious (say, it was integrated into modern browsers. Some sort of first class “feed detected” icon) and then all you need is search, which has also been solved forever (hopefully it stays that way…).