5 ms·
> A GC is way more productive than the metal effort and programming skills required to master an affine type system Ease of learning and productivity are two d
by littlestymaar 9y ago
> A GC is way more productive than the metal effort and programming skills required to master an affine type system
Ease of learning and productivity are two different things. Rust is indeed harder to learn than JavaScript, but IMHO it's more productive in a day-to-day use thanks to its powerful type system (caveat, the ecosystem is still pretty young).
Swift is harder to use than Rust in my opinion since you have to deal with cyclic references to avoid memory leak with ARC.
- deleted 9y ago[deleted]
- pjmlp 9y agoHaskell, OCaml, Scala and C++ have a more powerful type system, while being more productive than Rust on its current state. I share the opinion of the current thread going on Reddit and Rust forum, that the use cases of C and C++ should be the ones being targeted by Rust. Everyone else is quite happy using GC based languages, specially on web development.
- littlestymaar 9y agoHaskell and OCaml look alien and are beyond Rust in term of learning curve, and I speak as someone who historically learned OCaml as his first language (just French things). I can't say anything about Scala. I don't know what C++ is doing in this list since there's no GC and its type system doesn't really compare to the other languages discussed here (including Rust). > Everyone else is quite happy using GC based languages The huge amount of rustaceans coming from language with GC (including myself) isn't really in favor of your argument. As a web dev currently using rust for cli tools, I'd be really happy to do my web stuff in Rust also once the web story for rust has matured. And seeing what happened since last year in this field, I'm really optimistic for the future. I understand that not everybody thinks the way I do, but we exist though ;).
- pjmlp 9y agoI learned Caml Light a few years before Objective Caml was designed. C++ has a GC API since C++11 and there are extensions like C++/CLI or Unreal C++ that make use of a GC. The amount of people doing production web development in Rust won't be more than a single digit, when one takes the whole web community into account. I surely don't want to think about affine types when doing UI design in Storyboards, Android designer, WPF/UWP Blend designer.
- littlestymaar 9y ago> The amount of people doing production web development in Rust won't be more than a single digit Well, I'm pretty sure a few people at INRIA would be really happy if OCaml was used by a single digit percentage of the whole web community. If Rust reached this stage I think we could talk about its success in this field. Go is considered a pretty sucessful language for web back-end stuf and I'm pretty sure it's not used by more than a single digit percentage of web devs. > I surely don't want to think about affine types when doing UI design in Storyboards, Android designer, WPF/UWP Blend designer. I don't understand your point, affine type is something that helps you write more maintainable code : you can't have two different sections of your code mutating the same piece of data without you knowing it. It makes me think less actually. And if you need to have two owners for a given piece of data, you can opt-out the ownership system with reference counting and interior mutability. Those rules and mechanisms are difficult to learn and internalize, but once that's done it helps you and makes you more productive.
- pjmlp 9y agoAffine types are still too hard to use by regular users without CS background. Simple exercise, imagine a GUI builder regardless of for web or native code, for pumping out plain CRUD frontends, dragging components from a toolbox into the UI designer. Components, of course, have a property designer that allows setting properties like database connections or data grid paging. Now try to fit affine types into this kind of workflow, without forcing people to manually create some kind of auxiliary types and deduction helper functions like described on the Idris book.