nbb

wilkerlucio 2023-01-11T14:35:42.868659Z

hello, I'm trying to connect a REPL to nbb via Cursive, does anything has a working path to make it happen?

šŸ‘‹ 1
wilkerlucio 2023-01-11T14:36:36.480869Z

but still, it never finishes the connection, tried both socket repl and nrepl

borkdude 2023-01-11T14:37:39.185589Z

Please make this known to Colin. Several people have been asking for nbb support in Cursive but there's nothing I can do. nbb nREPL works with emacs, calva, vim, etc.

wilkerlucio 2023-01-11T14:40:12.110299Z

thanks @borkdude, nudging there šŸ™‚

Filipe Silva 2023-01-11T14:44:33.446519Z

I’m seeing a somewhat odd difference of behaviour between nbb file.cljs and nbb -e:

filipesilva@Filipes-MBP ~/L/M/i/D/p/babashka (master)> nbb -e '(println "hello")\n"world"'
hello
"world"
filipesilva@Filipes-MBP ~/L/M/i/D/p/babashka (master)> cat codeblock.cljs
(println "hello")
"world"āŽ
filipesilva@Filipes-MBP ~/L/M/i/D/p/babashka (master)> nbb codeblock.cljs
hello
filipesilva@Filipes-MBP ~/L/M/i/D/p/babashka (master)>

borkdude 2023-01-11T14:45:22.687499Z

This is the same behavior as clojure

borkdude 2023-01-11T14:45:32.558759Z

-e prints the value, but executing a file doesn't

Filipe Silva 2023-01-11T14:46:40.237379Z

bb will print the value when executing the file though

Filipe Silva 2023-01-11T14:46:44.506769Z

filipesilva@Filipes-MBP ~/L/M/i/D/p/babashka (master)> bb -e '(println "hello")\n"world"'
hello
"world"
filipesilva@Filipes-MBP ~/L/M/i/D/p/babashka (master)> cat codeblock.clj
(println "hello")
"world"
filipesilva@Filipes-MBP ~/L/M/i/D/p/babashka (master)> bb codeblock.clj
hello
"world"
filipesilva@Filipes-MBP ~/L/M/i/D/p/babashka (master)>

borkdude 2023-01-11T14:47:04.631319Z

yes, bb has had the "different" printing behavior but it wasn't changed because it would be breaking

Filipe Silva 2023-01-11T14:47:11.796769Z

got it

Filipe Silva 2023-01-11T14:47:28.965409Z

I see what you mean with clj

Filipe Silva 2023-01-11T14:47:31.348939Z

filipesilva@Filipes-MBP ~/L/M/i/D/p/babashka (master)> clj codeblock.clj
WARNING: Implicit use of clojure.main with options is deprecated, use -M
hello

Filipe Silva 2023-01-11T14:47:48.139279Z

thank you for explaning this to me šŸ™

borkdude 2023-01-11T15:05:59.328989Z

no problem :)