Re: ANN: Swiss Arrows

2012-04-02 Thread Ambrose Bonnaire-Sergeant
Ha! Love it. Ambrose On Mon, Apr 2, 2012 at 1:58 PM, Robert Levy r.p.l...@gmail.com wrote: Errata: I mistakenly referred to The Trystero Furcula by its former work-in-progress name (the double furcula). Just to be clear, the arrows presently included in the swiss arrows collection are:

Clojure Job in Bellingham/Seattle WA

2012-04-02 Thread David Jagoe
Hi all, I hope nobody objects to me posting a position here. If so I'd be happy to become a curator/maintainer of a list similar to http://python.org/jobs for the clojure community. I have recently started a business in the states (Bellingham, WA) to support a long-term contract to build

Re: Where to post job ad

2012-04-02 Thread David Jagoe
Thank you all for your feedback. I will certainly post in local user groups and Functional Jobs + Linked In are my next stops. Cheers, David On 30 March 2012 21:49, blcooley blcoo...@gmail.com wrote: On Mar 30, 7:35 am, David Jagoe davidja...@gmail.com wrote: G'day everyone I am

Re: kibit is to Clojure what SOUL is to Smalltalk

2012-04-02 Thread Gabriel Pickard
I'm trying to build something related [1]: A temporal- and control-flow reasoner for software in general. My idea was to tie this into logging or debugging interfaces. I would be very, very interested in combining this with source-code reasoning (which might also profit from some shared

ClojureScript One Debug info

2012-04-02 Thread Pierre-Henry Perret
Hi all, after launching the repl in clj-one I get this st: Type (go) to launch the development server and setup a browser-connected REPL. Type (dev-server) to launch only the development server. Type (stop) to stop the running instance server Type (restart) to restart server

Re: Appcache

2012-04-02 Thread Pierre-Henry Perret
Thanks Pandeiro. I know how to enable HTML5 app cache. This problem has disappeared when flushing the cache. Perhaps It came from another app enabling it... Le mercredi 28 mars 2012 15:52:45 UTC+2, Murph a écrit : I never saw an appcache file automatically generated in ClojureScript One, but

Update an item from a list of maps in STM transaction

2012-04-02 Thread Marcelo Macedo de Melo Silva
friends, I have the following situation: I have a list of maps (obtained from the database with contrib.sql) which is generated through a FUTURE. I'm running multiple threads using this same list and need to update the value of an item inside a STM transaction. I tried using one FUTURE for a

function order

