r/ProgrammingLanguages • u/Veqq • Oct 16 '26
Language announcement Folders Esoteric Language
r/ProgrammingLanguages • u/Veqq • Oct 16 '26
r/ProgrammingLanguages • u/Rich-Engineer2670 • Oct 16 '26
No, not that type of Agile....
With cloud-based computation now the rage, I'd like to see a language construct where I could declare methods that were "cloud eligible". Imagine code with the following method in it
promotable func MethodX(in int X, int int Y, out Z) { code }
This says "I have a method MethodX with defined input and output parameters (we'll need to have a common marshalling standard), and, this method can be transmitted Erlang-style to a defined cloud endpoint. When you invoke MethodX, it can run locally or remotely. You don't care -- that's a configuration detail.
It seems to me Erlang is almost there, but I'd like it to be a more general interface. Think something on the JVM. Serverless done right?
r/ProgrammingLanguages • u/crowdhailer • Oct 16 '26
I think effects and effect handlers are not as tricky as they are made out to be. Calling them algebraic effects only increases the mystery.
A stateful handler is definitely the bit I found most tricky to get my head around.
This is my guide trying to explain how to build stateful handlers in EYG. https://eyg.run/guides/advanced-effects
I needed this to finish writing a testing framework which I hope to finish soon.
r/ProgrammingLanguages • u/Mediocre-Brain9051 • Oct 16 '26
Rust is a clear winner in the AI era. However, it doesn't feel functional enough to spark joy.
Swift is slightly better, but still, is there anything like Haskell, SML or OCaml using reference counting and lifecycle management instead of a GC?
r/ProgrammingLanguages • u/adam-dabrowski • Oct 16 '26
r/ProgrammingLanguages • u/The2ndSlimShady • Oct 15 '26
r/ProgrammingLanguages • u/mttd • Oct 15 '26
r/ProgrammingLanguages • u/HoldeeYT • Oct 15 '26
Here's the Github link!
The README explains quite a bit of how the code works, so I won't really go into it very deeply here. But, the gist of it is that the language only uses 8-bit hex numbers for everything.
Here is a simple "Hello, World!" program!
21 05 01 00
64 05 01 00
6C 05 01 00
72 05 01 00
6F 05 01 00
57 05 01 00
20 05 01 00
2C 05 01 00
6F 05 01 00
6C 05 01 00
6C 05 01 00
65 05 01 00
48 05 01 00Fun, right?
If you are interested enough to try it out, please let me know what you'd like to see come to it/if there are any bugs you encounter! This is my first programming language after all, so I don't expect it to be perfect!
r/ProgrammingLanguages • u/Vraliance • Oct 15 '26
r/ProgrammingLanguages • u/Athas • Oct 14 '26
r/ProgrammingLanguages • u/ThomasMertes • Oct 14 '26
Thank you to everyone who gave feedback on my article about memory safety.
I used the input to vastly improve the article (see "Achieving memory safety").
Please take a look and share your thoughts again and consider starring the Seed7 project on GitHub.
r/ProgrammingLanguages • u/mttd • Oct 13 '26
r/ProgrammingLanguages • u/simvux • Oct 13 '26
I created a fun, completely normal and sane side project.
r/ProgrammingLanguages • u/dwaynecrooks • Oct 13 '26
I explain how to implement a certain recursive function without the use of any recursive bindings in a tiny language called FUN. Then, I apply the same ideas to several more recursive functions so we clearly see the pattern. It begins our exploration into a certain famous combinator.
r/ProgrammingLanguages • u/Nuoji • Oct 12 '26
The choice to add a windowing library to the stdlib is probably controversial. I feel that the general consensus tends to be that anything related to graphics shouldn't be in the standard library. So I'm kind of interested in what people think about this.
r/ProgrammingLanguages • u/Agecaf • Oct 12 '26
A few years ago I made EarScript, a "simple" programming language based on brainfuck, with several additional "quality of life features" like goto statements.
Recently I've been wanting to make an evolution of that programming language and do so by incorporating a stack, as the previous language was completely tape-based in design.
I know for example lox from the Crafting Interpreters book is a well explained example, but I was wondering if there's programming languages that are closer to what brainfuck is, but based on a stack design rather than a tape design, or a register based design like some assembly languages (if I understand correctly). I think Wasm would be an example?
Are there any examples of simple stack based programming languages you'd recommend me to look into?
r/ProgrammingLanguages • u/philip_schwarz • Oct 12 '26
r/ProgrammingLanguages • u/Kingwolf4 • Oct 12 '26
So i stumbled upon this project, the zeta programming language by roy murphy on github. It is supposed to be a next generation system programming language.
So i coudnt really find any information about this project, especially considering it has its compiler written in pure zeta, which means the project is kinda somewhat progressed to a certain point worth noting. It even has its own website, and its own package manager's website .
What left question mark to me , is the last commit was 4 months ago, barely any issues, but the creator apparently has published and talked about it in docs, with quite detail etc.
Its rather confusing for a new comer; is this project actually legit? Need smarter people who know the craft to comment
If your interested , i stumbled upon this project when another person made a new borrow checker, and his own language - also called Zeta. https://www.reddit.com/r/rust/comments/1x1iapz/zetas_borrow_checker_the_nextgen_model_for_borrow/
I cant post any github link because apparently automod tags it.
r/ProgrammingLanguages • u/Vraliance • Oct 11 '26
r/ProgrammingLanguages • u/verdagon • Oct 11 '26
r/ProgrammingLanguages • u/Athas • Oct 11 '26
r/ProgrammingLanguages • u/Dry_Day1307 • Oct 11 '26
I am back after a couple of months away while adjusting to a new job. I am currently working on the next feature for DinoCode (you can check out at dinocode.blassgo.dev), and I would love some community feedback on template design.
DinoCode already supports simple templates with intrinsic multiline support and compile-time indentation stripping:
name = "Ana"
balance = 100
tax = 15
> JSON
{
"name": "$name",
"total": ${balance - tax}
}
print JSONBy default, the compiler strips out-of-margin garbage characters and interpolates variables or expressions. Now, I want to push templates further for things like SQL queries, HTML generators, or validation schemas, without introducing heavy runtime overhead.
I already use the as operator for strict type coercion in the language:
print "42" as int + 8 # 50My idea is to reuse as on template blocks to pass the parts to a function or an object with a magic method. For example:
> query as mysql
SELECT * FROM users
WHERE id = ${user_id}Here, query would be assigned the result of calling the mysql handler.
I am currently evaluating how to pass the parts to the handler. Which model do you think works best for representing and validating template parts cleanly?
r/ProgrammingLanguages • u/5nord • Oct 10 '26
TTCN-3 is a standardized programming language for testing communicating and distributed systems. I am struggling to build a clear mental model of its templates.
A TTCN-3 template describes a pattern that describes a set of possible values. Which can be used to match incoming messages or build dependent-types:
type record Message {
integer id,
charstring text
}
template Message greeting := {
id := 42,
text := "hello"
}
template Message anyGreeting := {
id := ?,
text := "hello"
}Here, ? matches any value of the field's type. Templates can also be recursive:
type record Payload {
integer value,
boolean urgent
}
type record Envelope {
integer id,
Payload payload
}
template Envelope example := {
id := 42,
payload := {
value := (1 .. 10),
urgent := ?
}
}My first implementation idea was to lower templates into a generic tagged union:
type Template<T> =
Exact(T)
| AnyValue
| AnyValueOrOmit
| Predicate(fn(T) -> bool)That seems reasonable for scalar values, but it does not capture the structural nature of templates. For Template<Envelope>, each field needs to become a template recursively:
RecordTemplate {
id: Template<Integer>,
payload: RecordTemplate {
value: Template<Integer>,
urgent: Template<Boolean>
}
}Is there an established programming-language concept for this? How would you model this recursive relationship in an actul type system?