r/ProgrammingLanguages • u/mttd • Aug 14 '26
r/ProgrammingLanguages • u/compilers-r-us • Aug 13 '26
Another partial SSI trick with canonicalize
bernsteinbear.comr/ProgrammingLanguages • u/ThomasMertes • Aug 13 '26
Seed7 - Memory Safety and Management • Thomas Mertes • 05/2026
youtube.comr/ProgrammingLanguages • u/Athas • Aug 12 '26
How should Futhark expose irregular arrays to the programmer?
futhark-lang.orgr/ProgrammingLanguages • u/LinqLover • Aug 11 '26
Language announcement Squeak/Smalltalk 6.1 has been released!
r/ProgrammingLanguages • u/cflexer • Aug 11 '26
Help Package Manager design for Seal programming language
Hey guys, I have been working on Seal. This language is embeddable into C/C++ apps like Lua. You can create libraries for Seal in either Seal or C. I have been creating Game Framework recently. I want to create a package manager in future for Seal to let users upload their own packages to share with others, but I don't know about one thing. Just like other languages, Seal can load both Seal scripts and .so/.dll files at runtime when you import them. Publishing Seal scripts on package registry is easy, since it is just code, but I don't really know about how to publish C or dynamic library files tho. Package publishers can inject malicious stuff (like backdoor) in that code. What are real life examples to prevent that? At first I can read every file and check manually but if this project grows, maintaining that will be difficult. I can maybe create a report system but I cannot always rely on that too. What is the efficient solution for that?
For those interested, they can check Seal here: https://github.com/huseynaghayev/seal.git
r/ProgrammingLanguages • u/mttd • Aug 11 '26
Scope and lifetime restrictions in Swift
github.comr/ProgrammingLanguages • u/reflexive-polytope • Aug 10 '26
Design draft for a truly Affine OL
gist.github.comHello, everyone.
While recovering from an illness, in my state of delirium, I sketched the design of a type system inspired by Xi and Pfenning's Dependent ML, but which uses a key syntactic restriction that conjecturally restores ordinary ML's key metatheoretic properties: the existence of principal types and the decidability of type inference.
I very much welcome feedback that actually engages with the post's contents.
r/ProgrammingLanguages • u/liztormato • Aug 10 '26
Reasons to Improve Programming Languages in an Age of AI - Tim Nelson
wayland.github.ior/ProgrammingLanguages • u/Sufficient_Flower415 • Aug 10 '26
GitHub - VoidCoderStudio/OnyxScript: An modern and easy languge made for making apps to make an apps just you will use 10 lines and its like normal english language and cointains modules
github.comI made this new language it's name OnyxScript if you have an idea to add it in this project so please say it
r/ProgrammingLanguages • u/PlayfulDuck3677 • Aug 09 '26
Tyle, A virtual machine esoteric-programming-language
Tyle doesn't have a quirk or annoying thing, I just want to share it because as someone who just began C# a week or two ago, I'm very proud to make this (even if i know the code is kind of shitty).
It has a register and RAM kind of memory you'd see in assembly, That's why i called it a virtual machine.
You can use different \`-coreX\` flags to change the amount of RAM and Registers there are, The lowest you can go are 8 registers and 768 RAM registers.
Link: [https://github.com/orewaluffy500/Tyle](https://github.com/orewaluffy500/Tyle)
r/ProgrammingLanguages • u/gooblywooblygoobly • Aug 09 '26
Lefts: a domain-specific language for building machine learning model architectures
I work as a quant in the finance industry and spend a lot of my time building machine learning models to predict things. Over my career I've found that every place I work invests a lot of time in writing code for training and evaluation pipelines, and you're often blocked from building interesting model architectures because it would require rewriting the pipelines.
So, I built a small DSL (Lefts: https://nsmat.github.io/lefts/ ) that makes it easy to spin up training pipelines and transform models in expressive ways. Users start with the models they want to use, then apply commands to it to build up an AST. During training/test time, the lefts interpreter operates over the AST to enforce the behaviour users specified.
Lefts is designed around a functional view of ML models. We think of each model as a bundle of functions, and each lefts command is a functor that acts on that bundle, and the functors define a grammar on the space of ML models. The functors always compose, and always preserve the key structural properties required of a model (for example, no data-leakage), so the models you build are guaranteed to be correct by construction.
The DSL is written in pure Python, and by the standards of 'real' programming languages is very simple. The project was great fun though, and taught me that building DSL's to solve problems is very powerful, and also a step up in challenge from other programming.
P.S. I hope domain specific languages are within the field of interest of this sub-reddit! Apologies if not.
r/ProgrammingLanguages • u/mttd • Aug 09 '26
Call for Papers: VMIL 2026 - Workshop on Virtual Machines and Language Implementations
conf.researchr.orgr/ProgrammingLanguages • u/LegendaryMauricius • Aug 08 '26
A new grammar generation language
Hi everybody. I'm happy to share a small project I've been working on lately. I call it MGFF (Macro grammar functional form), and its specification can be found here: https://github.com/LMauricius/py-perg-mgff/blob/main/Docs/mgff-specification.md . It's related to a post that I made ages ago ( here ). After re-reading that version (called just MGF back then) when I wasn't tired I realized what monstrosity I made. MGFF is far more elegant. Here is an example:
# A tiny calculator language.
t Lex (
d Digit = 0-9
d Alpha = a-z|A-Z
d AlNum = a-z|A-Z|0-9
d Int = (Digit)+
> class(Int) push(tokens)
d Number = Int ( . (Digit)+ )?
> class(Number) push(tokens)
d Ident = Alpha (AlNum)*
> class(Ident) push(tokens)
# length-based: "<=" (the two-item "< =") takes precedence over "<"
d Op = < =
| <
| =
| +
| -
| *
| /
> push(tokens) string
d Space = ( _|\t|\n )+
d LParen = \(
> class(\() push(tokens)
d RParen = \)
> class(\)) push(tokens)
d Token = Number
/ Ident
/ Op
/ Space
/ LParen
/ RParen
d File = (Token)*
)
# mixfix macro: an R, then zero or more (S R)
d sep(R)by(S) = R (S R)*
t Parse (
# `Lex` runs first; the terminals here are still characters.
> post(Lex) over(tokens)
# order-based: the first alternative that succeeds is the match
d Expr = Term + Expr
/ Term - Expr
/ Term
d Term = Factor * Term
/ Factor / Term
# the second / on the line above is an ordinary item, not a marker
/ Factor
d Factor = Number
/ Ident
/ \( Expr \)
d Signed = ( (+)/(-) )? Number
d AssignList = sep(Ident = Expr)by(,)
)It can also serve as a replacement for regexes:
# A grammar matching a "key = value" setting line
d Space = ( _|\t )*
d Word = ( a-z|A-Z|_ )+
# right-linear recursion: the same as ( 0-9 )+
d Digits = 0-9 Digits
/ 0-9
d Value = Digits
/ Word
# The field a match ends up in belongs to the rule, not to the place it is used,
# so the two sides of the line are productions of their own.
d Key = Word
> store(key)
d Val = Value
> store(value)
d Match = Space Key Space = Space Val SpaceI'm sharing the MGFF spec rather than the generator using it because the generator is very much WIP and needs a lot of testing and refactoring. Still, since I've got a bunch of projects I love working on more, I'd like to know what's the interest for parser generator tools in the wider community.
Actually I doubt that I will link the generator itself here because I would risk a perma-ban. It's not vibe-coded, but it wouldn't be welcomed. Most of it was quickly prototyped with LLM. Still, it generates quite nice TextMate and Pandoc syntax highlighting grammars.
MGFF itself is of course manually defined by me. I just figured I like to work on languages themselves and parser algorithms than on CLI tools and understanding existing niche specifications 🤷♂️.
r/ProgrammingLanguages • u/mttd • Aug 07 '26
Classifying Capabilities (Extended Version)
arxiv.orgr/ProgrammingLanguages • u/mttd • Aug 07 '26
A Revised Haskell 2010 Language Report
blog.haskell.orgr/ProgrammingLanguages • u/mttd • Aug 07 '26
Domain-specific hyperspecialization: Winning the SAT track at SC26 with LymphoSAT
c.movr/ProgrammingLanguages • u/Pie-Lang • Aug 06 '26
What's Next? Any New "Cool" Language Features?
It's been roughly one year since Pie got in development. August 5th marks Pie's 1 year anniversary.
During this year, I implemented:
- Variables
- Collections
- Functions
- Named Parameters
- Variadic Functions
- Fold Expressions
- Loops
- Classes & Objects
- Operator Overloading
- Namespaces
- Modules
- A Structural Type System
- Tagged Unions
- Pattern Matching
- Structured Bindings
- File IO
- C FFI (I even made a simple game with Raylib!)
- Cascade Operator
I also made a website that has:
- Basic Examples
- Docs
- Spec
- A Playground (I compiled the language to WASM)
These are roughly all the features that I liked from other languages. Of course, the work is not done. I can improve the internals of the language to make it faster, but feature-wise, I'm out of "cool" ideas.
I've scoured the sub for new ideas, but they either involved compile-time evaluation (my language is interpreted), didn't go well with the design of the language, or were already implemented in Pie.
So, I'm here to ask, what is a feature that is missing from my language that you think would be very cool to have?
r/ProgrammingLanguages • u/matklad • Aug 06 '26
Memory Safety's Hardest Problem
matklad.github.ior/ProgrammingLanguages • u/Avatar111222333 • Aug 07 '26
Discussion Programming language similar to TS that is runtime typed
Found this language today. I don't like the marketing "Language for agents". But looking through some examples and their design phiolosphy I seem to be a fan.
Combines some nice stuff from Go, Rust and Typescript.
https://boundaryml.com/explore
I have NOT tried this locally so please take this with a grant of salt. Seems like it's still very much a play language - nonetheless it's interesting
What do you think ? Will it die in a year ?
r/ProgrammingLanguages • u/misterchiply • Aug 06 '26
Gödel, Escher, Elisp: The Beauty of Macros
chiply.devThis post is a lover letter to Emacs Lisp macros. I've been a long time user as a lisp hacker, and my recent obsessions with Douglas Hofstadter's strange loop concepts and M.C. Escher's mind bending artwork have enhanced my appreciation of this language's most beautiful and thought provoking feature. This post can teach you about macros and what makes them useful, but I also hope it can instill a fascination with their concept. https://www.chiply.dev/post-elisp-macros-are-beautiful
r/ProgrammingLanguages • u/Bro8an • Aug 06 '26
Discussion CatLang: feedback on my language design
dropbox.comI wrote a design for a new programming language, but I'm too lazy and burned out to implement a full compiler. I still want to share the idea so you can comment on it and tell me what you think. I know its a lot and there are many typos and gaps, and it still needs a concept to communicate the complex implicit borrowing rules. Keep in mind that I have no degree or any professional experience—this is just a concept.
i renamed it to qat
current version: https://www.dropbox.com/scl/fi/bpuxeaag4ox5huooqvgu2/qatdocumentation-edited.pdf?rlkey=456owymjqn64bik1faawb3wyw&st=6o621wyd&dl=0
this is how an algorithm for sqare roots would look like with custom syntax:
func newton(f64 x, f64 goal) -> f64:
f64 temp = (x + goal /x)/2 # Newton's method for calculating roots
return x if temp == x
return self(temp, goal)
func(f64)<f64> sqrt = reliable (f64 x) -> f64:
return Error if x < 0 # root of negative numbers is undefined
return newton(x, x)
sqrt(0) = 0 # root 0 must be defined explicitly as 0 would cause newtons method to devide by 0
syntax sqrt extends {expression} # lets multiplication akzept roots as they expect expressions
syntax sqrt( # defines the syntax for roots
keyword("√"),
_,
arg(0: expression)
)
print!(collapse!(√ 2)) # collapse makes the programm crash for negative rootsanother example for custom defined while syntax:
func wLoop(demand bool! condition, demand T! body) -> void:
leave if condition
body
self(condition, body)
syntax wLoop(
keyword("until"),
_,
arg(0),
_,
arg(1)
)
i32 x = 10
until x <= 0:
print!(x)
x -= 1r/ProgrammingLanguages • u/arthurno1 • Aug 06 '26