102
submitted 3 days ago* (last edited 3 days ago) by CoderSupreme@programming.dev to c/programming@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] mox@lemmy.sdf.org 45 points 3 days ago

With no context, this could be an honest attempt to learn about different tools, a thinly veiled set-up to promote a specific language, or an attempt to stir up drama. I can't tell which.

It's curious how such specific conditions are embedded into the question with no explanation of why, yet "memory safe" is included among them without specifying what kind of memory safety.

[-] Ephera@lemmy.ml 8 points 3 days ago

Yeah, arguably the only answer to this question is Rust.

Java/C#/etc. are not fully compiled (you do have a compilation step, but then also an interpretation step). And while Java/C#/etc. are memory-safe in a single-threaded context, they're not in a multi-threaded context.

[-] starman@programming.dev 7 points 3 days ago* (last edited 3 days ago)
[-] Ephera@lemmy.ml 4 points 2 days ago

I mean, yeah, valid point. JVM languages also have GraalVM for that purpose.

But I'm playing devil's advocate here. ๐Ÿ™ƒ

Arguably these don't count, because they're not the normal way of using these languages. Reflection isn't properly supported in them, for example, so you may not be able to use certain libraries that you'd normally use.

These also still require a minimal runtime that's baked into the binary, to handle garbage collection and such.
Personally, I enjoy fully compiled languages, because they generally don't lock you into an ecosystem, i.e. you can use them to create a library which can be called from virtually any programming language, via the C ABI.
You cannot do that with a language that requires a (baked-in) runtime to run.

But yeah, obviously someone just specifying "compiled" probably won't have all these expectations...

load more comments (17 replies)
load more comments (19 replies)
this post was submitted on 05 Oct 2024
102 points (94.7% liked)

Programming

17153 readers
431 users here now

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



founded 1 year ago
MODERATORS