frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

G Lang – A lightweight interpreter written in D (2.4MB)

21•pouyathe•3d ago
Hi HN,

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.

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.

Key Features:

     Small: The binary is ~2.4MB.
     Fast: Optimized for x86_64.
     Safe: Memory-safe execution.
     Std Lib: Includes std.echo, std.newline, etc.
     
GitHub: https://github.com/pouyathe/glang

I would love to get some feedback on the syntax or the architecture from the community!

Comments

pouyathe•1d ago

    "Update: Wow, this got a second life! Seeing a spike in GitHub clones (328+ in 2 days). If anyone's trying G, I'd love to hear:

        What's your use case?

        What's the biggest hurdle you faced?

        What feature would make G actually useful for you?

    Thanks for checking it out! — A 17yo student building this."
snovymgodym•9m ago
No offense, but the source code for this is wild. It's almost like outsider art. https://github.com/pouyathe/glang/blob/main/source/dub/sourc...

Still, I have to respect the dedication it must have taken to get this working. I'm sure you'll go far.

My advice to you would be to read Crafting Interpreters by Bob Nystrom (it's free online) and try to apply some of the techniques from it to your project.

https://craftinginterpreters.com/

How does misalignment scale with model intelligence and task complexity?

https://alignment.anthropic.com/2026/hot-mess-of-ai/
128•salkahfi•4h ago•34 comments

The Codex App

https://openai.com/index/introducing-the-codex-app/
570•meetpateltech•10h ago•386 comments

Anki ownership transferred to AnkiHub

https://forums.ankiweb.net/t/ankis-growing-up/68610
281•trms•7h ago•72 comments

GitHub experience various partial-outages/degradations

https://www.githubstatus.com?todayis=2026-02-02
167•bhouston•7h ago•48 comments

xAI joins SpaceX

https://www.spacex.com/updates#xai-joins-spacex
554•g-mork•6h ago•1227 comments

The Connection Machine CM-1 "Feynman" T-shirt

https://tamikothiel.com/cm/cm-tshirt.html
52•tosh•3d ago•13 comments

Todd C. Miller – Sudo maintainer for over 30 years

https://www.millert.dev/
333•wodniok•11h ago•185 comments

The TSA's New $45 Fee to Fly Without ID Is Illegal

https://www.frommers.com/tips/airfare/the-tsa-new-45-fee-to-fly-without-id-is-illegal-says-regula...
280•donohoe•5h ago•295 comments

Ask HN: Who is hiring? (February 2026)

247•whoishiring•12h ago•311 comments

Carnegie Mellon Unversity Computer Club FTP Server

http://128.237.157.9/pub/
35•1vuio0pswjnm7•4d ago•8 comments

Hacking Moltbook

https://www.wiz.io/blog/exposed-moltbook-database-reveals-millions-of-api-keys
263•galnagli•12h ago•164 comments

Court orders restart of all US offshore wind power construction

https://arstechnica.com/science/2026/02/court-orders-restart-of-all-us-offshore-wind-construction/
269•ck2•5h ago•158 comments

Julia

https://borretti.me/fiction/julia
70•ashergill•5h ago•10 comments

4x faster network file sync with rclone (vs rsync) (2025)

https://www.jeffgeerling.com/blog/2025/4x-faster-network-file-sync-rclone-vs-rsync/
277•indigodaddy•4d ago•136 comments

See how many words you have written in Hacker News comments

https://serjaimelannister.github.io/hn-words/
12•Imustaskforhelp•3d ago•18 comments

G Lang – A lightweight interpreter written in D (2.4MB)

21•pouyathe•3d ago•2 comments

Linux From Scratch ends SysVinit support

https://lists.linuxfromscratch.org/sympa/arc/lfs-announce/2026-02/msg00000.html
114•cf100clunk•10h ago•158 comments

Firefox Getting New Controls to Turn Off AI Features

https://www.macrumors.com/2026/02/02/firefox-ai-toggle/
117•stalfosknight•4h ago•49 comments

Training a trillion parameter model to be funny

https://jokegen.sdan.io/blog
28•sdan•6d ago•18 comments

On being sane in insane places (1973) [pdf]

https://www.weber.edu/wsuimages/psychology/FacultySites/Horvat/OnBeingSaneInInsanePlaces.PDF
71•dbgrman•10h ago•47 comments

Joedb, the Journal-Only Embedded Database

https://www.joedb.org/index.html
51•mci•3d ago•8 comments

Nano-vLLM: How a vLLM-style inference engine works

https://neutree.ai/blog/nano-vllm-part-1
223•yz-yu•15h ago•24 comments

The largest number representable in 64 bits

https://tromp.github.io/blog/2026/01/28/largest-number-revised
94•tromp•9h ago•63 comments

Advancing AI Benchmarking with Game Arena

https://blog.google/innovation-and-ai/models-and-research/google-deepmind/kaggle-game-arena-updates/
116•salkahfi•10h ago•48 comments

Banning lead in gas worked. The proof is in our hair

https://attheu.utah.edu/health-medicine/banning-lead-in-gas-worked-the-proof-is-in-our-hair/
48•geox•2h ago•8 comments

Zig Libc

https://ziglang.org/devlog/2026/#2026-01-31
178•ingve•11h ago•71 comments

Pretty soon, heat pumps will be able to store and distribute heat as needed

https://www.sintef.no/en/latest-news/2026/pretty-soon-heat-pumps-will-be-able-to-store-and-distri...
159•PaulHoule•1d ago•140 comments

GitHub discusses giving maintainers control to disable PRs

https://github.com/orgs/community/discussions/185387
68•aofeisheng•4h ago•14 comments

Geologists may have solved mystery of Green River's 'uphill' route

https://phys.org/news/2026-01-geologists-mystery-green-river-uphill.html
152•defrost•15h ago•39 comments

Ask HN: Who wants to be hired? (February 2026)

106•whoishiring•12h ago•260 comments