Error on master with OS X

2010-05-07 Thread Sam Aaron
Hey there, I'm running with the latest version of overtone with Fabian's new OS X SC binaries (yey). However, I'm getting some strange errors on boot. Can somebody help me work out what's going wrong? Sam Clojure 1.1.0 user= (use 'overtone.live) (boot)

Re: Error on master with OS X

2010-05-07 Thread Sam Aaron
oops, I fired this off too quickly to the wrong group :-) Sorry! Sam --- http://sam.aaron.name On 6 May 2010, at 6.04 pm, Sam Aaron wrote: Hey there, I'm running with the latest version of overtone with Fabian's new OS X SC binaries (yey). However, I'm getting some strange errors

[ANN] Overtone 0.8.0 - Performance Ready

2013-01-26 Thread Sam Aaron
Hi everyone, In case you were wondering how you might raise your spirits now that Christmas is well and truly over - I have the answer! Overtone 0.8 is here and is ready to bring joy to you all! We've been working hard for 7 long months on this release and things are really starting to shine.

Re: [ANN] Overtone 0.8.0 - Performance Ready

2013-01-26 Thread Sam Aaron
-0.5.0.jar /Users/cpennington/.m2/repository/overtone/osc-clj/0.9.0/osc-clj-0.9.0.jar /Users/cpennington/.m2/repository/overtone/libs.handlers/0.2.0/libs.handlers-0.2.0.jar On Saturday, January 26, 2013 2:23:51 PM UTC-5, Sam Aaron wrote: So perhaps this wasn't included in the uploaded release

Re: [ANN] Overtone 0.8.0 - Performance Ready

2013-01-26 Thread Sam Aaron
On 26 Jan 2013, at 20:17, Sam Aaron samaa...@gmail.com wrote: I pulled out the GUI widgets from this release as I found a number of issues with them at the last minute and want them to be super stable and polished when we release them. I should also say that these GUI widgets are currently

LambdaNext Clojure Workshop - London May 20-22 2013

2013-04-15 Thread Sam Aaron
Are you interested in becoming a professional Clojure programmer? Want to jumpstart your knowledge or simply take things to the next level? The LambdaNext team is holding a Clojure workshop in London, May 20-22 2013. Come join us! http://lambdanext.eu * An intensive learning experience The

Re: LambdaNext Clojure Workshop - London May 20-22 2013

2013-05-09 Thread Sam Aaron
, Sam Aaron samaa...@gmail.com wrote: Are you interested in becoming a professional Clojure programmer? Want to jumpstart your knowledge or simply take things to the next level? The LambdaNext team is holding a Clojure workshop in London, May 20-22 2013. Come join us! http://lambdanext.eu

Meta-eX: Hacking Overtone on the Stubnitz - Thurs 16th May

2013-05-13 Thread Sam Aaron
Hey everyone, You've heard of people live coding Clojure examples as part of their talks. Heck, you've probably even seen Stuart Halloway jam on Chris Ford's Bach composition in the new O'Reilly lecture series Clojure Inside Out. However, that's just warm-up material... Come and jump aboard

Re: Recommendation for Clojure Enterprise Development toolkit

2011-07-09 Thread Sam Aaron
On 9 Jul 2011, at 09:29, MarkH wrote: Industry and academia is moving towards advanced type systems. I'm not even sure what this means - especially in the context of programming languages. Industry and academia are orthogonal and have extremely different goals. Perhaps one might perceive them

clojurescript development workflow

2011-07-24 Thread Sam Aaron
Hi there, Having never really enjoyed javascript and therefore avoiding it for the longest time, I'm now quite excited to jump into it given the introduction of ClojureScript. It's really quite exciting - thanks everyone for putting so much effort and thought into it. One thing I'm wondering

Re: clojurescript development workflow

2011-07-25 Thread Sam Aaron
On 24 Jul 2011, at 23:10, Eric Lavigne wrote: Also, look for a recent post by Peter Taoussanis. It sounds like he has come up with a very good workflow for ClojureScript development. That certainly looks very interesting and exactly the kind of thing I was looking for. Also, with respect

Re: ClojureScript

2011-07-25 Thread Sam Aaron
Hi Peter, I would also love to know how you set this up in a little more detail. It really sounds like an excellent approach… Sam --- http://sam.aaron.name On 25 Jul 2011, at 05:46, FL wrote: On Jul 24, 1:44 pm, Peter Taoussanis ptaoussa...@gmail.com wrote: ... I am, literally,

Re: clojurescript development workflow

