Re: GraalVM's native-image incompatible with Clojure's eval?

2018-12-03 Thread Jeroen van Dijk
Hi Khalid, Reflections [1] are a big problem too for Graalvm. Here is a thread of playing with Clojure and Graalvm [2]. If you follow the links, you will see some issues I ran into. Hth, Jeroen [1] Ones that are and aren't caught by *warn-on-reflections*

Re: [ANN] tools.deps.alpha 0.5.452 and clj 1.9.0.394

2018-10-31 Thread Jeroen van Dijk
Hi Alex, Thanks for this new release! I just want to point out that for Linux, there is also the `brew install clojure` option via http://linuxbrew.sh/ . Not sure how well spread this tool is, but we've used it successfully to distribute an internal tool to both our Mac and Linux users. Thanks,

Re: [ANN] Clojure 1.10.0-RC1 (please test!)

2018-10-12 Thread Jeroen van Dijk
Tested against closh (clojure shell): Uberjar works via boot, acts normally when started. (details ) (For what it's worth the error between 1.9 and 1.10 on GraalVM is slightly different, however both version

Re: [ANN] Datomic Cloud

2018-01-17 Thread Jeroen van Dijk
Congrats! On Wed, Jan 17, 2018 at 3:06 PM, Stuart Halloway wrote: > Datomic Cloud is now available! http://blog.datomic.com/2018/01/datomic- > cloud.html > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to

Re: Using clojure.spec for api migrations?

2016-09-07 Thread Jeroen van Dijk
Oh I meant `clojure.spec/gen` instead of `clojure.spec/with-gen`. `clojure.spec/gen` has an overrides option. I (think I) need something like this to cleanly change the unforming action in a nested spec. Jeroen On Tue, Sep 6, 2016 at 8:00 PM, Jeroen van Dijk <jeroentjevand...@gmail.com>

Using clojure.spec for api migrations?

2016-09-06 Thread Jeroen van Dijk
Hi, I'm playing with the idea of using clojure.spec to make an API backwards compatible by using conform and unform to transform data from the old version format to a new format version. Below is an example of this in code: Say we have API change that involves changing the name of a nested key:

Re: clojure.spec generation question

2016-06-01 Thread Jeroen van Dijk
t;L" [:not (:and (:and (:and "" (:or "tQ" "s" ""))) > [:not [:not "T"]])] "19f" [:not "8lC”]) > > spec works the same under the hood as what Gary showed, e.g. s/or turns > into gen/one-of etc. > > Rich > >

Re: clojure.spec generation question

2016-05-31 Thread Jeroen van Dijk
ot;] [:or "f_a9" "t_a0" "t_a8"]] [:and [:not "f_a4"] [:or "t_a3" "f_a4"] [:or "t_a3" "f_a3"]) On Tue, May 31, 2016 at 3:14 AM, Gary Fredericks <fredericksg...@gmail.com> wrote: > At a glance, this is prob

clojure.spec generation question

