Live data from Hacker News

Show HN: Joyride: script VSCode like Emacs but using Clojure

news.ycombinator.com

31–40 of 46 posts

Re: Show HN: Joyride: script VSCode like Emacs but using Clojure

#33
post #24
post #9

That looks promising, but I have a feeling that vscode doesn't offer as much options to hook into the editor as emacs does. E.g., one of the first emacs scripts I wrote added the next number to the current line. It contains something like (insert (number-to-string (setq counter (+ 1 counter)))) Is that kind of thing possible too?

> That looks promising, but I have a feeling that vscode doesn't offer as much options to hook into the editor as emacs does. Agreed on both counts. But I don't think it's possible to get to Emacs' level of extensibility unless you adopt its philosophies - both legal and technical - from the outset. The reason I say this is that Emacs isn't just extensible in Emacs Lisp, it's very extensively written in Emacs Lisp. M…

It is definitely true that Joyride can't make VS Code as fully extensible as Emacs is. VS Code is not designed this way. And also some extensibility from an extension need to come from an extension manifest when an extension loads, so Joyride can't declare new commands for instance. I'm guessing that is the simplest thing in Emacs.

Having, draw a rendom number out of a hat, 50% of Emacs extensibility at your REPL is fantastic, and worth pursuing. Joyride can do everything a VS Code extension can do, except the things i mentioned above, and anyone who has used some VS Code extensions knows that that is a lot.

However, the self documenting part described above is not out of reach. Most of the code building up the VS Code API is open source. Same goes for many of the extensions. Looking up and navigating to any of that code is possible. Perhaps a lot of work would need to be put in, but it is possible.

Re: Show HN: Joyride: script VSCode like Emacs but using Clojure

#35
post #33
post #24

Earlier quoted context omitted.

> That looks promising, but I have a feeling that vscode doesn't offer as much options to hook into the editor as emacs does. Agreed on both counts. But I don't think it's possible to get to Emacs' level of extensibility unless you adopt its philosophies - both legal and technical - from the outset. The reason I say this is that Emacs isn't just extensible in Emacs Lisp, it's very extensively written in Emacs Lisp. M…

It is definitely true that Joyride can't make VS Code as fully extensible as Emacs is. VS Code is not designed this way. And also some extensibility from an extension need to come from an extension manifest when an extension loads, so Joyride can't declare new commands for instance. I'm guessing that is the simplest thing in Emacs. Having, draw a rendom number out of a hat , 50% of Emacs extensibility at your REPL is…

And when/if VS Code decides to allow new commands without the manifest (maybe with a confirmation popup), Joyride is super well positioned as a way to customize your VS Code (well, from users that don't hate parens).

Re: Show HN: Joyride: script VSCode like Emacs but using Clojure

#37
post #20

Earlier quoted context omitted.

Do you ever sleep? Seriously; your productivity is insane.

Tbh, the last nights have been less about sleep and more about hacking on Joyride. =) But usually I do get sleep. The question we should ask is if borkdude sleeps? He's doing about 100X as much as I do. Maybe there are hundreds of borkdudes.

Well, that goes without saying. We all know that borkdude is a robot.

Re: Show HN: Joyride: script VSCode like Emacs but using Clojure

#38
post #3

As the co-creator here I'd like to add that Joyride is taking the very first baby steps here. We hope a lot of people want to try it and provide feedback to inform our next steps. NB: The video has a target audience of people who know Clojure and its strengths. Especially how the REPL is used. I hope HN will see beyond the parens. =) It should make some sense anyway. Especially if you have some Emacs scripting experi…

Fantastic work on the extension. In terms of ideas for next steps, my suggestion would be to consider automating the process of creating and invoking cljs files. One big use I can see for this is creating ad hoc scripts to do stuff in the editor. If you could pop up an editor via some shortcut that would allow you to create a script and bind it to a shortcut, that would make using Joyride really seamless.

Re: Show HN: Joyride: script VSCode like Emacs but using Clojure

#39
post #34

Definitely understand the need and looks good, but can't help but feel this is like taking a fine steak and eating it at McDonalds.

Which fine steak would that be?

The steak is the lisp interpreter as IDE scripting runtime.

Re: Show HN: Joyride: script VSCode like Emacs but using Clojure

#40
post #35
post #33

Earlier quoted context omitted.

It is definitely true that Joyride can't make VS Code as fully extensible as Emacs is. VS Code is not designed this way. And also some extensibility from an extension need to come from an extension manifest when an extension loads, so Joyride can't declare new commands for instance. I'm guessing that is the simplest thing in Emacs. Having, draw a rendom number out of a hat , 50% of Emacs extensibility at your REPL is…

And when/if VS Code decides to allow new commands without the manifest (maybe with a confirmation popup), Joyride is super well positioned as a way to customize your VS Code (well, from users that don't hate parens).

=)

Writing that made me challenge it. What if it is possible? https://github.com/BetterThanTomorrow/joyride/discussions/14

Post reply on HN