Clojurians
#lumo
<
2017-03-09
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

nikki19:03:30

have people tried writing a server in cljs in Lumo? :open_mouth:

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:55

cc @richiardiandrea

anmonteiro19:03:41

writing servers shouldn’t be too complicated

anmonteiro19:03:56

just use Node’s HTTP server or the express package, or whatever else

nikki19:03:38

nice :open_mouth:

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 :slightly_smiling_face:

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’d 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 :open_mouth:

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’t understand your question

anmonteiro19:03:27

I think that’s basically how you do it in both approaches

stbgz21:03:54

it’s basically a port of luminus to cljs