This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-12
Channels
- # admin-announcements (8)
- # alda (11)
- # announcements (53)
- # architecture (2)
- # aws (10)
- # beginners (69)
- # boot (403)
- # braid-chat (160)
- # cider (10)
- # cljs-dev (14)
- # cljsjs (26)
- # cljsrn (34)
- # clojure (223)
- # clojure-art (1)
- # clojure-brasil (4)
- # clojure-dev (10)
- # clojure-france (1)
- # clojure-gamedev (1)
- # clojure-nl (14)
- # clojure-russia (20)
- # clojure-seattle (8)
- # clojure-sg (1)
- # clojurebridge (2)
- # clojurescript (156)
- # code-reviews (2)
- # community-development (305)
- # cursive (5)
- # datavis (33)
- # datomic (38)
- # devcards (4)
- # dirac (39)
- # dunaj (3)
- # emacs (5)
- # events (2)
- # funcool (45)
- # hoplon (3)
- # instaparse (24)
- # jobs (2)
- # ldnclj (77)
- # lein-figwheel (4)
- # leiningen (1)
- # mount (49)
- # nyc (14)
- # off-topic (52)
- # om (125)
- # omnext (4)
- # onyx (13)
- # other-lisps (1)
- # overtone (8)
- # parinfer (31)
- # plastic (6)
- # portland-or (3)
- # quil (4)
- # re-frame (6)
- # reading-clojure (16)
- # reagent (212)
- # ring-swagger (11)
- # robots (5)
- # spacemacs (4)
- # specter (1)
- # yada (26)
If I use a BigDecimal literal 3.14M
in .cljc, what does that compile to in JS?
@bostonaholic: https://github.com/clojure/clojurescript/blob/master/src/main/clojure/cljs/compiler.cljc#L207-L222
awesome, thanks!
hey everyone... @dnolen any idea if clojurescript might target webassembly?
@macromancer: please don’t direct questions at me - just ask the channel
ok cool
right
and forthcoming JS features like enhanced numerics may address perf and semantic issues
right, i guess the extra leap in code translation isn't that much of burden anymore.
has anyone looked at A-Frame for VR: https://aframe.io/
@macromancer: the best results for interpreters & JIT in webasm (er asm.js) seem to be like >4X slower or something
@dnolen yeah, its quite incredible.
@meow: nope, but it looks fun
hi guys, in chrome dev how do we use (clj->js <var>)
to convert clojure data structure back to js, it's a bit easier to debug this way.
If it's about debugging then try - https://github.com/binaryage/cljs-devtools
Yup, you just need to enable them in the settings. In older versions you had to do the magic 5xshift secret dev experiments trick.
He's also working on something even more awesome - https://github.com/binaryage/dirac - but I didn't yet try this since it seems to require lein and figwheel.
I'm a boot person, so I would probably have to port the figwheel-dependent part first, but didn't have time yet.
hmm, I have things format nicely when I log it from nRepl, it's nicely formatted. But in browser it doesn't and the variable in my scope is not nicely format either T_T
Sablono mentions that I should be able to "Use the React dependencies from one of the ClojureScript wrappers” … is there a way to declare that I want to use the deps from a lib listed in my dependencies (in this case React)?
Not sure what you mean? As long as you have React from cljsjs in your dependencies sablono or reagent or somesuch should just "pick it up" on their own.
The Sablono readme seems to imply that you don’t have to if you use a React wrapper.
Yeah, for example:
[reagent "0.5.1" :exclusions [cljsjs/react]]
[cljsjs/react-with-addons "0.13.3-0"]
@jaen: ha ! put the required command to code then things work as expected 😄 Nicely format stuff for happy debugging time xD
@nxqd: yup. First time I cam across that library I was all like rainbows and unicorns. It really makes debugging Clojurescript in the browser almost painless.
hmm… okay, so maybe because Sablono requires react.dom and react.dom.server, means that I have to use exclusions?
@mudphone: Om includes react.dom but not react.dom.server
yeah, what @juhoteperi said
@cjmurphy: I did change the order I start them (test dev), then I changed the order in which they are in the project. Nothing works. It seems that the repl will conect to whichever compiles last
@cjmurphy: Dan-Bunea:vr danbunea$ rlwrap lein figwheel testguidelines devguidelines Figwheel: Starting server at http://localhost:3449 Figwheel: Watching build - devguidelines Compiling "resources/public/js/compiled/vr.guidelines.js" from ["src"]... Successfully compiled "resources/public/js/compiled/vr.guidelines.js" in 3.032 seconds. Figwheel: Watching build - testguidelines Compiling "resources/public/js/test/test.guidelines.js" from ["src" "test"]... Successfully compiled "resources/public/js/test/test.guidelines.js" in 2.829 seconds. Figwheel: Starting CSS Watcher for paths ["resources/public/css"] Launching ClojureScript REPL for build: testguidelines
@danbunea Yes sorry I was just quickly guessing at things to try. Any reason you can't just have two lein OS consoles each doing what you want? You can use lein for a particular task either from the command line or from a repl you interact with.
Glad you got something working. You could probably get it working exactly as you want, so with no extra steps. I'm pretty sure you could do the autobuilding from the command line, so permanently happening in a separate console. That is what I do for instance when auto-compiling garden.
If you are within the UK, around London i am seeking a tutor who can devote at least twice a week to helping me get through Clojure/ClojureScript. Also I am working on my final year project. I need maybe 2-3hours each day until 1st week of April. Name your rate/hour pls. Thanks.
Anyone please point me to some examples of how to use d3.js with clojurescript.
hi @dnolen are you still maintaining mori, seems lot of issues and PRs are no addressed
it's a really great lib, i’m really enjoy that i can using clj datastructure in vanilla js
It seems to be alright when I inject the code using figwheel, but as soon as I reload the page, I get Uncaught SyntaxError: Unexpected token ILLEGAL
figwheel doesn't load wrong code. Maybe that's the reason. Also check the differences between main and figwheel reload functions
@kiranmysore: also ask on #C0F0V8DT5
@dnolen: i’m very happy to contribute and maintain it if you like, do you have any plan for the future of mori
@dnolen: can you add me to collaborator, or someone interesting in it, i’m really like to keep this cool project alive
@jcouyang: at this time not looking for collaborators - eventually I’ll figure out what to do with it.
@kiranmysore: notes regarding Reagent and stateful js components (D3) can be found here: https://github.com/Day8/re-frame/wiki/Using-Stateful-JS-Components
Wow, this looks like the ideal foundation for a cljs based react-alternative https://github.com/google/incremental-dom
@martinklepsch: it’s interesting but I’m not holding my breath - it’s too DOM-centric
@martinklepsch: sebastian markbage had some thoughts about it when it came out. something about solving the wrong problem
also React is supposedly dropping the junk it puts into the DOM which was always kind of busted
"ethe junk it puts into the DOM"?
IMO, what we should be shooting for once that lands is Google Closure Soy template performance server side
Agree that centeredness on DOM might be a bit short-sighted. However given that they're trying to blend the borders between web & native anyways.
and when and where did incremental-dom get announced? Any twitter accounts that should be followed?
he’s the one actually pointed us at the CommonJS & AMD transforms as well before GSoC started
Related to incremental-dom cljsjs package, they seem to be using goog.module definitions instead of goog.provide, and this reportedly doesn't work with ClojureScript.
right somebody may need submit patches for accepting other kinds of Closure compatible modules
hah, ex-berliner also I think 😛
Just wondering if there is any known issue with goog.net.WebSocket when compiled under :whitespace or :advanced mode...
thanks, will debug it further, I’m using this tiny wrapper, the problem might be there: https://github.com/tomjakubowski/weasel/blob/master/src/cljs/weasel/impls/websocket.cljs
also I don’t quite understand why they use ()
in interop calls:
https://github.com/tomjakubowski/weasel/blob/master/src/cljs/weasel/impls/websocket.cljs#L28
and here: https://github.com/tomjakubowski/weasel/blob/master/src/cljs/weasel/impls/websocket.cljs#L41
makes sense, that is why my server receives connection, but my client does not hear back
@juhoteperi: FYI a colleague of mine has packaged incremental-dom for cljs, and done some more experiments with it, i think he's planning on making that public