2011-07-25 Thread Sam Aaron
On 25 Jul 2011, at 17:33, Max Weber wrote: Hi, today I've been working on cljs-devmode: https://github.com/maxweber/cljs-devmode It is a really primitive prototype of a development mode for ClojureScript. For an explanation take a look at the README on the GitHub repo. I'm in a hurry

determining whether state has changed in a thread safe manner

2011-07-25 Thread Sam Aaron
Hi there, I have some state which I'd like to set to some default value, A. I'd then like to update A to a new value A' and then, if (not (= A A')) I'd like to fire off a function - say print to stdout that A has changed. If (= A A') I'd like nothing to happen at all. Additionally, I'd like to

Re: determining whether state has changed in a thread safe manner

2011-07-25 Thread Sam Aaron
On 25 Jul 2011, at 21:45, Sam Aaron wrote: (defn update [] (let [changed? (dosync (let [old-a @a new-a (ref-set a (new-val))] (= old-a new-a)))] (when changed? (changed-fn Clearly I meant (not (= old-a new-a)) :-) Sam

Re: determining whether state has changed in a thread safe manner

2011-07-25 Thread Sam Aaron
Hi Meikel, On 25 Jul 2011, at 21:51, Meikel Brandmeyer wrote: you want a watch. (def a (atom 0)) (add-watch a ::your-id (fn [_your-id _a old-val new-val] (when (not= old-val new-val) (println New value: new-val (swap! a inc) (reset! a 1) (swap! a inc) That's cool to know -

Re: determining whether state has changed in a thread safe manner

2011-07-25 Thread Sam Aaron
Hi Meikel, On 25 Jul 2011, at 22:46, Meikel Brandmeyer wrote: Am 25.07.2011 um 23:12 schrieb Sam Aaron: Since this is callback based, you can't return a value. Do you want more something like a polling solution? Then you'll have to roll your own with an atom

Re: determining whether state has changed in a thread safe manner

2011-07-26 Thread Sam Aaron
Hi Nick, On 25 Jul 2011, at 23:55, cassiel wrote: Not very practical, but if you want a safe transaction-free operation on an atom which returns whether it was changed, you can perhaps hack it by embedding the change state into the atom itself: (def a (atom {:value 45 :changed? false}))

Re: determining whether state has changed in a thread safe manner

2011-07-26 Thread Sam Aaron
Hey Ken, On 26 Jul 2011, at 09:45, Ken Wesson wrote: This seems to have been left out: (defn swap-and-also-return-old! [^clojure.lang.Atom a f] (loop [] (let [v @a nv (f v)] (if (compare-and-set! a v nv) [nv v] (recur) :) Thanks for this :-)

dynamically generated let bindings

2011-07-28 Thread Sam Aaron
Hi there, I'm trying to create a fn which does the following: * returns a fn which takes an arbitrary number of args * calls a helper fn, passing the incoming args returning a vector of alternating symbols and vals * creates a let form using the vector of alternating symbols and vals returned

Re: dynamically generated let bindings

2011-07-29 Thread Sam Aaron
On 29 Jul 2011, at 07:22, Ken Wesson wrote: On Fri, Jul 29, 2011 at 12:49 AM, Jeff Rose ros...@gmail.com wrote: I don't think it's very typical to pass a form to a function, unless you plan on using eval at runtime. Or it's a function called by a macro to do some processing of forms. Yep,

Re: dynamically generated let bindings

2011-07-29 Thread Sam Aaron
On 29 Jul 2011, at 00:46, Kent wrote: I'm not sure what you're trying to do with this and, based on that ignorance, I'm not sure I think it's a great idea. Maybe you are being a bit crazy, and maybe your a genius. Who am I to say? Here is a function that does what you want. The only

Re: dynamically generated let bindings

2011-07-29 Thread Sam Aaron
Hi Alan, On 29 Jul 2011, at 10:05, Alan Malloy wrote: Sorry, I was just trying to simplify things to try and get directly to the meat of the problem. No apologies needed - reducing to a simple case is great. But here, the simplification was probably too severe. Sorry, I'm English -

Re: dynamically generated let bindings

2011-07-29 Thread Sam Aaron
Hi there, On 29 Jul 2011, at 10:05, Alan Malloy wrote: (defn binding-vec [foos] ['size `(count ~foos)]) (defmacro magic-fn [ forms] (let [args (gensym 'args)] `(fn [ ~args] (let ~(binding-vec args) ~@forms ((magic-fn (+ size 10)) 1 2) ;= 12 Actually, sadly,

Re: dynamically generated let bindings

2011-07-29 Thread Sam Aaron
On 29 Jul 2011, at 12:11, Ken Wesson wrote: Why not just (vec (interleave names (take (count names) (repeat `(count ~foos)? That seems to blow up: (defn binding-vec [foos] (vec (interleave names (take (count names) (repeat `(count ~foos)) (defmacro magic-fn [ forms] (let

Re: dynamically generated let bindings

2011-07-29 Thread Sam Aaron
On 29 Jul 2011, at 12:56, Ken Wesson wrote: That seems to blow up How so? (defn binding-vec [foos] (vec (interleave names (take (count names) (repeat `(count ~foos)) (defmacro magic-fn [ forms] (let [args (gensym 'args)] `(fn [ ~args] (let ~(binding-vec args)

Re: dynamically generated let bindings

2011-07-30 Thread Sam Aaron
Hi Ken, On 29 Jul 2011, at 22:02, Ken Wesson wrote: P.S. Thanks everyone for your help so far. My brain is overheating but I am learning a lot. You're welcome. To do what you're proposing you will probably need the emitted function to look like: (fn [ args] (let [foo (some logic

Overtone 0.2 released

2011-08-04 Thread Sam Aaron
Hi there, I just wanted to announce the release of Overtone 0.2. There's been a considerable amount of work behind this and we're rapidly moving towards having a super stable and robust musical platform that really pushes at the boundaries of what's possible with sound synthesis today. The

Re: ANN: Optimized Pattern Matching Library for Clojure

2011-08-09 Thread Sam Aaron
Exciting stuff! Do you happen to have any simple descriptions/examples of where and how we might use this stuff in our daily programming repertoires? I for one am sure I'm not educated enough as to the value and utility of pattern matching - at the moment I just think that looks cool rather

Re: ANN: Optimized Pattern Matching Library for Clojure

2011-08-09 Thread Sam Aaron
Wonderful. Baishampayan and Ambrose thanks so much for your fantastically lucid examples. I can totally see myself using this stuff. David and Ambrose, it's remarkable work - well done! Sam --- http://sam.aaron.name -- You received this message because you are subscribed to the Google

at-at

2011-08-10 Thread Sam Aaron
Hi, I just wanted to announce the arrival of the newly-born at-at library - freshly extracted from Overtone: https://github.com/overtone/at-at at-at is an ahead-of-time function scheduler which essentially provides a friendly wrapper around Java's ScheduledThreadPoolExecutor. Enjoy! Sam

Re: [ANN] Lacij v.0.4.0

2011-08-12 Thread Sam Aaron
Great stuff. I need something like this to visually render the internal design of synths in Overtone. Keep up the great work, Sam --- http://sam.aaron.name On 11 Aug 2011, at 14:02, Pierre Allix wrote: Hello, I'm pleased to announce the release of the version 0.4.0 of the Lacij graph

osc-clj 0.5.0 - Open Sound Control for Clojure

2011-08-16 Thread Sam Aaron
Hi there, I just thought I'd announce quite a significant update to osc-clj. This is the first release that can claim to have full support for the OSC spec: http://opensoundcontrol.org/spec-1_0 The major new features are as follows: * Support for the timely dispatch of bundles scheduled for

Re: osc-clj 0.5.0 - Open Sound Control for Clojure

2011-08-16 Thread Sam Aaron
Hey Nick, On 16 Aug 2011, at 13:57, cassiel wrote: Is this reachable via Lein/Maven? Absolutely. The 0.5.0 release is on Clojars, so you just need to add: [overtone/osc-clj 0.5.0] to your project dependencies in project.clj for cake/lein. To get started with the lib, first up, check out

Re: Another ClojureScript app in the wild

2011-08-18 Thread Sam Aaron
Very cool! Now the logic of pacman is in a form I can easily read :-) Out of interest, do you know why it only works in Chrome? Doesn't the closure library do any work to shield you from from the browser differences, or is it simply a performance issue with the Chrome js engine the only one

Re: Video Slides on Pattern Matching and Predicate Dispatch in Clojure

2011-08-19 Thread Sam Aaron
Awesome talk - thanks! I particularly enjoyed the sign behind you that says Don't Panic! - it helped keep me calm during the hairily complex parts :-) I really look forward to seeing where you go with this stuff… Sam --- http://sam.aaron.name On 18 Aug 2011, at 21:10, David Nolen wrote:

generic math, comparator and arithmetic libs

2011-08-31 Thread Sam Aaron
Hi there, is anyone aware of any plans to move Konrad Hinsen's generic math, comparator and arithmetic libraries to new separate 1.3 contrib libs? * http://richhickey.github.com/clojure-contrib/generic.math-functions-api.html *

Re: generic math, comparator and arithmetic libs

2011-09-01 Thread Sam Aaron
Hi Konrad, that's great news :-) Thanks for such a useful set of libraries. Oh, and whilst we're on the subject, is there any reason why generic.comparison doesn't include != Sam --- http://sam.aaron.name On 1 Sep 2011, at 08:29, Konrad Hinsen wrote: On 31 août 11, at 17:04, Sam Aaron

Re: generic math, comparator and arithmetic libs

2011-09-01 Thread Sam Aaron
On 1 Sep 2011, at 09:35, Alan Malloy wrote: I don't see any reason for it to include !=, which can be implemented as (not (= a b)). Conversely, = could be implemented as (or ( a b) (= a b)), but if either of those is expensive operations he gives you a chance to do a more-optimized =. There's

fn with same name as ns

2011-09-05 Thread Sam Aaron
Hi there, The docstring for one of the Overtone ugens fns isn't printing correctly - it's returning an empty docstring. I discovered that that particular ugen has the same name as one of the namespaces that is visible at that scope. The fn is called osc and the namespace for sending and

Re: generic math, comparator and arithmetic libs

2011-09-06 Thread Sam Aaron
On 6 Sep 2011, at 11:33, Konrad Hinsen wrote: I must assume that nobody read that message, as there should have been loud complaints. There is obviously no difference in performance between = and not=, as the result of either one is known as soon as one can decide equality OR

Re: Swarming experiment at Conj?

2011-09-09 Thread Sam Aaron
Hi Brian, This is something I'd be TOTALLY up for. Also, your setup description sounds very similar to the setup Jeff Rose and I use to jam and hack Overtone together. In fact, we went one step further and allowed both Emacs and Vim instances to communicate with the same shared JVM. All we

Re: Swarming experiment at Conj?

2011-09-09 Thread Sam Aaron
On 8 Sep 2011, at 23:54, Phil Hagelberg wrote: As he presented, I found myself thinking that a similar thing should be possible with 8 Emacs instances talking to one `lein swank` instance. Nah, you should do it with a single Emacs instance with 8 emacsclients connected; that way you

Re: Clojure in Emacs Seemingly Impossible

2011-09-11 Thread Sam Aaron
Hi Curran, I made this video for hacking Overtone with Emacs: http://vimeo.com/25190186 However, Overtone can just be viewed as an example project - it's really just a description of how to get a working Clojure/Emacs setup. Sam --- http://sam.aaron.name On 10 Sep 2011, at 18:29, Curran

Re: Clojure in Emacs Seemingly Impossible

2011-09-11 Thread Sam Aaron
On 11 Sep 2011, at 16:37, kjeldahl wrote: I use Emacs for virtually everything, but have found that Emacs +Clojure is less than idea when working with multiple threads (like hosting and running a Jetty server). I believe this is mostly related to how Java and Emacs+Slime handles input/output

Re: Clojure in Emacs Seemingly Impossible

2011-09-11 Thread Sam Aaron
On 11 Sep 2011, at 22:42, kjeldahl wrote: I'm no expert, but if I had to choose between getting all output in a file, or some output in the repl buffer and some in *swank*, I would prefer the former (which is what I believe cake actually does). Used from within Emacs, cake places all output

Overtone 0.3 released

2011-09-12 Thread Sam Aaron
Hey everyone, I've just pushed out a shiny new Overtone release to Clojars. Although it's only been a little over a month since the last release, there's been quite a lot of work committed that it definitely warranted a new number and a little release party! So update your music project

Re: Overtone 0.3 released

2011-09-14 Thread Sam Aaron
I should also mention that we have a cheat sheet too: http://cloud.github.com/downloads/overtone/overtone/overtone-cheat-sheet.pdf Thanks to Steve Tayon for such an excellent template. Sam --- http://sam.aaron.name On 13 Sep 2011, at 00:03, Sam Aaron wrote: Hey everyone, I've just pushed

Re: How to attach debugger on clojure's repl ?

2011-09-23 Thread Sam Aaron
On 23 Sep 2011, at 06:14, Glen Stampoultzis wrote: Ritz looks really nice the setup seems complicated. I haven't had much luck setting it up unfortunately. Me neither. Here's the steps I took so far: * Cloned https://github.com/pallet/ritz to a tmp dir * Copied the slime dir inside

Re: How to attach debugger on clojure's repl ?

2011-09-23 Thread Sam Aaron
On 23 Sep 2011, at 14:24, Hugo Duncan wrote: I've not actually tried running ritz from cake recently. Which version of cake? 0.6.3 I've also not tried running with 1.3.0-RC0. I get the same issue (unknown task: ritz) with Clojure 1.2.0 I imagine this is some issue preventing the

Overtone 0.4.0 - Clojure 1.3 ready

2011-09-25 Thread Sam Aaron
Hi everyone, given that Clojure 1.3 has recently gone GOLD (http://www.youtube.com/watch?v=n0pvFulUd98) I thought we should celebrate with a new version of Overtone with full Clojure 1.3 support. Overtone 0.4.0 is now on Clojars and tagged on Github.

Re: Overtone 0.4.0 - Clojure 1.3 ready

2011-09-25 Thread Sam Aaron
On 25 Sep 2011, at 17:55, Bruce Durling wrote: Is this the version you'll be covering at your talk at skillsmatter on 3 October? Of course and perhaps other bits and bobs I develop between now and then :-) It should be a lot of fun. Sam --- http://sam.aaron.name -- You received this

Re: What happened to bignum support? (clojure 1.3.0)

2011-09-25 Thread Sam Aaron
Hi George, On 25 Sep 2011, at 22:25, George Kangas wrote: Previous versions would silently, automagically convert to bignums and give me the answer I wanted. Is clojure-1.3.0 too serious, enterprisy, and Java-like for this sort of thing? I found no clue in the list of changes.

Re: Mailing List Decorum

2011-10-15 Thread Sam Aaron
While I understand and respect the importance of focussing discussions to the making of things, surely there is more to a community communication substrate than this sole category of topic. Do these guidelines, therefore, attempt preclude threads such as the discussion on the possible impact

Re: Mailing List Decorum

2011-10-15 Thread Sam Aaron
to avoid discussions about what ought to happen and focus more on doing it. -- Devin On Saturday, October 15, 2011 at 2:34 PM, Sam Aaron wrote: While I understand and respect the importance of focussing discussions to the making of things, surely there is more to a community

Re: Mailing List Decorum

2011-10-15 Thread Sam Aaron
and consideration are ok, and a lack of them is not. Rich On Oct 15, 4:57 pm, Sam Aaron samaa...@gmail.com wrote: Devlin, I totally agree with you :-) I read the core of the post in a similar fashion and I respect and agree with the general notion. However, my perception of the tone

Re: Mailing List Decorum

2011-10-15 Thread Sam Aaron
Sorry, accidentally hit the send mail key combo! Here's the completed email... On 15 Oct 2011, at 23:14, Rich Hickey wrote: Your last bit confuses me. You certainly are making something wonderful in, and for, Clojure with Overtone. I don't know where I said or implied anything about the

Save your ears - use Overtone 0.5.0

2011-10-18 Thread Sam Aaron
'tis that time again when we jump around in celebration of the new and the crazy: Overtone 0.5.0 is out! Hip-hip-hooray! So, what's new? First up we have some fantastic new committers. Please give a warm welcome to: * Nick Orton * Kevin Neaton * Jowl Gluth * Chris Ford * Philip Potter In

Re: R.I.P. John McCarthy

2011-10-25 Thread Sam Aaron
For those in fresh need of having their minds blown, this is always a good detonator: http://www.paulgraham.com/rootsoflisp.html Sam --- http://sam.aaron.name On 25 Oct 2011, at 04:58, finbeu wrote: John McCarthy, the father of Lisp, died last night at the age of 84. -- You received

Re: Problem passing a function into a function

2011-11-03 Thread Sam Aaron
Hi Andy, the issue you're having is that using the for rest args captures the rest of the arguments as a seq. Therefore when you pass a fn as the final parameter to #'timed-agent, #'test-func is not bound to the fn you passed in but a seq containing that fn. You either need to pull out the fn

Access to unzipped assets within jars

2011-11-05 Thread Sam Aaron
Hi there, consider there exists foo.jar on Clojars which contains a bunch of asset files i.e. png images. If I were to declare foo as one of my project's dependencies, is it possible to get access to those asset files? I essentially want a path to a non-zipped version of each asset. Sam ---

Re: Access to unzipped assets within jars

2011-11-05 Thread Sam Aaron
--- http://sam.aaron.name On 5 Nov 2011, at 14:03, Ben Smith-Mannschott wrote: On Sat, Nov 5, 2011 at 14:42, Sam Aaron samaa...@gmail.com wrote: Hi there, consider there exists foo.jar on Clojars which contains a bunch of asset files i.e. png images. If I were to declare foo as one of my

Re: Forcing computation

2011-11-15 Thread Sam Aaron
If you're only interested in the side effects of the computation and not the result say: (map #(println %) [1 2 3 4]) you can use dorun rather than doall as it doesn't retain the head (therefore requiring less memory). (dorun (map #(println %) [1 2 3 4])) Also, if you see yourself mapping

Re: [ANN] Avout: Distributed State in Clojure

2011-12-01 Thread Sam Aaron
Hi David, I'm super excited by Avout. It seems *better* than magic in that it not only appears to make complicated things possible, but also in a conceptually transparent way. Crazy cool. I'm about to look into this in detail, but I thought I'd just post an issue I'm having with the basic

Re: [ANN] Avout: Distributed State in Clojure

2011-12-01 Thread Sam Aaron
your deps, and trying again? David On Dec 1, 2011, at 10:04 AM, Sam Aaron wrote: Hi David, I'm super excited by Avout. It seems *better* than magic in that it not only appears to make complicated things possible, but also in a conceptually transparent way. Crazy cool. I'm about

Re: [ANN] Avout: Distributed State in Clojure

2011-12-01 Thread Sam Aaron
if that succeeds, then try setting the value. (def r1 (zk-ref client /r1)) (dosync!! client (ref-set!! r1 0)) Thanks again, David On Dec 1, 2011, at 11:20 AM, Sam Aaron wrote: Hi David, I nuked all my zookeeper deps in my lib and ~/.m2 dirs, but similar to Edmund experience it doesn't

Re: [ANN] Avout: Distributed State in Clojure

2011-12-01 Thread Sam Aaron
On 1 Dec 2011, at 17:21, David Edgar Liebke wrote: Did you initialize the STM? (init-stm client) Works perfectly for me too. Perhaps it might help to add that to the example snippet to stop idiots like myself falling into that trap :-) Sam --- http://sam.aaron.name -- You received this

Re: [ANN] Avout: Distributed State in Clojure

2011-12-01 Thread Sam Aaron
it the first time, to set up the necessary zookeeper nodes, it's described in the main tutorial but not the snippet on the top of the avout site. David On Dec 1, 2011, at 12:15 PM, Sam Aaron wrote: Hi David, thanks for looking into this so promptly. Sadly 0.5.1 just throws

Re: Avout: Distributed State in Clojure

2011-12-01 Thread Sam Aaron
On 1 Dec 2011, at 18:26, liebke wrote: Just released Avout 0.5.2, which now includes automatic STM initialization (no more pesky init-stm step). Ha, throw down the gauntlet, then beat me to it ;-) Great work, Sam --- http://sam.aaron.name -- You received this message because you are

Re: How to attach debugger on clojure's repl ?

2011-12-03 Thread Sam Aaron
On 3 Dec 2011, at 14:03, Chris Perkins wrote: On Friday, September 23, 2011 8:00:36 AM UTC-4, Sam Aaron wrote: I'd be very happy to write up a Getting Started tutorial on the ritz wiki if I can get things working. Sam (two months later) Not to publicly shame you or anything, Sam

Re: post your feedback on the conj

2010-12-08 Thread Sam Aaron
The rollout of videos has already started: http://twitter.com/clojure_conj/status/10324356836102144 Sam --- http://sam.aaron.name On 1 Dec 2010, at 18:39, PublicFarley wrote: Yup. Count me in as another Clojurian thirsty for videos from the conference. I'm definitely willing to fork

fns taking primitives support only 4 or fewer args

2011-01-14 Thread Sam Aaron
Today I evaluated John Lawrence Aspden's Clojure port of a fractal tree program which contains optimisations targeting 1.3: http://www.learningclojure.com/2010/09/clojure-13-first-impression.html Unfortunately, this no longer compiles with 1.3.0-alpha4 as draw-tree has too many arguments:

Re: Create a map from two seqs

2011-01-17 Thread Sam Aaron
Hi Stuart, I believe you might looking for zipmap: - clojure.core/zipmap ([keys vals]) Returns a map with the keys mapped to the corresponding vals. This is used as follows: user= (zipmap [:a :b :c] [[1 2] [3 4] [5 6]]) {:c [5 6], :b [3 4], :a [1 2]} There are a lot

Re: ANN: Clojure Toolbox (Early Beta)

2011-02-23 Thread Sam Aaron
James Reeves wrote: I'm sure I've covered only a very small proportion of Clojure libraries out there, so if you'd like to suggest a project that's not on there, please do so in this thread, or in an email to me. I'll try and update the site as quickly as possible. How about a Music Sound

serial-port

2011-03-15 Thread Sam Aaron
Hi there, I just thought I'd announce serial-port, a small library I put together based on my Monome and Arduino work: https://github.com/samaaron/serial-port http://clojars.org/serial-port It depends on rxtx22 which is a small Clojar which packages RxTx 2.2 binaries which can be found here:

Re: Clojure Conj 2011 Call For Speakers Now Open

2011-04-05 Thread Sam Aaron
On 5 Apr 2011, at 19:17, Christopher Redinger wrote: If you are interested in speaking at this year's Clojure Conj, please send us your talk ideas! Are you really requiring two abstracts or is that just a nice bit of cheese? I only have one topic I'd like to talk about. If that's

minor pauses

2011-04-07 Thread Sam Aaron
Hi there, I'm trying to track down what might be creating seemingly sporadic tiny pauses in my application execution. Essentially the system is calling a JNI interface with a regular rhythm. Most of the time this is the case, however, occasionally the system will pause for a few hundred ms and

Re: minor pauses

2011-04-07 Thread Sam Aaron
Hi Peter, On 7 Apr 2011, at 18:45, Peter Schuller wrote: * GC kicking in -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps Will tell you immediately. This is brilliant, thanks for letting me know about it. Here's a short snippet of my system running. I'm using the following jvm

Re: better error messages smaller stack traces

2011-04-14 Thread Sam Aaron
Here's something that could be clearer (it wasn't obvious to me that something like addition would cause a null pointer exception): user= (+ 1 nil) java.lang.NullPointerException (NO_SOURCE_FILE:0) Sam --- http://sam.aaron.name On 8 Feb 2011, at 14:01, Stuart Halloway wrote: This

Re: Open Source Projects for Beg/ Intermediate

2011-04-16 Thread Sam Aaron
It feels to me that in addition to asking which open source projects would be useful/beneficial for novices to hack on, it would be useful to have a list of open source projects that are useful/beneficial for novices to read and understand. One thing that Clojure has taught me is that code

Overtone Live Coding Emacs Config

2011-04-24 Thread Sam Aaron
Hey there, I just thought I'd mention I've created an Emacs config template which, although targeted for live coding with Overtone, would serve as a pretty useful config base for general Clojure hackery: https://github.com/overtone/live-coding-emacs The highlights are as follows: * Clojure

Intro to Live Programming with Overtone

2011-04-24 Thread Sam Aaron
Hey there, you may have heard about Overtone - the Clojure front-end to SuperCollider server that we've been working on for the past year or so. However, perhaps you've not seen much of it - and if not perhaps you'd like to? Well, I've just finished putting together a very short (4 min)

Re: Intro to Live Programming with Overtone

2011-04-24 Thread Sam Aaron
On 24 Apr 2011, at 23:49, rob levy wrote: Wow, that is awesome, I am definitely going to have to play with that. Thanks :-) Hopefully we'll see you on the Overtone mailing list somepoint soon... As a side note, what did you write or use to configure your emacs in that way? The Live

Re: Intro to Live Programming with Overtone

2011-04-25 Thread Sam Aaron
Hi Devin, On 25 Apr 2011, at 00:57, Devin Walters wrote: You can get similar effects with highlight tail mode in emacs. The elisp in there might give you some ideas on how to get some of the glow effects. Oh nice, I hadn't seen highlight tail mode before. I do use eval-sexp-fu.el

Re: swank-cdt: Using Slime with the Clojure Debugging Toolkit

2011-04-25 Thread Sam Aaron
Hi George, On 25 Apr 2011, at 00:14, George Jahad wrote: Technomancy has been kind enough to merge it into the main swank- clojure repo, so it will a part of swank-clojure releases going forward. It's very exciting that CDT is being merged with swank-clojure - great stuff! I just tried the

Re: swank-cdt: Using Slime with the Clojure Debugging Toolkit

2011-04-25 Thread Sam Aaron
Hi George, I'm a bit further forward than I was before :-) On 25 Apr 2011, at 15:41, George Jahad wrote: strange. haven't seen that one before. can you and jeff send me your project.clj file, and a directory listing of your lib and lib/dev directories? also what operating

Re: swank-cdt: Using Slime with the Clojure Debugging Toolkit

2011-04-25 Thread Sam Aaron
Hi George, On 25 Apr 2011, at 17:35, George Jahad wrote: Can you set breakpoints and catch exceptions per the test drive in the doc? Sort of. I'm not sure if I'm just doing the wrong things, but when execute (difference #{1 2} #{2 3}) after setting: (set-bp clojure.set/difference) I

Re: swank-cdt: Using Slime with the Clojure Debugging Toolkit

2011-04-25 Thread Sam Aaron
Hi Phil, On 25 Apr 2011, at 19:21, Phil Hagelberg wrote: On Apr 25, 7:26 am, Jeff Palmucci jpalmu...@gmail.com wrote: I get the same thing with just plain leiningen. It's not cake. I get this with Leiningen when using a JRE rather than a JDK. You need to be sure lib/tools.jar exists inside

Re: swank-cdt: Using Slime with the Clojure Debugging Toolkit

2011-04-25 Thread Sam Aaron
On 25 Apr 2011, at 19:34, George Jahad wrote: When I press e the mini buffer prompts me to Eval in frame: and I propmpty type s1 to see the following error in the minibuffer: Unexpected exception generated: java.lang.IllegalArgumentException: Invalid method This stuff is all new to me, so

Re: swank-cdt: Using Slime with the Clojure Debugging Toolkit

2011-04-26 Thread Sam Aaron
Hi Phil, On 26 Apr 2011, at 06:22, Phil Hagelberg wrote: On Apr 25, 12:12 pm, Sam Aaron samaa...@gmail.com wrote: I'm curious, what are your requirements for native dependencies? I have never needed them, so I've relied on contributors and external plugins because I don't know what's

Re: swank-cdt: Using Slime with the Clojure Debugging Toolkit

2011-04-26 Thread Sam Aaron
On 26 Apr 2011, at 17:15, Phil Hagelberg wrote: On Apr 25, 11:51 pm, Sam Aaron samaa...@gmail.com wrote: I was originally using lein and the native-deps plugin for my projects, but it's much more cumbersome than cake's approach. On the periphery it doesn't seem too bad, in your

Re: (just) emacs mode

2011-04-27 Thread Sam Aaron
Hi John, On 27 Apr 2011, at 11:13, John V wrote: Hi, I would like to have syntax highlighting for Clojure code in Emacs. I am using Emacs on Windows (23.2.1). SNIP I would like to use Emacs as a text editor, not as a combination IDE/ ftp browser. Is there a clojure mode written which is

Re: swank-clj 0.1.0 - a refactored swank-clojure, with sldb support

2011-05-22 Thread Sam Aaron
Very cool! Out of interest, how do swank-clj and swank-clojure (with merged in cdt stuff) compare? Sam --- http://sam.aaron.name On 21 May 2011, at 19:09, George Jahad wrote: just watched the video: http://vimeo.com/23932914 looks awesome! On May 11, 8:31 am, Hugo Duncan

Re: swank-clj 0.1.0 - a refactored swank-clojure, with sldb support

2011-05-23 Thread Sam Aaron
On 23 May 2011, at 13:23, Hugo Duncan wrote: Out of interest, how do swank-clj and swank-clojure (with merged in cdt stuff) compare? I would have to let others comment on the user experience, not having used the cdt support in swank-clojure. From reading the code, I see two

Singly linked lists as an immutable data structure

2011-06-10 Thread Sam Aaron
Hi there, I've now seen singly linked lists used as a way of describing Clojure's immutable data structures with the claim that they're used to implement lists. The example usually goes as follows. A has the list '(1 2 3) which is implemented as follows: A | | V +---+ +---+

Screencast: Clojure + Emacs + slime + swank + cake + Overtone

2011-06-16 Thread Sam Aaron
Hi there, I just finished making a screencast primarily for new Overtone users on how to get set up with Emacs as a primary editor: http://vimeo.com/25190186 It turns out that this should be pretty useful for Clojure hackers in general as it's really a screencast on how to set up a Clojure

Re: Allow Data Structure to Be Called as Function

2011-06-18 Thread Sam Aaron
Is it possible to use this approach to create a callable record which can take a variable number of arguments? I can't get the following to work: (defrecord Foo [a] clojure.lang.IFn (invoke [this args] (println (str a args (def yo (Foo. sam)) (yo 1 2 3 4) ;=

Overtone - Live @ Arnolfini

2012-08-03 Thread Sam Aaron
Hi everyone, for those interested, I just put up a screencast of a performance I did with Overtone on Friday the 27th of July at the Arnolfini art gallery in Bristol, UK: https://vimeo.com/46867490 The screen resolution is a little odd as I mirrored my display to that of the projector. Also,

Re: Overtone - Live @ Arnolfini

2012-08-04 Thread Sam Aaron
back in to Overtone some time soon. Keep up the good work. Cheers, Robert On Friday, August 3, 2012 3:47:50 AM UTC-7, Sam Aaron wrote: Hi everyone, for those interested, I just put up a screencast of a performance I did with Overtone on Friday the 27th of July at the Arnolfini art

Re: Overtone - Live @ Arnolfini

2012-08-05 Thread Sam Aaron
On 4 Aug 2012, at 17:23, Tom Maynard tom.w...@gmail.com wrote: Bravo! Standing ovation. Technical difficulties be d*mned, that was a spectacular exhibition. I was reminded of a live premiere performance by Karlheinz Stockhausen that I attended at the NASA auditorium in Galveston,

  1   2   >