Electronics & Embedded Systems Design
We turn your ideas into prototypes, offering systems & electronics engineering, firmware development, HDL, and more.
@deus_lemmus@NathanMerzke I don't think there's a free Spark compiler available, unfortunately. But recent Ada versions (latest is 2022!) do include most of what Spark introduced, like contracts, and more, and all of this is supported by GNAT (GCC).
@nicbarkeragain GCC gives an error for this, Clang only a warning. C++ is strict about designated fields, and I frankly thought that giving a positional field *after* a designated one was just strictly forbidden. An assignment being a rvalue is a double-edged sword that can bite.
@ngrilly@valigo LLM-generated code tends to use less abstractions, but that's not necessarily a good thing. Good abstractions do factor code and avoid duplication. (Of course bad ones just add unnecessary bloat.) LLMs tend to favor duplication, which on its own becomes a maintenance problem.
@DustinHuntwn@grok NVIDIA had pivoted to massive parallel computing long before LLMs appeared, so they have extensive experience, andthe software ecosystem. AMD and Intel's focus for GPUs was graphics. Now the industry still needs that, so making GPUs at a decent price is not "falling behind".
@smartphone_jp1 If it's only USB FS, then it's perfectly fine. If it's USB HS, I'd recommend changing the layout, even if the traces are so short that it probably won't cause an issue. But ideally you want both traces of the pair to have approx the same length, here, one is almost twice as long.
@kake2642@LundukeJournal Bored, or well paid for that. There are only a few factors that can drive us to do odd things that seem useless: boredom, hunger, libido and money.
Now I wonder why 'unsafe' was needed. Some say, to interface with C libs. Couldn't they rewrite those libs in Rust?
@justinmchase@eeuoss Technically, this could be accessing virtual memory that maps to a network resource at the OS level, if executing on such a system. But nothing to do with the language, the same with pure assembly. So the OP could have as well said "assembly is basically Java". Which is nonsense.
@xianghu73574129 There is a wide misconception about that. Capitalism and free market are different things, although frequently combined. While free markets do create wealth IMO (if they are genuinely "free"), capitalism per se creates only limited wealth, and the market is less and less free.
@RealShiroko Depends on your needs. The Dell is well built, comes with an enclosure and cooling (both of which you have to add to the price of a Pi) and supports 2 displays. CPU-wise, a RPi5 is about 3 times faster than the Atom in the Wyse3040, but the Wyse has 2GB RAM, a RPi5 2GB is now $75
@tabnk2@Aboredguy6 While we can't know if excluding scores of 0 is intended or not (could be, we don't know the specs of this), although in this case, a short comment would be welcome), the certain bug here is indeed the division by zero if the list is empty.
@coryalthoff The increased productivity is not even a certainty yet. A number of studies question that.
But the question is nothing new. I'm not marxist by any means, but we must acknowledge that the root issue is still a small minority owning all means of production. AI doesn't change that.
@somewhatdaft@zaiphirion And Zig, and C3, and quite a few others. C3 is interesting. Of course, one big strength of C is its standardization. Getting to that point is tough. Rust is very far from that as well.
@zaiphirion As others have said, no. Not true, C has incorporated a lot of changes that C++ can't handle. For a long time. The main concern for the C std committee is to make sure changes won't break existing C code, and even that is not always possible, but they try to limit such cases.
@xianghu73574129 Pretty sure that's going to be the case. That is, if such labels are actually not made illegal at some point, which wouldn't highly surprise me.
@chessMan786 strncpy is bad outside of its original use case. Many have used it as a "safe" strcpy, requiring an explicit final zero, making it inefficient and clunky to use. People usually expect a "truncated copy". Can use snprintf, a bit more expensive. You often end up writing your own.