r/ProgrammingLanguages • • Oct 04 '26

Requesting criticism LOON - a data format made for humans

Thumbnail reddit.com
0 Upvotes

r/ProgrammingLanguages • • Oct 03 '26

Requesting criticism Can anyone give any advice on whether my language is good?

Thumbnail github.com
17 Upvotes

Please don't judge the bad code, I'm still doing my a-levels.


r/ProgrammingLanguages • • Oct 03 '26

Transitive, Abstract, and Class Polymorphic Immutability

Thumbnail al.radbox.org
7 Upvotes

r/ProgrammingLanguages • • Oct 03 '26

Requesting criticism Dio: Small Programming language made in C version 0.1.0 release

8 Upvotes

Hi, I'm working on my own programming language, I've release first stable version (v 0.1.0), I'd like to get feedback. It's on most OS platforms (even Andoird and in the future IOS).

Repo: https://github.com/Treechcer/DIO


r/ProgrammingLanguages • • Oct 03 '26

A Minsky machine in ncurses terminfo

Thumbnail seriot.ch
11 Upvotes

r/ProgrammingLanguages • • Oct 03 '26

Help Optimizing Performance of a Deep Embedding of a DTT in Lean 4

5 Upvotes

Hi all. I am requesting advice on how to optimize Lean build performance of a deep embedding of a dependent type theory in Lean 4. My implementation works fine, and has solid meta theorems proven, but the type-checker is very hard to maintain due to slow Lean build times.

I have tried using Lean's profiler and had some success. Most of the type theory literature is on Agda and Rocq, so I'm curious to hear from you all. If you have implemented a type-checker in Lean:

  • Which tactics did you find were the worst offenders for build performance?
  • What is your convention for organizing your aesop and grind theorems?
  • Which parts of your formalization did you have the most success in mechanizing?
  • Have you written any metaprograms yourself that you find useful for mechanizing proofs?

    • I'm Particularly interested in automating / mechanizing confluence. It is a very painful proof to update every once in a while.
  • Mathlib / CSlib:

    • Do you use CSlib? Did you find any machinery in it useful?
    • Do you use an existing term rewriting system for your reduction relation? Does this help with automation?
    • Do you use Mathlib.Relation? Are your reduction paths deterministic and does your reduction relation live in Type? If so, what machinery did you use to handle congruence?
    • Any other helpful libraries for metatheory?
  • Lakefile.toml / lake flags
  • Bonus because I am curious: have you successfully proven any meta theorems using categorical semantics and is Mathlib sufficient for these purposes?

Any life hacks appreciated. I am finding myself waiting up to 10 minutes for my type-checker to build when I update my reduction rules. I guess Lean can't parallelize my project structure.


r/ProgrammingLanguages • • Oct 02 '26

Keeping Futhark off the GPU

Thumbnail futhark-lang.org
36 Upvotes

r/ProgrammingLanguages • • Oct 02 '26

Please advise on adding string interpolation to my Crafting Interpreters project.

13 Upvotes

I'm about to start chapter 21 of Crafting Interpreters. I'm using modern C++ instead of C. I am attempting to add string interpolation to the compiler.

My goal is to have a string that looks like this:

"Five plus ${ 10 - 5 } == 10."

Desugar to this after the expression in the braces is evaluated:

"Five plus " + 5 + " == 10."

I have code that is correctly parsing strings and concatenating them if there isn't any string interpolation.

