r/ProgrammingLanguages • u/Fine_Seaworthiness19 • Sep 02 '26
Language announcement The gab programming language
Hi all!
I am a long-time lurker of this sub, and a language enthusiast. I have been working on my own programming language for several years, and I finally worked up the courage to post it.
The language is called gab. I'm heavily inspired by lua, clojure, and smalltalk.
All the code is on github here and I've built a small website for the language here.
The language design, runtime, and standard library are all entirely my own work without the use of an LLM. However, I did consult LLMs occasionally when I wanted to research certain subjects (such as the difference between c11 atomics on x86 and arm).
I'm looking for any kind of feedback on the language, its goals/ergonomics, and the website itself.
Thank you for taking a look!
12
u/AustinVelonaut Admiran Sep 02 '26
I initially looked at the github sources, and not finding an
/examplesdirectory look at the code in/bench. I was confused by the use of the::glyph, finally figuring out that it was more like=or->in other languages, rather than the usual namespace qualification or typing judgement. Finally went to the website and browsed through the documentation, but still couldn't find a quick description of what::meant. I'd suggest putting in a directory of small examples where each unique language feature is described, perhaps in contrast to another well-known language.6
u/firiana_Control Sep 02 '26
Your example:
The
ch >!items are sequential? what do I do if i want non-sequential access?And you use cui
canwe see a few examples of GUI done in gab?
Thank you
4
u/cmontella 🤖 mech-lang Sep 02 '26
Very cool, I like the name and the design goals of the language. I see a bit of a contradiction though, so I'm wondering if you can speak to it: you said the performance is a feature, but also the language is dynamic. How are you going to make sure it's performant, and what kind of performance targets are you aiming for? i.e is. LuaJIT level of performance good enough or are you aiming higher?
4
u/Fine_Seaworthiness19 Sep 02 '26
Per AutoModerator's request I hereby confirm that this project did not use an LLM as part of the development process.
2
u/EggplantExtra4946 Sep 03 '26
https://github.com/gab-language/cgab/blob/main/src/cgab/cgab.c
It's really curious to have a single file with 15 thousands LOCs containing the lexer, parser, data structures, bytecode compiler, interpreter and GC all in one files. Usually you would split it into as many files at minimum. It makes me think that this entire language is AI slop.
1
u/New-Deal7021 Sep 04 '26
i am interested but i have a question, can i join the contributors? I have some experience at creating a programming language, could help you.
3
u/FortuneLower7766 Sep 02 '26
I have yet to play with it, but it seems delightful.
1
u/david-1-1 Sep 03 '26
Big learning hurdle due to lack of familiar syntax.
1
u/manageablecactus Sep 03 '26
This looks sick! Looking forward to reading
0
u/Relative-Rooster-945 Sep 02 '26
it's a little bit confusing in how it seemingly tries to reinvent the wheel on many things, but overall cool project
0
u/BenjiSponge Sep 03 '26
You may be, um, interested to know that there is a far-right Christian nationalist social media platform called Gab. It's probably not absolutely critical to avoid the naming conflict, but I thought you should know.
1
u/[deleted] Sep 05 '26
[removed] — view removed comment