What do you do for inspecting (nested) hash tables in Common Lisp/SBCL? Is there a good lib for pretty-printing such things?
#CommonLisp #sbcl
What do you do for inspecting (nested) hash tables in Common Lisp/SBCL? Is there a good lib for pretty-printing such things?
#CommonLisp #sbcl
> even if #sbcl is not your deployment target, you can still use its static type checking
Most definitely so.
And using multiple implementations for development, debugging and exploratory purposes is a good practice in general.
Play Static Games, Win Static Prizes https://screwlisp.small-web.org/programming/play-static-games-win-static-prizes/
#staticTyping #typechecking #staticProgramAnalysis #commonLisp #lisp #sbcl #series #acl2
In which I look at modern and to some extent historical static program analysis popularly used with common lisp #programming.
I accidentally make the really good point that even if #sbcl is not your deployment target, you can still use its static type checking, for which I work an example.
#lazyEvaluation and formal theorems are also included.
[#SBCL disassembly quirk?]
@simendsjo @screwlisp @ksaj @rwxrwxrwx @jackdaniel @aleteoryx
> someone starting disassemble in sbcl doesn't give exactly what sbcl will run, and that there will be extra instructions for type checking out similar
Any pointer or trail?
I'd rather not guess what exactly the whole picture may be.
(I read the second word as "stating" and the last but one as "or".)
I both was running late with the (admittedly complex) announcement and forgot to provide the https://anonradio.net:8443/anonradio link. If you could #boost ^ I'd be greatful
@kentpitman @prahou @pesco @dougmerritt @mdhughes @nosrednayduj @sacha @hairylarry
Also I will re: @hajovonta being totally right about #sbcl being high performance.
trolling chatgpt, asking it to provide an example of how to generate interface code from a dumb c++ class to #sbcl without external libraries
yep almost a quarter of a century after the y2k non-apocalypse 'state of the art' still cant figure out how to get good ol' c++ to play well 50+ yr old s-expression engines
(ql:quickload "mcclim")
(ql:quickload "clim-examples")
(clim-demo:demodemo)
Fascinating. A Common LISP GUI library. Installed with Quicklisp on SBCL.
@Regenaxer @borkdude @vindarel Thanks! Right, so my comparable in-REPL times for iterative factorial 1000 are
#PicoLisp: (bench (apply * (range 1 1000)))
0.000 sec
#Clojure: user=> (time (apply *' (range 1 1000)))
"Elapsed time: 2.428199 msecs"
#SBCL: CL-USER[1]: (time (apply #'* (alexandria:iota 1000 :step 1)))
Evaluation took:
0.000 seconds of real time
0.000015 seconds of total run time (0.000000 user, 0.000015 system)
100.00% CPU
45,990 processor cycles
0 bytes consed
#common #lisp noob question: Is there a way to use libraries like Drakma on non-pthreaded implementations of #commonlisp? Bordeaux-threads fails to install on GNU Clisp or #SBCL on #NetBSD (too old?) and I'm not sure why it needs threading when I do simple one-after-the-other HTTP requests anyway!
Help please!
The operating system is a Debian trixie derivative. Out of the box, it has Firefox 131.0.2 and Xfce 4.18. apt-get install build-essential
gave me gcc-14; other items in the repos: nodejs 20.17.0, emacs 29.4, golang 1.23. Elixir's still at 1.14.0 (aside: erlang won't get a JIT for RISC-V any time soon), Python's at 3.12, rustc 1.80.1 (but of course you can use rustup).
Anyway, on to some benchmarks. glmark2-es2 reports a score of 1714, which is surprisingly 38% higher than @geerlingguy 's benchmark of the HiFive Premier P550.
My real test is compiling sbcl; it's not in Debian or Ubuntu's repositories for RISC-V. I bootstrap it with GNU CLISP, and then rebuild it with itself, with sh ./make.sh --with-sb-doc --without-sb-thread
. Unfortunately, I believe the build is single-core; I'm not sure if it's possible to use all the cores on my system for it.
Times to rebuild sbcl with itself, including modules:
Lichee Pi 3A (Ubuntu 24.04 derivative): 30 minutes
VisionFive 2 (Ubuntu 24.04): 20 minutes
Megrez (Debian trixie derivative): 12 minutes
Ryzen 9900x (Ubuntu 24.04): 1 minute
So, progress, but a long way to go.
(Incidentally, both the Megrez and my desktop have 6400 memory.)
Built-in #linux #info documentation: #commonlisp (#sbcl) vs #scheme (#guile)
what I don't like about #cl comparing to #guile is lack of linux info documentation coming with the standard #guix `sbcl` package
I've tried looking for separate package with info doc on #sbcl, but coudn't find it. While #guile built-in guix documentation is very rich.
Maybe I'm not getting something? Help?
I wrote a better #medium #tutorial #article #parody of #python #programming #tutorials in which I hilariously misunderstood python to be a reference to #sbcl #commonLisp #lisp (heir to CMUCL python).
I also address two fascinating medium trends I discovered.
1. The intense swapping-whispered-ghost-stories about lisp by scientist writers
2. Most articles named "Free Python Tutorial!" have no code, but links to purchasing training.
I eventually found "11 one-liners"
my current little joys besides my family and kids are. Books about #lisp, common lisp itself with #sbcl, #xfce , #linux #debian and old school server side rendered #web sites. And all the web standards there are like html css and js. We have come a long way to have those great tech that lasted so long. I'm really thankful for all those projects and effort that got into it. Please lets make those tools accessible for everyone and simple in design. All that comes after us will have a bad time if we embrace all this complex cloud and build tools to just build simple software. Software is made for humans not mashines. Thanks for listening stay safe enjoy life and the little things and all that is.
🔥 🚀 #hackernews now runs on #SBCL
> I've been working on an implementation of Arc in SBCL which is much faster and also will easily let HN run on multiple cores. It's been in the works for years, mainly because I rarely find time to work on it, but it's all pretty close to done.
[dang, 2022]
> The production website of HN now runs on top of SBCL (I've got the confirmation from one of the moderators). It uses Clarc, an Arc implementation in CL.
[/u/lispm, 2025/01/31]
Hey, fellow #sbcl #commonlisp + #guix + #gtk developers/users: how do I fix "Typelib file for namespace 'Gtk', version '4.0' not found" error using
```
(propagated-inputs
(list
gtksourceview
sbcl-cl-gtk4
sbcl-cl-glib
gtk
(list glib "static")))
```
in my <package>.scm definition and `:cl-gtk4` `:cl-glib` in my `defsystem-depends-on`
I dove into the #SBCL #lisp compiler’s internals today for a course. It’s amazing what you can learn in a single day of research with a proper goal. Although a semester of compilation courses prepared me for this.
I think I’ll dive into the #FreeBSD kernel during winter break. I already know the structure as I’ve debugged my kernel a few times.
#adventofcode #adventofcode2024 Day 1 #CommonLisp
#Symbolics #Genera, #SBCL and #LispWorks on the new Mac mini