Crazy transfem witch programming in C++, rambling about her programming language ArkScript, complaining about software updates and AI.
How my friends would describe me

Writing a debugger for ArkScript

In February 2024, I first discussed adding a debugger to ArkScript with other devs that were involved in the project at that time. I didn’t know where to start or how it should work ; and about two years later this is now done.

What should it do?

With an ideal debugger, I’d like to be able

  • to add a breakpoint in my code, without relying on specific IDEs integration ; a (breakpoint condition) expression is more portable
  • to trigger the debugger when there is a runtime error (type error, arity error, assert failed…)
  • to have breakpoints in the code but allow them to start the debugger only if we passed a specific CLI flag, eg arkscript -fdebugger myfile.ark
  • to spawn a REPL-like shell on a breakpoint / error, that allows users to write ArkScript code to examine what went wrong
  • maybe add breakpoints from the debugger, given a file and line
[Read more]

Using ArkScript for the Advent of Code 2025

Last month I got to use ArkScript, a language I’ve been developing for nearly 7 years, for the Advent of Code. And this time, I got to the end, using only my language (and a few hints from programming.dev)!

Adding attributes to functions’ arguments

Advent of code challenges are often heavy on lists, with inputs sometimes being thousands of lines long. After benchmarking some of my solutions, I noticed passing big lists to helper functions (eg a (get grid x y) that would check for width and height) was slower than doing the check in place and duplicating code. This is due to ArkScript “no hidden behaviour” rule: arguments are always passed by value, and no hidden references are used.

[Read more]

ArkScript - September 2025 update

Since my last update post, there was a total of 127 new commits, 402 files changed, 4782 insertions, and 2798 deletions. There was a lot of refactoring to make the project cleaner, a new Dict datatype, a ton of new tests that helped fix bugs, better position tracking for nodes in the parser, and a few more super instructions for optimisation purposes!

Dictionaries

It has been a few years since I last added a new datatype to ArkScript, and this summer, after doing some Rosetta Code challenges, I finally changed my mind and added a dictionary datatype.

[Read more]

ArkScript - June 2025 update

Since my last update post, there was a total of 941 files changed, 10'780 insertions and 4'105 deletions in 71 commits. I mainly focused on optimising the runtime performances of the language.

Better errors!

I worked on improving error contexts, by adding an optional cause, which is very helpful when debugging macros extensions:

1
2
3
4
5
6
7
8
9
At (foo 1 2) @ 4:2
    1 | (macro foo (a b c ...d)
      | ^ macro expansion started here
    2 |     (+ a b c ...d))
    3 |
    4 | (foo 1 2)
      |  ^~~~~~~
    5 |
        Macro `foo' got 2 argument(s) but needed at least 3
[Read more]

ArkScript - April 2025 update

Since the last update post, there was a total of 102 commits, for 947 files changed, 9395 insertions, 3149 deletions. I mainly focused on test coverage, adding around a hundred tests on type checking errors.

Mordor… erm more documentation

The documentation for the bytecode instructions is (finally!) automatically generated thanks to a small Python script I wrote. No more editing this monstruous file by hand when a new instruction is added and I need to change all the instruction value, again. If you are curious about what it looks like, checkout arkscript-lang.dev/bytecode!

[Read more]

Instruction source location tracking in ArkScript

Good error reporting is crucial in programming languages. Doing it at compile time was easy in ArkScript as we have all the context we need at hand, but since we compile code down to bytecode, which is then run by the virtual machine, we loose a lot of context: the source files, their path, their content, we don’t have that anymore! Our runtime errors could only show the VM internal state. This article is about how it all changed.

[Read more]

Optimizing scopes data in ArkScript VM

If you don’t know me yet, I have been working on ArkScript for nearly 6 years now. ArkScript is a scripting language in modern C++, running on a custom virtual machine (like Python or Lua), with the goal of having a syntax easy to learn and use, a C++ interface to embed it in programs, and decent performances (without trying to be as fast as Lua though, Mike Pall is a genius and did outstanding work on LuaJIT).

[Read more]