Fork me on GitHub
#lumo
<
2017-03-09
>
nikki19:03:30

have people tried writing a server in cljs in Lumo? 馃槷

nikki19:03:40

also wondering if people have tried to get it working with CIDER

anmonteiro19:03:46

@nikki you can get Lumo working with inf-clojure via the socket REPL

anmonteiro19:03:41

writing servers shouldn鈥檛 be too complicated

anmonteiro19:03:56

just use Node鈥檚 HTTP server or the express package, or whatever else

nikki19:03:38

nice 馃槷

nikki19:03:55

i wanted to make a client servery app but figured it might be nicer to use cljs everywhere than clj + cljs

anmonteiro19:03:11

@nikki you can do that without Lumo as well

nikki19:03:21

:thinking_face:

anmonteiro19:03:24

ClojureScript supports a :target :nodejs

anmonteiro19:03:47

so you can still write your server in CLJS with a more mature technology than Lumo 馃檪

nikki19:03:51

is the main thing with lumo that it's superfast?

anmonteiro19:03:01

super fast to startup, yes

anmonteiro19:03:18

but at that point you鈥檇 have JS which is faster to startup in Node

nikki19:03:53

haha one of the main things i wanted to be able to do in this server was eval cljs coming from online

nikki19:03:02

the idea is to do like an actor model where the msgs you send are cljs code 馃槷

nikki19:03:05

and each actor is a different namespace

nikki19:03:27

@anmonteiro does lumo make the require stuff easier than plain cljs-over-node or is it the same basically

nikki19:03:48

it seems like the way to do it is npm install or yarn add the module's package then just (js/require ...) it wherever

anmonteiro19:03:17

I don鈥檛 understand your question

anmonteiro19:03:27

I think that鈥檚 basically how you do it in both approaches

stbgz21:03:54

it鈥檚 basically a port of luminus to cljs