News for hackers. Stuff that matters.
Re:Borgo Programming Language by darthrupert on Friday November 29, 2024 @09:43AM (#42274189)
Rust with GC is actually what many people want.

And by that I don't mean using Rc<> everywhere nor do I even mean making a GC library and then using GC<> everywhere. I mean having the runtime handle all memory things with you having to think about it only when some extremely rare corner case breaks.

Re:Borgo Programming Language by PittleyDunkin on Friday November 29, 2024 @12:06PM (#42275227)
Rust with GC wouldn't look much like rust anymore.
Re:Borgo Programming Language by thomasmg on Friday November 29, 2024 @02:36PM (#42276421)
I think people want is Rust, but simpler. At least by default.

I could imagine people want a programming language that is: memory safe, without GC pauses. A bit slower by default than C / Rust, but with the _option_ to make it as fast. Then easier to learn, less vendor lock-in than Swift, and a modern syntax (no null pointers etc).

I don't think such a language exists currently.

Re:Borgo Programming Language by darthrupert on Sunday December 01, 2024 @06:32AM (#42287829)
Nim, but whether the syntax is modern is questionable.
Re:Borgo Programming Language by arethuza on Friday November 29, 2024 @09:57AM (#42274298)
Re:Borgo Programming Language by ComputerGuru on Friday November 29, 2024 @12:11PM (#42275254)
I have been a huge (but lonely) proponent of C# and rust being the best two-language combo. But once (someday! Soon they say!) first-class discriminated union support, it’ll be the ideal recommendation for anyone that wants to get away from manually taking care of lifetimes.
Re:Borgo Programming Language by restlake on Friday November 29, 2024 @10:56AM (#42274687)
You are correct, C# straddles that line better than any other language right now imo thanks to the APIs you linked. There was a good write up about this Rust vs C# Span comparison on HN a few weeks ago but the link escapes me
Re:Borgo Programming Language by pjmlp on Saturday November 30, 2024 @12:21PM (#42282739)
D would fit in as well, if the community wasn't so tiny.
Re:Borgo Programming Language by cwalv on Friday November 29, 2024 @01:47PM (#42276040)
C# was derided as "Microsoft's Java" from the beginning, even though it pulled ahead very early on with generics and never looked back. Microsoft was loathed by many for a long time. Go is popular because Google is (was?) loved/admired.
Re:Borgo Programming Language by neonsunset on Friday November 29, 2024 @02:58PM (#42276605)
I'm finding F# to be even closer because it has HM type inference, discriminated unions (note they are not as layout-efficient as Rust's, it is better in F# 9 though), is fully expression oriented and overall a quite terse language (Rust isn't really terse but can be made so in some cases).

It's worse at dealing with ref structs so C# is better for some low-level tasks. But it has other niceties like IL-level function and lambda inlining.

Re:Borgo Programming Language by timeon on Friday November 29, 2024 @10:17AM (#42274422)
When companies move from Go it is usually because of GC.

Tho point of Rust is to be safe language without GC. Even if not perfect, best thing about Rust is borrow checker and border between safe/unsafe. You can use several other languages, like Ocaml, if you want Rust with GC.

Re:Borgo Programming Language by etse on Friday November 29, 2024 @04:52PM (#42277428)
I’m curious which are the well known projects or products that have ported or converted away from Go. Anyone have a shortlist?
Re:Borgo Programming Language by alfiedotwtf on Saturday November 30, 2024 @02:16AM (#42280117)
I have seen a lot of large projects do this but don’t keep a list. The ones that remember from recently reading about them is Discord and IndexedDB.