News for hackers. Stuff that matters.
Re:Controlling the terminal with Common Lisp (2020) by WalterGR on Sunday October 24, 2021 @01:05PM (#28979797)
Lots of great articles about Common Lisp on that site: https://turtleware.eu/

The second part of the article was submitted about a year ago: https://news.ycombinator.com/item?id=23576447

Re:Controlling the terminal with Common Lisp (2020) by jackdaniel on Sunday October 24, 2021 @01:08PM (#28979835)
Thanks!
Re:Controlling the terminal with Common Lisp (2020) by tempodox on Sunday October 24, 2021 @01:28PM (#28980074)
Wow, mouse-over the Lisp code in this article. The coloring of nested expressions is awesome. I wish my editor could do that.
Re:Controlling the terminal with Common Lisp (2020) by cyberbanjo on Sunday October 24, 2021 @02:46PM (#28980784)
I noticed something similar recently in the GNU Guix docs, try mousing over the S-expressions

https://guix.gnu.org/manual/en/html_node/Database-Services.h...

Your editor probably can do that! Emacs and VSCode at least both can. Search for 'rainbow blocks' or 'rainbow parens' or 'rainbow delimiters' extensions.

Re:Controlling the terminal with Common Lisp (2020) by openfuture on Sunday October 24, 2021 @04:13PM (#28981439)
You can also click the functions to jump to definition (they are not only colored, they are also hyperlinks!)
Re:Controlling the terminal with Common Lisp (2020) by agumonkey on Sunday October 24, 2021 @05:07PM (#28981931)
that is cute, next thing you know and it will launch a guile.js repl to run sandboxed tutorials
Re:Controlling the terminal with Common Lisp (2020) by register on Sunday October 24, 2021 @03:00PM (#28980883)
This is the standard coloring that comes with Coleslaw which is a Jekyll alternative written in common lisp: https://github.com/coleslaw-org/coleslaw. I believe the website is using that or at least it uses one of his default themes.
Re:Controlling the terminal with Common Lisp (2020) by ootsootsoots on Sunday October 24, 2021 @02:46PM (#28980782)
Just adding tapping on it does the same in Firefox on iOS

Something like an auto-select of the code that makes up the entire scope for the line in question.

Gonna have to see if I can get vim to do that.

Re:Controlling the terminal with Common Lisp (2020) by johnisgood on Sunday October 24, 2021 @03:30PM (#28981116)
You mean the background? Because otherwise I do have such a thing in Emacs, it is called Rainbow Delimiters.
Re:Controlling the terminal with Common Lisp (2020) by tempodox on Sunday October 24, 2021 @04:53PM (#28981794)
Vim has something analogous, as “static” syntax coloring, but my vim is mouse-agnostic and thus can't react to mouse-overs.
Re:Controlling the terminal with Common Lisp (2020) by agumonkey on Sunday October 24, 2021 @04:50PM (#28981770)
It's an old css trick IIRC nested :hover rules
Re:Controlling the terminal with Common Lisp (2020) by cain on Sunday October 24, 2021 @06:49PM (#28982664)
Cool! I went over something similar in an old blog post (https://joellord.dev/blog/posts/Build-a-Text-Editor-in-Lisp-...) only I did the C portion in Common Lisp too, using CFFI + Grovel.
Re:Controlling the terminal with Common Lisp (2020) by WalterGR on Sunday October 24, 2021 @08:49PM (#28983396)
Nice. Is there going to be a part 3 of your series?
Re:Controlling the terminal with Common Lisp (2020) by cain on Monday October 25, 2021 @07:16AM (#28986475)
I hope so. I have a part 3 and 4 written locally: I just need to find time to edit them.