问HN:内存安全的低级语言

4作者: hyperbrainer10 个月前原帖
我正在寻找可以用于系统/图形编程的内存安全语言。我喜欢Rust,但它常常给人一种过于庞大、内容繁杂的感觉。有没有像C那样更简单的语言(显然没有所有的未定义行为和其他问题)? 这个要求特别困难,因为Rust的函数式编程特性非常有用,我发现几乎无法没有它们。基本上,我在寻找C/Zig和Rust之间的折中方案。 我找到的一种这样的语言是Austral[0]。还有其他类似的语言吗? [0] https://austral-lang.org/
查看原文
I am looking for memory-safe languages that can be used for systems&#x2F;graphics programming. I love Rust, but it often feels like too massive a language with too much stuff going on. Is there a language like C, which is simpler (obviously without all the UB and other problems)?<p>This is an especially hard ask, given how useful the FP-like features of Rust are, and I find it almost impossible to live without them. Basically, I am looking for a middle ground between C&#x2F;Zig and Rust.<p>One such language I have found is Austral[0]. What other such languages are there?<p>[0] https:&#x2F;&#x2F;austral-lang.org&#x2F;