You are viewing a single thread.
View all comments View context
1 point

Crab is Rust, but the last one…

permalink
report
parent
reply
1 point
*

Apparently it’s called nim.

https://en.m.wikipedia.org/wiki/Nim_(programming_language)

Looking at the Wikipedia article, it seems like it has some weird syntax choices. And even though it compiles to C code, I’m not convinced that it’s as fast as C or Rust, since it has a garbage collector.

permalink
report
parent
reply
1 point

I’m pretty skeptical it could be as fast and safe as Rust without the added challenge. Like, even doing what Rust did was a big deal.

permalink
report
parent
reply
1 point

I could be wrong, but based on the Wikipedia article it seems like it’s more trying to be a python replacement than a rust/c++/Java/etc replacement. The big thing with rust is that it’s rules allow memory safety without a garbage collector, while unless I missed something it seems like nim just uses a garbage collector. Not that that’s necessarily some huge problem or anything, but you know, different purposes

permalink
report
parent
reply
1 point

Can compile to C which then compiles using your favourite compiler. So it can operate at the speed of C

And the new memory management system is similar to rusts system (and can be fully disabled if you want manual memory management)

permalink
report
parent
reply
-1 points

I think it transpiles to C so theoretically it could be quite fast, but I doubt the generated C is as fast as manually written C or Rust.

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 5.6K

    Monthly active users

  • 1.5K

    Posts

  • 34K

    Comments