Common Lisp: equality functions explained (=, eq, equal, string= et all)
Lisp Journey Blog
by
1M ago
Common Lisp has various equality functions: =, eq, eql, equal, equalp, string-equal, char-equal… but what are the differences?? We tell you everything, with examples. As usual, this is best read on the Common Lisp Cookbook (a new page added on August, 2024). This is where it will get the updates. In short: = is only for numbers and equal is the equality predicate that works on many things. you can’t overload built-in operators such as = or equal for your own classes, unless you use a library ..read more
Visit website
Oh no, I started a Magit-like plugin for the Lem editor
Lisp Journey Blog
by
7M ago
Lem is an awesome project. It’s an editor buit in Common Lisp, ready to use out of the box for Common Lisp, that supports more languages and modes (Python, Rust, Elixir, Go, JavaScript, TypeScript, Haskell, Java, Nim, Dart, OCaml, Scala, Swift, shell, asm, but also markdown, ascii, JSON, HTML and CSS, SQL…) thanks to, in part, its built-in LSP support. I took the challenge to add an interactive interface for Git, à la Magit, because you know, despite all its features (good vim mode, project-aware commands, grep, file tree view and directory mode, multiple cursors, tabs…), there’s so much an ed ..read more
Visit website
Celebrating 1001 learners on my Common Lisp course ?
Lisp Journey Blog
by
8M ago
I just got 1001 learners on my Common Lisp course on Udemy. Thanks everybody for your support, here or elsewhere! Starting with CL was honestly not easy. The first thing I did was writing the “data structures” page on the Cookbook, bewildered that it didn’t exist yet. A few years and a few projects later, this course allows me to share more, learn more, have fun, and have some rewards to keep the motivation up ..read more
Visit website
Latest string manipulation functions in the STR library
Lisp Journey Blog
by
10M ago
We just released cl-str v0.21. It’s been a while since the last release, and many enhancements make it more useful than ever. Let’s review the changes, the newest first. But first, I want to you thank everyone who contributed, by sending pull requests or feedback. Special thanks to @kilianmh who suddenly appeared one day, helped with new features as well as grunt work, and who is now a co-maintainer ..read more
Visit website
Common Lisp on the web: enrich your stacktrace with request and session data
Lisp Journey Blog
by
1y ago
A short post to show the usefulness of Hunchentoot-errors and to thank Mariano again. This library adds the current request and session data to your stacktrace, either in the REPL (base case) or in the browser. TLDR; Use it like this: ;; (ql:quickload "hunchentoot-errors) (defclass acceptor (easy-routes:easy-routes-acceptor hunchentoot-errors:errors-acceptor) () (:documentation "Our Hunchentoot acceptor that uses easy-routes and hunchentoot-errors, for easier route definition and enhanced stacktraces with request and session data ..read more
Visit website
I published 17 videos about Common Lisp macros - learn Lisp with a code-first tutorial
Lisp Journey Blog
by
1y ago
For those who don’t know and who didn’t see the banner :D I am creating a Common Lisp course on the Udemy platform (with complementary videos on Youtube). I wanted to do something different and complementary than writing on the Cookbook. I worked on new videos this summer and I just finished editing the subtitles. I have added 17 videos (worth 1h30+ of code-driven content) about Common Lisp macros ..read more
Visit website
Pretty GUIs now: nodgui comes with a pre-installed nice looking theme
Lisp Journey Blog
by
1y ago
Being able to load a custom theme is great, but it would be even better if we didn’t have to manually install one. Well, recent changes in nodgui from yesterday and today just dramatically improved the GUI situation for Common Lisp[0]. nodgui now ships the yaru theme @cage commited the Yaru theme from ttkthemes in nodgui’s repository, and we added QoL improvements. To use it, now you can simply do ..read more
Visit website
Pretty GUI in Common Lisp with nodgui's Tk themes
Lisp Journey Blog
by
1y ago
Do you think Tcl/Tk GUIs are doomed to look outdated? Fear not! A treeview widget: The official example of Forest Light: The ttkthemes gallery Plus, Tk itself has a little choice of built-in themes: We can use these themes with nodgui, the Ltk fork. In June of 2020, @cage added a little function to load a .tcl file: (defun eval-tcl-file (file-path) "This function will feed the TCL interpreter with the contents of the file `path ..read more
Visit website
I18n in my Lisp web app with Djula templates and gettext
Lisp Journey Blog
by
1y ago
I finally added translations to my Lisp web app \o/ I wanted to do it with gettext and Djula templates. There seemed to be some support for this, but it turned out… not straightforward. After two failed attempts, I decided to offer a little 90 USD bounty for the task (I announced it on the project’s issues and on Discord, watch them out for future bounties ;) ). @fstamour took the challenge and is the person I’ll be eternally grateful for :D He kindly set up everything, answered my questions and traced down annoying bugs ..read more
Visit website
How to parse command line arguments in Common Lisp (bis)
Lisp Journey Blog
by
1y ago
In 2018, I wrote a blog post and the Cookbook page on how to build Common Lisp binaries, and how to parse command-line arguments with the unix-opts library. But since then, new libraries were created an they are pretty good! They are simpler to use, and have much more features. I had a good experience with Clingon: its usage is clear, its documentation is very good, it is very flexible (it has hooks and generic functions waiting to have an :around method) and @dnaeon is not at his first great CL project ..read more
Visit website

Follow Lisp Journey Blog on FeedSpot

Continue with Google
Continue with Apple
OR