News for hackers. Stuff that matters.
Re:Moving from TypeScript to Rust / WebAssembly by cageface on Thursday July 09, 2020 @02:13AM (#23777438)
Exactly. The frameworks aren't there yet but I think Typescript is pretty much ideal for web dev. We're still using dynamic languages for web dev for mostly legacy reasons now.
Re:Moving from TypeScript to Rust / WebAssembly by cies on Thursday July 09, 2020 @03:09AM (#23777721)
Not sure if "ideal" is a good choice of word here. We dont know what's still coming. It surely has some flaws (many inherited from JS). There is stuff like ReasonML/Elm/PureScript that seems more ideal to me from a pure language (not eco sys, job/talent market, etc) perspective.
Re:Moving from TypeScript to Rust / WebAssembly by cageface on Thursday July 09, 2020 @03:18AM (#23777759)
Yeah sure there are many better languages than TS in an absolute sense but TS is the only one I see with the momentum to displace the current incumbents.
Re:Moving from TypeScript to Rust / WebAssembly by te_chris on Thursday July 09, 2020 @07:00AM (#23778851)
It's still a single threaded run time. There's one platform that's ideal for web, BEAM, but unfortunately it doesn't have a strongly typed language. Elixir and Erlang are both great languages though.
Re:Moving from TypeScript to Rust / WebAssembly by Multicomp on Thursday July 09, 2020 @08:16AM (#23779339)
I can't speak to whether or not the BEAM is ideal for the web, but I will say I've been watching the Gleam project very closely because having static typing with the BEAM is a dream of mine.