joyride

Sunny Cat 2023-07-10T03:49:01.086539Z

I have a few questions about the design of joyride: 1. What is the expected way to use a library that is not built into joyride (e.g. cheshire)? 2. What is the rationale for building joyride on top of SCI, instead of the full ClojureScript compiler?

pez 2023-07-12T06:25:13.219119Z

Hi! To use a library that is not included you’ll need to use the source of the library And then if the source uses something not included, the same.

pez 2023-07-12T06:34:19.105439Z

Using the ClojureScript compiler for Joyride would make it dependent on Java. Joyride is standalone and has no dependencies. Using SCI the scripts are running directly in the node process that the Joyride VS Code extension runs in.

phronmophobic 2023-07-12T18:04:01.713579Z

> dependent on Java There are other trade-offs involved, but the clojurescript compiler can be self hosted (ie. not dependent on java). https://clojurescript.org/guides/self-hosting.

pez 2023-07-12T18:18:08.504479Z

I considered self hosting, but it seemed to me it is quite unsupported/abandoned. Doesn’t mean it is, but anyway, I was much more comfortable with the SCI path. And as things happened @borkdude was also experimenting with scripting VS Code, and things can’t get better supported than that. 😀

borkdude 2023-07-12T18:19:28.994549Z

self-hosted is 8mb of JS or so, more if you include libraries. it's a bit much

phronmophobic 2023-07-12T18:28:33.568439Z

Sure. I'm not trying to second guess any decisions by #joyride. I think there are other situations where self hosted clojurescript is a reasonable option and it's not considered because it's less well-known.

borkdude 2023-07-12T18:30:49.281149Z

sure