- alcasa ( @alcasa@lemmy.sdf.org ) 24•1 year ago
Who the hell would call python beautiful has never seen python code in the wild
- prowlr ( @prowlr@lemmy.ml ) 7•1 year ago
Too true, python can be beautiful and succinct or like a huge plate of spaghetti cut up with scissors
- 𝕙𝕖𝕝𝕡 ( @help@lemmy.ml ) English10•1 year ago
One big reason Nim never really caught on is because we’ve got lots of fast-ish languages with garbage collection (like Go, which sucks a lot of oxygen away from Nim IMO). Rust introduced a new concept to the mainstream that lets you program safely without a runtime hit for garbage collection.
- solrize ( @solrize@lemmy.ml ) English1•1 year ago
Ada would like a word with you ;)
- 𝕙𝕖𝕝𝕡 ( @help@lemmy.ml ) English1•1 year ago
To my knowledge, Ada doesn’t have an equivalent to Rust’s borrow checker. I also think I covered that base by specifying “mainstream” 😀
- loops ( @loops@lemmy.ml ) 8•1 year ago
What are the last two? I know Python and C, but haven’t seen the last two.
- pollocks ( @pollocks@lemmy.ml ) 20•1 year ago
The third one is rust which has become a meme at this point. Programmers like it because it has almost as much performance as C but has a lot of safeguards preventing memory errors and vulnerabilities. I have no idea what the last one is tho
- loops ( @loops@lemmy.ml ) 7•1 year ago
Did rust change it’s logo? I thought it was a gear. :s
- dragnucs ( @dragnucs@lemmy.ml ) 10•1 year ago
It did not change logo. This is the mascot.
- ReakDuck ( @ReakDuck@lemmy.ml ) 2•1 year ago
I think it just has two logos but idk
- Double_A ( @Double_A@discuss.tchncs.de ) 2•1 year ago
The crab is public domain, so you can use it to advertise your own Rust project or whatever. The gear logo belongs to the Rust foundation, which sparked some controversy a while ago.
- Lupec ( @lupec@lemmy.lpcha.im ) 13•1 year ago
- Re4mstr ( @Re4mstr@lemmy.re4mstr.com ) 5•1 year ago
Crab is Rust, but the last one…
- Justin ( @jlh@lemmy.jlh.name ) 12•1 year ago
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.
- CanadaPlus ( @CanadaPlus@lemmy.sdf.org ) 9•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.
- potatoBoy ( @potatoBoy@programming.dev ) Afaraf1•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 ( @CanadaPlus@lemmy.sdf.org ) 1•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.
- HolyHell ( @HolyHell@lemmy.fmhy.ml ) 1•1 year ago
OH… NIM NIM NIM NIM NIM FUCKING NIM
- HolyHell ( @HolyHell@lemmy.fmhy.ml ) 1•1 year ago
OH… NIM NIM NIM NIM NIM FUCKING NIM
- HolyHell ( @HolyHell@lemmy.fmhy.ml ) 1•1 year ago
OH… NIM NIM NIM NIM NIM FUCKING NIM
- kia ( @kia@lemmy.ca ) 8•1 year ago
Once you get used to the Rust syntax, it actually makes the code look cleaner.
- dragnucs ( @dragnucs@lemmy.ml ) 4•1 year ago
Ans you also learn to format it properly.
Generally any new santax looks ugly. Then when you understand why it is written like it is it starts looking good.
- off_brand_ ( @off_brand_@beehaw.org ) 1•1 year ago
Go error handling… It looked so ugly to me when I started. The I kept going and… it’s still awful. I get the theory, but god do I want a try catch block ☠️
Maintaining any mature code is often skipping over 20 little error blocks for each function call, pushing the critical code off the viewport.
- zexu knub ( @zexu@lemmy.ml ) 1•1 year ago
you forgot zig