News for hackers. Stuff that matters.
Re:Notes on a Smaller Rust by coldtea on Thursday July 18, 2019 @08:06AM (#20468897)
>In other words, the core, commonly identified “hard part” of Rust - ownership and borrowing - is essentially applicable for any attempt to make checking the correctness of an imperative program tractable. So trying to get rid of it would be missing the real insight of Rust, and not building on the foundations Rust has laid out.

Sure, but people wanting a smaller Rust might not care about the "real insight of Rust", but of the surface syntax, speed, apis, tooling (e.g. cargo), and so on...

I'd like a Rust like language that's GCed for example, and drops all the lifetime annotations and so on...

Re:Notes on a Smaller Rust by mathw on Thursday July 18, 2019 @08:20AM (#20468978)
I guess it depends what you think is the real core of Rust - for me, Rust's primary innovation and primary differentiation point is giving you safe memory management without a garbage collector. Anything that steps away from it (so stepping away from the borrow checker, lifetimes and so on) becomes something that isn't Rust anymore.

After all, just about everything else in Rust is in Haskell.

Re:Notes on a Smaller Rust by mrfredward on Thursday July 18, 2019 @10:09AM (#20469922)
The borrow checker is undoubtedly the core innovation of Rust, but it's not what people new to the language want. When I first came to rust, I was looking for a c++ alternative that had similar syntax and low level power, but also a sane standard library and modern language features like closures.

When I first learned about the borrowchecker I thought it was brilliant. Then I spent some time fighting it and I hated it. Then I learned to love it...until I got backed in to a corner and had to re-architect a project I'd been working on for months. Now I have mixed feelings about it.

So I agree Rust isn't Rust without the borrowchecker, but I empathize with all the noobs who want a rust without it because many people just want a language with some traction that fixes c++ past mistakes, and they end up getting a massive paradigm shift thrown at them instead.

Re:Notes on a Smaller Rust by skohan on Thursday July 18, 2019 @12:38PM (#20471537)
It's surprising to me that a language hasn't emerged which is more purely a modernization of C. It seems like you could go a long way just keeping C's basic abstraction in place, reworking some of the clunky bits and adding some basic quality-of-life improvements from the past 30 years of language design.
Re:Notes on a Smaller Rust by sametmax on Thursday July 18, 2019 @09:52AM (#20469751)
Rust seems like a great language to write other languages in. Not as convenient than a lisp but, zero-cost abstraction, safe, fast and close to the metal.

So you may be see a rustscript at some point. Some people try to implement Python in it, which I think is very interesting: https://github.com/RustPython/RustPython

After all, replacing C/C++ is the raison d'être of rust.

Re:Notes on a Smaller Rust by lucian1900 on Thursday July 18, 2019 @08:08AM (#20468909)
That’s basically Swift.