[ClojureScript] Re: ANN: re-frame v0.2.0 - an FRP MVC pattern for writing SPAs in Reagent. (Woah, so many LTAs!!)

2015-03-13 Thread AndyR
On Friday, March 6, 2015 at 11:28:59 PM UTC-5, Mike Thompson wrote: re-frame is a pattern for writing SPAs, using Reagent. https://github.com/Day8/re-frame [...] - pushes Reagent's FRP capabilities (via use of reaction) The magic thing about a reaction is that the computation it wraps

[ClojureScript] Re: Macros and type hints

2015-03-24 Thread AndyR
On Tuesday, March 24, 2015 at 7:21:32 AM UTC-4, Thomas Heller wrote: Question: why exactly is this type hint needed when js/goog.DEBUG is used in an if? As far as I can see, js/goog.DEBUG is a boolean already. Short answer: We don't evaluate or parse any Javascript when compiling

[ClojureScript] [ANN] Klang: A clojurescript logging library (syntax highlighting, searching, filtering etc)

2015-04-22 Thread AndyR
Hi *, I've just finished the last few bits of my CLJS logging library: https://github.com/rauhs/klang Simply git clone it and run lein figwheel to see a demo. (There is also an older demo at http://rauhs.github.io/klang/ but I it's not running with the latest changes) Features: * Tabs

[ClojureScript] Re: Exploring code in Clojurescript

2015-04-28 Thread AndyR
Autocomplete is going to depend on your editor. For Emacs and vim you'll need cider middleware: https://gist.github.com/rauhs/c9183e7afa2dca87126e https://github.com/clojure-emacs/cider-nrepl See the wrap-complete middleware. It'll pull in compliment:

[ClojureScript] Using (var) emits path name of source file into js code

2015-04-27 Thread AndyR
I just messed with multimethods and :hierarchy which expects a var (#' or var). Doing so emitted my full path name of the cljs file into the JS file (meta data). Is this on purpose? Could this be potentially a security issue? Could we add a compiler option to sanitize this? Cheers, Andy --

Re: [ClojureScript] Using (var) emits path name of source file into js code

2015-04-27 Thread AndyR
, 2015 at 1:24 PM, AndyR andre...@gmail.com wrote: I just messed with multimethods and :hierarchy which expects a var (#' or var). Doing so emitted my full path name of the cljs file into the JS file (meta data). Is this on purpose? Could this be potentially a security issue? Could we

[ClojureScript] Re: re-frame - register-sub has no effect when body uses a let-binding

2015-04-03 Thread AndyR
reaction is a macro that expands to evaluating the passed forms (here: 'v') within a function (make-reaction). I don't know the internals of Reagent but my guess is that Reagent has to figure out which ratoms were used in that function call. This is done somehow (by maybe some context setting

[ClojureScript] Re: re-frame/react - controlled input losing key presses

2015-04-03 Thread AndyR
On Friday, April 3, 2015 at 5:25:24 PM UTC-4, Colin Yates wrote: Hi, If I use :default-value then the input field keeps up no matter how fast I type. If I use :value then I can lose quite a few key presses if I type really quickly. I expect I probably need to break my components into

Re: [ClojureScript] Re: re-frame - register-sub has no effect when body uses a let-binding

2015-04-03 Thread AndyR
:45, AndyR andre.r...@gmail.com wrote: reaction is a macro that expands to evaluating the passed forms (here: 'v') within a function (make-reaction). I don't know the internals of Reagent but my guess is that Reagent has to figure out which ratoms were used in that function call

[ClojureScript] Re: Why is each closure library namespace in a separate js file?

2017-01-22 Thread AndyR
I have an OpenResty (nginx) with HTTP-2 running for local development. Just switched off H2 and DomContentLoaded increased from 2.1s to 3.6s. That's for ~290 js files. The last JS file was done downloading ~1.3s for H2 and 2.4s with HTTP-1.1. So maybe also give HTTP-2 a closer look. HTH On

[ClojureScript] Re: Differences in emitted javascript for recursive function definitions

2017-07-05 Thread AndyR
It's noteworthy that this behavior again changes after advanced builds. There is a related ticket here: https://dev.clojure.org/jira/browse/CLJS-2038 It's probably best to avoid redefining recursive functions for anything non-dev stuff. - Andre On Monday, October 24, 2016 at 1:31:13 AM

[ClojureScript] Re: how is clojurescript releases built?

2018-03-07 Thread AndyR
This is documented in Readme of the Github project, see: https://github.com/clojure/clojurescript#developers-welcome In particular see: https://github.com/clojure/clojurescript/wiki/Building-the-compiler Note, you might also need to run "./scripts/bootstrap" before the build (not 100% sure)

[ClojureScript] Re: Inconsistency in creating keywords

2018-03-02 Thread AndyR
You should be extra careful in CLJS when creating keywords with multiple slashes. They currently behave different from CLJ. Logged here: https://dev.clojure.org/jira/browse/CLJS-2120 On Thursday, March 1, 2018 at 1:14:34 PM UTC+1, outr...@gmail.com wrote: > > I've encountered a problem when