4 ms·
Honestly I find assembly language to be easier than Rust and very suitable for embedded systems.
by PaulHoule 4y ago
Honestly I find assembly language to be easier than Rust and very suitable for embedded systems.
- tucosan 4y agoGood for you. I personally very much applaud the effort to port Rust to Espressif chipsets.
- ostenning 4y agoEmbedded systems today are pretty complex, especially highly connected IoT devices that run mesh networks, have dfu ota, ML edge computing and more. There are RTOS that allow you to tap into this stuff, but its basically all written in C. I wish there was more available in Rust, not just for the language benefits, which there are many but for more modern tooling. Assembly still has its use cases but often its not applicable to today’s general purpose microcontrollers unless your doing some intensive realtime calculations, even then it should be scoped to that specific routine.
- galangalalgol 4y agoKnowing how to read asm is super useful, and once I would have recommended writing asm as the best way to learn to read it. I still think everyone should write some asm, and not just friendly mips or riscv asm, something with a few warts and some redundancy, and some intrinsics. But reading the output of modern optimizers isn't really related to the type of asm that mere mortals write, you only get better at that by doing it. Looking at the outputs of perf reports and using godbolt a lot seem the best route. Maybe you'll never need any more performance than a naive implementation in python can give you, but it is like any other stack of abstractions in that knowing a little bit about the layers you don't work at makes you do your job better.
- ilovecaching 4y agoNice bait. A professional embedded developer doing serious work would never in their right mind forgo C for embedded development. The fact that these people are working on porting Rust to increase safety over C is laudable and it's sad that you are either too naive or just don't care enough about your users to see why using a language that catches simple mistakes that allow for exploits and crashes is a good thing.
- infamouscow 4y agoDemonizing engineers isn't a winning adoption strategy. I'm convinced Rust will fade away like Scala precisely because criticism and bad experiences are met with poorly constructed straw men. It illustrates how immature the language and community are if this is the best argument available. Virtually every HN thread for years has comments condemning C and C++ developers. Not a single one of those lunatics seems to understand most C and C++ developers have managers and company policies they must navigate. What do you think is going to happen when someone gives this straw man to their boss? If people are going to be demonized for trying Rust and switching to something else, for whatever reason, the net effect will be people will avoid Rust and find something nicer like Swift, Nim, Pony, and Zig.
- Ygg2 4y ago> I'm convinced Rust will fade away like Scala precisely because criticism and bad experiences are met with poorly constructed straw men. It illustrates how immature the language and community are if this is the best argument available. I doubt it. Scala choices were directly dictated by JVM. No JVM language managed to outpace Java. Java usually adds most interesting features from other such langs and assimilates them. Rust doesn't let underlying compiler dictate everything. There is a huge risk in regards to complexity, but community has (so far) been vocal against such things. Yes, Rust community isn't a cult of hivemind pod people. Imagine my shock! Honestly as a dev coming from higher levels langs (Java), being able to write sensible non-GC code and it not dying in segfaults, UB sheitfuckery, or null pointer bullshit is a gift. Plus no data races? Sign me up. Scala gives you a better horse (Java + Haskell), Rust gives you a car with a seatbelt.
- infamouscow 4y agoI understand the technical merits of Rust and how it's distinct from the JVM. The point was non-technical merits matter just as much, if not more.
- Ygg2 4y ago
- 1023bytes 4y agoCool, let's see a Bluetooth driver in assembly
- fit2rule 4y ago[dead]