Fork me on GitHub
#nbb
<
2022-07-28
>
sirwobin09:07:28

Looks like the https://cljs.github.io/api/cljs.core/jsSTAR doesn't exist in nbb. I'm trying to get plumatic schema working with nbb and js* is used once each in https://github.com/plumatic/schema/blob/master/src/cljc/schema/core.cljc#L183 and https://github.com/plumatic/schema/blob/master/src/cljc/schema/utils.cljc#L27. These are an instanceof and typeof comparison in each code location. Any plans for js* in nbb? I'm going to try some workarounds in the source lib now.

borkdude09:07:13

Thank you for looking into this! js* is only possible when you are compiling JS. Nbb isn't a compiler but an interpreter.

sirwobin09:07:04

makes sense. Time for some nbb reader conditionals in the upstream to go with the bb ones 🙂

lilactown16:07:29

i wonder if you could do js* with eval

borkdude17:07:45

@U4YGF4NGM I tried that but it doesn't always work out :)

1
emccue21:07:23

Related to nbb somewhat - has anyone seen an error like this?

2022/07/28 15:50:01 caxa stub: Failed to run command: fork/exec ...: no such file or directory
and when i try and run fork/exec locally it isn't there I'm on an M1 if thats related

borkdude21:07:46

Doesn't ring any bells here. Perhaps post an issue with the caxa project?

emccue22:07:02

it doesn't happen when the command is just ls , so i think there is still some narrowing i have to do before i can make an issue

emccue22:07:34

I keep thinking i'll have the time or gumption to port caxa to java/clojure/bb to make it a better fit for packaging up stuff with a jlink dumped runtime but i never do

borkdude22:07:16

caxa isn't tied to Node.js, it can package anything

emccue22:07:55

yeah i know it can - its not a technical issue as much as "I wish i didn't have to know to do --no-include-node/have node installed"

emccue22:07:15

i'm trying to write up how this technique can be used to package basically any java app with jlink ... ALL-MODULE-PATH ...

👍 1
emccue22:07:49

oooooh im stupid

emccue22:07:12

if you do "echo abc" its looking for an executable called exactly "echo abc" including the space

emccue22:07:25

thanks for duckie