7 points

You mean… except Ada?

permalink
report
reply
61 points

🦀

permalink
report
reply
31 points

permalink
report
parent
reply
22 points

Ada, hands down. Every time I go to learn Rust I’m disappointed by the lack of safety. I get that it’s miles ahead of C++, but that’s not much. I get that it strikes a much better balance than Ada (it’s not too hard to get it to compile) but it still leaves a lot to be desired in terms of safe interfacing. Plus it’s memory model is more complicated than it needs to be (though Ada’s secondary stack takes some getting used to).

I wonder if any other Ada devs have experience with rust and can make a better comparison?

permalink
report
reply
2 points

I would use Ada or Spark in a heartbeat if there was an easy-to-use, mature cross-platform GUI library for it.

permalink
report
parent
reply
5 points

I have done quite a bit of C, C++, Ada, and Pascal development. I recently got into Rust. I am still getting used to Rust, but it feels a bit like someone tried to apply Ada to C++. I like the modern development environment, but I am slower writing code than I would be in Ada or C++. The one feature of Ada that I really like and want other languages to adopt is the Rep spec. I write driver code and being able to easily and explicitly identify which symbol corresponds to which bit is really good.

permalink
report
parent
reply
0 points

its* memory model is

permalink
report
parent
reply
-23 points
*

C is memory safe if you program it well enough, so I guess C

permalink
report
reply
12 points

C? Memory safe? HAHAHAHA

permalink
report
parent
reply
1 point

落ち着いてください

permalink
report
parent
reply
0 points
Deleted by creator
permalink
report
parent
reply
26 points
*

every single language (except Vlang of course) is memory safe if you program it perfectly.

Very, very few humans are capable of doing that, especially with C.

permalink
report
parent
reply
21 points

Every car has airbags if you drive well enough. Right?

permalink
report
parent
reply
4 points

You can still make stupid mistakes in Rust. It may make it harder to make the most common mistakes, but pretending the guardrails are prevent any type of mistake is asking for a problem to happen.

permalink
report
parent
reply
3 points

The only one pretending mistakes can’t happen is the person I replied to. Mistakes definitely can happen and no programming language is fool proof.

Continuing my car analogy, would you rather drive a car with airbags and seatbelts or one without them? Of course you can still have a fatal accident, but it’s nice to have safety features that make it as unlikely as possible.

permalink
report
parent
reply
-7 points
*

Lol. The people downvoting your comment need to get good.

permalink
report
parent
reply
4 points

Skill issue.

permalink
report
parent
reply
33 points

That is a very specific subset

permalink
report
reply
30 points

Garbage collection is still allowed, and technically JIT languages are still compiled so it really isn’t that restrictive

permalink
report
parent
reply
3 points

Java, the language so good you compile it twice!

permalink
report
parent
reply
5 points

Not that specific tbh, most newer native languages these days are compiled and memory safe (Rust, Swift, Go, Kotlin Native, etc)

permalink
report
parent
reply

Programming

!programming@programming.dev

Create post

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



Community stats

  • 2.3K

    Monthly active users

  • 970

    Posts

  • 8.7K

    Comments