Anybody remember scsh? Seems a better integration of the shell and Lisp bits if you ask me (although this is a neat hack, don't get me wrong).
scsh was definitely awesome, and it's not really practical in Common Lisp[0], due to Lisp's unfortunate choice to upcase all symbols. Made sense at the time, but in retrospect I think it was a mistake. It's a real pity that Franz's modern mode[1] didn't become more popular. [0]: it's possible , just ugly as hell because either one would have stuff like (|ls| |etc|) or one would have stuff like (|LENGTH| …). [1]: http…
SHCL – An unholy union of Posix shell and Common Lisp
21–28 of 28 posts
Re: SHCL – An unholy union of Posix shell and Common Lisp
#22Idk about “unholy”. I wish I could make eshell (in Emacs) my full time shell, but certain things like nvm don’t work, etc.
nvm sucks! try n! https://github.com/tj/n/ seriously, it's so much tidier!
Where I work we use the nix package manager. Making sure your team is using the same version of node is just a few lines of config away:
with (import {});
mkShell {
buildInputs [ nodejs-8_x ];
}
Pinning the whole package tree is just a few more lines away and offers you full reproducibility but I omitted it for brevity.Another upside is that this approach is language agnostic and works for all tools packaged in the nix package repository.
Re: SHCL – An unholy union of Posix shell and Common Lisp
#23Anybody remember scsh? Seems a better integration of the shell and Lisp bits if you ask me (although this is a neat hack, don't get me wrong).
I used it a lot and saved me lots of headhaches. It's a pity that the project was abandoned.
Re: SHCL – An unholy union of Posix shell and Common Lisp
#24Anybody remember scsh? Seems a better integration of the shell and Lisp bits if you ask me (although this is a neat hack, don't get me wrong).
Re: SHCL – An unholy union of Posix shell and Common Lisp
#25Now only if there was a Haskell shell (Hashell?) with monads as UNIX pipes...
Re: SHCL – An unholy union of Posix shell and Common Lisp
#26Anybody remember scsh? Seems a better integration of the shell and Lisp bits if you ask me (although this is a neat hack, don't get me wrong).
Re: SHCL – An unholy union of Posix shell and Common Lisp
#27Anybody remember scsh? Seems a better integration of the shell and Lisp bits if you ask me (although this is a neat hack, don't get me wrong).
It never got readline/libedit support AFAIK. I started once but it never got ready.
Re: SHCL – An unholy union of Posix shell and Common Lisp
#28Earlier quoted context omitted.
scsh was definitely awesome, and it's not really practical in Common Lisp[0], due to Lisp's unfortunate choice to upcase all symbols. Made sense at the time, but in retrospect I think it was a mistake. It's a real pity that Franz's modern mode[1] didn't become more popular. [0]: it's possible , just ugly as hell because either one would have stuff like (|ls| |etc|) or one would have stuff like (|LENGTH| …). [1]: http…
You can use Readtable case :preserve to avoid the ugly-as-hell stuff [1]. Some libraries do this, for example KM [2] [1] http://clhs.lisp.se/Body/23_ab.htm [2] http://www.cs.utexas.edu/users/mfkb/km.html
(DEFUN hello-world ()
(FORMAT T "Hello, world!~%"))