r/altprog • u/No-Trifle-8450 • 6h ago
I built a Prolog where a running proof is just data. It can stop mid-search, sit in a database overnight, and finish in a different process: Cocolog
r/altprog • u/No-Trifle-8450 • 6h ago
r/altprog • u/secuncensored • 4d ago
Modern English as a Modular Expressive Language
My concept for a simple English but highly capable language, made to get more people into programming by being less about syntax, and therefore less scary, and more about what you want your computer to do. Memelang is as smart as you make it, and it can be reworked, expanded, and added to in order to fit how you want to write your programs.
r/altprog • u/unquietwiki • 5d ago
Declare is an attempt to create an SQL-style language for setting rules for website design by LLMs.
r/altprog • u/eejdoowad • 10d ago
SakaQL explores this idea: can you build a relational programming language that's usable outside of databases and actually nice?
Cool ideas include native incremental view maintenance based on DBSP, set-based types inspired by TypeScript and EdgeQL, a composable regular expression alternative, native parsing inspired by Janet and Raku, and unbounded integers with interval subtypes, and innovative syntax design.
r/altprog • u/ewigerus • 12d ago
Follow up on https://langdev.stackexchange.com/questions/4788/what-would-an-ai-targeted-programming-language-look-like
This is not a question that AI should answer. But yes, properties like memory safety, predictability and strict error handling make Rust a great candidate among the languages that exist today. This has been a recognized trend, and not without reason.
Also, SQL and Markdown seem like the next good candidates. AI is great at writing SQL.
So what about a mixture of Rust, Markdown and SQL?
The SE link above goes into the definition and tries to capture what an "AI-targeted" programming language (PL) should look like. It's actually less trivial than it seems, especially if the task is to identify novel properties of such a PL.
BTW
Python was traditionally at the top of the list because of its high-level abstractions and expressiveness (close to natural language), but I wonder whether its dominance will diminish with the evolution of new model (that can just code better) vs. AI harnesses and agents.
https://github.blog/news-insights/octoverse/octoverse-2024/
Also, I think Python's dominance is more historical. AI models were just too stupid to write more complex code two years ago. I don't think Python is that great though.
PPS
Model-to-model bridges skip the PL question completely:
There are also interesting projects like LatentMAS, where LLMs communicate directly through their latent representations rather than text. This is another direction that potentially bypasses the whole concept of a programming language for model-to-model communication.
r/altprog • u/unquietwiki • 18d ago
r/altprog • u/dogweather • 19d ago
Every year or so, I wonder how Zig, Nim, Elixir, OCaml, Crystal, Roc, etc. are doing. I'll have a new project and want to try a new language for it.
I'd maybe sortable & selectable criteria like Community, IDE Support, Trajectory, Development Process...
There has to be something like this already?
r/altprog • u/Top_Marionberry_4413 • 23d ago
r/altprog • u/waozen • 24d ago
r/altprog • u/waozen • 27d ago
r/altprog • u/reverend_paco • Oct 23 '26
r/altprog • u/ewigerus • Oct 20 '26
I've been working on HQL (Hyper Query Language), a small statically typed language built around functional expressions and data pipelines.
The basic idea is fairly conventional: values enter a pipeline, functions transform them, and the result can be collected, written somewhere, or kept as a stream.
A simple place to start is using it roughly where I might otherwise reach for awk, perl or jq.
Suppose birds.json contains some records and I want to select and transform them:
source(file("birds.json"), Json)
| filter(b => b.count > 2)
| map(b => {
species: b.species,
count: b.count,
})
| sort(by = b => b.species)
| target(file("popular-birds.yaml"), Yaml)The pipeline reads JSON, filters it, constructs new records, sorts them and writes YAML.
The same thing can be used from a shell:
cat birds.jsonl | hql '
source(stdin, Json)
| filter(b => b.count > 2)
| map(b => b.species)
'This part already works. HQL currently supports the CLI/data-processing use case, reusable .hql programs, typed expressions, collections and first-class streams.
The part I'm working on now is making the same model useful for actual data plumbing (access data sources and targets are configured via shared hql.toml).
Instead of introducing a separate workflow language, external systems should just be sources and sinks. Conceptually, a Kafka → PostgreSQL pipeline should look approximately like this:
source("orders")
| filter(o => o.status == "completed")
| map(o => {
order_id: o.id,
customer_id: o.customer_id,
total: o.total,
completed_at: o.timestamp,
})
| collect(500)
| sink("analytics")where configuration could bind:
orders -> Kafka topic orders.v1
analytics -> PostgreSQL table completed_orders
Named external sources and targets are part of the HQL I/O model. The current design resolves them through runtime configuration (hql.toml), while the connector/configuration layer is still being developed.Kafka is naturally a Stream<T>. collect(500) changes that into Stream<Seq<T>>, so the PostgreSQL sink can consume batches rather than individual rows.
This is deliberately part of the type model rather than a special streaming syntax:
Order
Seq<Order>
Stream<Order>
Stream<Seq<Order>>The same distinction applies to files and standard I/O.
A finite result can be written once:
result
| target(file("report.json"), Json)while a stream is consumed incrementally:
events
| sink(stdout, Json)and a stream can be batched:
events
| collect(100)
| sink(stdout, Json)There is considerably more in the language — functions, pattern matching, Option<T>, graph traversal, semantic retrieval, executable Markdown, etc. — but I'm trying to keep the core boring: typed expressions, collections, streams and composable transformations.
The implementation is in Rust and is still small enough that fairly fundamental parts of the language and standard library are open to change.
Repo:
Docs:
https://hql.hypermarkdown.org/
I'm particularly interested in feedback from people who have worked with Unix text-processing tools, functional/dataflow languages, Kafka-style stream processing, PySpark/Databricks, or ETL systems.
And if you look at it and think “this is missing X”, please open a feature request rather than assuming X is intentionally absent:
https://github.com/ewiger/hql/issues
Concrete examples and awkward edge cases are especially useful. I'm interested in finding out where this model stops composing cleanly. Or where this all can lead. Ty, wbr YY
r/altprog • u/waozen • Oct 18 '26
r/altprog • u/kmmbvnr • Oct 14 '26
web: https://rank.viewflow.io/
A little over a month ago, inspired by old pocket computers, I started building Rank—a language I could comfortably write on my phone. I'm even thinking about making a dedicated handheld with a physical QWERTY keyboard and multi-function keys like the ZX Spectrum had
The language combines ideas from BASIC and APL: array operations, words instead of special symbols, and data-first function calls
Here is what it looks like:
rem Largest Palindrome Product
rem https://projecteuler.net/problem=4
use sequences
Factors = 100 to 999
Products = Factors Factors outer *
Candidates = Products merge .descending
Candidates filter palindrome first print
fun palindrome X
Text = X text
return Text reverse equal Text
endI'd like to try a little challenge: suggest me a programming puzzle or a small data-processing task, and I'll post a solution in Rank
Let's explore where the language a still needs more work!
r/altprog • u/waozen • Oct 06 '26
r/altprog • u/AndydeCleyre • Oct 06 '26
r/altprog • u/WeakRing3965 • Oct 01 '26
r/altprog • u/unquietwiki • Sep 22 '26
r/altprog • u/waozen • Sep 19 '26
A new language from the creator of the Lobster Programming Language.
r/altprog • u/unquietwiki • Sep 18 '26
r/altprog • u/waozen • Sep 10 '26
A good choice for learning and enjoying array programming, scripting, prototyping, and number crunching at a single-CPU scale.
r/altprog • u/waozen • Sep 09 '26
r/altprog • u/waozen • Aug 28 '26
A statically typed general-purpose programming language that compiles to .NET 10