this post was submitted on 05 Oct 2024
18 points (90.9% liked)

Programming

17123 readers
144 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
top 23 comments
sorted by: hot top controversial new old
[–] mox@lemmy.sdf.org 2 points 11 minutes 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.

[–] KindaABigDyl@programming.dev 2 points 13 minutes ago

Rust and Haskell (I think Haskell counts)

[–] flubba86@lemmy.world 1 points 30 minutes ago
[–] dohpaz42@lemmy.world 10 points 2 hours ago
<?php
declare(strict_types=1)

😏 😁

🏃‍♂️💨

[–] germanatlas@lemmy.blahaj.zone 11 points 2 hours ago (1 children)

That is a very specific subset

[–] sus@programming.dev 5 points 1 hour ago

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

[–] FizzyOrange@programming.dev 8 points 2 hours ago

Rust for now, by a wide margin. But I'm following other languages that I think have the potential to surpass it, including Vale (promises way more than it delivers currently), Koka, Hylo, maybe Lobster.

[–] zcd@lemmy.ca 14 points 2 hours ago (1 children)
[–] MajorHavoc@programming.dev 2 points 1 hour ago* (last edited 1 hour ago)

Python with MyPy.

(Almost any language can meet those criteria, with enough shenanigans.)

[–] lambdabeta@lemmy.ca 8 points 2 hours ago (1 children)

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?

[–] refalo@programming.dev 1 points 30 minutes ago

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

[–] AsudoxDev@programming.dev 0 points 59 minutes ago
[–] Andromxda@lemmy.dbzer0.com 1 points 1 hour ago

Hands down, Rust 🦀

[–] apoisel@discuss.tchncs.de 0 points 1 hour ago
[–] BorgDrone@lemmy.one 2 points 1 hour ago
[–] frankenswine@lemmy.world 3 points 3 hours ago

You mean... except Ada?