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

4作者: hyperbrainer2 个月前原帖
我正在寻找可以用于系统/图形编程的内存安全语言。我喜欢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;