This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-24
Channels
- # aws (14)
- # beginners (111)
- # boot (12)
- # cider (1)
- # cljsrn (7)
- # clojure (65)
- # clojure-dusseldorf (1)
- # clojure-germany (7)
- # clojure-greece (10)
- # clojure-italy (13)
- # clojure-poland (7)
- # clojure-russia (7)
- # clojure-spec (53)
- # clojure-uk (29)
- # clojurescript (27)
- # community-development (9)
- # cursive (2)
- # data-science (1)
- # datomic (17)
- # emacs (16)
- # events (6)
- # fulcro (155)
- # graphql (8)
- # instaparse (1)
- # leiningen (30)
- # lumo (29)
- # om-next (3)
- # other-languages (46)
- # pedestal (11)
- # portkey (7)
- # re-frame (13)
- # reagent (6)
- # ring (8)
- # rum (1)
- # shadow-cljs (75)
- # sql (1)
- # timbre (3)
- # unrepl (128)
@rauh, the new Map object has a .size
property:
> var m = new Map(); m.set("a", "b"); m.size
1
although that again is not mandated to be O(1) in the spec
Oh, and there's even WeakMap
!
polyfilled in GCL https://github.com/google/closure-compiler/blob/c3f5e9a5713cdd9af9283e75c309e5d831f1b45e/src/com/google/javascript/jscomp/js/es6/weakmap.js#L23
Hi there. I'm just wondering if anyone has experience of using Lumo from Vim. Been going around in circles, and considering switching editor, which I really don't want to do, but... Anyway, any advice really appreciated.
@pjullah It may be possible to first connect Vim to a Clojure REPL, and then from there connect that REPL to Lumo using Socket REPL and Tubular https://github.com/mfikes/tubular
you can also watch for changes using watchexec
and just netcat
everything into the socket repl
it's a bit crude but works-ish
Unrepl doesn't work with clojurescript hosts... yet
@cgrand did some work but it's not complete
Thanks @mfikes & @pesterhazy
All I'm trying to do is write a few utility scripts in cljs. Currently editing, file then dropping to cli to run it. Anything that allows me to eval in the editor would be great.
@mfikes just so I understand. 1. start Lumo repl server, 2. start boot repl 3. vim-fireplace -> boot repl 4. run tubular/repl -> Lumo
Yeah, if you know how to fire up and interoperate with a Clojure REPL from vim, then Tubular can definitely then be used for that.
Yes, for step 1, I would start Lumo passing -n
for a port, and -c
to the folder containing your script source
Then, once you have connected Tubular to Lumo, you can (require ...)
on your script source namespace, (in-ns ...)
to that namespace if you like, or make a change to the file, save it (require .... :reload)
. In other words, just like conventional Clojure dev.
Tubular is definitely not magic. See https://github.com/mfikes/tubular/blob/master/src/tubular/core.clj