This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-22
Channels
- # architecture (1)
- # aws (3)
- # beginners (78)
- # boot (33)
- # cider (49)
- # cljs-dev (3)
- # clojure (82)
- # clojure-berlin (2)
- # clojure-dusseldorf (14)
- # clojure-gamedev (75)
- # clojure-italy (15)
- # clojure-nl (2)
- # clojure-poland (9)
- # clojure-russia (1)
- # clojure-spec (11)
- # clojure-uk (91)
- # clojurescript (17)
- # core-async (2)
- # cursive (1)
- # data-science (3)
- # datascript (34)
- # datomic (13)
- # docs (2)
- # duct (32)
- # emacs (8)
- # fulcro (95)
- # instaparse (17)
- # jobs (2)
- # jobs-discuss (1)
- # jobs-rus (4)
- # leiningen (1)
- # luminus (1)
- # lumo (4)
- # mount (1)
- # nrepl (1)
- # off-topic (98)
- # onyx (13)
- # portkey (12)
- # re-frame (10)
- # reagent (11)
- # remote-jobs (4)
- # rum (3)
- # shadow-cljs (34)
- # specter (7)
- # sql (1)
- # tools-deps (8)
The industry took a long, dark walk off a short pier around the time MS showed up and turned everything into a C++ hell. It's been a bit of an odyssey getting back to sanity.
And Prolog still lives 😄 https://news.ycombinator.com/item?id=17121028
Amazing amount of production traffic served with Prolog : https://news.ycombinator.com/item?id=17121351
Hello all, I´m starting a project that it has to be scalabe itself. I´m researching about BaaS providers and I saw some that closed already, even http://parse.com from Facebook. I saw others that is "vendor lock-in", and others that is limited by APIs for 3rd party integration libs. So, is it worth to use BaaS? This project will integrate with credit cards payments, chatbots, machine learning, file storing, and so one ... Could anyone give me an advice what starting way do I have to go throuth?
We need to know much more about your use case to be able to help. You don't choose a database primarily for its hosting options, rather for how adapted it is to your querying patterns.
if you’re looking for an alternative to parse, maybe check out firebase? I agree with @U06GS6P1N however, knowing your use case is far more important
Yeah, these are typically used for storing individual data in mobile apps - you wouldn't use that at all for e.g e-commerce
What’s the shortest valid Clojure expression that is also a valid bash expression? https://github.com/borkdude/balcony/commit/97cf0b107bb443c9437a8676090eb147fbbf285a
that’s not a valid Clojure expression
oh, sorry I read that wrong
":";your bash here
will make clojure interpret everything after ;
be a comment and just parse the string as a value, while bash does nothing before the semicolon and executes the rest
expands to positional params
unlikely to be useful, just golfing :)
sorry, I guess that should be $*
$$
expands to the pid
so for example expr;ls
should preferably only do ls
while not giving an error message
it’s valid clojure data (but you also need eval to work)
the goal is to make this work: https://github.com/borkdude/balcony/blob/master/balcony.clj#L1-L8
having # be the dispatch character really narrows your options :)
prob not shortest but has some simplicity to it
it is less confusing than many other options :)
definitely :)
@alexmiller should I do anything with caching to make the script run even faster or is this enabled by default?
Also I wonder if putting more libs on the classpath without loading them could make it slower
should work automatically
my guess would be that it would not have an effect but who knows what kind of startup opts are involved
there is a tradeoff between laziness and pre-prep, not sure how that is handled
I mean if I put cider/cider-nrepl {:mvn/version \"0.17.0-SNAPSHOT\"}
in my deps.edn. Does this make it slower if I’m not going to require
the lib in my program.
in the words of a wise man named Rich, “why guess when you can test?”
might depend on whether there are .class files in the jar
$ time "clj" "-Sdeps" "{:deps {}}" "-e" "(+ 1 2 3)"
# after 2 times
real 0m0.914s
":";clj_http="clj-http {:mvn/version \"3.9.0\"}"
$ time "clj" "-Sdeps" "{:deps {$clj-http}}" "-e" "(+ 1 2 3)"
# after 2 times
real 0m1.907s
@alexmiller clj-http wraps Apache HTTP stuff, so yes, there will be .class
I think I could optimize it by using this add-lib
functionality, but I don’t know how classpath caching behaves with that one?
well first, add-lib is an experimental feature in a branch and second, there is no classpath caching involved
at some point, I’m not sure why it’s worth optimizing this - just build a jar and make a native app with graal
being a script is inherently not optimized
there are various Clojure compiler flags you could pass too like elide-meta
“just make a native app with graal” is harder than it sounds though, since there are a lot of things that don’t work with it
well “make a jar and run it” is short of that and presumably faster
true, if I need more speed I can AOT, uberjar and deploy that, but that’s less adventurous.
-Dclojure.compiler.disable-locals-clearing=true
-Dclojure.compiler.elide-meta="[:doc :file :line :added]"
-Dclojure.compiler.direct-linking=true
all worth trying
in clj, prefix any of those with -J
clj -J-Dclojure.compiler.disable-locals-clearing=true etc
@alexmiller I don’t see any noticable effect with direct linking or locals clearing turned off and with $elide_meta
I get an error
https://github.com/borkdude/balcony/blob/master/balcony.clj#L14
Exception in thread "main" java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Collection, compiling:(clojure/core/specs/alpha.clj:1:1), compiling:(/Users/Borkdude/Dropbox/dev/clojure/balcony/./balcony.clj:21:1)
Not sure why that happensRepro:
bash
tools_cli='org.clojure/tools.cli {:mvn/version "0.3.7"}'
elide_meta='-J-Dclojure.compiler.elide-meta="[:doc :file :line :added]"'
"clj" "$elide_meta" "-Sdeps" "{:deps {$tools_cli}}" "-e" "(require '[clojure.tools.cli])"
I guess you don’t need the quotes in elide-meta there
I'm reinstalling linux on a new laptop and I'm looking to switch from Gnome: anyone knows if there's a DE that has separate workspaces per monitor? (if I change workspace on a monitor, the other monitor doesn't)
there’s an upcoming online prolog class for anyone interested: https://twitter.com/SWI_Prolog/status/998443391837859840