[HN Gopher] Script Lisp
___________________________________________________________________
Script Lisp
Author : rcarmo
Score : 66 points
Date : 2021-02-05 13:04 UTC (1 days ago)
(HTM) web link (sharpscript.net)
(TXT) w3m dump (sharpscript.net)
| mythz wrote:
| Some unique features about #Script Lisp:
|
| - It can be embedded in the same page with other #Script
| templating & JS Script languages where they're all parsed into
| the same AST tree & evaluated as one [1]
|
| - As it requires no build or compilation it can be easily
| embedded into .NET Apps to script Apps, e.g. here's a Unity3D
| example using Lisp to script Unity objects in a running game [2]
|
| - There's a TCP Lisp REPL plugin you can open in .NET Apps to
| allow runtime scripting of a live running app, e.g for inspecting
| internal state or invoking remote functionality [3]
|
| - It has a cool "watch" mode that's great for exploratory
| programming that revaluates on save, where you can do tasks like
| query RDBMS's, File Systems (inc. AWS S3 / Azure Blob), run shell
| scripts, query JSON APIs, etc [4]
|
| - Can play with it in its Live Lisp LINQ Examples [5]
|
| [1] https://sharpscript.net/docs/syntax#multi-language-support
|
| [2] https://sharpscript.net/lisp/unity
|
| [3] https://sharpscript.net/lisp/#techstacks-tcp-lisp-repl-demo
|
| [4] https://sharpscript.net/lisp/#run-and-watch-lisp-scripts
|
| [5] https://sharpscript.net/linq/restriction-operators?lang=lisp
| thom wrote:
| Another increasingly accomplished and explicitly Clojurey effort
| is Babashka:
|
| https://github.com/babashka/babashka
| newlisper wrote:
| I have given up on Clojure, life is too short to suffer the
| frustrations of Java libraries.
| cyberbanjo wrote:
| The comment your replying to is about a JVM-less Clojure
| implemtation
| mark_l_watson wrote:
| Indeed! Babashka is such a cool project. SBCL save-image
| stand-alone command line apps start very quickly, instantly
| it seems, but still I think that Babashka scripts or apps
| even start faster.
| newlisper wrote:
| GraalVM is based on the JVM, it consumes Java libraries...
| m463 wrote:
| related, this works, even on macos:
| #!/usr/bin/emacs --script (message "hello, world")
| neilv wrote:
| I once did that for Web CGI with pretty elaborate HTML that
| used pulled data. Doing Web CGI in Emacs Lisp at the time was
| even much more productive than in Perl.
|
| If someone is trying to measure the executable startup
| performance, check that you've disabled loading of non-base
| Emacs Lisp code you don't need, and also make sure that your
| application code is byte-compiled on disk. (Usually, compiling
| the base Emacs binary involves/d loading a lot of Lisp code and
| doing whatever bytecompiling it did in that version, and then
| saving a core image to disk, so that you don't have to do all
| that expensive stuff. But if your distro is forcing loading a
| lot of additional Emacs Lisp code at each startup, you'll take
| a big hit. There are command line arguments to disable the
| site-specific and account-specific Emacs Lisp loading.)
| jinwoo68 wrote:
| Sadly Apple doesn't ship emacs anymore with macos. Of course
| you can (should?) install yourself.
| m463 wrote:
| Wow, really?
|
| I always install from https://emacsformacosx.com/ and didn't
| check on the text-only emacs.
|
| EDIT: Catalina killed it. Apple disappoints me.
___________________________________________________________________
(page generated 2021-02-06 23:01 UTC)