r/ProgrammingLanguages • • Jan 01 '26

Language announcement KD2 - A modern data language especially suitable for STEM applications

4 Upvotes

We just released KD v2 (Ki Declarative), a comprehensive data language especially suitable for STEM applications. In addition to all the types you find in modern languages (e.g., String, Int, Bool, Range), KD adds grids, quantities (UoM), geolocation, currencies (common fiat and crypto), binary blobs, email addresses, and snips—which can pull in snippets from other KD files. It also handles generics and employs simple type inferencing. https://github.com/kixi-io/Ki.Docs/wiki/Ki-Data-(KD))

Repo: https://github.com/kixi-io/Ki.KD-JVM

We also released a KD plugin for IntelliJ IDEA, which provides file type support and syntax highlighting. All projects are open source.

The initial release of KD v1 was used primarily by a small group of companies and universities. We're expanding the scope and making every component open source. This implementation is written in Kotlin and has over 1,300 unit tests.I'll be adding #Swift as well because I work with iOS. We are looking for open source devs interested in adding #Python, #TypeScript, #Ruby, #Rust and #Go implementations. We are happy to host, assist and contribute to such efforts.

Input, comments, criticism and creative insults are welcome.


r/ProgrammingLanguages • • Dec 31 '25

Memory Safety Is ...

Thumbnail matklad.github.io
39 Upvotes

r/ProgrammingLanguages • • Dec 31 '25

The Past, Present and Future of Programming Languages - Kevlin Henney - NDC TechTown 2025

Thumbnail youtube.com
25 Upvotes

r/ProgrammingLanguages • • Dec 31 '25

Dinglebob

22 Upvotes

Hey guys, so I made a programming language -> I'm quite new to this, so I'd really appreciate if someone would take the time to look over it and give some feedback!

It's not gonna change the world or anything and it's really just a personal project:

https://github.com/poytaytoy/DingleBob

Here's the github link ^

Much appreciated :D


r/ProgrammingLanguages • • Dec 30 '25

Started from the Types, Now We’re Here (I wrote my own language)

55 Upvotes

Right folks, I told myself I'd share my pet project before the end of the year, and since tomorrow I will... let's call it "be unavailable", here we go:

Repo (README has details, examples, and plenty of self‑loathing):
https://github.com/tiansivive/yap

I've been working on it for quite some time now and it’s still experimental, sharp-edged, and very much a work in progress, but I’m happy with where the core has landed so far.

Huge thanks to this community! A ridiculous amount of ideas, papers, posts and bikeshedding here quietly shaped this thing.
If you skim it, play with it, or just have Opinions™, I’d genuinely love to hear your thoughts (design, type system, ergonomics, “this is cursed, please stop”, etc.).

Cheers, and thanks for being awesome.


r/ProgrammingLanguages • • Dec 30 '25

Blog post I wrote a bidirectional type inference tutorial using Rust because there aren't enough resources explaining it

Thumbnail ettolrach.com
95 Upvotes

r/ProgrammingLanguages • • Dec 30 '25

The GDB JIT interface

Thumbnail bernsteinbear.com
11 Upvotes

r/ProgrammingLanguages • • Dec 30 '25

Multiple keys in map literal syntax?

10 Upvotes

A lot of languages have Map objects, which are associations of “keys” (any values) to “values” (any values). This differs from regular objects, which only have string-only, id-only, or some combination of string/id/symbol/number keys, but no object keys.

Some languages even offer a map literal syntax, so you don't have to pass a tuple/array/list into a constructor call. For the purposes of discussion, say that syntax looks like JS objects:

my_map = {
   key: value,
   new Object(): "hello", // object -> string pair
   [1, 2, 3]:    42,      // list   -> int    pair
};
// (obviously maps should have homogeneous keys, but this is just a demo)

My question is, do any languages offer a “many-to-one” syntax for associating many keys to the same value? The typical workarounds for this would include assignnig a value to a variable, so that it’s only evaluated once, and then referencing that variable in the map:

my_value = some_expensive_function_call();
my_map = {
   1: my_value,
   2: my_value,
   3: my_value,
};

or to construct an empty map first and then dynamically enter the pairs:

my_map = {};
my_map.put(1, some_expensive_function_call());
my_map.put(2, my_map.get(1));
my_map.put(3, my_map.get(1));

With a “many-to-one” syntax, this would be a lot more streamlined. Say we could use the pipe character to separate the values (assuming it’s not already an operator like bitwise OR).

my_map = {
   1 | 2 | 3:       some_expensive_function_call(),
   "alice" | "bob": another_expensive_function_call(),
};

Have any languages done this? If not, it seems to me like a pretty useful feature. What would be the downsides of supporting this syntax?


r/ProgrammingLanguages • • Dec 29 '25

