This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-25
Channels
- # aatree (3)
- # admin-announcements (14)
- # aws (2)
- # beginners (23)
- # boot (58)
- # braid-chat (15)
- # cider (8)
- # clara (5)
- # cljs-dev (1)
- # cljsrn (38)
- # clojure (82)
- # clojure-china (2)
- # clojure-czech (16)
- # clojure-dev (11)
- # clojure-finland (1)
- # clojure-ireland (6)
- # clojure-japan (3)
- # clojure-portugal (1)
- # clojure-russia (152)
- # clojure-sg (7)
- # clojurebridge (3)
- # clojurescript (86)
- # code-reviews (3)
- # core-matrix (4)
- # cursive (25)
- # data-science (1)
- # datascript (2)
- # datavis (98)
- # datomic (21)
- # dirac (97)
- # emacs (1)
- # hoplon (1)
- # jobs (2)
- # ldnclj (21)
- # off-topic (3)
- # om (204)
- # pedestal (3)
- # proton (12)
- # reagent (125)
- # ring-swagger (9)
- # slackpocalypse (1)
- # spacemacs (1)
- # vim (1)
- # yada (19)
i'm just using js xhr for now but this part of the project could definitely use some refactoring and a lib
... is there any common reason why :require [lib :refer :all]
would generate a syntax error
an aliased import works fine, im just importing cljs.core.async, but any variation of :refer throws a fairly nonsensical syntax exception
sigfig: i remember reading somewhere that it's deprecated, though https://clojure.github.io/clojure/clojure.core-api.html#clojure.core/require (see "Recognized options") says that :all is valid
@sigfig: if you're wrapping it in a macro it needs an extra pair of square brackets around them I think
Maybe a little bit late, it there are also https://funcool.github.io/httpurr/latest/ for ajax/http calls from cljs
this looks neat but i will not applicative composition for any of this, i'm just making unordered state updates really
@jaen: thanks! is a typo and I'll fix it asap (this is not my project, I just have contributed some code, not all funcool projects are mine :P)
hi there, does any of you know how to add a flash .swf to an om react component?
Pondering on using Elixir as backend, with CLJS as frontend, but I cannot live without figwheel. Any ideas on how to have a dev-environment for non-clojure backend while keeping figwheel? Like some transparent fallthrough or something.
Also, quite often SPA would live on a different machine, domain than the backend (or even in a CDN) so I don't see any problems with running elixir backend and serving your SPA with something like boot-http
(not sure what lein equivalent is).
@nano If you copy the code from the generated js file - one that loads google closure and figwheel - you can serve it from another web server and figwheel will work. I just did that last weekend
This is my index.html file served by backend
@mihaelkonjevic: Ah.. right.. ofc. I actually did that as well the other day, in a weird setup, just didn't connect it to what I was intending to do now
I made an interactive tutorial environment, w/ light-table style inline eval, a repl, and some extra tricks https://jaredforsyth.com/tutorial-cljs/ tutorials included: cljs (based off of david nolen’s “intro for light table users”), quil, and reagent
neat!
Now only someone needs to make Clojure errors friendly and this could actually compete with Racket in the education department
@venantius: that's pretty nice, though not the exact kind of "friendly" I've meant. Beginner friendly - something more in line with what Elm or Racket do. The closest thing, I think, is what Elena Machkasova was doing, but I'm not sure how to use that code. Also Collin Fleming's macro pegs.
a message that said something like “It looks like you’re trying to call a map with no other arguments"
Because if Clojure gets friendly errors, I think it could seriously rival Racket, especially considering all this immediate feedback stuff we have.
I logged some time doing something sort of similar with Ultra when it came to tests
e.g. “test failure, hint: these vectors have the same elements but in a different order"
and I don’t like releasing oss when it’s not yet at a point where it’s plug and play
@venantius: How are you doing/planning to do that, re-defining core functions with macros doing argument validation, ditto for functions with contracts or something else entirely?
https://github.com/frenchy64/dynalint Does some things related too
@jaen tbqh I’m not sure. the last time I touched this project was in July of 2015; the plugin does re-define core functions and thus can do more or less whatever it wants with the full trace context
@jaredly: so cool!
hi all. i'd really like to use cljs for CLIs and scripts, but i find the overhead a bit much. i'd love to have just one file with a shebang that can just be run without ceremony.
so i've been thinking about this approach with caching: what if i made an utility that takes the hash of the file, sees if there's a cache for that hash and, if so, run it?
kind of like this: https://gist.github.com/vise890/15e8b1b69ea00605dea4
@vise890: sorry to barge in, but have a look at https://github.com/ScalaConsultants/replumb or at the examples in clojurescript
-> https://github.com/clojure/clojurescript/blob/master/src/main/cljs/cljs/js.cljs#L813
@richiardiandrea: i'll have a look (grazie!)
Ahahah prego!