G 语言 – 用 D 语言编写的轻量级解释器(2.4MB)
1 分•作者: pouyathe•5 天前
Hi HN,
我一直在开发一种名为 G 的编程语言。它旨在实现内存安全和极速运行,并专注于小巧的体积。
整个解释器用 D 语言编写,大小仅为 2.4MB。我开发它的初衷是希望拥有一种现代脚本语言,它既轻量级,又具备高级语言的安全性。
主要特性:
```
小巧:二进制文件大小约为 2.4MB。
快速:针对 x86_64 架构优化。
安全:内存安全执行。
标准库:包含 std.echo、std.newline 等。
```
GitHub:https://github.com/pouyathe/glang
我希望从社区获得关于语法或架构的反馈!
查看原文
Hi HN,<p>I'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://github.com/pouyathe/glang<p>I would love to get some feedback on the syntax or the architecture from the community!