This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-26
Channels
- # aleph (9)
- # announcements (10)
- # aws (1)
- # beginners (65)
- # calva (9)
- # cider (11)
- # clj-kondo (1)
- # cljdoc (61)
- # cljsrn (6)
- # clojars (2)
- # clojure (40)
- # clojure-austin (1)
- # clojure-belgium (1)
- # clojure-europe (4)
- # clojure-finland (1)
- # clojure-france (1)
- # clojure-italy (57)
- # clojure-nl (6)
- # clojure-spec (134)
- # clojure-uk (67)
- # clojuredesign-podcast (2)
- # clojurescript (40)
- # cursive (25)
- # datascript (1)
- # datomic (8)
- # events (1)
- # figwheel-main (18)
- # fulcro (36)
- # immutant (5)
- # jobs (5)
- # joker (3)
- # kaocha (41)
- # leiningen (4)
- # luminus (4)
- # off-topic (13)
- # onyx (8)
- # pedestal (2)
- # perun (7)
- # planck (2)
- # protorepl (9)
- # re-frame (3)
- # reagent (73)
- # reitit (5)
- # shadow-cljs (186)
- # sql (4)
- # vim (1)
- # yada (2)
Hey, I want to mock S3 for testing in clojure, what are the best recommended tools for this
@gagan.chohan It depends what you mean by "mock S3" -- if you have an abstraction for how you interact with S3, you can implement that abstraction as talking to S3 (for production code) and as talking to some in-memory state (for example, for testing).
@andy.fingerhut SO publishes a dump every so often, so scraping isn’t needed (see link posted earlier)
Seems like QA site is down?
Maybe we need a PHP -> Clojure rewrite 😛
It responded for me just a minute ago.
might be that you’re trying the http rather than https - that one’s not redirecting yet
Yeah that was the problem, no idea how I ended up at http
think there was a link somehwere else on slack to http://ask.clojure.org and it defaulted to http
Hi, folks. I am considering to rewrite bunch of bash scripts. Currently available options for me are planck, joker and hy, which one will you suggest?
I compiled small script using GraalVM's native-image
. Didn't like joker
because it's not really Clojure
and hy
for the same reason. Compiled ClojureScript was also slower, so I don't assume planck
will be very fast.
native image can't do simple things like pprint, spec due this issue (please vote 😅 ) https://ask.clojure.org/index.php/740/locking-macro-fails-bytecode-verification-native-runtime
Takes some time to build the native-image though. ~20 seconds for a hello world IIRC
Is there a guide somewhere explaining what's possible and not when using Clojure and native-image ?
i don't know of one, but it sounds like it could be handy. perhaps @U04V15CAJ and/or @taylor could be interviewed to create such a guide? (for the near term, perhaps studying borkdude's clj-kondo and/or jet aren't bad options -- also some of taylor's repositories)
@doglooksgood what I do is develop the scripts with my editor and a REPL until it does what I want, then just compile it once such that it starts instantly. Or when I don’t want to have to deal with an editor + repl, I execute it with clj -m file.clj It can be non ideal when the script changes ever so often
yes, Sometimes I may want a little change to the script located on the test server. It's not quite convenient. but, of course, even joker and planck are not real clojure, may lacking something when using.
@doglooksgood don't know if closh would work for you, but fwiw: https://github.com/dundalek/closh
The Loom project: https://github.com/aysylu/loom uses Leiningen, and supports both Clojure and ClojureScript platforms. It has a dependency in its project.clj file for a ClojureScript-specific library called cljs-priority-map: https://github.com/tailrecursion/cljs-priority-map
When I use loom in a Clojure project that does not intend to use ClojureScript, cljs-priority-map shows up as a recursive dependency.
This isn't a deal-breaker or anything, but I was curious if there was a well-known different way for a project like Loom to declare its dependencies, such that if you depend upon Loom in a Clojure-only project, no ClojureScript-specific dependencies show up?
(and vice versa, if a ClojureScript-only project wanted to avoid Clojure/Java-specific dependencies)
hmmm, or perhaps this is something that dep exclusions can do
Answering my own question after some quick experiments, declaring :exclusions in my project's Leiningen project.clj file does eliminate that ClojureScript-specific project from the output of my project's lein deps :tree
command.
I guess my original question I still do not know the answer to, though -- is there a way that somehow a project can specify "here are my Clojure/Java deps" vs. "here are my ClojureScript deps", and somehow those get automatically used?
pom.xml supports conditionals / profiles right?
and of course nothing stops you from having a separate deploy with a separate pom
it would be cool if artifacts could have consistent flags (like "cljs" or even "javascript-vm") that would allow pruning programmatically