shirok / Gauche

Scheme Scripting Engine
https://practical-scheme.net/gauche
Other
823 stars 82 forks source link

wish list: Janet's scripting syntax for gauche perhaps? (i.e. jpm install sh) #1002

Open reuleaux opened 8 months ago

reuleaux commented 8 months ago

This is a wish list item (not a bug): I really like Janet's syntax for scripting (a DSL i.e.), in steps: install/read about Janet, and then, with the Janet package manager: jpm, installed with

make install-jpm-git

install sh now:

.../jpm install sh

Find further info/examples about Janet (and sh) in Janet for Mortals, and in particular in the Scripting chapter there: ...some links to the original work by Andrew Chambers, and follow the link to his blog post from there (and by the way: don't confuse this sh package, with the other one in spork/sh)

Maybe such a scripting DSL could be implemented in Gauche as well? (it makes scripting in Janet a joy!). - Just an idea. - not that I have that much time to implement it myself :-(

Thanks. -Andreas

reuleaux commented 8 months ago

Hm, now that I take a closer look again (not having used gauche for a while), I see that do-process is quite capable. - So my bad (and sorry for the noise), if this kind of writing scripts in a simple manner is already possible in gauche. I do think however, that janet is quite interesting a language.

shirok commented 8 months ago

Yeah, I think gauche.process has enough features, but I've been putting off writing a DSL layer for succinct shell-scripting. Scsh has a kind of that, but I'm not very convinced it's ideal. I'll check Janet out.

reuleaux commented 8 months ago

Great! - And I will some comments about Janet some time (when I have a little more time - and when you have had a look): things that I like about Janet (some fresh approach to Lisp ...), and things that I don't like so much (things that are better in your Gauche, as I think) - which makes me think about "my ideal (Lisp-) language": a mixture of Janet & Gauche actually, written not in C but in Hare - but I doubt I will have the time to start such a project (well: maybe some time - this would be interesting in any case).