News for hackers. Stuff that matters.
Re:I Hope Rust Does Not Oxidize Everything by usrnm on Tuesday July 16, 2024 @05:08AM (#40974772)
Within Rust is a smaller, simpler, safer language struggling to get out
Re:I Hope Rust Does Not Oxidize Everything by rapsey on Tuesday July 16, 2024 @05:24AM (#40974844)
Without a GC? No there is not. You are welcome to try of course, but unless you have a PhD in type theory I doubt your chances.
Re:I Hope Rust Does Not Oxidize Everything by logicchains on Tuesday July 16, 2024 @05:46AM (#40974943)
There's a smaller, simpler, safer language lying in Rust called "Rust without async", which would be good enough for the 99% of use-cases that don't need absolute-lowest-possible-latency async.
Re:I Hope Rust Does Not Oxidize Everything by rapsey on Tuesday July 16, 2024 @05:49AM (#40974967)
No one is forcing anyone to use async though. It is an entirely optional part of the language.

But it is naive to think that not using it is an easier path towards a solution.

Re:I Hope Rust Does Not Oxidize Everything by gavinhoward on Tuesday July 16, 2024 @11:33AM (#40977506)
Author here.

Yao is already fully designed. And while I haven't updated its example file [1] to include everything, it would only be a max of two or three times bigger.

This includes generics, an equivalent to Zig comptime, something like traits but more powerful, a solution to the expression problem, etc.

The solution is structured concurrency.

The only reason I am not working more on Yao is because I worked on it for three years at full tilt (because I constantly refactor to eliminate tech debt), and I am burned out.

But adding a new feature takes only about two hours max; I just add a new client-defined keyword.

[1]: https://git.yzena.com/Yzena/Yc/src/branch/master/src/yao/exa...

Re:I Hope Rust Does Not Oxidize Everything by consp on Tuesday July 16, 2024 @05:15AM (#40974807)
Readable would be a nice benefit.
Re:I Hope Rust Does Not Oxidize Everything by v9v on Tuesday July 16, 2024 @05:59AM (#40975011)
Not sure about smaller or simpler, but Ada is definitely more readable in my opinion.
Re:I Hope Rust Does Not Oxidize Everything by Guthur on Tuesday July 16, 2024 @05:27AM (#40974853)
This, I don't understand why we have to load these languages up with so much syntax, it's mind boggling to think that some how we feel it's beneficial to have so much. I'm admittedly biased to the symbolic expression but surely we could have come up with some middle ground.
Re:I Hope Rust Does Not Oxidize Everything by Ygg2 on Tuesday July 16, 2024 @05:32AM (#40974878)
Two things:

- It was made to be approachable for C++ experts

- The idea was that language could be effortlessly greppable.

Re:I Hope Rust Does Not Oxidize Everything by Ragnarork on Tuesday July 16, 2024 @06:17AM (#40975101)
Coming from C++, and I would have loved Rust to not pick up C++-y things to make it look like it...
Re:I Hope Rust Does Not Oxidize Everything by Guthur on Tuesday July 16, 2024 @09:53AM (#40976627)
So legacy baggage from the get go. This is what I'm lamenting, it's objectively a syntax soup.
Re:I Hope Rust Does Not Oxidize Everything by ZoltanAK2 on Tuesday July 16, 2024 @09:36AM (#40976498)
YMMV, but Austral-lang (https://austral-lang.org/) comes quite close to what I want out of a smaller, simpler, safer Rust.

Its syntax is inspired by Ada, and as far as I know the designer has no PhD in type theory, so it matches the requirements put forth by the other commenters too.