planck

Planck ClojureScript REPL
cgrand 2017-04-25T09:12:47.184590Z

@mfikes how to make it work with planck? https://github.com/cgrand/cljs-js-repl/blob/master/README.md

mfikes 2017-04-25T10:58:26.629011Z

@cgrand I’ll add the ability to open and listen on sockets in Planck. It should be fairly straightforward since Planck supports Socket REPL. An experimental change been done previously with the Objective-C (Planck 1.x) (https://github.com/mfikes/planck/pull/297), I just need to add similar support to the C-based version (Planck 2.x). https://github.com/mfikes/planck/issues/499

cgrand 2017-04-25T10:59:40.643832Z

@mfikes awesome!

cgrand 2017-04-25T11:00:37.656658Z

Do you think some of this work (async *in*, async reader, repl even) could move to cljs.js proper?

mfikes 2017-04-25T11:03:17.690490Z

I think there are some new things that ClojureScript previously excluded owing to it being predominantly used in a browser that are now making more sense (https://dev.clojure.org/jira/browse/CLJS-1428) Perhaps some of the stuff you are working on also fits in to that category.

cgrand 2017-04-25T11:05:20.716556Z

What’s the best way/place to discuss that?

mfikes 2017-04-25T11:38:57.122712Z

@cgrand #cljs-dev Is an appropriate place to chat about potential changes to ClojureScript (prior to writing JIRA tickets, etc.)

cgrand 2017-04-25T11:40:08.136889Z

thanks, yesterday I was looking for #clojurescript-dev 🙂

richiardiandrea 2017-04-25T16:47:10.831581Z

Talking about the target being node...I really wonder if there shouldn't be two compilers (is modes) for browser and node that do different stuff

cgrand 2017-04-28T13:29:33.163268Z

richiardiandrea: like?

richiardiandrea 2017-04-28T14:37:28.726769Z

There was a blog post that was highlighting that the compiler still fails with many node.js dependencies. Also it could emit more idiomatic node output that in the long run will (maybe?) be optimized better than ES3.

slipset 2017-04-25T17:44:04.154532Z

@mfikes It’d be super neat if you brought life into my PR again. I haven’t had the whatevers needed to port my stuff to C, but it should be quite simple.

slipset 2017-04-25T17:44:49.171675Z

Better yet, as you say, abstract a bit over the socket repl thingy and pass whatever’s supposed to listen to the socket as a function.

mfikes 2017-04-25T17:44:51.172264Z

Yeah, I think I’ll take the C implementation used for the Socket REPL implementation and morph it into what is neeeded to listen on sockets.

slipset 2017-04-25T17:45:27.186297Z

I guess the place where I got confused in my PR was if I was implementing a client or a server 🙂

slipset 2017-04-25T17:45:53.196783Z

and if it was supposed to act as both at the same time and how that was supposed to be handled.

slipset 2017-04-25T17:46:23.208699Z

But my main goal was actually just to be able to write an http-server to test the http thing that I wrote 🙂

mfikes 2017-04-25T17:46:50.219707Z

Cool. Yeah, I’ll think about how to support server and client sockets