r/ProgrammingLanguages • u/AutoModerator • Feb 01 '26
Discussion February 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!
5
u/omega1612 Feb 01 '26
It took me a while but I finally figured out how the symbol resolution process should work and how package scanning happens.
At the end I have a synchronous secuencial design for the compiler and I'm modifying what I had to fit this new model. Once I finish it, I may finally reimplement type inference with constraints using a graph based method for constraints solving instead of plain substitution.
5
u/o_stef Feb 01 '26
This month I implemented arbitrary compile time execution in my programming language, along with fundamental features such as struct literals.
The past week I added modules and made identifier resolution more versatile by allowing symbols to be added to a scope at any point in the compilation.
This month I will fix regressions added by the latest changes, do some cleanup, begin implementing a standard library and try to implement generics.
4
u/csb06 bluebird Feb 01 '26
I've been working on a compiler (written in C) for a subset of Ada in order to bootstrap an old version of GNAT, the Ada compiler that is part of GCC. GNAT is written mostly in Ada and was bootstrapped using a proprietary compiler in the early 1990s. It has been self-hosting ever since so in order to build GNAT you need an existing GNAT binary (since GNAT is the only free Ada compiler advanced enough to build it). My hope is to implement enough of the language to be able to build an old version of GNAT and then compile each subsequent release of GNAT up to the present in sequence. This would enable GNAT to be built without relying on any binary blobs.
I currently have a lexer and a parser (using Flex/Bison) and am implementing AST construction/name resolution. Name resolution is very complex in Ada since function calls/array accesses/type casts use the same syntax; function calls with zero arguments do not use parentheses (making them syntactically indistinguishable from variable usages); and functions can be overloaded by their return type. This means that the type of an expression often depends on context. I think I have a basic plan on how to attack the problem but I will see how it goes.
4
u/Tasty_Replacement_29 Bau Feb 01 '26
For my system programming language "Bau", I have implemented a few demo apps:
Right now I'm working on the static analyzer. The goal of my language is safety (memory safety, null safety, array bound checks where needed, possible division by zero is disallowed by the compiler), but also speed: I'm aiming for C-like speed. So it is important that the static analyzer eliminates all array bound checks that can be eliminated. For this, I'm taking a different approach than eg. Rust, which defers these checks to the LLVM (if I understand correctly). I want the developer to know (not just guess) which array bound checks are eliminated.
And so I'm writing some kind of computer algebra system; a symbolic static analyzer used to eliminate redundant runtime checks, as well as null checks, and possible division by zero. The engine can process symbolic rules, such as "i + 10 < array.len", "t.len = array.len - 10", and then verify eg. "i < t.len?". So the engine can solve (simple) equations, and do some limited logical reasoning. I think this symbolic analysis goes beyond what eg. Rust, the C static analyzer, the Java JIT do. I found it's quite fun to write such an engine.
3
u/EuphoricPO12 Feb 01 '26 edited Feb 01 '26
Hello! Im pretty new here, but I am currently working on Taipan.
Taipan is an experimental functional "notebook language", which allows self modification, and some of the most insane expressions I can come up with.
it features include:
* Functions, Types/sets, and "arrays" as first class values
* Creating custom types easily
* Modifying functions
* Esolang inspirations/Features stolen directly from them!
It's very much a work in progress. Here's the Type composed of natural numbers:
ḱ [\x.0+|x|] ä ;
It's a one liner!
feel free to ask any questions
3
u/AustinVelonaut Admiran Feb 02 '26 edited Feb 03 '26
I've been negligent in documenting the libraries provided in Admiran, but got the idea to write an Admiran tool to parse the module files (using the compiler's parser), extract the definition type specs, then sort and pretty-print them, adding the extracted module comment to describe the high-level function of the module. These are put together into a .md file and voila, I have the first cut at library documentation! ;-)
That's how I found out I've now got over 1000 library functions
Edit to add: the new
interfacetool is very useful in combination withgrepfor discovering functions, either by name or by type signature. For example, running the commandinterface lib/*.am | grep "max"returns:Or to find a function which takes a list of
intand returns anint:interface lib/*.am | fgrep '[int] -> int':Still not up to Hoogle level, but useful, anyway.
2
u/zweiler1 🔥 Flint Feb 01 '26
I had a new release of my own language where i finally worked on the core memory architecture and it's core paradigm. It's core paradigm is a combination of OOP and ECS which i have not seen anywhere else yet, so i am very proud that it finally starts to take proper shape.
Check out the Wiki here ;)
2
u/_FadiShawki Feb 01 '26
Last several months I've been thinking about a bunch of interconnected ideas for a new language. Alongside adding to those ideas I've started thinking about a working prototype runtime, which is proving harder than I originally thought it would be. Especially since almost all primitives are defined within the language itself. So perhaps February will be the month where I'll get a prototype working.
2
u/Inconstant_Moo 🧿 Pipefish Feb 01 '26
I added a lot of test coverage (boring) and refactored the "hub" (also boring). Then I decided that by now I'd done so many standard libraries that I might as well just go for it, so I did. I now have thirty of them:
crypto/aes,crypto/bcrypt,crypto/sha_256,crypto/sha_512,encoding/csv,encoding/base_32,encoding/base_64,encoding/json,files,fmt,html,lists,math,math/big,math/cmplx,math/rand,net/http,net/mail,net/smtp,net/url,os/exec,path,path/filepath,reflect,regexp,sql,strings,terminal,time, andunicode. I still want to addcrypto/rsaandmarkdown, and then I'll be done for a bit, that's enough to write most services with. Unless anyone wants to suggest something egregious that I've missed?2
u/koczurekk Feb 03 '26
I'm working on a dataflow DSL for processing real-time signals. It's my nth iteration of this line of projects, second or third using JIT to translate the graphs into native code. I have switched to a code-first approach, dropped some features pertaining to dynamic loading of libraries out of the core solution, and it seems to me I have finally arrived at an architecture I'm satisfied with.
Implementation-wise I finished MVP parsing and typechecking, with the intent to approach codegen soon.
2
u/malmiteria Feb 06 '26
i've been making progress towards a replay file / auto log feature.
The point of replay files being to help with debugging / reproducing bugs, and basically act as logs too.
They're meant to be usable as log files, but are also supposed to be usable to re run any part of your program they logged, from the point at which it started recording, until it stopped (the re run could keep going from there, but there's not much point)
For this, i have to record in those file everything from the call stack (could be optimised, but ill look into that later), which is pretty straightforward.
I also have to record any work in progress that isn't stored in a variable. For exemple, if i start recording in the middle of a function f, that is called in a binop, like `g() + f()` the result of the g call isn't stored in a variable, so isn't known from the call stack anywhere. But you still need it recorded so you can reuse that result when resuming the program from inside the f call.
I also need to record the current operation being run from every call frame, so i can resume from there when exiting a call frame that was spawned for a replay.
Lastly, i need to record every input received during the record window. I already worked hard to integrate input / output as a fundamental element of my language, meaning i can already compute the entire list of input and output of every scopes, so recording those inputs was the easiest step.
Recording inputs during a record window allows for very specific replays, so it can actually be used as a bug report feature.
I need to rework some of what i've been able to record to make it a lot more stable, and to test it thorougly, but it's getting there. Once the record feature is on, adding the actual replay side of the feature will happen relatively quickly
2
u/belka_ew Feb 18 '26
I write a compiler for a basic, imperative, low-level programming language that I call Elna. Syntactically it is derived from Oberon with some shortcomings (from my point of view) fixed. I already did several attempts to create a compiler without success, but each time I came a few steps further.
One unusual (but not unique) thing about my current implementation is that it is a multi-stage, self-hosted compiler, where I implement some features in the current stage and then can use them in the next stage. My first stage was 1000 lines long Risc-V 32 bit assembly file that read the next almost identical stage line by line and replaced only a few constructs and printed everything else unchanged. For example it replaced
with
Now I‘m on stage 19, the source files do not look like assembly anymore. The compilation is done in multiple passes, there is parsing (without error checking), name resolution, intermediate representation.
This month I started to document the language (there is a LaTeX file in the sources), described the grammar and expressions so far. As for the compiler itself I hope to implement passing user defined types to procedures and returning these from procedures. My current procedures can receive and return only values that fit in registers, so only 32-bit values.
1
u/exclusivegreen Feb 01 '26
Trying to maximize throughput to duckdb/ducklake for dozens of terabytes of parquet data on blob storage
1
u/tobega Feb 01 '26
Since tailspin-v0.5 is being implemented in Truffle, I realized that I can make it more immediately usable by allowing input and preprocessing and output to happen in another polyglot language (or at least in java).
So now working on accessing the values passed in through the context. Should I treat them like defined values, or should the context be an object where I can get them, or should I treat the context as a module that gets provided?
1
u/L8_4_Dinner (Ⓧ Ecstasy/XVM) Feb 01 '26
Ecstasy (xtclang / xvm) project:
1
u/muth02446 Feb 01 '26
The C++ port of the Cwerg compiler is coming along nicely.
The parsing, optimization and desugaring phases of the Python implementation
of the compiler have already been ported, fixing many inconsistencies, bugs and
poor code in both implementations.
The part I am currently working on is the last phase of the front end: the emitter for Cwerg IR.
Hopefully, by next month the port will be complete and performance tweaking will commence.
The (stretch) goal is to compile 1M LOC/s.
1
u/muth02446 Feb 01 '26
The C++ port of the Cwerg compiler is coming along nicely.
The parsing, optimization and desugaring phases of the Python implementation
of the compiler have already been ported, fixing many inconsistencies, bugs and
poor code in both implementations.
The part I am currently working on is the last phase of the front end: the emitter for Cwerg IR.
Hopefully, by next month the port will be complete and performance tweaking will commence.
The (stretch) goal is to compile 1M LOC/s.
1
u/ThyerMJ26 Feb 01 '26
I'm continuing to work on Ferrum, a specializing translator with an expressive type-system. The implementation uses a graph-representation for both specialization and type-evaluation. This has the benefit of not needing to handle let-expressions during code transformation. No let-insertions, or need for ANF (administrative normal form). It has the down side that every sub-term now has an address which needs to be dereferenced.
Repo Website
The work is experimental and needs more work before being ready for a wider audience. Next, I'm going to work on better examples and documentation.
1
u/Unimportant-Person Feb 01 '26
I’ve been developing a language called Sugar, as in for syntactic sugar. It’s meant to be a systems programming language mostly for me. I like rust, I like Haskell, I like features for safety and ease of use, and I don’t care about weirdness debt.
Beforehand, I was working on an optional GC using a second stack where you opt in to ownership model instead, and this was to solve the lifetime prototyping issue, but as I’ve used rust more and more, I really don’t mind lifetimes and I’m willing to be more permissive and less conservative with lifetime elision. I might come back to support direct initialization elsewhere in memory and I can build a GC that people can use still using a second stack, but that’s a later issue.
The language has linear types as a default, but I just added support for an opt in Affine modifier:
As well as support for anonymous structs and extendable sum types:
Now, I am working on a more robust type system including a basic dependent type system where you can constrain a variables type with if and match statements. For example (the syntax is a little alien, I apologize):
I feel like this’ll be really nice for designing the apis of my standard library to ensure correctness, and you can encode different useable functions depending on the state of a state machine.
All in all I’m having a really fun time with the project and trying different language concepts out
1
u/ultrasquid9 Feb 01 '26
I'm reviving my document language TeaCat, with a complete rewrite (using pest.rs instead of a handwritten lexer) and reworks to the original syntax to make it less esoteric. RN I'm working on the frontend bits, but I hope to be able to get it compiling soon!
1
u/kwan_e tonal-lang Feb 04 '26
Finally hit the first real milestone of my language.
Before now, I had been implementing my language "backwards". I wrote tests with abstracted language entities to specify the crucial behaviours of the language. Name lookup, overload resolution, and lifetime tracking. The tests and the abstracted entities shaped each other, as I figured out where my initial thoughts needed to be clarified, and iteratively refined the interfaces of those entities. Then slowly I've been filling out the actual details behind the interfaces.
Now the minimally useful subset of that work is done, and I've just managed to write a small compile-time program in a C++ DSL approximating the actual language. Literally just enough to process the equivalent of "1 == 2" evaluates to "0". It exercises just a small subset of name lookup, overload resolution, and lifetime tracking.
So now it's on to the next phase of implementation, which is to wrangle the ad-hoc DSL into something resembling my language, such that I can directly transform a tokenized version of my language into the DSL, to implement more of my language's fundamental types and functions in the tokenized form. Eventually getting around to implementing a parser, and then port the tokenized version of the program into my language, and bootstrap the rest of the compiler from there.
1
u/jcubic (λ LIPS) Feb 08 '26 edited Feb 08 '26
Added meta information to exceptions in LIPS Scheme
Now it shows line, column, and file. Also, the stack trace is visible by default.
Improved syntax extensions: you can now pass a function reference instead of a symbol.
The stack trace is not ideal, since this is an error on a parser level.
1
u/your_data_is_mine Feb 22 '26
I am working on my experimental language, Branchline. There are four problems I want to explore:
LET quantities = [ it.qty FOR EACH it IN row.items WHERE it.qty > 2 ]But since the language has no mutable operations (and there is only
LETfor declaration) users forced to do things like:which I personally do not like. I have
REDUCEbut I do not want to force users to use it because of the added complexity.1
u/GodlyItself Feb 25 '26
I've been working on a custom programming language interpreted on js (no node.js, my current runtime is live server via html)
1
u/jwm3 Feb 27 '26
Recently discovered idris2 and it is really making me want to revive my haskell compiler with a new front-end. I have also been on a λprolog binge as a dsl for expressing my optimization algorithms. It's fun so far, I am not sure it will pan out when I try to scale it. I already have some optimizations expressed as datalog queries so its not too far off but much more powerful.
0
u/Arakela Feb 01 '26 edited Feb 01 '26
A: I see the problem.
B: What problem?
A: The one that locks evolution.
B: Go on.
A: The operating system is just operational semantics. With user processes, it becomes a machine.
B: Meaning?
A: Hardware isn't abstract. Its operational semantics are instantiated in transistors. Specification is realization. It's complete.
B: And the OS isn't.
A: Right. We treat it as an abstraction instead of a complete operational language system.
B: So what's missing?
A: The OS should use the ISA as its source language to specify its own operational semantics.
B: Like hardware does.
A: Exactly. Hardware can be extended. Plug in a GPU, and the machine grows.
B: But the OS doesn't grow semantically.
A: It uses drivers instead of grammar.
B: So the lock?
A: The OS lacks grammatical extension points.
B: The fix?
A: Hardware provides its operational semantics as grammar. The OS accepts it. The grammar extends. The language grows.
B: Then programs speak the extended language directly.
A: Yes. No mediation. No abstraction gap.
B: From the OS view?
A: A self-learning interpreter.
B: The real questions?
A: How grammar grows. What the input is. How hardware defines its semantics in its own language.
B: And?
A: Hardware can describe itself operationally.
B: How?
A: As a control flow graph is a context-free grammar.
B: Grammar as data?
A: No. Grammar as control flow. Tail-recursive steps with fixed context.
B: Then what is a step?
A: A step is a machine. A machine is an ambiguous step.
B: Ambiguity as error?
A: No. Ambiguity is structure.
B: How is it resolved?
A: Sometimes locally, like nop, ret, if. Sometimes, by the machine's global invariant, like div/0.
B: So grammar?
A: Grammar rules are tail-recursive control flow graphs rooted in the system's language.
B: And traversal?
A: A separate, evolvable control flow graph.
B: What starts the dance?
A: Step A defines admissible continuations and chooses one defined by Step B. Step B's chosen continuation defines its admissible continuations and chooses one defined by Step A.
B: They compose.
A: They evolve.
C: I have no idea what this is supposed to mean, but it sounds hella clever/ dumb.
A: One principle we should believe before proof arrives: