r/ProgrammingLanguages • u/tobega • Feb 01 '26
Is your language ready to be tried?
I occasionally look around at other programming languages to see if I can learn something new. This year for adventofcode I tried using two new languages that are present here in this forum, but sadly I wasn't able to write working programs for the desired cases due to implementation bugs.
If I wanted to try your programming language, will it work? If you believe it will, please proceed to convince me why I would want to.
Where can I find it?
What is the fundamental idea of the language that makes it different from or more pleasant to use than existing languages?
Would I understand this idea from simple programs like adventofcode? Maybe if I explicitly wrote the code a certain way?
If not, what kind of program should I try to write to understand it?
Are there tutorials, example programs and/or reference documentation?
What are the rough edges and annoyances I would have to deal with?
Any gotchas?
9
u/Smalltalker-80 Feb 01 '26 edited Feb 02 '26
I'm nearing completion of v2.0 of SmallJS ( https://small-js.org ), a Smalltalk that compiles to JavaScript,
that runs in browsers and in Node.js with the same core libraries. It kind of 'fixes' JS. :)
You are very welcome te try it and give feedback.
I've just completed the tutorial on the basics today and would especially like feedback on it.
To answer your questions specifically:
This year for adventofcode I tried using two new languages that are present here in this forum, but sadly I wasn't able to write working programs for the desired cases due to implementation bugs.
> I've implemented Advent of Code 2024 in SmallJS succesfully upto day 11 with ease.
> I only stopped because I wanted to spend more time on the language itself.
If I wanted to try your programming language, will it work?
> It has full unit test coverage and clear installation instructions and scripts.
> It wil work on Windows, MacOS and Linux! (tested)
If you believe it will, please proceed to convince me why I would want to.
> Smalltalk is the gandmother of all OO languages,
> Its extremely elegant and powerful, while C++, C#, Java, JS and Python are compromises (IMHO :).
Where can I find it?
> The site is here: https://small-js.org
> The source is here: https://github.com/Small-JS/SmallJS
What is the fundamental idea of the language that makes it different from or more pleasant to use than existing languages?
> See above, the most pure, elegant and powerful OO language.
Would I understand this idea from simple programs like adventofcode?
Maybe if I explicitly wrote the code a certain way?
> Yes, if you know any of the world top-5 OO languages.
> If-statements and loops take some learning, as they are also implemented using OO.
If not, what kind of program should I try to write to understand it?
> Its general purpose, you can write anything you like, client and server, with shared code
Are there tutorials, example programs and/or reference documentation?
> Yes, see above, the tutorial is on the website, just updated for the basics.
> In the Playground on the website, you can play with arbitrary ST expressions.
What are the rough edges and annoyances I would have to deal with?
> You can step-debug in VSCode on the Smalltalk level, but sometimes have to descend to JS.
> The system is file-based and not image-based like other Smalltalks.
> This makes it more modular and enables using the VSCode IDE, but its not everyone's taste.
8
u/AustinVelonaut Admiran Feb 01 '26 edited Feb 01 '26
I wrote Admiran partially in order to have an interesting language to write advent of code solutions in.
Fundamental idea: a pure, lazy functional language like Haskell or Miranda, but much faster than the original Miranda, and simpler / smaller than Haskell (both in the language, as well as the compiler and binaries generated)
Language Reference
Reference Advent of Code solutions
Rough edges:
4
u/PaddiM8 Feb 01 '26 edited Feb 01 '26
I made elk, which is a shell language without the limitations and strange syntax of other shell languages. It is like a regular bytecode interpreted scripting language with some extra syntax to make it convenient as a shell (more convenient than bash I dare say...).
I did 16.5 days of Advent of Code in it 2024. Yes, in a shell language. And it wasn't limiting at all, it actually felt close to ideal for the task. There are variables, structs, lists, dictionaries, lambdas, a standard library, etc.
In bash, there are way too many different way to make a simple if statement, but the most common way is something like this:
if [[ "$var" == "some string" ]]; then ... fi, which is quite silly in my opinion. In elk, you just writeif var == "some string" { ... }. That's it. If you want to check if a program invocation prints a specific string to stdout, you can simply doif some-program() == "some result". If I want to assign the output of a program to a variable, I can just dolet result = some-program argorlet result = some-program("arg"). Elk automatically determines if the output should be redirected or not, by looking at if the value is used.The shell itself is also heavily inspired by fish. It has hints, fuzzy-ish completion, semantic highlighting, custom completions, etc.
I have daily-driven it for a few years so it should be fairly stable, but I am aware of a few small bugs at the moment that I am planning to fix.
4
u/gavr123456789 Feb 01 '26 edited Feb 02 '26
I wrote niva. Its my attempt to create statically typed Smalltalk.
Fundamental idea: Smalltalk with types, a little bit more functional, immutable.
In Smalltalk everything is a message send, so instead of if, you send ifTrue: message to a bool value. Its pretty interesting scalable concept.
If you not familiar with ST, Its kinda like lisp where everything is s-expressions, but there are 3 types of expressions instead
so in total, it is types, unions, enums and messages(method extension) for them.
The Smalltalk family is pretty rare, its far from Algol(C) syntax, so it can be hard at the start. There are no functions, only methods, in other words every function has a receiver. 1 + 1 is not a build in operator, but +Int message for Int type, same for control flow.
If you familiar with extension functions from C# or Kotlin, you can consider there are only types and extension functions for them.
bazar - repo playground with some code, site tutorial, learnXinY
I recommend checking JSON_parser, weather-imgui and http-crud
I also have LSP
Lang currently transpiles to kt so hot run takes ~1-2 sec, js backand is 80% done, every example from learnXinY works and its startup time is ~17ms. I'm currently working on self hosted implementation here
5
u/tobega Feb 01 '26
Tailspin-v0 is stable and very well-tested.
Find it at https://github.com/tobega/tailspin-v0/tree/master
Fundamental idea: In my work I do a lot of "data shovelling" from wire formats to DTOs to business objects to database DTOs and back again. Tailspin aims to make that more pleasant through removing a lot of the mechanics and allowing just creating the data structures (think object literals in javascript) and querying/testing declaratively (think mongoDB queries). Let the data flow through a series of transforms phrased either like a literal output object or on a pattern matching of the input object.
Adventofcode problems work very well with Tailspin, but do try to solve them as streams of transforms, don't fall back to just one output per function call or trying to write everything as objects.
There are many sample programs in the samples folder. Also on rosettacode and in my adventofcode repos. There is a learnxiny "tutorial" and a good reference manual, and blog posts about the language.
The error messages could be better but aren't terrible. The only numeric type is 64-bit integers.
A gotcha might be the autotyping feature.
3
u/CreatorSiSo Feb 02 '26
No :/ I started rewriting the parsing logic and its still in a half broken state.
3
u/Inconstant_Moo 🧿 Pipefish Feb 02 '26
I'm afraid mine was one of the duff languages that spoiled your Christmas. I'm still ironing out the kinks in it and making more tests; I should really learn how to make a fuzzer ... there's always so much to do.
You were writing nice idiomatic Pipefish, so I should either be pleased that you worked so hard to learn my language or that my language is so easy to learn; logically I can't do both.
2
u/SirPigari Feb 02 '26
Yes
It should work atleast on windows-msvc and arch linux
Idk why you wouldnt want to maybe because release build takes 10minutes but the language itself is pretty cool
At https://github.com/SirPigari/lucia-rust or wasm at https://sirpigari.github.io/lucia-playground/ (not the newest commit)
I was focusing more on mathematical right of it so it has stuff like |x| for abs and ^ as pow not xor, and arbitrary sized ints and arbitrary precision decimals. Even tho its an interpreted language it doesnt have anything like classes, but structs and enums.
I am also writing bindings for Raylib, which already work enough to make utah teapotah or screen saver (these are the examples in https://github.com/SirPigari/lucia-rust/tree/main/src/env/Docs/examples)
Yes! I tried aoc in it too. Its kinda outdated because i changed some stuff (mostly just print -> println) but it is https://github.com/SirPigari/AoC-2025
A simple cli or raylib game, its kinda the purpuse of the language just for simple stuff. Like tic tac toe or a 2d platformer
Yes whole documentation (can be outdated in some parts but only technical like TCO not syntax) and examples and tests are written
Since it ignores whitespace and doesnt have a line end token you sometimes get an error when:
the parser treats this as call to a, which id you want to prevent you have to put
,after aAnd to use references you have to enable
allow_unsafein config, and it also has the config which is a big pain in the ass sometimesIll be happy if someone actually tries it out instead of just skimming the syntax
2
u/anaseto Feb 05 '26
Saw the thread a bit late, but I've solved most aoc problems of the last three years in goal, a scripting array programming language with a bytecode interpreter, inspired both by K and BQN (talked about it here a few times, but it's been a while), and featuring various SIMD optimizations (so decent performance, even though state-of-the-art is not a goal). There were a few aoc days I didn't solve, but not because of language issues: I just skip problems that take too much of my time. It was otherwise very nice for aoc, with parsing usually done in at most a couple of short lines, and the rest often under 5 lines of code including comments. I haven't encountered any bugs for months since v1.4.0 in Sep 2025 (except for fixing a small inconsistency in an edge-case), and relatively few and no major ones since the v1.0.0 (Nov 2024).
Not sure aoc problems are the best to understand the language: the docs and its tutorial are a better place to start, as they show more common problems (for the language) and use a more verbose style. The main difficulty with the language is to get used to the array programing paradigm if one isn't already, and being open-minded with respect to operator polysemy (a parallel with natural languages may help). As for annoyances, there aren't really significant ones I can think of for the things I do (mostly scripting, table manipulation and csv stuff), but I guess it's worth mentioning it's written in Go, so there is no ffi: using external libraries is done by extending the language through derived interpreters (that are very easy to create, but require a compilation step).
24
u/Athas Futhark Feb 01 '26
Yes, although you might of course run into bugs, or it may not be suitable for your programming interests.
Here: https://futhark-lang.org/
And it is also available in various package managers.
It is a data parallel functional programming language that makes parallel programming more convenient than in many other languages. It executes faster than most similar languages, and can for example run on GPUs.
Yes, although it is perhaps not the easiest way to do it, as data parallel programming is a somewhat different way to program. I did Advent of Code in it some years ago.
Most people write number crunching, but the only really important thing is that you should implement algorithms that are actually parallel. No language will parallelise that which is not of a parallel nature.
Tutorial/book, example programs, and reference manual.
It is a different paradigm (no pointer structures, no recursion), that requires a different way of thinking.
1
u/tobega Apr 05 '26
Tailspin-v0.5 is now ready to be tried
Find it at https://github.com/tobega/tailspin-v0.5/blob/main/README.md
The fundamental idea is to have the syntax match the programmer's intent as much as possible. This means:
Adventofcode is an excellent way to get a feel for the language.
There are some example programs in v0.5, here is an adventofcode solution integrating with java for handling the input. The language has the same basic structure as v0 so that reference documentation and those example programs will help, but it does not have all the features yet, and has added a few other features. My blog has posts about the language and philosophy behind it.
It's a work in progress, error messages may not always be clear, features may be missing and java integration (graalvm polyglot) is not fully interoperable.
1
u/FluxProgrammingLang Feb 01 '26
Yes, and not only is it compiled, it is matured enough to begin bootstrapping. There are very few minor bugs in edge cases you are not likely to encounter that are known and on the list to fix.
You can find it on GitHub here, Flux.
Flux was designed to have everything in one place (all the bells and whistles like array comprehension), with consistent grammar and syntax throughout. It allows you to express things you simply cannot in other languages.
You should try to write a text-based blackjack game to understand Flux and pick it up quicker. There is also support for multiple code editors like Sublime and VScode.
There are also many example programs which compile and run for you to observe the results.
Almost everyone finds this annoying but all statements must end with a semicolon. Compound statements like if-elif-else chains only have a semicolon after the final block such as if() {} else {}; because it is one whole idea, or compound statement. This even applies to the preprocessor. That’s how consistent the language is syntactically.
The only gotcha is the compiler will not stop you. It will allow you to write unsafe code with no warnings. Flux treats you as if you know what you’re writing. You can express things in Flux that you simply cannot in other languages such as int* px = @5; which allocates int(5) and gets a pointer to that address, no need to declare a variable first. While permitted, it is not advised for standard practice.
1
u/No-Trifle-8450 Feb 04 '26
Trying something in early stages needs more efforts.
3
u/catbrane Feb 02 '26
I made yet another Haskell-y language, except this one is the macro language for an image processing spreadsheet. It's maybe more like dynamically typed Miranda with a simple prototypical class system.
https://github.com/libvips/nip4
Running
nip4gets you the spreadsheet-like interface, but you can also runsnipto use it as a regular unix script interpreter.The underlying image processing library is libvips, so you can process huge images (I often work with 500,000 x 500,000 pixel scans) on modest hardware.
The GUI is interesting (I think): it's a class browser for the language, so you can open object instances and edit member functions. You can watch pixels change in downstream images as you type, since it's all live. You can even make recursive references between cells, bizarrely.
https://www.libvips.org/2025/03/20/introduction-to-nip4.html
3
u/[deleted] Feb 01 '26
It works (and very well), but you'd have a hard time trying to use it, for a variety of reasons:
However it will probably look simple enough to pick up. There are actually two languages with near-identical syntax, a systems language and a scripting one.
Since you mentioned Advent of Code, I just did the 2025 Day 1 task (part 1) and that is shown below using the scripting language (it got me a gold star!).
I've been in your position quite a few times, and it is incredibily frustrating trying to use an unfamiliar language. There are always two or three dozen fundamentals that you need to discover, hunt down, or work around.
Like, how do you suppress that newline between two
print()calls? How do you even print an integer? (Try it in Ada!) There should be cheat-sheets for each language.1
u/Relevant_South_1842 Feb 26 '26
No. But getting closer.
2
u/[deleted] Feb 06 '26
[removed] — view removed comment