2016-05-30 Thread Jeroen van Dijk
I'm trying to generate logical predicates in order to test a function that should return the predicate in DNF. The generation seems to be biased towards one of the predicates. What am I doing wrong? (require '[clojure.spec :as s]) (require '[clojure.spec.gen :as gen]) (s/def ::atom string?)

Re: [ANN] components.md

2016-04-19 Thread Jeroen van Dijk
Hi Brian, When looking at the Readme of Mount (I think) I already see global state backed in. (defstate ^{:on-reload :noop} mem-db :start (connect config) :stop (disconnect mem-db)) Do I misunderstand this or do we just disagree on what global state is? What if I

Re: [ANN] components.md

2016-04-07 Thread Jeroen van Dijk
> > >> > The thing that this doc also advocates (and I am against) is manual >> dependency management, your app start function must call start on its >> dependencies. This not only hardcodes the dependency, but also requires the >> user to think about the startup order of components on every

Re: component: dynamic configuration

2015-07-07 Thread Jeroen van Dijk
This could be a nice example of how to use component in practise: https://github.com/bevuta/pepa Internally we configure the system map differently. This is based on yet another library https://github.com/RedBrainLabs/system-graph We have extended the idea of this library and we now have a file

Re: Weird behaviour in re-matches ?

2015-06-17 Thread Jeroen van Dijk
Looks like something in re-matches is printing the second argument, but without a terminating newline. A subsequent print, such as of nil\n or (1 2)\n, by the REPL evaluator, with a newline, then completes the line and flushes the output buffer. There seem to be three separate errors here,

Weird behaviour in re-matches ?

2015-06-16 Thread Jeroen van Dijk
I came accross this weird case below with re-matches (in clojure 1.6). For some reason the pattern matches, once just once, only after a parse exception. This pattern repeats with every follow up parse exception. Is this a known bug? It seems to be related with the pending newline too. user=

Re: Weird behaviour in re-matches ?

2015-06-16 Thread Jeroen van Dijk
) foo.gif\n(1 2) cider doesn't have this problem either it seems On Tue, Jun 16, 2015 at 12:56 PM, James Reeves ja...@booleanknot.com wrote: On 16 June 2015 at 10:19, Jeroen van Dijk jeroentjevand...@gmail.com wrote: I came accross this weird case below with re-matches (in clojure 1.6). For some

Re: Actually using component.

2015-06-09 Thread Jeroen van Dijk
I think the most important rule when using component is to only use local state like Timothy stated, i.e. nothings gets def-ed. You could write an application that a -main function that starts the system and you would never need a global reference to the system. In practise however, you do make

Re: One more argument for cyclic dependencies

2015-05-19 Thread Jeroen van Dijk
Maybe I misunderstand the problem, but can't you have the Agents implement protocols (in a different namespace) and refer to that? On Tue, May 19, 2015 at 5:19 AM, Mars0i marsh...@logical.net wrote: Sorry, the reference to an 85X speed difference was a typo. Should be 70X. -- You received

Re: Minimum Viable Database Component

2015-04-30 Thread Jeroen van Dijk
Hi Andy, I'm not aware of such a project, but I can confirm that it is an approach that we apply internally at AdGoji and has been working well for us. For instance, we have (simple) components that mock Kafka and Redis in a way that make them feature compatible to these services in the context

Re: [ANN] Phoenix 0.1.0 - help with structuring configuring Component-based systems

2015-03-31 Thread Jeroen van Dijk
Thanks for sharing James! I'll have a look. As a side note, I see in the example code that you are dissoc-ing on the component. This can lead to unexpected behaviour as I have experienced (mostly in repl cases), as this will return a map instead of a record when the field is not part of the

Re: defmethod inside of a (stuart sierra) component?

2015-02-25 Thread Jeroen van Dijk
I would try to stay away from any nested def's in components (but also in other functions). I'm using component a lot and I never had the need for this. Maybe you can elaborate on why you think you need a multimethod inside the component? Maybe a full example? Cheers, Jeroen On Wed, Feb 25,

Re: defmethod inside of a (stuart sierra) component?

2015-02-25 Thread Jeroen van Dijk
having a 'registry' component which handlers register themselves with (e.g. a map of {predicate handler}) isn't a way forward and not using defmulti... On 25 February 2015 at 12:51, Jeroen van Dijk jeroentjevand...@gmail.com wrote: So I guess another question is where handle-command is being

Re: defmethod inside of a (stuart sierra) component?

2015-02-25 Thread Jeroen van Dijk
payload. Does that clarify? On 25 February 2015 at 12:11, Jeroen van Dijk jeroentjevand...@gmail.com wrote: I would try to stay away from any nested def's in components (but also in other functions). I'm using component a lot and I never had the need for this. Maybe you can elaborate

Re: Resources don't work in uberjar

