no clue if thats the right place BUT if i use the compiler on a server could i also start the repl there? and what repls are possible and how?
a REPL into the browser you mean?
would be even better if thats possible 😄
just thinking about how to improve the workflow with my framework regarding squint
then what did you mean in your original question if it wasn't what I asked
just to have some way of evaluating expressions with emacs/calva you name it against squint. to test some functions
i mean if you can do it in the browser that would be even more cooler than i would imagine you can directly modify your code you see right?
there's isn't a browser REPL now (TODO) but if you compile with :repl true in the compiler options, then you will get global namespace objects which you can poke around at in the browser console
e.g.
my_namespace.function()hrm that means another blogpost i guess 😄 and a cool functionality
imho only thing that would be nice is to load the file on the fly but i guess that should be totaly doable what do you think @borkdude?
like my_namespace.reload() which loads the new code
so fetching the javascript from the server and evaling it
if you want hot reloading, I think a setup with vite is better. see examples/vite-react
yeah i was thinking about adding this feature to borkweb. so you don't need any other tool
I guess you could look at figwheel and shadow-cljs how they do it. should be possible, but my take on squint is that it's a light weight tool that translates "CLJS" to JS and then the existing JS tooling should just pick on that, without me having to re-invent "CLJS" specific tooling
yaeh i know in my limited brain i was thinking that it would be nice to have some sort of livereloading for js code so it would be easier to test out cljs code. and fiddle around with it while developing. But maybe it is sufficient the way i have it right now lets see 😄
i don't to reinvent it too 😄