Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
reuleaux opened this issue Mar 17, 2024 · 3 comments

Comments

@reuleaux
Copy link

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
Copy link
Author

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
Copy link
Owner

shirok commented Mar 17, 2024

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
Copy link
Author

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants