Re: Releasing Caribou today: Open Source Clojure Web Ecosystem

2013-11-19 Thread Khalid Jebbari
At least you can change Angular.js template tags. See http://stackoverflow.com/questions/8302928/angularjs-with-django-conflicting-template-tags for a how-to and potential problems with this approach. On Tuesday, November 19, 2013 11:27:14 AM UTC+1, David Simmons wrote: Hi Ryan I'm really

Re: [ClojureScript] Re: ANN: Om 0.8.6, Hello CLJSJS

2015-02-02 Thread Khalid Jebbari
Indeed, data is better than app. Khalid aka DjebbZ @Dj3bbZ On Mon, Feb 2, 2015 at 10:49 AM, Sebastian Bensusan sbe...@gmail.com wrote: Thanks Khalid, The way I see it, Om has three concepts regarding state: 1. The global state defined with atom. Named `app-state` 2. The cursor passed to

Re: ANN: ClojureScript 0.0-2719, JavaScript Dependencies

2015-01-24 Thread Khalid Jebbari
A question (maybe stupid/obvious) : why do you need to declare the min version of js lib ? The normal version + the extern file is all that's needed to compress the file with the Closure Compiler, no ? Thanks by way, this means moving towards better integration with (the jungle that is) the

Re: ANN: Om 0.8.6, Hello CLJSJS

2015-02-01 Thread Khalid Jebbari
On Sunday, February 1, 2015 at 9:16:05 PM UTC+1, Sebastian Bensusan wrote: I changed the tutorial to use a new version of the figwheel template https://github.com/bhauman/figwheel-template. When the new template is published to Clojars we can update the Om wiki. I'll move on to the

Scripting with Clojure(Script) : plain Clojure ? Node.js ? Boot ? Planck ? Pixie ?

2015-08-25 Thread Khalid Jebbari
Hi every one, Just starting this thread to gather feedback from people who used CLJ(S) to script and replace, you know, shell/Python/Ruby/Whatever. Pretty sure it's a dream to code AND script with CLJ(S). I know that it's possible to do it with CLJS backed by Node.js/io.js, with Boot somehow,

Leiningen template for pure Clojure/ClojureScript project ?

2017-07-25 Thread Khalid Jebbari
Hello, does anyone know a Leiningen template that scaffolds the minimum required to play with the CLJ(S) compiler, without any Leiningen/Boot stuff ? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Is there a way to use spec/fdef function specs with clojure.test ?

2017-09-29 Thread Khalid Jebbari
Hello, I'm struggling to find a way to to use the fdef specs I wrote in clojure.test tests. I can run them fine in the repl with spec/exercise-fn or spec.test/check, really nice when developping by the way. Now that I'm happy with the result I'd like to encode this knowledge in tests to

Re: Is there a way to use spec/fdef function specs with clojure.test ?

2017-09-29 Thread Khalid Jebbari
y foo.core/bar argz) In the end one shoot write a proper spec/describe parser ? Or has someone a better idea ? On Friday, September 29, 2017 at 12:08:57 PM UTC+2, Khalid Jebbari wrote: > > Hello, > > I'm struggling to find a way to to use the fdef specs I wrote in > clojure.t

Re: Is there a way to use spec/fdef function specs with clojure.test ?

