This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-07
Channels
- # bangalore-clj (3)
- # beginners (103)
- # boot (13)
- # cider (16)
- # cljs-dev (192)
- # cljsrn (44)
- # clojure (147)
- # clojure-dev (1)
- # clojure-italy (79)
- # clojure-norway (1)
- # clojure-russia (9)
- # clojure-spec (4)
- # clojure-uk (34)
- # clojurescript (65)
- # core-async (1)
- # core-logic (2)
- # core-typed (5)
- # cursive (1)
- # datascript (9)
- # datomic (26)
- # emacs (8)
- # garden (1)
- # hoplon (11)
- # humor (1)
- # jobs (1)
- # jobs-discuss (8)
- # jobs-rus (3)
- # leiningen (1)
- # luminus (1)
- # lumo (1)
- # mount (6)
- # off-topic (16)
- # om (10)
- # om-next (1)
- # onyx (10)
- # parinfer (10)
- # pedestal (25)
- # re-frame (27)
- # reagent (3)
- # rum (47)
- # uncomplicate (1)
- # unrepl (34)
- # untangled (120)
- # vim (58)
@wistb it's like selling a thirsty person water when all they've ever known to drink is sweat
I've gotten people interested by showing them the actual real-world value that things like immutable data and pure functions bring to the table
@qqq We have have core.matrix working on cljs but it needs some maintenance. The thinktopic guys did a lot of the initial implementation in order to make it possible to run cortex NNs in the browser.
Is there any data on the percentage of people (or whatever) using clojurescript on the client without clojure on the backend?
@urbank https://www.surveymonkey.com/results/SM-7K6NXJY3/, Question #18 - non-Clojure backend is usage small
a huge value prop for Clojure(Script) is that it’s more or less that same language client/server
I suspect that it’s also because if it’s just client then there’s interesting competition - TypeScript, Elm, PureScript, etc.
but if it’s both client/server, Clojure(Script) is really, really far along compared to the alternatives
@dnolen Yeah, good point. I would love it if I could convince the backend to switch to clojure. They're quite conservative about it though (which has its pros and cons)
@urbank I feel like I heard of a company doing that - definitely there are some Rails + CLJS success stories
Puppet labs were/are Ruby. Then they did JRuby, then realised "Oh, we're dynamically typed on the JVM, might as well write Clojure" and slowly migrated via interop.
I’ve started a list of Book & Video resources on ClojureScript, feel free to add more via PRs if you’re aware of something I’m not https://clojurescript.org/community/books
About clojurescript + non-clojure backend (golang)
I'm using it, but I can use qualified keywords 😞
(it's a small/side project. I can change the json names)
I tryied to change "name"
-> "user/name"
on JSON, when I parse it in clojurescrit, I get :user/name
, awesome! But when I clj->js
, to serialize/jsonify I get "name"
back 😞
There is a bug about it on jira, but is a "wontfix"
dnolen:
I implemented (str (namespace k) "/" (name k))
Then
#object[Error Error: No protocol method IAssociative.-assoc defined for type cljs.core/EmptyList: ()]
cljs.core/missing-protocol (jar:file:/home/enzzopc/.m2/repository/org/clojure/clojurescript/1.9.671/clojurescript-1.9.671.jar!/cljs/core.cljs:281:4)
cljs.core/-assoc (jar:file:/home/enzzopc/.m2/repository/org/clojure/clojurescript/1.9.671/clojurescript-1.9.671.jar!/cljs/core.cljs:540:1)
Function.cljs.core.assoc.cljs$core$IFn$_invoke$arity$3 (jar:file:/home/enzzopc/.m2/repository/org/clojure/clojurescript/1.9.671/clojurescript-1.9.671.jar!/cljs/core.cljs:1881:8)
cljs.core/lift-ns (jar:file:/home/enzzopc/.m2/repository/org/clojure/clojurescript/1.9.671/clojurescript-1.9.671.jar!/cljs/core.cljs:9737:38)
cljs.core/print-map (jar:file:/home/enzzopc/.m2/repository/org/clojure/clojurescript/1.9.671/clojurescript-1.9.671.jar!/cljs/core.cljs:9751:24)
cljs.core/pr-writer-impl (jar:file:/home/enzzopc/.m2/repository/org/clojure/clojurescript/1.9.671/clojurescript-1.9.671.jar!/cljs/core.cljs:9567:12)
cljs.core/pr-writer (jar:file:/home/enzzopc/.m2/repository/org/clojure/clojurescript/1.9.671/clojurescript-1.9.671.jar!/cljs/core.cljs:9623:6)
cljs.core/pr-seq-writer (jar:file:/home/enzzopc/.m2/repository/org/clojure/clojurescript/1.9.671/clojurescript-1.9.671.jar!/cljs/core.cljs:9626:4)
cljs.core/pr-sb-with-opts (jar:file:/home/enzzopc/.m2/repository/org/clojure/clojurescript/1.9.671/clojurescript-1.9.671.jar!/cljs/core.cljs:9634:6)
cljs$core$pr_str_with_opts (jar:file:/home/enzzopc/.m2/repository/org/clojure/clojurescript/1.9.671/clojurescript-1.9.671.jar!/cljs/core.cljs:9644:11)
Trying to debug
#js{"foo/bar" 33}
->
#object[Error Error: No protocol method IAssociative.-assoc defined for type cljs.core/EmptyList: ()]
cljs.core/missing-protocol (jar:file:/home/enzzopc/.m2/repository/org/clojure/clojurescript/1.9.671/clojurescript-1.9.671.jar!/cljs/core.cljs:281:4)
cljs.core/-assoc (jar:file:/home/enzzopc/.m2/repository/org/clojure/clojurescript/1.9.671/clojurescript-1.9.671.jar!/cljs/core.cljs:540:1)
Function.cljs.core.assoc.cljs$core$IFn$_invoke$arity$3 (jar:file:/home/enzzopc/.m2/repository/org/clojure/clojurescript/1.9.671/clojurescript-1.9.671.jar!/cljs/core.cljs:1881:8)
cljs.core/lift-ns (jar:file:/home/enzzopc/.m2/repository/org/clojure/clojurescript/1.9.671/clojurescript-1.9.671.jar!/cljs/core.cljs:9737:38)
cljs.core/print-map (jar:file:/home/enzzopc/.m2/repository/org/clojure/clojurescript/1.9.671/clojurescript-1.9.671.jar!/cljs/core.cljs:9751:24)
cljs.core/pr-writer-impl (jar:file:/home/enzzopc/.m2/repository/org/clojure/clojurescript/1.9.671/clojurescript-1.9.671.jar!/cljs/core.cljs:9567:12)
cljs.core/pr-writer (jar:file:/home/enzzopc/.m2/repository/org/clojure/clojurescript/1.9.671/clojurescript-1.9.671.jar!/cljs/core.cljs:9623:6)
cljs.core/pr-seq-writer (jar:file:/home/enzzopc/.m2/repository/org/clojure/clojurescript/1.9.671/clojurescript-1.9.671.jar!/cljs/core.cljs:9626:4)
cljs.core/pr-sb-with-opts (jar:file:/home/enzzopc/.m2/repository/org/clojure/clojurescript/1.9.671/clojurescript-1.9.671.jar!/cljs/core.cljs:9634:6)
cljs$core$pr_str_with_opts (jar:file:/home/enzzopc/.m2/repository/org/clojure/clojurescript/1.9.671/clojurescript-1.9.671.jar!/cljs/core.cljs:9644:11)
finally fixed some styling stuff that was driving me crazy on the Quick Start https://clojurescript.org/guides/quick-start if there any other docs with weird styling issues (strange padding, no syntax highlighting, sections running into each other), please file issues on GitHub
“Only seven people outside of Google have ever gotten an application to build with ADVANCED_MODE turned on.“ 😄 https://tomdale.net/2017/04/making-the-jump/
Le Provocateur 😄
Ember is a fun parallel universe though
my issue with Ember is not the tech but the way they market it - too much hype (i.e. Tom et al’s communication style) too little substance <end rant>
this aside I still think Clojure(Script) have a ways to go on the ease front to match - but we’ve also made a lot of progress
yeah, their docs pages, tooling etc is really good. Don’t really understand e.g. Glimmer though, it’s all just ember new ...
😄
seems similar-ish to incremental-dom with some build-time stuff on top
That is what most of his posts sound like to me: Hey, these other frameworks suck and Ember rules!
And the only way he seems to know how to market Ember is by saying how terrible everything else is.
when you have to argue about the merits of your project by mostly enhancing the demerits of other competing projects, I assume something is wrong with that project you are selling.
Agreed, I like Tom Dale & Yehuda Katz quite a bit - but this part about the Ember messaging is so annoying
@roberto @dnolen that has been a issue with quite a number of open source projects in recent years though… Ember is just a prime example
Really sad; I don’t get why developers would intentionally hype-drive their project. It discredits potentially good tech
@dnolen True… I have more of an issue with it in the case of open-source projects though. With enterprise products, you expect them to market it, to try to “trick” you, and so you are on the watch for arguments without substance. But in the case of open-source project I feel the expectation is the arguments they put out are honest (even though they might be “wrong”, as everyone has a different set of problematics / perspective on a subject). Hype-driven marketing of open-source projects goes agains that, by trying to sell them as a product.
Someone referred to this as sophistry in an article I read long ago; I tried to find it but forgot the link 😞
I'm trying to use __dirname
from Node.js in CLJS, with (js* "__dirname")
but it's returning nil
most of times, and sometimes (after a reload) it works if I set it into a variable
does anything know how to make it consistently get the correct __dirname
?
for context: trying to use to get the correct index.html
file for an Electron app
@wilkerlucio maybe try js/__dirname
? It seems to work from lumo’s repl for me at least
Lumo sets is explicitly
@noonian I tried that, still got nil
=/
there’s an open issue in CLJS JIRA to make that work
thanks
@dnolen do you think this can be out in a release soon? just wondering because I don't see any way to work around it
except hard coding it, but then only works on my machine