Re: Clojure to Haskell Compiler

2012-11-18 Thread Hoàng Minh Thắng
On Sunday, November 18, 2012 1:31:47 AM UTC+7, Ahmed Shafeeq Bin Mohd Shariff wrote: Hi guys, I've been frustrated with Clojure's slow speed on the JVM. I've been thinking of how it can be compiled to native and I feel that compiling Clojure to Haskell and then using ghc to convert this

explicit progression-of-time constructs? (wikipedia)

2012-11-18 Thread Hank
According to Wikipedia, Clojure provides explicit progression-of-time constructs: http://en.wikipedia.org/wiki/Clojure Anyone any clue which constructs are meant by that? The term doesn't even resolve on Google outside the Clojure context. -- You received this message because you are

Re: freeing resources while generating lazy sequences

2012-11-18 Thread Alex Pooley
Thanks for your feedback Stuart. The with-open route sounds like the way to go. Alex. -- 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 -

[ANN] ClojureScript series of tutorials

2012-11-18 Thread Mimmo Cosenza
Hi all, I just published on github the seventh tutorial of the series. https://github.com/magomimmo/modern-cljs HIH Mimmo -- 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

Re: explicit progression-of-time constructs? (wikipedia)

2012-11-18 Thread Stuart Sierra
I expect the Wikipedia article is referring to Clojure's mutable reference types -- Ref, Atom, Agent, Var -- which help to manage state that changes over time. See also http://clojure.org/state and http://clojure.org/concurrent_programming -S -- You received this message because you are

Re: explicit progression-of-time constructs? (wikipedia)

2012-11-18 Thread Jim - FooBar();
The constructs it means are probably reference-types. Jim On 18/11/12 13:42, Hank wrote: According to Wikipedia, Clojure provides explicit progression-of-time constructs: http://en.wikipedia.org/wiki/Clojure Anyone any clue which constructs are meant by that? The term doesn't even resolve

[ANN] Clojars Releases repository

2012-11-18 Thread Phil Hagelberg
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello folks. I'm happy to announce that the new Clojars releases repository is open for business. With the releases repository we are aiming for a middle ground in between the anything-goes nature of the current repository and the bureaucracy of

Re: Are agents suitable for c10k concurrency?

2012-11-18 Thread Stuart Sierra
What matters is the I/O framework. You'll want to use a non-blocking network library, then you should be able to use `send` rather than `send-off`. `send` uses a fixed-size thread pool for all Agents in the system. That said, while I believe Agents are a suitable solution to this problem,

Re: [ANN] Clojars Releases repository

2012-11-18 Thread Jim - FooBar();
Followed the instructions below exactly but clojars says 'Invalid PGP public key'... any clues? Jim On 18/11/12 13:56, Phil Hagelberg wrote: If you don't have a key yet, generate one with `gpg --gen-key`. The default settings are pretty good, though I'd recommend making it expire in a year

[ANN] zk-web 1.0 release

2012-11-18 Thread Qiu Xiafei
zk-web is a Web UI of Zookeeper http://zookeeper.apache.org/, just making it easier to use. It helps you read stat and data of a zookeeper node, and logged in user can add/modify/delete/rmr a node. I hope zk-web could help you. zk-web is hostd on github: https://github.com/qiuxiafei/zk-web This

Re: [ANN] Clojars Releases repository

2012-11-18 Thread Nelson Morris
I've just deployed a new clojars version. The previous one was a bit strict on the whitespace (thanks Lee Hinman). Make sure to include both the -BEGIN PGP PUBLIC KEY BLOCK- and -END PGP PUBLIC KEY BLOCK-. - Nelson Morris On Sun, Nov 18, 2012 at 8:21 AM, Jim - FooBar();

How to emulate Java sub-classing using closure with a macro?

2012-11-18 Thread timc
Hello - I would appreciate some advice on how to implement something equivalent to sub-classing. The context for this is a finite state machine (FSM), by which I mean a thread that waits on a queue of events, then deals with each event (one at a time) according to the state it is in, possibly

Re: [ANN] Clojars Releases repository

2012-11-18 Thread Jim - FooBar();
On 18/11/12 14:39, Nelson Morris wrote: The previous one was a bit strict on the whitespace I just pasted the same with no wxtra white-space and now I'm getting Invalid anti-forgery token my god what is happening? Jim -- You received this message because you are subscribed to the Google

Re: [ANN] Clojars Releases repository

