News for hackers. Stuff that matters.
Re:Fighting Rust's Expressive Type System by atoav on Sunday October 25, 2020 @04:19AM (#24884690)
I am not too familiar with FP languages, but I must say I have never seen a FP language in low level embedded or GPU code.

Of course there are garbage collected imperative languages which are slower than say Haskell, but can Haskell's speed compare to the most efficient C implementation of a code without making it unreadable?

This is what Rust's promise of "zero cost abstractions" means: if you went all in and handcrafted every pointer it wouldn't become more efficient then it is in it's abstracted form.

Again, I don't know enough about FP languages to make qualified statements, but I thought this was a Rust novelty.

Re:Fighting Rust's Expressive Type System by SAI_Peregrinus on Sunday October 25, 2020 @05:11PM (#24889903)
https://clash-lang.org/ is a functional HDL. Compiles to VHDL, Verilog, or SystemVerilog. That's lower level than just about anything else you can get code for (I suppose SPICE is even lower level in this sense...)
Re:Fighting Rust's Expressive Type System by afiori on Sunday October 25, 2020 @04:37AM (#24884747)
OCaml allegedly has some success stories for this.
Re:Fighting Rust's Expressive Type System by atoav on Sunday October 25, 2020 @07:37AM (#24885496)
Thanks for the tip