livecoding with Quil middleware

2017-03-17 Thread Jay Porcasi
hello, i hope this is the place to discuss questions about Quil (i couldn't find a dedicated forum) and first of all, kudos to Nikita for this incredible library, which i find even better than the original Processing it's not just a matter of using a different syntax than java, but Nikita

Re: instrument code only in dev, with lein

2017-03-17 Thread Matching Socks
In a nutshell: leverage distinct classpaths. Adjust the :dev profile in project.clj to prepend a directory other than src to :source-paths, and likewise a directory other than resources for :resource-paths. In development, use code or resources from the dev classpath to override default

instrument code only in dev, with lein

2017-03-17 Thread Brian Craft
How do you instrument code, e.g. apply ring wrap-reload, wrap-stacktrace-web, etc., only in dev, not in uberjar? -- 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

Re: Defrecord Conflict

2017-03-17 Thread Francis Avila
Import does not demand name mapping. You can import a full path without aliasing. This will work fine: (ns multi.core (:require [multi.ns1] [multi.ns2]) (:import [multi.ns1.Animal] [multi.ns2.Animal])) (multi.ns1.Animal. "hi") (But remember to use the keyword

Defrecord Conflict

2017-03-17 Thread tmountain
Say that I have the following: -- ns1.clj -- (ns multi.ns1) (defrecord Animal [name]) -- ns2.clj -- (ns multi.ns2) (defrecord Animal [name]) -- core.clj -- (ns multi.core (:require [multi.ns1] [multi.ns2]) (import [multi.ns1 Animal] [multi.ns2 Animal])) My intent is

Re: Handling dependency conflicts

2017-03-17 Thread arthur
Daniel, I'll check out OSGi (you might be right about the cure being worse). I think Java 9 modules were originally supposed to include versioning as well, but currently "The State of the Module System" says "A module’s declaration does not include a version string, nor constraints upon

Re: Will it ever be possible to use reader conditionals in clojure macros

2017-03-17 Thread Arewa Olakunle
Sorry I posted this here, wasn't aware of clojurescript group. Found a similar posting(almost a clone) here with a useful hack here

Re: [ANN] Virgil 0.1.6

2017-03-17 Thread Mike Rodriguez
I've have used this as a lein plugin and I think it is a really great tool to have available. It makes working on Java or a hybrid Java/Clojure project more tolerable. On Thursday, March 16, 2017 at 2:13:35 PM UTC-4, Zach Tellman wrote: > > I figured it was worth reminding everyone that this

Re: Combinatorics partitions that preserves adjacency?

2017-03-17 Thread Steve Miner
For what it’s worth, I gave your problem a try and come up with the following implementation based on Mark Engelberg’s suggestion. It should do less generating work up front so you don’t have to filter unwanted results. This code depends on `combinations` preserving the order of the items.

Will it ever be possible to use reader conditionals in clojure macros

2017-03-17 Thread Arewa Olakunle
I have been trying to define a macro for clojurescript/clojure using a cljc file (ns async (:require #?(:clj [clojure.core.async :as a :refer [go-loop]]) #?@(:cljs [[cljs.core.async :as a] [cljs.core.async.macros :refer [go-loop]]]))) (defmacro dochan