2017-09-30 Thread Khalid Jebbari
you just assert on the return value of spec.test.check in a > clojure.test test? ie, this is a test in one of our repos: > (deftest ^:spec generative > (is (not-any? :failure (st/check [`export/invert-table->account-ids] > > On Friday, September 29, 2017 at 3:36:26 AM UTC-7, Khali

Re: Is there a way to use spec/fdef function specs with clojure.test ?

2017-10-02 Thread Khalid Jebbari
I created https://dev.clojure.org/jira/browse/CLJ-2246 since I'm pretty sure there's a bug. On Monday, October 2, 2017 at 10:15:53 AM UTC+2, Khalid Jebbari wrote: > > Thanks for the link. It almost works ! The problem I have is that > stest/check returns a map with [:failure fa

Re: Is there a way to use spec/fdef function specs with clojure.test ?

2017-10-02 Thread Khalid Jebbari
8109abd840c7553de1c5d7d55608> > helper functions useful for this purpose. > > On Friday, 29 September 2017 15:38:57 UTC+5:30, Khalid Jebbari wrote: >> >> Hello, >> >> I'm struggling to find a way to to use the fdef specs I wrote in >> clojure.test tests. I

[ANN] Citrus (Scrum) 3.0.0 — State management library for Rum

2017-08-28 Thread Khalid Jebbari
Any API change ? Or just renaming? -- 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

Very weird beahviour (bug ?) with clojure.spec

2017-09-27 Thread Khalid Jebbari
Hello, I've written a spec with an attached generator. The generator works ONLY if I rename the spec (yes, the keyword), this is really weird. --- Environment : > java -version openjdk version "1.8.0_144" OpenJDK Runtime Environment (build 1.8.0_144-b01) OpenJDK 64-Bit Server VM (build

Re: Very weird beahviour (bug ?) with clojure.spec

2017-09-27 Thread Khalid Jebbari
Shame on me, I had 2 spec with the same name in the same file... :slap-me-im-famous: On Wednesday, September 27, 2017 at 11:48:27 AM UTC+2, Khalid Jebbari wrote: > > Hello, > > I've written a spec with an attached generator. The generator works ONLY > if I rename the spec (y

Re: [ANN] Clojure 1.9.0-RC2

2017-11-28 Thread Khalid Jebbari
Specs in docs are nice, great addition. 2 things related to them : - what is `quotable` ? Couldn't find its docs in the page - I suppose `:closure.core.spec.alpha/exclude` refers to a spec, but again it's absent from the docs. A quick search in clojure.core and spec.alpha repos didn't reveal

Re: [ANN] Clojure 1.9.0-RC2

2017-11-29 Thread Khalid Jebbari
Thanks for the pointers Alex. Hopefully the problems will be solved one day, most Clojure API will be spec'd and we'll be happy. Keep up the good work. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Re: Sets/Vectors vs Maps/Keywords default value when used as functions

2017-12-13 Thread Khalid Jebbari
:56:58 AM UTC-6, Khalid Jebbari wrote: >> >> Any reason we can't provide default value for sets and vectors when using >> them as functions, whereas it works just fine for maps and keywords ? >> >> Examples : >> >> boot.user=> (["first" "second

Sets/Vectors vs Maps/Keywords default value when used as functions

2017-12-13 Thread Khalid Jebbari
Any reason we can't provide default value for sets and vectors when using them as functions, whereas it works just fine for maps and keywords ? Examples : boot.user=> (["first" "second"] 2 :nope) clojure.lang.ArityException: Wrong number of args (2) passed to: PersistentVector boot.user=>

Re: Understanding GraalVM and Clojure

2018-04-28 Thread Khalid Jebbari
-between-clojure-r-and-python-with-graalvm/> > and repo > <https://github.com/gigasquid/graal-test/blob/master/src/graal_test/core.clj> > that > you may find interesting. > > > On Thursday, April 19, 2018 at 6:00:14 AM UTC-4, Khalid Jebbari wrote: >> >>

Re: Understanding GraalVM and Clojure

2018-05-01 Thread Khalid Jebbari
erify CLJ, CLJS, > and CLR compatibility? Thinking something similar to RubySpec that could be > used to validate the completeness/gaps in a particular implementation (eg > GraalVM). > On Sun, Apr 29, 2018 at 7:16 AM, Khalid Jebbari <khalid.jebb...@gmail.com> > wrote: > >>

Re: Understanding GraalVM and Clojure

2018-04-29 Thread Khalid Jebbari
n Clojure and Graal > > https://www.innoq.com/en/blog/native-clojure-and-graalvm/ > On Sat, Apr 28, 2018 at 10:01 AM, Khalid Jebbari <khalid.jebb...@gmail.com> > wrote: > >> Thank you for the link. >> >> Le sam. 28 avr. 2018 à 00:35, Egg Syntax <eggsyn...@gm

Re: [ANN] Git Deps for Clojure!

2018-01-06 Thread Khalid Jebbari
Great news, great work ! Soon running Clojure will be dead easy. 2 questions : - where do dependencies get downloaded ? `~/.m2` ? It depends on the procurer (mvn/git/etc.) - does it work for Cljs ? What does it mean for Cljs ? -- You received this message because you are subscribed to the

Question: how to spec optional keyword arguments ?

2018-01-16 Thread Khalid Jebbari
Hello, Even after reading carefully the official spec guide and testing in the REPL, I'm not sure I'm `spec`'ing correctly a function that accepts optional keyword args. Here's how I do it in a dumb example : ``` (require '[clojure.spec.alpha :as s]) (defn adder [a b & {:keys [c] :or {c 1}}]

Re: Question: how to spec optional keyword arguments ?

2018-01-16 Thread Khalid Jebbari
Thank you Alex. It happens that I forgot to name the kwargs part in the s/cat call, so the working version should be : (s/fdef adder :args (s/cat :a integer? :b integer? :kwargs (s/keys* :opt-un [::c])) :ret string?) I'm asking because I've just discovered something about

[ANN] zpst 0.1.6 -- see source and actual arguments in your stack trace

2018-06-21 Thread Khalid Jebbari
Haven't tried yet but this looks very interesting! Thanks for sharing. -- 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

Understanding GraalVM and Clojure

2018-04-19 Thread Khalid Jebbari
Hello, Oracle has just announced GraalVM 1.0 release candidate: https://blogs.oracle.com/developers/announcing-graalvm It mentions a few JVM-based language but not Clojure (maybe just because of popularity). - Does it mean Clojure is not "compatible" with GraalVM ? - Does it mean Clojure

Re: Understanding GraalVM and Clojure

2018-04-20 Thread Khalid Jebbari
ugh startup (Clojure starts quickly, it's the deps/tooling that >> are slow) >> - Requires type hinting to avoid reflection >> >> B. Clojure on Truffle >> - More-or-less the same performance >> - Faster un-type-hinted math >> - (Possibly) Faster transducers/

Re: Understanding GraalVM and Clojure

2018-04-20 Thread Khalid Jebbari
Oh a question Timothy. You said you managed to get Clojure running in GraalVM. What was the outcome ? 100% compatibility? Faster/slower ? Memory footprint? Curious about how it worked. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Nesting test.check's defspec tests like deftest/testing

2018-03-29 Thread Khalid Jebbari
Hello everyone, Is there a way to nest defspec tests like we can with deftest and testing ? I'm porting some tests from deftest to defspec but losing the ability to nest them make them a bit less readable. Thanks in advance -- You received this message because you are subscribed to the

Re: What's the end goal for tools.deps?

2018-11-07 Thread Khalid Jebbari
Sean, your deps.edn is a golden mine. Thanks a lot for sharing it. On Sunday, November 4, 2018 at 4:46:45 AM UTC+1, Didier wrote: > > I read the rationale, and I understand that we needed a way to bundle > depencies for clj and clojure cli. But in practice, I'm seeing a lot of > people move to

Re: [ANN] 1.10.0-beta5

2018-11-07 Thread Khalid Jebbari
bject? > If so, is it a way to transform nested Java objects into Clojure data, and > possibly back? > > On Wednesday, 7 November 2018 00:12:44 UTC-8, Khalid Jebbari wrote: >> >> Alex, it's funny that the example you showed about using the new >> extension mechanis

Re: [ANN] 1.10.0-beta5

2018-11-07 Thread Khalid Jebbari
Alex, it's funny that the example you showed about using the new extension mechanism looks very much like implementing lifecycle hooks in React.js (and the various CLJ/CLJS wrappers). Indeed having value-based extension makes it much more flexible than having to use deftype/defrecord. My

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

2018-12-11 Thread Khalid Jebbari
Thank you Didier, I've seen this documentation about the reflection json file. However it appears that even `(set! *warn-on-reflections true)` doesn't always catch reflections. I suppose it means I have to use profilers like jvisualvm (don't remember the exact name) to watch for calls to

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

2018-12-04 Thread Khalid Jebbari
Thanks a lot for the links. Indeed it seems that parts of Clojure inevitably end up using reflections unless anotated. -- 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

Re: Efficient Predicate Dispatch [was ANN: Logos v0.6]

2018-11-19 Thread Khalid Jebbari
t; On Monday, November 19, 2018 at 9:50:20 AM UTC+1, Khalid Jebbari wrote: >> >> https://github.com/swannodette/match/wiki/Crazy-Ideas >> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fswannodette%2Fmatch%2Fwiki%2FCrazy-Ideas=D=1=AFQjCNEXPd6rtfgrvqXsfNgHMPGx0Wjw7A

Re: Efficient Predicate Dispatch [was ANN: Logos v0.6]

2018-11-19 Thread Khalid Jebbari
https://github.com/swannodette/match/wiki/Crazy-Ideas is 404, as well as https://github.com/swannodette/match

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

2018-11-26 Thread Khalid Jebbari
Hi, I was doing a small experiment with Clojure and GraalVM and ended with this minimal reproduction case of an incompatibility between Clojure's `eval` and GraalVM's native-image tool (the program that compiles a JVM program to a native executable, based on the GraalVM's SubstrateVM

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

2018-11-26 Thread Khalid Jebbari
> call methods on the newly formed class/object except for > too-simple-to-be-interesting cases. > > On Mon, Nov 26, 2018 at 11:43 AM Khalid Jebbari > wrote: > >> Hi, >> >> I was doing a small experiment with Clojure and GraalVM and ended with >> this

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

2018-11-26 Thread Khalid Jebbari
Thanks for pointing out jaotc. It's not what I need but it's good to know it exists. Do you know if it's possible to AOT (part of) a Clojure program with it? I'm curious. On Mon, Nov 26, 2018, 7:06 PM Ghadi Shayban Substrate makes a closed world assumption. jaotc is open world, and also > based