Poll and opinions about Clojurescript UI / html templates
Hi, I am the author of closp (https://github.com/sveri/closp), a leiningen template for web development. As always over the years I am changing stuff while working on my private stuff and I wonder what the opinions about the UI is. Currently every template that comes with closp is server side generated via hiccup. I myself have always been a proponent of server side generation for known reasons (less resources used on client side, less bandwith used for initial page load, etc). But I am currently working on a project where I create a SPA using re-frame and I wonder if people would prefer a leiningen template to come with a clojurescript UI instead of server side generated html templates. So I would like to gather as much opinions as possible, here is a poll: https://doodle.com/poll/bvw2zkrfe9ue6hxg for voting and of course direct feedback in this ML is welcome too. Thanks, Sven -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Clojure spec check and recovery
I mean, can I resolve the var and retry the function with a redefinition, for example? I could find info on the arguments, on the exception, but no name of the function, or function spec. Maybe it was because I've called check with a single symbol? Just curious. Em terça-feira, 3 de abril de 2018 08:43:09 UTC-3, Alex Miller escreveu: > > Yes -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
global-hierarchy.. private?
Ok, this is part of a theme that haunts me and I would like to know if anyone shares my view or has a insteresting point. The #'global-hierarchy in clojure.core is used to enable things such as multi-methods, and the isa? function. Now, we can change a var with alter-var-root, and I see it mostly being used for configuration, as with *unchecked-math* or *warn-on-reflection*. But for some reason the global-hierachy is private, and in a weird way where you can change it, as long you play the game. Example: (def a {:type ::a :val 1}) (defn cons-a-foo [bar in] (if (isa? (:type in) ::foo) (cons (:val in) bar) bar)) (cons-a-foo [] a); => [] (derive ::a ::foo) ; we change the global-hierarchy (cons-a-foo [] a); => [1] (underive ::a ::foo) ; yet again (cons-a-foo [] a); => [] ;And then isa? also supports a 3-ary version, which takes a hierarchy as: (make-hierarchy) ; => {:parents {} :descendants {} :ancestors {}} ;omg it is just a map! glad I know those This is all good, except for one reason: global-hierarchy is private. We can't for instance try a "alternate-hierarchy" that is mostly the global one with some expeculations. We lose all the other map functions in dealing with, especifically, the global-hierarchy. And then we're back to oop. If the global-hierarchy was not made private (or any function for that matter), then we could choose if we want to deal it with, or not. In my experience, making something private is only worth the trouble if we give a complete substitute, that does everything and better. Let's say a rocket would explode if we set it to nil.. Then, just don't. With all that say, can we please remove the ^{:private true} from the global-hierarchy definition? Sorry if I rant. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Clojure spec check and recovery
Nevermind, I got it. My bad. Em domingo, 8 de abril de 2018 14:16:08 UTC-3, Pedro Iago Carvalho Martins escreveu: > > I mean, can I resolve the var and retry the function with a redefinition, > for example? > I could find info on the arguments, on the exception, but no name of the > function, or function spec. > Maybe it was because I've called check with a single symbol? > Just curious. > > Em terça-feira, 3 de abril de 2018 08:43:09 UTC-3, Alex Miller escreveu: >> >> Yes > > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [?] How to enumerate the ClojureScript macros in ClojureScript REPL such as figwheel REPL?
I found the way, so I want to share the tip with others here ( https://gist.github.com/philoskim/1d61574f69902c102d1a3c5c9112c6ba ). 2018년 4월 5일 목요일 오후 5시 23분 44초 UTC+9, Philos Kim 님의 말: > > I ran the follwoing code in the figwheel REPL and the result is an empty > list. > > How can I enumerate the ClojureScript macros? > > dev:cljs.user=> (->> (ns-publics 'cljs.core) > vals > (filter #(get (meta %) :macro))) > () > > > Thanks in advance. > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[ANN] Instaparse 1.4.9
Instaparse is a library for generating parsers from context-free grammars. https://github.com/engelberg/instaparse This new release includes contributions from github users dundalek (bugfix for regexp flags in Clojurescript), HausnerR (improved handling of rhizome dependency which more gracefully handles differences in availability at compile time and run time), and aengelberg (new optional flags to change case sensitivity of abnf and ebnf grammars). Thanks to the contributors. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.