G Lang – 一款用D语言编写的轻量级解释器(2.4MB)

5作者: pouyathe5 天前原帖
嗨,HN, 我一直在开发一种名为 G 的编程语言。它旨在实现内存安全和极快的执行速度,并且注重小巧的占用空间。 整个解释器是用 D 语言编写的,大小仅为 2.4MB。我之所以构建它,是因为我想要一种现代的脚本语言,既轻量又具备高级语言的安全性。 主要特点: ``` 小巧:二进制文件约 2.4MB。 快速:针对 x86_64 进行了优化。 安全:内存安全执行。 标准库:包含 std.echo、std.newline 等。 ``` GitHub: https://github.com/pouyathe/glang 我非常希望能从社区获得一些关于语法或架构的反馈!
查看原文
Hi HN,<p>I&#x27;ve been working on a programming language called G. It is designed to be memory-safe and extremely fast, with a focus on a tiny footprint.<p>The entire interpreter is written in D and weighs in at only 2.4MB. I built it because I wanted a modern scripting language that feels lightweight but has the safety of a high-level language.<p>Key Features:<p><pre><code> Small: The binary is ~2.4MB. Fast: Optimized for x86_64. Safe: Memory-safe execution. Std Lib: Includes std.echo, std.newline, etc. </code></pre> GitHub: https:&#x2F;&#x2F;github.com&#x2F;pouyathe&#x2F;glang<p>I would love to get some feedback on the syntax or the architecture from the community!