Live data from Hacker News

This Year in Embedded Rust

blog.rust-embedded.org

61–64 of 64 posts

Re: This Year in Embedded Rust

#61

Earlier quoted context omitted.

This is true for aarch64, but if you're not doing an embedded-linux style project, it's very likely you'll need nightly for inline assembly, though a significant chunk of that is being stabilized as we speak (though sadly not yet enough for my work...)

Good point. Though you can always link to .S for that last bit, right? I don't mean to tell you your business, I know you folks are doing much more intense stuff than I am. It doesn't surprise me that you'd know exactly what's keeping you from using stable.

It's all good, you're not wrong! It would just add a lot of complexity to the build for not a ton of gain...

Re: This Year in Embedded Rust

#63
post #17

Earlier quoted context omitted.

That’s trivial to do with cfg-if and similar crates. There are many Rust libraries that support dozen different hardware architectures using conditional compilation. Rust has many pain points, but conditional compilation isn’t one. What ever weird constraint or desire you have, a macro would solve it nicely for your case.

It's do-able , but you seem to have to go out of your way organise code or modules in sub-optimal ways to compensate in many cases. Most of the crates which I've seen which do that kind of thing in my experience seem to use features or conditional modules, which as I've discussed above have other downsides. Others like Vek seem to just get LLVM to do the work. I think that's a bit disingenuous: I've certainly found R…

Conditional modules are a nice solution to this problem.

Re: This Year in Embedded Rust

#64

I prefer Nim because it runs on every architecture where a C compiler is available. Also it's way more productive.

I'd be interested in reading the reasoning behind the conclusion that Nim is way more productive.

Nim is more expressive, has a powerful macro and templating mechanism comparable to Lisp and build times are a fraction of rust's.
Post reply on HN