News for hackers. Stuff that matters.
Re:Implementing a Type-safe printf in Rust by hardwaresofton on Friday August 14, 2020 @03:27AM (#24154891)
tl;dr rust is cool, type level programming excites haskellers, you should take rust for a spin because it somehow manages to seemingly do it all.

Note that this is the kind of type machinery that Haskellers get excited about. If you're somewhat familiar about what type level programming in this area looks like there, check out Hlist[0], Vinyl[1][2], and if you're really interested, phantom types[3].

One of the best things about rust is that it manages to have both a near-research-grade type system, approaching C speed, and novel data safety features all rolled in one language. If those features weren't enough, it's got an extremely good module system with public package hosting, helpful compiler, relatively easy cross compilation and toolchain convenience other languages only dream of along with a welcoming community.

I'm not associated with the rust team/mozilla in any way, but there are very few reasons to not be excited about where rust will be in 10 years. Whether you're writing code to run in browsers (compiling your frontend code to wasm is a pretty intense step I'll admit -- I like my TS/JS just fine), web servers, or embedded code to run on your small ESP32 (or smaller), rust somehow fits.

[0]: https://hackage.haskell.org/package/HList

[1]: https://hackage.haskell.org/package/vinyl-0.13.0/docs/Data-V...

[2]: https://github.com/VinylRecords/Vinyl/blob/master/tests/Intr...

[3]: https://wiki.haskell.org/Phantom_type

Re:Implementing a Type-safe printf in Rust by akiselev on Friday August 14, 2020 @03:54AM (#24155087)
> I'm not associated with the rust team/mozilla in any way

Is there still a Rust team at Mozilla?

Re:Implementing a Type-safe printf in Rust by hardwaresofton on Friday August 14, 2020 @08:05AM (#24156784)