News for hackers. Stuff that matters.
Re:Nim Version 1.6.6 Released by rosetremiere on Thursday May 05, 2022 @09:34AM (#31273108)
A bit off-topic, but I'd like to see a language à la rust+gc, with pattern matching, traits, and the functional stuff rust got right, but without all the worries of lifetimes, and maybe some easier trait management (function signatures become very ugly imo).

I've heard the claim that lean is going in this direction.

Re:Nim Version 1.6.6 Released by rkallos on Thursday May 05, 2022 @10:31AM (#31273834)
It sounds to me like you might enjoy SML or OCaml.
Re:Nim Version 1.6.6 Released by maleldil on Thursday May 05, 2022 @09:23PM (#31280165)
The ergonomics of both are more oriented towards functional programming rather than imperative. Rust is still primarily imperative with great APIs for functional programming.
Re:Nim Version 1.6.6 Released by peheje on Thursday May 05, 2022 @03:11PM (#31277312)
Have you had a look at F#?

It has great GC piggybacking on the huge amount of efforts going into dotnet, each release since dotnet core has just gotten faster and faster, not just GC but many parts of the ecosystem, see e.g. https://devblogs.microsoft.com/dotnet/performance-improvemen...

Pattern matching is first class. See e.g. https://docs.microsoft.com/en-us/dotnet/fsharp/language-refe...

I haven’t programmed with traits, but sounds like interfaces which you can have records implement. https://gist.github.com/robertpi/2964793

Function signatures are usually not needed due to the type inference algorithm, so while it is statically typed, you often don’t need to write out the types of functions.

Re:Nim Version 1.6.6 Released by verdagon on Thursday May 05, 2022 @10:44AM (#31274021)
You might enjoy Cone, which is basically Rust with GC (and RC, and any other strategy).
Re:Nim Version 1.6.6 Released by kybernetikos on Friday May 06, 2022 @08:51AM (#31284521)
Unfortunately I'm getting certificate errors on their website.
Re:Nim Version 1.6.6 Released by ezst on Thursday May 05, 2022 @01:56PM (#31276558)
Scala is my go-to for cli tools these days because of that, and even more so since it has a compiler to native (via llvm)
Re:Nim Version 1.6.6 Released by eklavya on Thursday May 05, 2022 @10:33AM (#31273856)
Absolutely, I think there is a huge opportunity here. A rust+gc lang which has seamless ffi with rust would be a killer in my opinion.
Re:Nim Version 1.6.6 Released by antifa on Friday May 06, 2022 @02:44PM (#31288476)
Not just seamless, I want it to use rust libraries natively and basically be rust under the hood. Think coffeescript but for rust. The problem with most people's suggestions will be that it deviates too far from rust (giant VMs) and a new language would need a duplicate ecosystem.
Re:Nim Version 1.6.6 Released by barnabee on Thursday May 05, 2022 @03:54PM (#31277742)
I like Rust but I’d use this for so many things!
Re:Nim Version 1.6.6 Released by sdfgdfgbsdfg on Thursday May 05, 2022 @11:59AM (#31275042)
I feel like this is an inevitability at this point. Kotlin is basically this, and C#/Java/Typescript are getting there, albeit with some historical baggage that might make it slightly less ergonomic.
Re:Nim Version 1.6.6 Released by sharno on Thursday May 05, 2022 @10:30AM (#31273808)
Lean the theorem proving language?
Re:Nim Version 1.6.6 Released by rosetremiere on Thursday May 05, 2022 @10:44AM (#31274019)
Indeed, though I have no quote or link for this "claim".
Re:Nim Version 1.6.6 Released by xigoi on Friday May 06, 2022 @12:07AM (#31281202)
Well, functional programming is very natural for theorem provers, especially those based on the Curry-Howard correspondence.