Fork me on GitHub
#calva
<
2022-04-22
>
borkdude18:04:20

@pez Note sure if this is useful or not, but I got nbb working in a VS Code extension.

wow 1
borkdude18:04:46

I'll make a slightly more compelling example ;)

pez18:04:51

This is compelling enough for me. 😃

pez19:04:43

But, please don't let that stop ya!

pez19:04:02

I've also started experimenting a bit.

pez19:04:38

That is so awesome. Thanks for the inspiration!

rayat19:04:54

@pez so this is different from Calva's existing arch in that it doesn't require a compilation step right? Also what's the difference between sci and nbb? Forgive the ignorance pls

borkdude19:04:24

@U037TPXKBGS good question. SCI is the Small Clojure Interpreter which powers multiple projects: babashka, nbb, 4everclojure, etc. So it is the library that enables interpretation (clojure evaluation) but each environment requires its own stuff, e.g. nbb is SCI + node.js specific stuff

thanks3 1
borkdude19:04:44

For a VSCode extension you might be better off using SCI + VSCode specific stuff rather than using nbb directly, although it's worth a try.

1
borkdude19:04:24

Nbb is set up as an ES6 project using shadow-cljs target esm and this may not play so well with VSCode / electron, although I have gotten it to work using webpack.

1
borkdude19:04:56

@pez was trying to build an extension using CLJS with nbb as a dependency. For this to work you must also start with the shadow-cljs config that nbb has, I'd say (target esm for sure)

rayat20:04:45

I'm curious then why @pez is exploring nbb vs sci+<something vscode specific>, or rather why one might be better off either way. Thanks!

borkdude20:04:35

Probably just because we can :)

❤️ 1
rayat20:04:26

@pez i wonder if this might have something to do with portal

pez20:04:07

Not related to portal. It's something we've been discussing a while here and there and now both @U04V15CAJ and I had started to experiment with it almost at the same time. I see it as a sign. 😃

1
pez20:04:41

That I started with creating an extension using ClojureScript is not really related either. That's more a matter of me being addicted to the developer ergonomics that the REPL gives me.

❤️ 1
😮 1