8 ms·
Controlling the terminal with Common Lisp (2020)
- deleted 5y ago[deleted]
- cain 5y agoCool! I went over something similar in an old blog post (https://joellord.dev/blog/posts/Build-a-Text-Editor-in-Lisp---Part-2.html https://joellord.dev/blog/posts/Build-a-Text-Editor-in-Lisp-...) only I did the C portion in Common Lisp too, using CFFI + Grovel.
- rcgorton 5y agoUh, Lisp is NOT capable of doing command line support WITHOUT C interfaces? REALLY?
- WalterGR 5y agoLots of great articles about Common Lisp on that site: https://turtleware.eu/ https://turtleware.eu/ The second part of the article was submitted about a year ago: https://news.ycombinator.com/item?id=23576447 https://news.ycombinator.com/item?id=23576447
- jackdaniel 5y agoThanks!
- tempodox 5y agoWow, mouse-over the Lisp code in this article. The coloring of nested expressions is awesome. I wish my editor could do that.
- johnisgood 5y agoYou mean the background? Because otherwise I do have such a thing in Emacs, it is called Rainbow Delimiters.
- tempodox 5y agoVim has something analogous, as “static” syntax coloring, but my vim is mouse-agnostic and thus can't react to mouse-overs.
- ootsootsoots 5y agoJust 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.
- cyberbanjo 5y agoI 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.html 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.
- openfuture 5y agoYou can also click the functions to jump to definition (they are not only colored, they are also hyperlinks!)
- agumonkey 5y agothat is cute, next thing you know and it will launch a guile.js repl to run sandboxed tutorials
- deleted 5y ago[deleted]