2012-11-18 Thread Jim - FooBar();
Ok I managed to push my jar successfully, but i got this at the end: Could not transfer artifact enclog:enclog:pom:0.5.8 from/to clojars (https://clojars.org/repo/): Access denied to: https://clojars.org/repo/enclog/enclog/0.5.8/enclog-0.5.8.pom, ReasonPhrase:Forbidden. Failed to deploy

Re: [ANN] Clojars Releases repository

2012-11-18 Thread Nelson Morris
The Invalid anti-forgery token message is a unfortunate side effect of interaction with sessions and restarting the server. It should disappear if the profile page is refreshed. enclog 0.5.8 appears in the releases repo, so everything is ok. I have a theory as to why that message occurred and

Re: [ANN] Clojars Releases repository

2012-11-18 Thread Jim - FooBar();
Yes that's obviously important because now I can't fetch the jar! Doing lein2 repl in a project that depends on that jar gives me: Could not transfer artifact enclog:enclog:pom:0.5.8 from/to clojars (https://clojars.org/repo/): Checksum validation failed, no checksums available from the

Re: [ANN] Clojars Releases repository

2012-11-18 Thread Jim - FooBar();
On 18/11/12 15:14, Nelson Morris wrote: enclog 0.5.8 appears in the releases repo, so everything is ok. No, unfortunately everything is not ok...fetching the jar from a project results in: Could not transfer artifact enclog:enclog:pom:0.5.8 from/to clojars (https://clojars.org/repo/):

Re: [ANN] Clojars Releases repository

2012-11-18 Thread Nelson Morris
Yeah, i had checked the releases not expected the classic repo to loose it. Fixed manually. On Sun, Nov 18, 2012 at 10:20 AM, Jim - FooBar(); jimpil1...@gmail.com wrote: On 18/11/12 15:14, Nelson Morris wrote: enclog 0.5.8 appears in the releases repo, so everything is ok. No,

Re: [ANN] ClojureScript series of tutorials

2012-11-18 Thread Michael Klishin
2012/11/18 Mimmo Cosenza mimmo.cose...@gmail.com I just published on github the seventh tutorial of the series. https://github.com/magomimmo/modern-cljs Nice work. I am not sure how to integrate ClojureScript into http://clojure-doc.org but what do you think about contributing (possibly with

Re: [ANN] ClojureScript series of tutorials

2012-11-18 Thread Mimmo Cosenza
On Nov 18, 2012, at 5:58 PM, Michael Klishin michael.s.klis...@gmail.com wrote: 2012/11/18 Mimmo Cosenza mimmo.cose...@gmail.com I just published on github the seventh tutorial of the series. https://github.com/magomimmo/modern-cljs Nice work. I am not sure how to integrate ClojureScript

ANN: lein-clr 0.2.0 for ClojureCLR

2012-11-18 Thread Shantanu Kumar
Hi, I pushed lein-clr 0.2.0 https://github.com/kumarshantanu/lein-clr JARs to Clojars a little while ago. The focus of this release is to 1. add dependency support (via NuGet/wget/curl, Leiningen :dependencies) 2. lower the bar to get started with ClojureCLR (with automated download of

Can't define method not in interfaces...what is this?

2012-11-18 Thread Jim - FooBar();
I'm struggling to find an explanation for this... what on earth is this? what does it mean? Can anyone clarify where this exception comes from? Jim -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: CLJS-418: Unspecified dependency on google-closure-library-third-party

2012-11-18 Thread Herwig Hochleitner
In the case of the dependency in crosspagechannel, relevant to the browser repl, svn blame tells me that in commit r1816, the dependency to goog.async.Deferred got added to xpc:

Re: [ANN] Clojars Releases repository

2012-11-18 Thread Sean Corfield
On Sun, Nov 18, 2012 at 5:56 AM, Phil Hagelberg p...@hagelb.org wrote: If you don't have a key yet, generate one with `gpg --gen-key`. The default settings are pretty good, though I'd recommend making it expire in a year or two. Next find your key ID. It's the 8-character part after the slash

Re: Can't define method not in interfaces...what is this?

2012-11-18 Thread Karsten Schmidt
It might mean you're probably having a typo somewhere you're trying to extend a protocol like so: (defprotocol IFoo (foo [x])) (defrecord MyFoo [x y] IFoo (fooo [x] x)) ; note misspelled foo ;; CompilerException java.lang.IllegalArgumentException: ;; Can't define method not in interfaces:

Re: Can't define method not in interfaces...what is this?

2012-11-18 Thread Jim - FooBar();
Ok that was frustrating! I had a docstring like below which apparently is not allowed. (defrecord MyFoo [x y] IFoo (foo returns arg [x] x)) ; phew... :) thanks! Jim On 18/11/12 22:11, Karsten Schmidt wrote: It might mean you're probably having a typo somewhere you're trying to

Re: A Simple FeedForward NeuralNetwork (using BackPropagation)

2012-11-18 Thread Timothy Washington
Yes agreed. The only reason I chose to begin with BackPropagation was to first get a thorough understanding of gradient descent. The next 2 approaches I have in mind are i) Resilient Propagationhttp://de.wikipedia.org/wiki/Resilient_Propagation and ii) the Levenberg–Marquardt

architecture for distributed game server?

2012-11-18 Thread George Oliver
hi, apologies if this is slightly off-topic but I'd appreciate advice on something I don't have much experience with. I'm writing a mud (multiplayer text game) where you can write the game logic in different programming languages; for example, the combat system in Ruby and the movement system

Re: architecture for distributed game server?

2012-11-18 Thread Shantanu Kumar
Message queues seem like a good solution for the interprocess communication so I'm looking at brokers like RabbitMQ. My question is, does a message broker like RMQ seem like overkill for what is basically a small-scale application (most muds never run more than a couple dozen game systems and