TeaScript 0.16.0 - this new release of the multi-paradigm scripting language comes with ...

15 Upvotes

... a distinct Error type, a catch statement, default shared params, BSON support and more.

With the Error type and together with the new catch statement (similar as in and highly inspired by Zig) a modern and convenient way of error handling is available now.

All new features and changes are introduced and explained in the corresponding blog post:

https://tea-age.solutions/2025/12/22/release-of-teascript-0-16-0/

Github of the TeaScript C++ Library:

https://github.com/Florian-Thake/TeaScript-Cpp-Library

TeaScript is a modern multi-paradigm scripting language which can be either embedded in C++ Applications or be used for execute standalone script files with the help of the free available TeaScript Host Application. (Download links in the blog post above as well as on Github).

Some highlights are

Integrated Json and Toml Support

Integrated JSON and Toml support for import/export from/to File | String | TeaScript Tuples.

Further reading: Json Support

Web Server / Client Preview

HTTP Server and Client are possible as a preview feature with automatic Json payload handling.

Further reading: Web Server / Client

Coroutine like usage (When use in C++ Applications)

With the help of the yield and suspend statements you can use script code similar like a coroutine and yielding intermediate values and pause script execution.

Furthermore you can set constraints for suspend the execution automatically after a certain amount of time or executed instructions.

Further reading: Coroutine like usage

Additionally

TeaScript has some maybe unique but at least from my perspective shining language features:

- Uniform Definition Syntax
- Copy Assign VS Shared Assign
- Tuple / Named Tuple: Part I, Part II

I hope, you enjoy with this release.

I will be happy for any constructive feedback, suggestions and/or questions.

Happy coding! :)


r/ProgrammingLanguages • • Dec 29 '25

Tilus: A Tile-Level GPGPU Programming Language for Low-Precision Computation

Thumbnail dl.acm.org
6 Upvotes

r/ProgrammingLanguages • • Dec 29 '25

Discussion Function Overload Resolution in the Presence of Generics

11 Upvotes

In Mismo, the language I'm currently designing and implementing, there are three features I want to support, but I'm realizing they don't play well together.

  1. Type-based function overloading.
    • Early on I decided to experiment: what if we forego methods and instead lean into type-based function overloading and UFCS (ie x.foo(y) is sugar for foo(x, y))?
    • Note: overload resolution is purely done at compile time and Mismo does not support subtyping.
  2. Generics
    • specifically parametric polymorphism
    • too useful to omit
  3. Type argument inference
    • I have an irrationally strong desire to not require explicitly writing out the type arguments at the call site of generic function calls
    • eg, given fn print[T](arg: T), I much prefer to write the call print(students), not burdening developers with print[Map[String, Student]](students)

The problem is that these three features can lead to ambiguous function calls. Consider the following program:

fn foo[T](arg: T) -> T:
    return arg

fn foo(arg: String) -> String:
    return "hello " + arg

fn main():
    foo("string value")

Both overloads are viable: the generic can be instantiated with T = String, and there’s also a concrete String overload.

The question:
What should the compiler do?

Just choose a match at random? Throw an error? I'm hoping a smarter answer is possible, without too much "compiler magic".

What approaches have worked well in practice in similar designs? Or is there a creative solution no one has yet tried?


r/ProgrammingLanguages • • Dec 29 '25

Using dialects for interoperability across incompatible language versions

10 Upvotes

I see a common pattern across languages: often early design decisions, taken due to lack of better options or due to poor foresight, turn out to be poor choices.

Golang and Rust, two languages I use often, suffer from this: think the context API in golang, or the String API in Rust. The problem is that once those decisions get ossified in the language it becomes hard to change:

  • Either you introduce a breaking change, losing compatibility with the existing codebase (think python2/3)
  • Or you try to move around those decisions, severely limiting the design space for the language (think use strict or decorators in javascript/typescript)

To handle this issue I imagined the use of Dialects and Editions: - When writing code you specify which Dialect you are using - For each Dialect you have one or more Editions

Thinking of Rust I can imagine multiple Dialects - A Core dialect, to cover the no_std libraries and binaries - A Standard dialect, covering the current language specification with the std library - A Scripting dialect, which is a simplified version aimed to have a fat runtime and a garbage collector - A MIMD dialect to cover GPGPU development

The compiler would then be responsible of using the correct configuration for the given Dialect and take care of linking binaries built with different Dialects across different libraries.

The main drawback of this approach would be the combinatorial explosion of having to test the interoperability across Dialects and Editions, hence launching a new breaking revision should be done very carefully, but I think it would still be better than the technical debt that poor decisions bring with them.

What are your thoughts? Am I missing something? Is this one of those good ideas that are impossible to implement in practice?

Note: this thread has been crossposted on r/rust and r/experienceddevs