3 ms·
In my experience every language sits between Go and Rust, apart from C++.
by vips7L 6y ago
In my experience every language sits between Go and Rust, apart from C++.
- Cyph0n 6y agoNo, I would say that most languages sit above Go - i.e., most languages are higher-level and have lower performance (in the general case) than Go.
- tyingq 6y agoThat seems to capture the essence of Nim. The main goal appears to be to "seem high level" but, compile to C in way that makes it low level when you want it to be. Like the optional garbage collection, pretty simple ffi, etc. They seem to be pitching a middle ground.
- cb321 6y agoNim almost always produces faster running executables than Go in my experience, but is also higher level/more featureful. It also compiles very quickly if you use the TinyCC/tcc backend C compiler.
- Cyph0n 6y agoI never said anything about Nim. My reply was saying this: [ Most languages ] - [ Go ] - [ Some languages ] - [ Rust ] - [ Way fewer languages ] In the above, languages are lower-level and higher performance (in general) as you move to the right.
- beagle3 6y agoPython is to on the other side of Go. And C++ isn't alone: None of Lisp, APL, Forth or Prolog, to name a few, sit anywhere near the Go<->Rust spectrum.
- elcritch 6y agoForth is more like the raw VM that runs your favorite interpreted high level language. Lisp is the AST that powers your favorite high level language or low level language. ;-)
- nepeckman 6y agoI think the significant thing about putting Nim on the Go/Rust spectrum is that all 3 languages are statically typed languages, that advocate performance and compile to a single binary. So there is more to gain from comparing the 3, than say comparing Go and Rust to Ruby.