2015-01-28 Thread Jeroen van Dijk
I'm not sure anymore what your goal is exactly, but here is what I meant to be complete: (defn -main I don't do a whole lot ... yet. [ args] (- hi.txt io/resource slurp (spit out.txt))) On Wed, Jan 28, 2015 at 4:57 PM, Dan Harbin dan.har...@gmail.com wrote: Marshall, If I remove io/file, I

Re: Resources don't work in uberjar

2015-01-27 Thread Jeroen van Dijk
Hi Dan, Not sure if there are better options, but I know `slurp` does work on resources in jars. You could (ab)use `spit` to do the copying. HTH, Jeroen On Tue, Jan 27, 2015 at 3:24 AM, Dan Harbin dan.har...@gmail.com wrote: I've created a sample project at Github[1] to demonstrate the

Re: Datomic Pro Starter: limit per user or per app?

2014-04-24 Thread Jeroen van Dijk
Coincidentally, I was wondering the same today and I asked the same question in different wording on the Datomic mailinglist https://groups.google.com/forum/#!topic/datomic/gvP0ecJghd8 On Thu, Apr 24, 2014 at 1:42 PM, Robin Heggelund Hansen skinney...@gmail.com wrote: Simple question,

Re: Best way to loop a map of maps

2013-12-10 Thread Jeroen van Dijk
Don't forget about the option of walking over a map by using clojure.walk/postwalk or clojure.walk/prewalk I use these functions often lately. Especially useful if you have to update values in your map and they could occur anywhere. It is a bit tricky to get working at first, because the return

Re: CloudFormation template generation with Clojure

2013-11-26 Thread Jeroen van Dijk
Hi Kevin, I've created some kind of wrapper around CF templates too. It is too immature (and ugly) to open source it, but I think it has some nice features, like Ref checking, templating for userdata and schema validation of the CF resources via Prismatic Schema. Can you elaborate on what kind

Re: Quick question on protocols

2013-05-09 Thread Jeroen van Dijk
Hi David, I've used protocols for the exact same purpose (Thrift unpacking, and like you (?), for convenience in Cascalog). I think it works very well and is speedier than other methods. It is also convenient when you have nested data structures and you don't want to care how to go through this

Re: [ANN] stories - bdd lib for clojure

2013-05-02 Thread Jeroen van Dijk
Sounds interesting. The repo seems to be unavailable on Github, is that correct? Jeroen On Sun, Apr 28, 2013 at 3:52 PM, Steven Degutis sbdegu...@gmail.com wrote: Great, thanks. Now it's at https://clojars.org/stories -Steven On Sun, Apr 28, 2013 at 1:25 AM, Michael Klishin

Re: ANN Titanium, a Clojure library on top of Titan

2013-02-12 Thread Jeroen van Dijk
Looks interesting. I'm just wondering if you had a look at hermes [1], and if so, how is it different? [1] https://github.com/gameclosure/hermes On Tue, Feb 12, 2013 at 6:39 PM, AtKaaZ atk...@gmail.com wrote: is there a way to use nested transactions, yet? I am looking at [1] and [2] [1]

Re: Heroku Boot Times

2013-01-23 Thread Jeroen van Dijk
Hi Scott, We had some issues as well. SNAPSHOTS are likely to be an issue because they are re-checked at least once a day. So if your app needs a restart this will be re-checked and might slow down boot time. We also had problems due to this in combination with failing maven mirrors. It is

Re: [ANN] clj-squash 0.1.0

2013-01-22 Thread Jeroen van Dijk
Hi Ragnar, This looks interesting. It looks like the url to the Squash app should be http://www.squash.io instead. I'm currenty (ab)using Airbrake as an exception notifier for my Clojure apps (which is really unsatisfactory for many reasons). Since it seems Squash has been built from a Ruby a

Application monitoring with Netty?

2012-05-22 Thread Jeroen van Dijk
Hi all, I'm planning to deploy an app on Heroku that exploits some features of Aleph (e.g. streaming responses). Coming from the Ruby world I've been spoiled with all the application metrics that NewRelic provides. For Clojure, however, they currently only support Jetty based apps. Does anyone