G Language (written in D) featured in awesome-d and awesome-programming-languages

pouyathe pouya.momhidei at gmail.com
Tue Feb 3 14:35:31 UTC 2026


On Tuesday, 3 February 2026 at 12:13:43 UTC, Dejan Lekic wrote:
> On Sunday, 1 February 2026 at 17:48:34 UTC, pouyathe wrote:
>>
>> Hello D Community,
>>
>> I wanted to share a project I've been working on that might be 
>> of interest: the G Language.
>>
>> G is a minimalist, memory-safe interpreter for systems 
>> scripting with a footprint of about 2.4MB. The entire 
>> toolchain is written in D.
>>
>> Recently, it was accepted into the awesome-d list. I also 
>> wrote an article about the experience of building it and 
>> getting feedback from Walter Bright: [When Walter Bright Told 
>> Me to Write About My 2.4MB Language (cross-posted on 
>> Dev.to)](https://dev.to/pouyathe/when-walter-bright-told-me-to-write-about-my-24mb-language-37ki).
>>
>> I'm sharing this here for two reasons: first, to say thank you 
>> to the D community and ecosystem that made it possible, and 
>> second, in case anyone is curious about a non-trivial use of D 
>> for building language tools.
>>
>> I would be very grateful for any feedback, technical insights, 
>> or questions from the community that understands the 
>> foundation it's built upon.
>
> Thank you very much for this wonderful gift from the Heaven! I 
> love G so much that I am planning to replace all my Python 
> scripts with G, once it has adequate standard library modules! 
> :) Are you planning to add more to std? You should add 
> sqlalchemy-like package so that I can access databases from G 
> as well. Can't wait! Keep up with the good work. I hope you 
> will also make it possible to embed G in our D applications and 
> just like pyd we would be able to call G stuff from D code, and 
> vice versa.
Dear Dejan,

Thank you so much for your kind words about G Language! It means 
a lot to me, especially coming from someone in the D community 
that I respect.

You raised excellent points about what G needs:

1. **Standard Library Expansion** - You're absolutely right. I'm 
prioritizing:
    - Database connectivity (starting with SQLite, then PostgreSQL)
    - JSON/XML parsing modules
    - HTTP client for web APIs
    - File format utilities (CSV, etc.)

2. **Embedding API** - This is a fantastic idea. I'm researching:
    - How to expose G as a D library
    - Bidirectional calling (D ↔ G)
    - Memory sharing between environments

3. **Package Ecosystem** - I'll enhance `flex` to support:
    - More library categories
    - Better dependency management
    - Community package repository

## Current Focus:
I'm working on v5.7.7 with:
- Binary size reduction (target: <1.5MB)
- Bug fixes from community feedback
- Better error messages
- Performance improvements

## Question for You:
If you were to use G today, what specific task would you want to 
accomplish with it? This would help me prioritize features.

Thank you again for believing in this project. Feedback from 
experienced D developers like you is invaluable for a young 
language.

Best regards,
Pouya Mohammadi
Creator of G Language

P.S. If you'd like to contribute ideas or code, the repo is at: 
https://github.com/pouyathe/glang


More information about the Digitalmars-d mailing list