unwind
Joined 17 years ago
Joined 17 years ago
It's like they took a word already from German ("wiener" as in hot dog) and then broke it while trying to make it more German, or something.
- The macros doing arithmetic (KiB, MIN etc) don't put their arguments in parentheses, that is very dangerous.
- The code assumes that int and i32 are the same size.
- Don't cast the return value of malloc(). Please Google this.
I appreciated the use of structs by value, that's a nice design.
I agree there's a risk of overflow in the arithmetic around sizes/alignment, but with a 64-bit `usize` that should be mostly theoretical.
I was just starting to think "doesn't Big Clive visit Edinburgh periodically?" and then OP's suggestion scrolled into view. :)
Sounds like a great video idea for him, really.
Uh, as in "excessive paperwork", like brochures/leaflets [1] about the new products? Not a native speaker, had a parse error I'm just trying to resolve ...
[1]: https://www.reddit.com/r/EnglishLearning/comments/1hlbxv7/co...
Note to others: that tester board looks fairly passive, i.e. I don't see (mention of) a microcontroller to talk to the chip that high-powered cables must have. So I guess it's somewhat limited in the number of things it can check?
I think the home page is LLM-aided, the design looks very familiar and wording like
[...] no software to install, nothing to set up. Plug in an Arduino, flash the firmware [...]
gives me pause. I am an actual embedded software engineer, and I would not classify finding, wiring (with resistors!) and flashing a microcontroller board as "nothing to set up".
I tend to think that the bar for building e.g. a small synth is like those by mitxela [1], with a tiny microcontroller running C on the metal.
Then the author here uses multi-threaded Python to schedule notes and do millisecond-length powering of 30+ solenoids and make thousands of people feel it's a proper instrument?! Wow!
I hang out a lot on Stack Overflow: http://stackoverflow.com/users/28169/unwind, mainly answering questions about C. I love C.