Hacker News new | past | comments | ask | show | jobs | submit login

Within Rust is a smaller, simpler, safer language struggling to get out



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.


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...


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.


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.


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.


Readable would be a nice benefit.


Not sure about smaller or simpler, but Ada is definitely more readable in my opinion.


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.


Two things:

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

- The idea was that language could be effortlessly greppable.


Coming from C++, and I would have loved Rust to not pick up C++-y things to make it look like it...


So legacy baggage from the get go. This is what I'm lamenting, it's objectively a syntax soup.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: