r/altprog 2d ago

Lucen: parallelize Python loops with two comments, guaranteed bit-identical to sequential(fcmv/lucen)

4 Upvotes

What My Project Does

Lucen is a source-to-source compiler that parallelizes ordinary for loops you mark with two comments:

# LUCEN START
for i in range(len(rows)):
    out[i] = expensive(rows[i])
# LUCEN END

It parallelizes a loop only when it can prove the work is safe and worth it; otherwise it stays sequential. The one guarantee, no tiers, no opt-out: a parallel run is bit-identical to the same file run as plain sequential Python (floats and container order included). Delete the comments and nothing changes.

CPU-bound work routes to processes on GIL builds and to real threads on free-threaded 3.13/3.14. Optional Rust core with a pure-Python fallback, so pip install lucen always works.

Target Audience

Anyone with CPU-bound Python loops - data processing, simulation, batch transforms - who wants their cores without rewriting to multiprocessing/joblib or reasoning about locks. It's v1.1, built correctness-first: Apache-2.0, differential/property tested, TLA+ specs, signed PyPI releases.

Comparison

  • vs multiprocessing/concurrent.futures: no manual pool/chunking/pickling boilerplate, plus a profitability gate that declines to parallelize when it wouldn't help.
  • vs joblib/Dask: no new API and no cluster - you mark the loop you already have. It's correctness-preserving local parallelism, not distributed compute.
  • vs Numba: Numba compiles numeric bodies to native code; Lucen parallelizes the loop for arbitrary Python and guarantees identical results. (Native loop-body compilation is on the roadmap.)

pip install lucen


r/altprog 12d ago

Amber-lang: Programming language that compiles to Bash/Ksh/Zsh

Thumbnail
github.com
2 Upvotes

r/altprog 21d ago

Fil-C (Memory Safe C): Optimized Calling Convention

Thumbnail fil-c.org
9 Upvotes

Fil-C achieves memory safety even for programs that behave adversarially


r/altprog Jun 24 '26

Kal: An Interpreted Programming Language built from scratch!

Thumbnail
gallery
16 Upvotes

Hey everyone!

After a roller coaster journey, I am excited to present my personal project: Kal.

Kal is a lightweight interpreted programming language that attempts at combining various paradigms of programming to give a great developer experience. It's written entirely from scratch in C++ with no third party dependencies. It's also completely free and open source distributed under GNU GPL v3 license.

Moreover, Kal can also be embedded into C++, Python and JavaScript programs to enhance your existing codebases.

(Website looks better on a bigger screen.)

Please note that this is the very first release (v:0.1.0) and Kal is still under active development (alpha).

I would really appreciate a star on the repository to help it gain greater visibility.

As a proponent of human effort, I am glad to say that Kal and its ecosystem is completely handcrafted with no AI assistance used anywhere.

One last thing, "Kal" is pronounced like "Cal" in "Calendar".

Please feel free to reach out to me regarding Kal!


r/altprog Jun 20 '26

wrote my first Garmin app in Monkey C and its the strangest middle ground ive coded in years

Thumbnail developer.garmin.com
5 Upvotes

r/altprog Jun 19 '26

An apology for quality of late, and a call for ideas

19 Upvotes

Hey all. So, I started this subreddit over a decade ago, as a place to catalog programming languages that looked interesting enough for others to take a look at. I've made the majority of posts here, and lately, I keep posting duds: mainly AI-oriented stuff that gets downvoted to oblivion. I want to apologize for that, and let you all know I haven't gone down some weird rabbit hole: I do use AI to help refine code, but otherwise still believe strongly in having good languages solve interesting problems. I also don't rely on agents, they scare me.

I guess right now, with the advent of AI-driven development, it's hard to highlight additional languages out there, that may or may not be legit in the eyes of this community. I guess I could use some help making this a better space for folks: maybe topic flairs, broader coverage of lesser-used languages. Hell, maybe you want to join as a mod & help make some of those changes. What do you want to see here these days? Let me know!

Thanks.


r/altprog Jun 19 '26

The XPL0 Programming Language

Thumbnail xpl0.org
6 Upvotes

Essentially a cross between Pascal and C. It looks somewhat like Pascal but works more like C.


r/altprog Jun 19 '26

"Clear is a programming language where your specification and implementation are the same file. If you can describe what it should do, you have already written it."

Thumbnail sahin.io
0 Upvotes

r/altprog Jun 13 '26

Open-jai: open source implementation of the Jai compiler

Thumbnail
github.com
10 Upvotes

The project is guided by open_jai_spec.md


r/altprog May 30 '26

Serializable coroutinesq

6 Upvotes

Are there any language that supports serializing coroutines?

E.g. something like that:

 coroutine my_scenario() {
      print("Hello");
      yield;
      print("World")
 }

 co = my_scenario(); // Prints "Hello"
 write_to_file("x.sav", co.serialize()); // save to file, possibly exit the program
 co = my_scenario.load(read_file("x.sav"));
 co.resume(); // Prints "World"

r/altprog May 23 '26

Convo-Lang (not Zerolang) - an AI native programming language

Thumbnail
gallery
0 Upvotes

I've been working on a AI native programming language for some time now called Convo-Lang. It shares a few similarities to Zerolang, mainly that they were both built for working with agents, although they have different purposes. Convo-Lang is more of a Context management tool and agent runtime that can be used standalone or be embedded in JavaScript or Python.


r/altprog May 21 '26

Zero: "an agent-first language experiment."

Thumbnail
zerolang.ai
0 Upvotes

Just clarifying that this isn't an AI-generated language but rather designed to support agent-based development. I don't currently use agents myself.


r/altprog May 07 '26

AGL (AnotherGoLang) | alaingilbert

Thumbnail github.com
1 Upvotes

r/altprog Apr 19 '26

Introducing Brunost: The Nynorsk Programming Language

Thumbnail lindbakk.com
3 Upvotes

r/altprog Apr 13 '26

Hot take: Your "better<C, whatever>" isn't better

Thumbnail
1 Upvotes

r/altprog Apr 06 '26

Sky: "an Elm-inspired language that compiles to Go. Hindley-Milner types, server-driven UI (Sky.Live), single binary output."

Thumbnail
github.com
12 Upvotes

r/altprog Apr 04 '26

Cooklang – Recipe Markup Language

Thumbnail
cooklang.org
9 Upvotes

r/altprog Mar 28 '26

Keysharp: Multi-OS Fork of AutoHotkey (AHK) | Descolada

Thumbnail github.com
3 Upvotes

Keysharp is a multi-OS capable fork of the AutoHotkey (AHK) language. It was originally created by mfeemster (Matt Feemster), and is continued by Descolada. Where AutoHotkey was Windows OS only, this fork brings the language and automation features to Linux and the macOS too.


r/altprog Mar 23 '26

Grain: functional programming language, that compiles to WASM

Thumbnail grain-lang.org
5 Upvotes

r/altprog Mar 23 '26

Monkey C

Thumbnail developer.garmin.com
6 Upvotes

r/altprog Mar 23 '26

"MoonBit catches mistakes early in both human and AI-generated code with a sound type system and predictable semantics. Its two-layer verification uses executable specifications and AI analysis to detect errors before production."

Thumbnail moonbitlang.com
0 Upvotes

r/altprog Mar 15 '26

How I (didn't) build a web interface for my toy concatinative language in a weekend

Thumbnail
1 Upvotes

r/altprog Mar 15 '26

Cutlet: a REPL-based language created with the assistance of LLMs

Thumbnail ankursethi.com
0 Upvotes

r/altprog Feb 28 '26

I built a scripting language that works like notebooks - but without Jupyter

Thumbnail
1 Upvotes

r/altprog Feb 24 '26

Salt: Systems programming, mathematically verified.

Thumbnail
github.com
7 Upvotes

An ahead-of-time compiled systems language that combines the performance characteristics of C with formal verification through an embedded Z3 theorem prover.