dlang[0] as well perhaps.
[0] https://dlang.org/blog/2019/07/15/ownership-and-borrowing-in...
Re:Rust is a hard way to make a web API
by Svenskunganka on Saturday January 16, 2021 @10:01PM
(#25807677)
Hopefully I'm not too late to spark some interest, but have you seen Pony[0] yet? It's a mix between Rust's safety & Erlang's concurrency (actors).
Hi! I'm the Gleam guy! It out curiosity what would the language need to bring it closer to what you want?
Here's Gleam for anyone interested: https://github.com/gleam-lang/gleam
Re:Rust is a hard way to make a web API
by hardwaregeek on Saturday January 16, 2021 @03:03PM
(#25804999)
Hey man big fan! Honestly it’s just having it run in the browser, which I understand isn’t a goal of Gleam. If Gleam had a webassembly target (and maybe a little easier mutability :p), I’d definitely love to use it in my web apps.
Web assembly and running in the browser are both long term goals of Gleam! Right now the focus is on Erlang, but once we have a good enough experience there one thing I'm going to explore is different compilation targets so that Gleam can be applied to a wider range of problem spaces and constraint sets.
Re:Rust is a hard way to make a web API
by hardwaregeek on Saturday January 16, 2021 @05:06PM
(#25805965)
Ah that's wonderful! I'd definitely be interested in helping if possible.
Re:Rust is a hard way to make a web API
by isubasinghe on Friday January 15, 2021 @09:43PM
(#25799498)
> I'd love love love for there to be a language that gets in between Rust and TypeScript.
I am really really keen on developing something like this, along with an optional linear type system. I think this would be a cool project for my thesis but also I have a lot on my plate already.
Re:Rust is a hard way to make a web API
by hardwaregeek on Friday January 15, 2021 @11:43PM
(#25800106)
Definitely interested in talking more about this if you're down! Send me an email
Re:Rust is a hard way to make a web API
by isubasinghe on Sunday January 17, 2021 @04:07AM
(#25809319)
Ah I would be down if I can get it onto my thesis next semester. I can contact you in about 5 months, if thats ok
I'm really curious why people would ask for GC. What is the benefit?
Re:Rust is a hard way to make a web API
by sweeneyrod on Saturday January 16, 2021 @09:11AM
(#25802235)
What about OCaml?
Re:Rust is a hard way to make a web API
by hardwaregeek on Saturday January 16, 2021 @03:05PM
(#25805015)
I really really wanted ReasonML to work but they’ve been dragging their feet on good async primitives and nicer interop. It’s also very frustrating and confusing to deal with the inconsistencies of OCaml, Bucklescript and Reason/ReScript.
I don’t mean to criticize too harshly; it’s a great ecosystem that I really want to use. It’s just not at the point where using it seems like the pragmatic, effective decision
One problem that I noticed, which may become a serious issue in the future, is that a lot of libraries add abstractions via macros. Macros don't always compose or debug well. I had some experiences getting errors in my macros that had extremely confusing debug messages, often pointing to files that didn't exist. Hopefully there will be a trend of moving back to plain old functions. Nom for instance has converted its combinators into regular functions, which I like a lot.
I'd love love love for there to be a language that gets in between Rust and TypeScript. It'd have the strictness over mutability like Rust, but the GC of JS/TS. It wouldn't have 3+ string types. It'd have enum variants and pattern matching but maybe not macros. Gleam is pretty close!