45
you are viewing a single comment's thread
view the rest of the comments
[-] loops@lemmy.ml 9 points 1 year ago

What are the last two? I know Python and C, but haven't seen the last two.

[-] Re4mstr@lemmy.re4mstr.com 4 points 1 year ago

Crab is Rust, but the last one...

[-] jlh@lemmy.jlh.name 12 points 1 year ago
[-] CanadaPlus 9 points 1 year ago

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.

[-] mundane_party@lemmy.world 4 points 1 year ago

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

[-] CanadaPlus 1 points 1 year ago

So basically, what I'm hearing is that it's not fast like Rust. Yup, that tracks, this is just a guy stanning his favourite.

[-] priapus@sh.itjust.works 2 points 1 year ago

It's not safe, so this post doesn't really make sense.

[-] potatoBoy@programming.dev 1 points 1 year ago

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)

[-] CanadaPlus 2 points 1 year ago* (last edited 1 year ago)

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

Technically, it all compiles to assembly, but Python is still a lot slower than C or Rust. Speed is lost along the way through those layers of abstraction.

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

So it doesn't have a garbage collector? I'm going to have to actually look into this myself.

[-] qaz@lemmy.world -1 points 1 year ago

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.

[-] HolyHell@lemmy.fmhy.ml 1 points 1 year ago

OH… NIM NIM NIM NIM NIM FUCKING NIM

[-] HolyHell@lemmy.fmhy.ml 1 points 1 year ago

OH… NIM NIM NIM NIM NIM FUCKING NIM

load more comments (15 replies)
this post was submitted on 27 Jun 2023
45 points (95.9% liked)

Programmer Humor

32399 readers
516 users here now

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

Rules:

founded 5 years ago
MODERATORS