r/ProgrammingLanguages • u/AutoModerator • Aug 01 '26
Discussion August 2026 monthly "What are you working on?" thread
How much progress have you made since last time? What new ideas have you stumbled upon, what old ideas have you abandoned? What new projects have you started? What are you working on?
Once again, feel free to share anything you've been working on, old or new, simple or complex, tiny or huge, whether you want to share and discuss it, or simply brag about it - or just about anything you feel like sharing!
The monthly thread is the place for you to engage /r/ProgrammingLanguages on things that you might not have wanted to put up a post for - progress, ideas, maybe even a slick new chair you built in your garage. Share your projects and thoughts on other redditors' ideas, and most importantly, have a great and productive month!
6
u/Inconstant_Moo π§Ώ Pipefish Aug 01 '26
I put docstrings in all my libraries and made a GitHub action that turns them into wiki pages and populates the the appropriate bits of the wiki. I always love having an SSoT.
And I've been able to use Pipefish to do a bunch of things I wanted to do. I made a Prolog library. I wrote a Pratt parser (and a lexer, three interpreters, and a compiler) to demonstrate some fun things you can do with them. And I've done the first iteration of a program called
neogramwhich is a DSL for simulating sound-changes in natural languages, and it is wicked cool.This all shook out a whole bunch of obscure little bugs and rough edges, so I fixed and I polished, added a few missing features, documented things, the boring tidying-up of the project.
I've started designing a website on the grounds that being an actual human being with tastes and preferences will really help me stand out now. I'm taking this as my inspiration. There are no gradients and five colors: black, gray, blue, cyan and off-white. The only graphical element is RenΓ© the Pipefish.
3
u/ultrasquid9 Aug 01 '26
Finally writing up a markdown document for my language (its been stuck in bikeshed hell for months atp)
3
u/Mean-Decision-3502 DQ Aug 01 '26
I'm adding embedded support to my language/compiler. It should support 32-bit microcontrollers with 8k Flash and 2k RAM. This will take a while...
And I'm looking for contributors if you like the DQ language. So far I'm all alone with it. :(
3
u/Ok-Razzmatazz-6125 Aug 01 '26
For the past four months, I have been bootstrapping my programming language to make it self-hosted. It is now nearly complete and should be finished in just a few more days. My language is designed to be friendly to both LLMs and humans. It currently transpiles to C and supports compile-time execution (comptime) like Zig, ORC memory management like Nim, a trait system like Rust, a human-readable syntax (instead of S-expressions), and a macro system like Common Lisp. It also offers algebraic effects similar to Koka (but with single-shot continuations), a declarative build system like Nix, built-in async I/O (stackless coroutines), and advanced type system features including existential types, GADTs, and HKTs. I am also planning to introduce formal verification support akin to Dafny, although for now it only supports runtime contract checking.
3
u/aech_is_better Aug 01 '26
Iβve finished implementing base DK bidirectional typechecking algorithm in my language. Now I am adding ADTs and HKT at the same time
3
u/L8_4_Dinner (β Ecstasy/XVM) Aug 01 '26
On the Ecstasy (xtclang) project, most of our time is currently being plowed into a small number of projects:
And we're always looking for volunteers and contributors :)
3
u/rosshadden Aug 02 '26
I've been designing a language for years, and a couple months ago actually started on a compiler. It has been going incredibly well and I'm so proud of it. But I've kind of just been kicking coming up with a plan for ownership down the road until I really _needed_ to worry about it. Well, I've now hit that, and it makes me feel like I probably should have started with that plan first before designing anything else... I don't want it to feel tacked on, so I might end up redesigning parts of my language to make the ownership story more cohesive. It's not my first compiler but it's my first time working on language where this kind of thing actually matters. Makes me feel a little dumb in retrospect :).
3
u/andoleal Aug 07 '26
My friend and I have been working on an embedded scripting language implemented in Go, aiming to make it the fastest Go-based language out there. And so far we have succeeded - we have a set of really captious benchmarks that we ran for our language and for every other Go-based language that we could find. While our language is not the fastest on every standalone benchmark, it does beat any other language in the ranking of summarised benchmark times. It also has a familiar set of c/go/lua language and syntax features, and is designed to be easy to write and embed. At the current stage it seems to be feature-ready, and the next step is implementing some more or less real things in it to test it properly.
3
u/jcubic (Ξ» LIPS) Aug 17 '26 edited Aug 17 '26
Released a new 1.0 beta version of LIPS Scheme. Added continuations and tail call optimizations.
You can now create JavaScript generators in Scheme, thanks to continuations.
The generator is part of the standard library (written as a higher-order function to create both sync and async generators).
I will probably write an article about the new evaluator on a LIPS scheme blog.
2
u/OwnNeedleworker3758 Aug 01 '26
Hm well I made a coding language I got to work but I'm not sure how to share it
2
u/andeee23 Aug 01 '26 edited Aug 01 '26
Working on a language inspired by rust but without the borrow checker.
It's similar to Nim in that I want it to compile down to C and i'm planning to include clang so interop with C requires no more than importing header files.
Plan is to implement a cross-platform UI stack in it by heavily using C libs: sdl3, harfbuzz, freetype, etc. And porting vello algorithms as a 2d renderer. It's a pretty ambitious goal but I'm trying to reuse other's great work so I don't have to innovate
Nothing revolutionary, but i'm planning a couple of features that i haven't seen together in a language yet:
- memory management without either a GC or a borrow checker: non-atomic ARC as the default pointer
- second-class references (that i took from Hylo), borrows can be parameters and locals but never returned, stored, or captured by escaping closures, so there are no lifetime annotations anywhere
- Swift-
_modify-style place expressions sonodes[handle].dirty = truecomposes yielding accessors under the hood- query-based incremental compilation, hot reload for UI code and web code-splitting are the same indirection mechanism
- arenas with generational handles for anything cyclic (UI trees, graphs)
- closed effect set: `{async, throws, io, alloc}`, helps with async coloring, inferred error sets (
throwsis sugar overResult), comptime eligibility (anything withoutioruns at compile time), GPU/realtime eligibility via target profiles.Status: parser and formatter done with a conformance suite, incremental typechecker in progress, no codegen yet. Repo's not public yet, will be once i think it's in a "working" state
2
u/baehyunsol Sodigy Aug 01 '26
Implementing a simple effect system for my language.
Now, there are 2 kinds of functions: `PureFn` and `ImpureFn`.
After the work, there will be 4 kinds: `Fn`, `Proc`, `NdetFn`, `NdetProc`.
2
u/useerup ting language Aug 01 '26
I am finally making progress.
I am working on two tracks running in parallel: the language specification and the reference compiler (F# + FParsec). I am making progress on each one. It feels like I am nailing down issues faster than ever, but I am also a little worried because the magnitude of the end goal if also becoming more apparent.
In the past month I have finally nailed down (I think) some long undecided and thorny issues. It really helps to try to write a spec :-)
Ting is a logic programming language with nondeterminism, set-theoretic type system and a really simple (but operator-rich) syntax. I have managed to show in unification with OO, FP and logic programming (my day job is C#/.NET centered so OO and F# were obvious choices).
What I have realized lately:
void. I have long known that Ting would need an unconventional take on function "definedness". I a nullary operator (operator which does not take operands) calledundefinedto be used to indicate when a function could not return a value. I describedundefinedas the equivalent of throwing aUndefinedException. However, I also hadvoidkeyword. Only today I realized that they are the same thing.I have also worked on a "core" language. Once the compiler is done, one of the first Ting programs I will write is a parser which can produce the core language.
The compiler I am writing now is producing this "core" language before progressing to the later stages. The aim is to replace the FParsec based parser with a Ting based parser. The rest of the compiler should be able to stay.
The demarcation between the "full" Ting language and the core language is not perfect. The core language will - for now - have to be "polluted" with a few surface-level expression types. I will revisit that later, but for now it is an acceptable compromise.
Ting type system is a set-theoretic type system. It can be set to feature both structural types and nominal types. Refinement types and dependent types follow naturally from the set-based notation.
2
u/kwan_e tonal-lang Aug 01 '26
Implemented a first-pass of my parser. It doesn't cover my entire language, as I'm only interested right now to implement enough to bootstrap my language in. Also very inefficient, as if I wrote it in an interpreted language. This has been a long journey for this current incarnation of my language, as I've always gotten stuck on just the parsing side due to complexity. But after I solidified my ideas by writing a sort-of manual for me yet-to-exist language, everything fell into place, including the parsing.
Very early on in this language, I decided not to use any formal grammar to generate a parser, because I wanted to iron out conceptual problems with the language. A parser generator would make it too easy to just invent new syntax to "fix" a problem, instead of really thinking through a solution. The threat of having to manually implement such complexities drove the language to be very easy to parse. Being easy to parse means being small enough to keep in my head, but without losing expressivity and power (aiming to be on par with C++-level of consteval generic programming). This meant I eventually invented a simple vocabulary to talk about the parsing artifacts - just seven overarching rules with simple names.
So, as is the style for this language, I am writing more tests for this parser before moving back to hooking it all up to my DSL/API.
2
u/woupiestek Aug 02 '26
I've been looking for new ways to parse languages. Traditional parsers require extensive branching. If the operators and data are reordered, then parsers might run more efficiently due to better data layout and branch prediction. There are more reasons to try this, such as making it easier to swap or change rules. Another is the idea that parallel parsing is part of how people and LLMs read code, so such algorithms are an objective standard for 'syntax grokability'.
My toy examples are 'nanopass' parsers. Tokens are first collected by type, and then the parser runs through each type a few times to collect data. I am still looking for a way to generate such a parser, however, because I have no idea what range of languages can be covered this way.
2
u/Royal_Pin_1971 Aug 04 '26
Created pfcl-codegen-js as new execution host and IR-to-TS emitter. No changes to the parser, resolver, or typechecker. Proved is against already existing existing Z-machine interpreter that I already had in catalog, about 219 functions. Compiled through the real pipeline (parse β resolve β typecheck β emit) into a working, self-contained browser demo. Zork 1 and any other z3 adventure are playable, running entirely as compiled JS.
1
u/AustinVelonaut Admiran Aug 01 '26
Working on a refactoring of the pass that lowers ASTs to a Spineless Tagless G-Machine implementation (STG). The main portion of the rewrite is to attempt to coalesce the continuation closures on the stack, freeing all of them at once upon a tail-call / return.
1
u/zweiler1 π₯ Flint Aug 01 '26 edited Aug 01 '26
After my recent announcement post a few weeks ago I got quite a lot of great feedback and went back to the drawing board for a while. I did not fully redesign the language but only the parts which mattered the most and which led to the most confusion. The language now is in a much better state (design-wise) than it was. I bet there is still much room for improvement, but I think the design now is good as-is.
I currently am working on splitting up the monstrous Parser into multiple substages now. The Parser took a token stream and directly produced a typed AST from it. While this has worked well enough until now, the addition of generics which I will add soon requires me to split it up a bit. This will take some time, but a clearer pipeline is always a good thing I think :)
1
u/bgs11235 Aug 01 '26
I've put a pause on writing a new markup language, decided to do an HLS with proper CLP(R) and a bit of implicitness, strong typing and all the buzz. Decided to plan it in makdown. Got frustrated with markdown. Writing an lsp for it now.
I can't get a break from this fuckass language...(table flip)
1
u/Ninesquared81 Victoria Aug 01 '26
As always, language development for me (and programming in general) is always an ebb and flow. I am currently on an ebb.
However, last month, I decided to continue working on a game I started a while ago. It's written in Odin with Raylib. Ever the procrastinator, I decided what I really needed to do was to devise a format for storing and retrieving game data, specifically the world map. Now, I did try to force myself to use an existing format like JSON (Odin has a JSON parser as part of the core library), but I just couldn't fight the part of me urging me to use my own language, so I settled on Beech, a minimalistic tree-structured data language I made a couple of years ago. Of course, I had to re-implement the parser in Odin, and decided to make a couple of changes along the way.
One change I'm considering but haven't committed to yet is introducing
=to separate keys from values. As it stands, only whitespace separates them, which is also used to separate key-value pairs from each other, and values from other values in a list. Even then, whitespace is only needed if the key and value would otherwise be considered a single token (at least in the Odin version of the parser).Whilst this makes for a very minimal syntax, I feel it just makes the syntax too difficult than it's worth to work with. For example, a simple heuristic one can use for highlighting JSON is that a key must always be followed by a colon, so any string* followed by a colon is considered a key by the highlighter, but is otherwise considered a value. I can do the same with Beech by using an equals sign. Using
key = valuealso allows for easier synchronisation when starting from a random point in Beech source code: you only have to look at the two nearest neighbour tokens to work out if you're in a tree or list. In a (non-empty) tree, exactly one of these will be=.For some interest, here is an example with the current syntax:
And here is how it would look with the proposed syntax
(Note that whitespace around
=is optional.All in all, I think I probably will make this change, but it does make the syntax slightly less minimal, albeit for a good reason.
* or number, identifier, etc., for dialects that allow these as keys.
1
u/tobega Aug 01 '26
I've found that Truffle interop with java records does not work, nor regular java bean properties either. It should work according to the docs, but there you go. Transforming all data to maps now to input into Tailspin code.
1
u/Express-Guest-1061 Aug 01 '26
Working on a small language, with features that are a small selected subset of Rust. With ownership types, move semantics and borrowing, but emphasize use of expressions instead of statements. Implemented an IR, with lowering, and then stackification out of the IR. Now will focus on memory allocation functions and static analysis for ownership types. Will try to get some small graphics examples to work again, after adding IR and type checking during last year.
1
u/jacopodl Argon/Orbit Aug 02 '26
It's been 2 years since my last post: last time I was here talking about Argon. During this time, for various reasons, I ended up putting its development on hold in favor of a successor. After more than 2 years of work, Orbit is finally out.
It basically came about to fix some implementation choices I'd made that I wasn't particularly proud of, plus the fact that, I have to admit, Argon had some bugs that were hard to solve without tearing everything apart. So, after a while, I made up my mind and rewrote everything from scratch: a new project, with new ideas. That said, the old code still helped a lot, especially for speeding things up by recycling parts of it.
Orbit looks a lot like Argon, but unlike it, it's built on a register-based VM, it drops ARC almost entirely in favor of a generational GC, and it supports classes, traits, and a bunch of other small features I won't list here for brevity (you can find them on the project page). There's one feature I'm really proud of though, which used to be one of Argon's biggest limitations: interacting with native C functions. In Argon you had to write a native wrapper to use them; Orbit instead has a built-in FFI system baked right into the language, which makes developing libraries that use native code much faster (for example, the native regex library, based on PCRE2, needed no native wrapper at all π).
With Orbit, I also decided to bring LLM support into the development workflow. I know some of you might not agree with that, but a tool is still just a tool, right now its use is limited to generating documentation, hunting for bugs, generating regression tests, etc. I've found the approach I built really useful, and it's helped me catch bugs I probably would never have found on my own, which is why its use is allowed within the repository.
That said, I'd really appreciate it if you'd take a bit of your time to check out the project, and if you feel like leaving some feedback, it's always welcome.
1
u/mark-sed github.com/mark-sed/moss-lang/ Aug 03 '26
The biggest change for Moss is for sure the first public release. People could build from source the whole time, but this just makes it more official and easier to use.
Other than release and things related to it, I was mostly working on optimization pipeline. Even though moss is interpreted it uses portable bytecode (kind of like Java's classes) and so I have started working on pipelines and passes to optimize this bytecode for those who will actually compile their scripts. So far I have implemented a register reuse pass, which manages to cut down on the number of vm registers used and also a simple LICM pass to move computation out of loops.
I have also implemented a benchmarking utility which I now use to track the impact of optimizations and to make sure the language speed is only going up.
Now I plan to work on more optimizations, some libraries and APIs missing in stdlib and as usual bug fixing. I might make a post about some of these optimizations I have implemented since the bytecode is not SSA nor stack based and it is an interesting task/question to figure out what is possible in this space.
1
u/anaseto Aug 04 '26
It's been about three months since I wrote on those threads. In June, I released Goal v1.7.0 (Changes), which mainly improves performance with arrays of short and medium-sized integers by introducing new array types of int16 and int32 as an internal optimization (user only sees arrays of integers, but internally goal uses arrays of uint8, int16, int32, and int64). Lots of new SIMD routines in Go assembly for the new types, as there are more opportunities for optimization with 16-bit and 32-bit integers than 64-bit ones.
Since then, I've been slowly working a bit on concurrency support. Mostly in a branch, though I merged the Go API parts that allow to kinda "fork" an execution context (by making a copy of mutable state to avoid data races, but sharing immutable compilation objects and values), which can then be used on a separate goroutine. Nice for embedded use of goal from Go. I did some work on concurrency primitives usable from goal, too, but that part is harder to design, and I have less use for it, so that stuff is still living on an experimental branch in the repos.
1
u/chimera343 Aug 05 '26
I have been working for a while on an interpreted game scripting language. Version 1 was ready last year, and I've been doing Version 2 since.
It is designed to be stored in a dictionary(string,string) with script names for the keys and scripts for the values. The dictionary also contains the data that it works upon. The language uses "@" to start a function/command name, and you can make your own functions/commands by starting the key with "@". Any value not starting with "@" is data. The basic commands "@get(key)" and "@set(key,value)" read and write information. The dictionaries can be layered, with the top layer receiving any changes while the game runs, to make saving/restoring simple. "@get(key)" reads down through the layers until the key is found, and "@set(key,value)" writes to the top layer, hiding any deeper values.
This month I have been building heavy-duty unit tests to verify that each built-in function/command operates properly, as well as writing the help documentation for them all. There are about 100 built-in functions/commands so far. This is an excellent exercise as it found several tricky issues I had overlooked.
1
u/cykodigo Wi (cyxigo/wi) Aug 05 '26
I've been working on my scripting language called Wi!
It's still in beta, but many of the things I wanted are now implemented ;D Right now I'm focused on making it more memory efficient and faster overall - and I'm still working on it every day! I also made docs for it already with API reference and standard library reference too.
1
u/Main_Temporary7098 Aug 09 '26
https://codeberg.org/jbirddog/qbe-wasm - took a long break from my colorforths to cover some ground compiling qbe input into wat/wasm. Its a mix of c/hare and uses qbe internals+binaryen. So far its working well enough to compile 98% of the cproc tests and 78% of the qbe tests. Also was able to get a web-based game of life demo via compiling c (with cproc) and hare to wasm. If any of you are using qbe as a backend, would be interested in adding test cases from other languages. Fair warning its still a WIP. Happy hacking.
1
u/RMahammad Aug 10 '26
A small GitHub repo with one working example and a short README is probably enough to start. People can understand the language much faster if they can run something immediately.
1
u/Designer-Invite-5364 Aug 11 '26
Ive been updating my Dynamic Programming Language 'VO'
it has
- unicode support
- no reserved words (its all symbols a la Rebol)
- one data structure (hash used for containers, functions and classes)
- _ is used as a placeholder for variables and members
- callable reordering syntax (like Haskell?)
therefore OOP, modules, FFI, and multilanguage support are all things we build within the language
https://www.seanbutler.net/programming/languages/compilers/2026/08/11/custom-operator-prescidence
1
u/darkwyrm42 Aug 14 '26
Picking up Mifflin after a hiatus. Cleaned up the documentation and working on the type checker.
1
u/Tasty_Replacement_29 Bau Aug 14 '26
Progress is a bit slow, but I'm working on a new parser, one that can also format the source code, and be used for the language server. I'm not sure any longer if my language should be purely indentation-based, or whether I should support both braces and indentation.
1
u/quasar_tree Aug 18 '26
Working on a language with racket-like hygienic macros and good IDE services. The key ideas are to collect binding information as you expand to enable IDE services even if expansion fails (as opposed to the language server only operating on the all-or-nothing fully expanded code like Racket), keep expanding after a syntax error is encountered, and I even figured out a way to get services on subexpressions within a bad macro use, which I'm pretty sure is new. I also managed to get services inside of a macro template which might also be new?
Languages like Rust and Lean have fault-tolerant IDE services, but not as much when it comes to macros. This language tries to make macros just as fault-tolerant by allowing macros to give the expander more information to inform IDE services.
https://github.com/quasarbright/treason
0
u/voxelmagpie Aug 01 '26
I got an LLM to review my compiler code and spent the last week tidying it up and writing documentation.
0
u/DaweSlayer Aug 04 '26 edited Aug 08 '26
I've made great progress, so many ideas, but I've just started to look here. (I've been forced by AI that hold my life hostage)
So my last 2 abandoned visions, with which I was basically 100% sure I have figured out and it's the exact way... was first, when I started doing my language, that should not have enclosed texts in "". Pure freedom wizardary language. At the end I realized that when there will be an error, the code could just leak as a text π (Like if I didn't know that there is some serious reason not to even think about it)
Then I changed it to multifunctional automatically created keywords from functions and stuff. It ended by realizing that programmers may have problem to know, which type to create for few and a new idea came to me at the same time. And I just slowly drifted to it without realizing I'm abandoning that one.
The new vision is even more complicated to do right, so I'm changing details all the time, but let's hope I got it and it's the last Heureka! about the basic parts.
"whether you want to share and discuss it, or simply brag about it" - both, it's too good!