2012-04-02 Thread ClusterCat
In search for a Clojure bencode implentation, I found the following source code. (defn- decode-list [stream] (loop [result []] (let [c (char (.read stream))] (if (= c \e) result (recur (conj result (decode stream (int c (defn decode [stream i] (let

ANN: kerodon - a library for interacting/testing html-based ring apps

2012-04-02 Thread Nelson Morris
kerodon is a library for interacting with and testing html-based ring apps. It is designed to work with -, and look like interactions a user would have with a browser. It is similar in style to capybara. It does not do any javascript simulation. https://github.com/xeqi/kerodon Currently it has

Re: ANN: Swiss Arrows

2012-04-02 Thread Roman Perepelitsa
Looks very nice! Is the following behavior expected with Clojure 1.3? user= (- 0 '()) ( 0) user= (- 0 []) CompilerException java.lang.RuntimeException: Unable to resolve symbol: in this context, compiling:(NO_SOURCE_PATH:24) ;; I guess this one is expected, although it would be nice if it

Re: ANN: Swiss Arrows

2012-04-02 Thread Roman Perepelitsa
And a couple more: user= (- 0 [1 ]) [1 0] user= (- 0 { 1}) CompilerException java.lang.RuntimeException: Unable to resolve symbol: in this context, compiling:(NO_SOURCE_PATH:16) user= (- 0 {1 2 }) IllegalArgumentException No value supplied for key: 2

[ANN] lein-deps-tree 0.1.0

2012-04-02 Thread Moritz Ulrich
I'm happy to announce the first release of lein-deps-tree[1]. It's a leiningen plugin which prints the all dependencies of a project as a nicely formatted tree. Please report any issues (especially with leiningen 1.x) as Github issues. [1]: https://github.com/the-kenny/lein-deps-tree Cheers,

Re: [ANN] lein-deps-tree 0.1.0

2012-04-02 Thread Sun Ning
lein2 has a built-in command: `lein deps :tree` for this task it would be great to have the plugin in lein 1.x But I got error below: Exception in thread main java.io.FileNotFoundException: Could not locate leiningen/core/classpath__init.class or leiningen/core/classpath.clj on classpath:

Re: ANN: Swiss Arrows

2012-04-02 Thread Alex Baranosky
The Parallel Furcula has interesting possibilities :) On Mon, Apr 2, 2012 at 5:25 AM, Roman Perepelitsa roman.perepeli...@gmail.com wrote: And a couple more: user= (- 0 [1 ]) [1 0] user= (- 0 { 1}) CompilerException java.lang.RuntimeException: Unable to resolve symbol: in this

Re: ANN: Swiss Arrows

2012-04-02 Thread Robert Levy
Thank you for finding these anomolies! user= (- 0 [1 ]) [1 0] This case is undefined behavior because only one point is allowed. user= (- 0 {1 2 }) IllegalArgumentException No value supplied for key: 2 clojure.lang.PersistentHashMap.createWithCheck (PersistentHashMap.java:89)

ClojureScript Debug

2012-04-02 Thread Pierre-Henry Perret
The following clojurescript code : code(def *peers* (agent {}))/code compiles to this js code: codeone.peer.peer._STAR_peers_STAR_ = one.peer.peer.agent.call(null,cljs. core.ObjMap.fromObject([],{}));/code which throws _ 1. Uncaught TypeError: Cannot call method 'call' of

ClojureScript release 0.0-1011

2012-04-02 Thread Stuart Sierra
Just built, will hit Maven repos within 24 hours. http://build.clojure.org/job/clojurescript-release/10/ The last release had some bugs that broke the browser-connected REPL. That has been fixed in this release. -S -- You received this message because you are subscribed to the Google Groups

Re: ClojureScript Debug

2012-04-02 Thread Moritz Ulrich
See [1]: Agents are currently not implemented They wouldn't be very useful, as javascript is single threaded in most implementations. [1]: https://github.com/clojure/clojurescript/wiki/Differences-from-Clojure On Mon, Apr 2, 2012 at 14:56, Pierre-Henry Perret phper...@gmail.com wrote: The

Re: ClojureScript Debug

2012-04-02 Thread Jim - FooBar();
I don't think any of the concurrency primitives made it to clojureScript... On 02/04/12 14:54, Moritz Ulrich wrote: See [1]: Agents are currently not implemented They wouldn't be very useful, as javascript is single threaded in most implementations. [1]:

Re: ClojureScript Debug

2012-04-02 Thread Jim - FooBar();
except for atoms of course... On 02/04/12 14:55, Jim - FooBar(); wrote: I don't think any of the concurrency primitives made it to clojureScript... On 02/04/12 14:54, Moritz Ulrich wrote: See [1]: Agents are currently not implemented They wouldn't be very useful, as javascript is single

how to write a macro that calls defrecord?

2012-04-02 Thread Joachim De Beule
Hi All, I need to define a number of similar records, so I wanted to write a macro for that, but I do not know how. Basically, I tried the following: (defprotocol MyProtocol (do-something [this])) (defmacro my-defrecord [name [ fields] body] `(defrecord ~name ~fields MyProtocol

Re: ClojureScript One Debug info

2012-04-02 Thread David Nolen
Remove all generated JS as well as the invisible .repl folders. Does the problem still persist? On Saturday, March 31, 2012, Pierre-Henry Perret wrote: Hi all, after launching the repl in clj-one I get this st: Type (go) to launch the development server and setup a

Re: ClojureScript One Debug info

2012-04-02 Thread Pierre-Henry Perret
That solved it! Thanks Le lundi 2 avril 2012 16:26:08 UTC+2, David Nolen a écrit : Remove all generated JS as well as the invisible .repl folders. Does the problem still persist? On Saturday, March 31, 2012, Pierre-Henry Perret wrote: Hi all, after launching the repl in clj-one I get

Re: kibit 0.0.3

2012-04-02 Thread Paul deGrandis
Great work all around! It's exciting to see Kibit get so much use. Paul On Apr 1, 2:29 pm, Jonas jonas.enl...@gmail.com wrote: I'm happy to announce the release of kibit[1] version 0.0.3. New in this release include: * much better reporting * a more advanced rule system * more rules *

Re: ANN: kerodon - a library for interacting/testing html-based ring apps

2012-04-02 Thread Shantanu Kumar
Thanks for the project – looks pretty cool. Will try it out. Shantanu On Apr 2, 9:19 am, Nelson Morris nmor...@nelsonmorris.net wrote: kerodon is a library for interacting with and testing html-based ring apps.  It is designed to work with -, and look like interactions a user would have with

Re: how to write a macro that calls defrecord?

2012-04-02 Thread Herwig Hochleitner
You need to be careful when using syntax-quote (backtick `): It tries to resolve every symbol it encloses, as the compiler would: If it's use'd, the symbol is qualified with the origin ns, otherwise with the current ns (current during read time of the syntax-quote form, i.e. macro _definition_

Re: kibit 0.0.3

2012-04-02 Thread Mark
Have you thought about a downloadable plugin system for rules? I imagine various libraries embedding rule sets in jar files with magic manifest markers indicating their specific location. Something like: Kibit-RuleSet-URL: jar:///kibit/ruleset.clj or, online: Kibit-RuleSet-URL:

Re: kibit is to Clojure what SOUL is to Smalltalk

2012-04-02 Thread David Nolen
On Fri, Mar 30, 2012 at 8:20 PM, Gabriel Pickard wergo...@googlemail.comwrote: I'm trying to build something related [1]: A temporal- and control-flow reasoner for software in general. My idea was to tie this into logging or debugging interfaces. I would be very, very interested in combining

Re: Need help to find a bug in a genetic algorithm

2012-04-02 Thread Jim - FooBar();
Is it possible to explain briefly what this genetic algorithm tries to accomplish? I mean what problem is it producing solution for? It never seems to end regardless of number-of-domiciles! I think i got a glimpse of a ThursdayGNEXT string but i'm not sure what it means... Jim On 26/03/12

Re: Need help to find a bug in a genetic algorithm

2012-04-02 Thread Goldritter
First there is an error in my code :( These are the allowed symbols from which the creator function can choose to create or mutate a gen: def allowed-symbols (str abcdefghijklmnopqrstuvwxyzäöü ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜ)) This is the targetd which should be fulfilled:

Re: Need help to find a bug in a genetic algorithm

2012-04-02 Thread Jim - FooBar();
aa ok i see, that makes perfect sense... thanks a lot! Jim On 02/04/12 19:06, Goldritter wrote: First there is an error in my code :( These are the allowed symbols from which the creator function can choose to create or mutate a gen: def allowed-symbols (str abcdefghijklmnopqrstuvwxyzäöü

Re: Need help to find a bug in a genetic algorithm

2012-04-02 Thread Jim - FooBar();
Shouldn't the line (inside start-evolution) : *(map #(send % a-day-in-the-life-agent-fn) domiciles) * be: *(pmap #(send % a-day-in-the-life-agent-fn) domiciles)* ??? why does it need to happen serially? Jim On 02/04/12 19:06, Goldritter wrote: First there is an error in my code :( These

(constantly)

2012-04-02 Thread Jay Fields
I often tend to define the following in my apps (def no-op (fn [ _])) The other day I noticed constantly (http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/constantly), which is basically the same thing - except I would have to say (constantly nil). What do you all think about

Re: Need help to find a bug in a genetic algorithm

2012-04-02 Thread Jim - FooBar();
The onle setup that works for my machine (the one that finds the solution in reasonable time) is with number-of-domiciles = 3, the missing space and using pmap instead of map when evolution starts...the population size moves from around 1180 to 1230 but i can see all 4 cores of mine firing up

Re: [ANN] lein-deps-tree 0.1.0

2012-04-02 Thread Nelson Morris
The `lein deps :tree` command will work in preview3. This plugin is good for anyone who needs it now on preview2. Thanks for putting it together. On Mon, Apr 2, 2012 at 7:48 AM, Sun Ning classicn...@gmail.com wrote: lein2 has a built-in command: `lein deps :tree` for this task it would be

Re: (constantly)

2012-04-02 Thread Jeff Weiss
I wish there was a built-in for this as well. I don't know that (constantly) is a good name for it though. I couldn't think of a good name, apparently a null function means the same as identity function so that doesn't work. On Monday, April 2, 2012 2:39:31 PM UTC-4, Jay Fields wrote: I

Re: [ANN] lein-deps-tree 0.1.0

2012-04-02 Thread Moritz Ulrich
Just pushed 0.1.1 to Clojars. It is *supposed* to work with 1.x, but it most likely won't. The problem lies in some version mismatch between 1.x and a dependency of pomegranate. See [1] for details. If anyone knows a fix for this, please let me know. [1]:

Re: Need help to find a bug in a genetic algorithm

2012-04-02 Thread Marcus Lindner
I think the reason here is, that the used agents perform the day-of-life function. Another reason is also, that the individual, which is created by the agent, is put again into teh ref population. Could be that this might prefent the use of pmap, or increase the time for the scheduling. When

Re: Need help to find a bug in a genetic algorithm

2012-04-02 Thread Marcus Lindner
Without the pmap and only 2 domiciles I got the solution in 2 minutes on my 4 core machine. Might be interesting which effect the pmap might have in combination with agents. Am 02.04.2012 20:41, schrieb Jim - FooBar();: The onle setup that works for my machine (the one that finds the

Re: ANN: clj-browserchannel-demo, cljs - clj communication

2012-04-02 Thread Gijs S.
See this blog post for more background on BrowserChannel and why it is useful for ClojureScript web applications: http://thegeez.net/2012/04/03/why_browserchannel.html -Gijs -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send

Re: Need help to find a bug in a genetic algorithm

2012-04-02 Thread Jim - FooBar();
Ok i understand what you mean...i had a closer look at the code and it seems that the hard work is done by agents...However, I did some further testing out of curiosity and got back some weird behaviour...On my machine it doesn't really matter whether i have 2 or 3 domiciles - i will still get

Re: how to write a macro that calls defrecord?

2012-04-02 Thread Moritz Heidkamp
Hi Joachim. On Mon, Apr 2, 2012 at 3:51 PM, Joachim De Beule joachim.de.be...@gmail.com wrote: which expands into the following (valid) code: (defrecord R (content) tmp-protocol (do-sth [this] this)), how did you get that expansion? Try this: user= (macroexpand-1 '(my-defrecord R

[no subject]

2012-04-02 Thread Softaddicts
-- Softaddictslprefonta...@softaddicts.ca sent by ibisMail! -- 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

Re: Update an item from a list of maps in STM transaction

2012-04-02 Thread Stephen Compall
On Sat, 2012-03-31 at 11:00 -0700, Marcelo Macedo de Melo Silva wrote: I'm running multiple threads using this same list and need to update the value of an item inside a STM transaction. If you mean by value of an item the value in the database: I suggest you create an updater agent instead,

ANN tools.trace 0.7.3

2012-04-02 Thread Softaddicts
Hi, A new version of tools.trace is out, 0.7.3 A) dynamic tracing is now available (contribution from Michal Marczyk and Don Jackson) B) dynamic tracing can be applied to all fns in a namespace in a single call C) with the latest version of autodoc deployed by Tom, the API documentation

Clojure Software Dev wanted, remote work

2012-04-02 Thread Craig Brozefsky
My employer, ThreatGRID, is looking for a clojure developer. We're a malware analysis and threat intelligence company. To translate, we take tens of thousands of pieces of bad software daily, analyze them, and put the results in a big database. We've built our web front-end and analysis engine

Re: ANN: Swiss Arrows

2012-04-02 Thread Robert Levy
Just to follow up, I fixed the issues Roman found. Thanks again for your help. I also took the advice from the issue Stephen Compall created, and removed the special handling of quoted forms. On Mon, Apr 2, 2012 at 5:25 AM, Roman Perepelitsa roman.perepeli...@gmail.com wrote: And a couple