I have a custom token added that is produced if the string contains a ${. It calls a custom string interpolation parser rule that is different than my standard string parser rule.

In that function I push the first part of the string to the stack. It then pushes a plus opcode and Recursively parses the expression in the braces adding that expression to the stack. It then adds another opcode to add and this is where I'm stuck.

I can't come up with a solution for pushing the remaining piece of the string to the stack from inside the string interpolation parser rule function. After I call the books expression function and consume the right brace token using the books consume function the parser nolonger knows we are still inside a string. If the next character after the brace is a space it's skipped. In my above example it assumes I want equal equal.

How would you set the current token back to string so I can push any remaining characters onto the stack as another string? Should I just insert a new string token into the parser? This seems wrong to me. The current and previous tokens are private members of my parser class for a reason and I've not needed setter member functions so far.

Sorry I don't have code to show. I'd like to try and get help that isn't code specific so that I have to implement this myself.

Any input would be helpful.

Thanks.


r/ProgrammingLanguages • • Oct 02 '26

Blog post Typeclasses vs Modules - sm²n.ca

Thumbnail sm2n.ca
21 Upvotes

r/ProgrammingLanguages • • Oct 02 '26

Happy 30th Birthday to Squeak!

Thumbnail news.squeak.org
30 Upvotes

r/ProgrammingLanguages • • Oct 02 '26

Forth: The programming language that writes itself

Thumbnail ratfactor.com
8 Upvotes

r/ProgrammingLanguages • • Oct 01 '26

The Second Golden Spike: Memory Safety Across the Valen/Rust Boundary

Thumbnail verdagon.dev
23 Upvotes

r/ProgrammingLanguages • • Oct 01 '26

DeterV: Verifying Deterministic Parallel Execution

Thumbnail scofieldliu.com
6 Upvotes

r/ProgrammingLanguages • • Oct 01 '26

Resource MINILECTURE ::= A Formalization of The 3 Syntactic Forms of TEA Programs

Thumbnail youtu.be
6 Upvotes

MINILECTURE ::= A Formalization of The 3 Syntactic Forms of TEA Programs

🔴 https://youtu.be/-CXhc1Y7Uzg

is our first class on 1st OCTOBER, 2026 delivered by Community Education Department & Research Dissemination (CED-RD) at Nuchwezi Research.

We bring to students and those currently using/exploring the only general-purpose Programming Language from UGANDA; TEA; some new insights about what is actually the most flexible programming language in terms of syntax right now. With details that shall be disclosed in a soon to be published ACM SLE review paper on 2010 Featherweight TeX, we here get an early preview of the now formalized 3 syntactic forms (MINIFIED, SANITIZED & MIXED form) that any Transforming Executable Alphabet (TEA) program can be expressed with.

We also get to appreciate that TEA programs can be parsed into an Abstract Syntax Tree (AST) that's based on one of the forms of the TEA programs. More DETAILS to follow in the paper to be shared with U any time in October!

•bclectures •profjwl •nuchwezi •teaprogramming •blackboardsnapshots


r/ProgrammingLanguages • • Sep 30 '26

pldb: programming languages papers

Thumbnail pldb.kirancodes.me
33 Upvotes

r/ProgrammingLanguages • • Oct 01 '26

Discussion October 2026 monthly "What are you working on?" thread

15 Upvotes

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!

NOTE: AI built/assisted projects are against the rules and this applies to this thread. If you share a link to a project that makes use of AI (Claude Code) for anything, you will be banned permanently without warning.


r/ProgrammingLanguages • • Sep 30 '26

Bi-directional Typing - Conor McBride

Thumbnail youtube.com
24 Upvotes

r/ProgrammingLanguages • • Sep 30 '26

Loop unrolling analysis using eigenvalue?

22 Upvotes

Imagine the loop where you do like "x = -x" every iteration. Obviously, that flips the sign, so you can simply unroll the loop by a factor of 2.

However, for a more complex case, it could be really hard to know what's going on.

Here's my idea. Loop index variables are normally under affine updates anyway. What if we use a mathematically elegant tool?

Using eigenvalue, we can analyze possible periodicity of the linear basis variables, minimizing update needs.

What do you think of such a technique?


r/ProgrammingLanguages • • Sep 29 '26

Discussion A rebuttal to "What makes Lisp difficult to read?" Or, you might be surprised how adaptable the human mind is!

Thumbnail digikar99.github.io
65 Upvotes

r/ProgrammingLanguages • • Sep 29 '26

FUN: Making Curried Functions Work in the Presence of Free Variables

Thumbnail blog.tinyinterpreters.dev
20 Upvotes

We pick up where we left off with FUN to “fix” curried functions so they work the way we expected. We end up rediscovering closures and learning about its history in relation to SECD, LISP, and Scheme.


r/ProgrammingLanguages • • Sep 29 '26

How Not to Build a Shading Language — BCON26

Thumbnail youtube.com
8 Upvotes

r/ProgrammingLanguages • • Sep 28 '26

Language announcement NUM - a sublanguage of ALT

8 Upvotes

I've been developing ALT for almost 3 years and have recently updated it to also have ordering.

The new version of ALT is only available for the Atari ST platform :)

However, the implementation of ALT is pretty complex. So I've create a sublanguage called NUM, which only includes ALT's number system.

NUM has all the ALT operators:

- ari: + - * / 
- set: & | \
- cmp: > < >= <=
- err: !
- qry: ?

NUM is a set theoretic language in the spirit of CUE. With NUM you can denote the prime numbers as follows:

I>1 \ I>1 * I>1

You can also denote Goldbach's conjecture as an 'empty' set. Of course this is not decidable which can be queried with NUM's ? operator

Tell me what you think!


r/ProgrammingLanguages • • Sep 28 '26

Blog post Moonli Update v0.0.10 (September 2026): Transpile algol-ish syntax to Common Lisp

Thumbnail moonli-lang.github.io
3 Upvotes

r/ProgrammingLanguages • • Sep 27 '26

Blog post What makes Lisp difficult to read? or, where to put the parentheses in your next language

Thumbnail paultm.nl
85 Upvotes