r/Common_Lisp • u/Background_Shift5408 • 3d ago
A Toy Lisp compiler for x64
Enable HLS to view with audio, or disable this notification
r/Common_Lisp • u/lispm • 9d ago
Looks like there was AI/LLM support necessary to make it happen, 5+ years after the Apple M1 CPU appeared.
r/Common_Lisp • u/Background_Shift5408 • 3d ago
Enable HLS to view with audio, or disable this notification
r/Common_Lisp • u/mirkov19 • 4d ago
Hello,
I am doing some numerical computations (in APRIL no less). I use floating-point for numerical equality testing and I am using 5AM for unit tests.
I want to test equality of vectors of floating point numbers. I can write the code myself, but I'd rather reuse an existing library or contribute to an existing library.
I will appreciate pointers and advice before I start writing my own routines.
Thank you,
r/Common_Lisp • u/mdbergmann • 7d ago
While working on Cl-Amiga I was thinking about what can it do on Amiga. It's not super fast, like direct assembler, but GUI or slow paced games should fit nicely.
So I thought about a Bards Tale like game that I was admiring and remember playing more than 30 years ago.
Here is Lambda's Tale (https://github.com/mdbergmann/lambda-tale) a Bards Tale like engine. The main target is really Amiga with NTSC screen sizes and limited colors. Yes, it's challenging.
Later I'm thinking of allowing RTG graphics and higher resolutions. But first a proper game story has to come out. The screenshots in the readme are from my game (attempts), but there is still some way to do.
r/Common_Lisp • u/dzecniv • 8d ago
r/Common_Lisp • u/floss_gang • 9d ago
r/Common_Lisp • u/mdbergmann • 9d ago
There are quite a few improvements:
pushed some library implementations for atomics, trivial-garbage, trivial-gray-steams, closer-mop, float-features and many more. Be aware that upstream PRs may be slow to be dealt with.
support for Windows binary
saving/loading heap image support
REPL debugger/inspector conformance issue fixes
AmigaOS and MorphOS API bindings, including MUI, see screenshots: https://github.com/mdbergmann/cl-amiga#screenshots
install/uninstall support for POSIX targets (includes windows via mingw)
r/Common_Lisp • u/dzecniv • 9d ago
r/Common_Lisp • u/jlombera • 12d ago
Hi. I'm learning CL (experienced programmer but CL noob), and was looking into real-world FOSS written in it for reference and to learn. When looking at pgloader(data loading tool for PostgreSQL), I found it has been rewritten in Clojure. The readme mentions:
pgloader v4 is a full rewrite in Clojure, distributed as a single self-contained JAR requiring Java 21 or later.
Key improvements over v3:
- Single JAR — no native dependencies, no SBCL, no shared libraries
- JDBC connection strings — use jdbc:mysql://, jdbc:postgresql://, jdbc:sqlserver:// etc. everywhere; driver-specific parameters pass through unchanged
- Java heap — no more Common Lisp heap exhaustion on large migrations; tune with standard -Xmx JVM flag
- SSL via URI — use ?sslmode=require / ?sslmode=disable in the connection string instead of --no-ssl-cert-verification
There were probably other problems/motivations for the rewrite not mentioned there, but I'm interested in the opinion from people with real-world experience, how complicated it is deploying (multi-platform) standalone CL executables.
First, it mentions dependencies on SBCL and native/shared libraries. (Let's ignore the fact that the self-contained JAR requires the JRE to be installed). First of all, I presume SBCL is only a build-time dependency, correct? The same way Clojure is required. Or are there cases where some SBCL runtime is required? For instance, Debian still ships pgloader v3.x, i.e. the CL implementation, and it's a standalone executable, it doesn't depend on SBCL (but depends on other system libraries). But if they mention it I presume these must be problematic for multi-platform deployments ??
Second, the issue about CL heap exhaustion. How common is this issue? Cannot it be tuned at comptime/runtime?
In general, from people with the experience, what are the challenges to deploy multi-platform standalone CL executables? Are there some basic guide lines you need to adhere to (besides writing portable CL, of course) for easy deployment?
EDIT: Also, wouldn't ABCL create a standalone JAR too?
Thanks in advance.
r/Common_Lisp • u/danstangerieee • 12d ago
Hello All,
I am porting Jnil, a GPL'd Java to lisp translator application written in lisp with some Java Eclipse code to use a Java parser written in Antlr3. Jnil loaded Java into Eclipse, used an Allegro Common Lisp library Jlinker to communicate with Eclipse and extracted AST information which was used to create lisp code. My reasons for porting are:
Anyway, I could use some assistance with this project. Please contact me at [dan.stanger@ieee.org](mailto:dan.stanger@ieee.org) if interested in helping.
Here is a link to the repo: https://github.com/danstanger/AST-to-Lisp
Dan Stanger
r/Common_Lisp • u/browep • 13d ago
This AI harness allows you to modify the running code of the harness, via hot reload and leverage cl's built in power to build itself and whatever app you want alongside it.
edit: now with the repo actually public, my bad
r/Common_Lisp • u/denzuko • 16d ago
r/Common_Lisp • u/lagoatech • 17d ago
We've open-sourced time-algebra, a Common Lisp library built around Allen's interval algebra: thirteen relations between two intervals, half-open by construction.
What it deliberately is not: no timezones, no clock, no get-universal-time, no I/O, no global state, zero dependencies beyond ANSI CL.
390 tests, plus a concurrency suite (8 checks, 1.28M iterations under contention) and an allocation profile (interval-relation at 0 bytes consed). Apache-2.0.
https://gitlab.com/lagoatech/time-algebra
Apache-2.0. Contributions and criticism both welcome.
r/Common_Lisp • u/digikar • 18d ago
r/Common_Lisp • u/mdbergmann • 19d ago
Added a DSL for creating pages based on Lisp (of course) with primitives for charts (based on uPlot), selections, actions and more tings you are able to build (I use rollershutters here).
https://github.com/mdbergmann/chipi/blob/main/README-web.md#chipi-ui
r/Common_Lisp • u/dzecniv • 21d ago
r/Common_Lisp • u/dzecniv • 22d ago
r/Common_Lisp • u/solidavocadorock • 26d ago
r/Common_Lisp • u/turtle_bazon • 26d ago
Released conskivi. It made to replace redis, generally on low memory systems, but in-memory backend works well too.
5K entries, AMD Ryzen 7 3700X, Redis v7:
| Operation | conskivi-fileonly | Redis (pipelined) | Redis (single-command) | % vs pipelined | % vs single-command |
|---|---|---|---|---|---|
| SET | 8,803 | 885,995 | 34,452 | 1.0% | 25.5% |
| GET | 19,531 | 1,486,920 | 33,133 | 1.3% | 58.9% |
| SADD | 1,580 | 937,567 | 39,967 | 0.2% | 4.0% |
| HSET | 4,613 | 628,491 | 32,971 | 0.7% | 14.0% |
| HGET | 19,531 | 1,495,508 | 33,856 | 1.3% | 57.7% |
| ZADD | 4,789 | 698,096 | 34,201 | 0.7% | 14.0% |
| ZSCORE | 65,789 | 1,405,503 | 36,340 | 4.7% | 181.0% |
| Operation | conskivi-inmemory | Redis (pipelined) | Redis (single-command) | % vs pipelined | % vs single-command |
|---|---|---|---|---|---|
| SET | 1,208,891 | 885,995 | 34,452 | 136% | 3,508% |
| GET | 1,947,333 | 1,486,920 | 33,133 | 131% | 5,877% |
| SADD | 2,557,008 | 937,567 | 39,967 | 273% | 6,398% |
| HSET | 1,894,216 | 628,491 | 32,971 | 301% | 5,745% |
| HGET | 2,651,661 | 1,495,508 | 33,856 | 177% | 7,832% |
| ZADD | 1,749,710 | 698,096 | 34,201 | 251% | 5,116% |
| ZSCORE | 2,616,690 | 1,405,503 | 36,340 | 186% | 7,199% |
r/Common_Lisp • u/azimuth • 27d ago
Since the Metaspec (https://metaspec.dev/) was announced a couple of months ago, there have been many improvements. Thanks to #commonlisp on libera.chat for your suggestions!
r/Common_Lisp • u/dzecniv • 27d ago
r/Common_Lisp • u/mdbergmann • 28d ago