Better HN
topnewbestaskshowjobs
Log inSign up

kidfrommars

5 karma · joined Aug 22, 2019 (7y ago) · 2 submissions

Submissions

comment 5y ago · link · parent

The Rust code is very non-idiomatic, which is probably part of the reason why it seemed difficult to put together and why reading it is a bit of a chore. Compared to Zig or Go, naively translating C code into Rust isn't going to work nearly as well. This isn't necessarily because Rust is more complicated (although it definitely is) but has a lot to do with the fact that it's semantics are inspired almost as much by OCaml and Haskell as they are by C and C++. It's not surprising, then, that someone who is predominately a C programmer would need more than a couple hours to be able to really judge the difference between the languages.

comment 5y ago · link · parent

So more like an algebraic effect system than what most people think of as exceptions? I definitely think that's a promising area, but unfortunately it's currently still only really a thing in research experiments a-la Koka (https://www.microsoft.com/en-us/research/project/koka/).