Re: websockets w/ clojure

2010-12-24 Thread Sean Allen
Jay, Do you have any publicly released code I could take a look at? I've only found a couple of jetty/clojure/websocket examples and would love to have more I could study. -Sean- On Fri, Dec 24, 2010 at 7:53 PM, Jay Fields wrote: > I've written a few Clojure websocket apps and used Jetty. Thin

Re: leiningen run

2010-12-24 Thread Phil Hagelberg
On Dec 24, 5:06 am, Marek Kubica wrote: > Thanks a lot, hope the bugfix will get pulled soon :) Just merged it in; thanks for reporting. -Phil -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups

Re: Let's see how fast we can make this

2010-12-24 Thread Michael Gardner
On Dec 24, 2010, at 8:19 PM, David Nolen wrote: > ((long double) end-start) / 1000.0 I don't think this math is correct. The units for the values returned by mach_absolute_time() are CPU-dependent: http://developer.apple.com/library/mac/#qa/qa2004/qa1398.html Using gettimeofday() on my 2.0 GHz

Re: Let's see how fast we can make this

2010-12-24 Thread Alan Busby
On Sat, Dec 25, 2010 at 11:28 AM, David Nolen wrote: > On Fri, Dec 24, 2010 at 8:19 PM, David Nolen wrote: > >> On OS X at least the following program shows identical performance to the >> JVM using 64 bit integers, ~2000 nanoseconds on my machine. So Clojure is >> not too far behind. >> > > w/o a

Re: Let's see how fast we can make this

2010-12-24 Thread David Nolen
On Fri, Dec 24, 2010 at 8:19 PM, David Nolen wrote: > On OS X at least the following program shows identical performance to the > JVM using 64 bit integers, ~2000 nanoseconds on my machine. So Clojure is > not too far behind. > w/o any GCC optimizations of course. With O2, the C is twice as fast

Re: Let's see how fast we can make this

2010-12-24 Thread David Nolen
On Fri, Dec 24, 2010 at 7:32 PM, Alan Busby wrote: > On Fri, Dec 24, 2010 at 7:10 PM, Devrim Baris Acar > wrote: > >> I guess it would be a better guess if you could includethe cpu type/speed >> for a rough reference... > > > It was on an Intel Xeon E5410 (2.33GHz), though like others have alrea

Re: partitioning iterative list

2010-12-24 Thread Alex Osborne
Glen Rubin writes: > Can I do the following without using loops?? > > I have list, e.g. > > '(4 6 66 33 26 6 83 5) > > I want to partition it so that I get a subset of lists that build up > to the original: > > ( (4) (4 6) (4 6 66) (4 6 66 33) ) (reductions conj [] [4 6 66 33 26 6 83 5]) =>

partitioning iterative list

2010-12-24 Thread Glen Rubin
Can I do the following without using loops?? I have list, e.g. '(4 6 66 33 26 6 83 5) I want to partition it so that I get a subset of lists that build up to the original: ( (4) (4 6) (4 6 66) (4 6 66 33) ) -- You received this message because you are subscribed to the Google Groups "Cloj

Re: Let's see how fast we can make this

2010-12-24 Thread Alan Busby
On Fri, Dec 24, 2010 at 7:10 PM, Devrim Baris Acar wrote: > I guess it would be a better guess if you could includethe cpu type/speed > for a rough reference... It was on an Intel Xeon E5410 (2.33GHz), though like others have already said there are a number of factors that affect performance. I

Re: websockets w/ clojure

2010-12-24 Thread Jay Fields
I've written a few Clojure websocket apps and used Jetty. Things worked out fine and there wasn't much code at all to integrate. I'd recommend it. Sent from my iPhone On Dec 24, 2010, at 11:58 AM, Sean Allen wrote: > We did a prototype application using websockets for work using node.js as th

Re: websockets w/ clojure

2010-12-24 Thread Zach Tellman
If you decide to try Aleph and have any questions, I'm available via Github or on the mailing list at http://groups.google.com/group/aleph-lib. Zach On Dec 24, 10:55 am, paul santa clara wrote: > I have had a lot of success with Aleph.  Just remember to clone the git repo > as things move quickl

Re: pods?

2010-12-24 Thread Alex Osborne
Michael Ossareh writes: > Is there a go to place for a roadmap? http://dev.clojure.org/ perhaps? There's no roadmap as such, Clojure development is not calendar-oriented. ;-) Last December when people started asking this question Rich said: I don't like to publish roadmaps, as often the be

Re: pods?

2010-12-24 Thread Michael Ossareh
On Fri, Dec 24, 2010 at 01:20, Meikel Brandmeyer wrote: > Hi, > > Am 24.12.2010 um 09:56 schrieb Meikel Brandmeyer: > > > Am 24.12.2010 um 09:44 schrieb Sunil S Nandihalli: > > > >> what are PODS? > > And as a side note: I'm sad that people on conferences know more about pods > than people on thi

Re: into map with vectors versus lists (Re: Creating map from string)

2010-12-24 Thread Emeka
Did you try this (apply hash-map (partition 2 (split (slurp "data") #","))) On Sat, Dec 4, 2010 at 11:12 AM, Remco van 't Veer wrote: > I expected this to work: > > (into {} (partition 2 (split (slurp "data") #","))) > > But unfortunately, `into' doesn't seem to allow pushing lists of pairs >

Re: websockets w/ clojure

2010-12-24 Thread paul santa clara
I have had a lot of success with Aleph. Just remember to clone the git repo as things move quickly and the clojars version is often out of date. Also, I would recommend taking the time to read over lamina wiki's as Aleph utilizes their channel abstractions: https://github.com/ztellman/lamina/wiki

websockets w/ clojure

2010-12-24 Thread Sean Allen
We did a prototype application using websockets for work using node.js as the server. Websocket client connects, sending some basic info... said info is used to repeatedly get new data from a database that is pushed down as it arrives in the db to the client which displays. There will be more than

Re: pods?

2010-12-24 Thread Seth
> It's planned to be new reference type, which handles transients inside. So > you send it functions living over transients for update. On deref the pod > automatically converts things back into a persistent value. So updates will > be fast, but things are transparently switched back to Clojure

Re: Let's see how fast we can make this

2010-12-24 Thread Devrim Baris Acar
I guess it would be a better guess if you could includethe cpu type/speed for a rough reference... Devrim Baris Acar On Fri, Dec 24, 2010 at 09:55, Alan Busby wrote: > Hi All, > > > On Fri, Dec 24, 2010 at 4:32 PM, Meikel Brandmeyer wrote: > > Most interesting is also the relation between t

Re: Let's see how fast we can make this

2010-12-24 Thread David Nolen
On Fri, Dec 24, 2010 at 2:55 AM, Alan Busby wrote: > Hi All, > > > On Fri, Dec 24, 2010 at 4:32 PM, Meikel Brandmeyer wrote: > > Most interesting is also the relation between the different versions on >> the given machine. Just the numbers of one algorithm aren't really >> comparable, I guess.

Re: leiningen run

2010-12-24 Thread Marek Kubica
On Fri, 24 Dec 2010 23:54:30 +1100 Alex Osborne wrote: > I think this is a bug. I've sent Phil a pull request with a proposed > fix: > > http://github.com/ato/leiningen/commit/3f299cc560dbf7101c44a08d98da4177d6f326cc Yep, bendlas in #clojure helped me to diagnose. Great that you have a fix alr

Re: leiningen run

2010-12-24 Thread Alex Osborne
Marek Kubica writes: > My project is currently quite simple. The program needs a single > argument, filename, to read from. So I added a :main entry into > project.clj and started > > $ lein run > > this took some time and crashed with an exception, because I did not > specify a file. Well, that

leiningen run

2010-12-24 Thread Marek Kubica
Hi, Yesterday I started using leiningen and saw that it can run my programs. So I converted my project layout so that leinigen can use that. My project is currently quite simple. The program needs a single argument, filename, to read from. So I added a :main entry into project.clj and started $

Re: pods?

2010-12-24 Thread Sunil S Nandihalli
thanks Meikel. So really nice things are in the pipeline for clojure .. :) On Fri, Dec 24, 2010 at 2:50 PM, Meikel Brandmeyer wrote: > Hi, > > Am 24.12.2010 um 09:56 schrieb Meikel Brandmeyer: > > > Am 24.12.2010 um 09:44 schrieb Sunil S Nandihalli: > > > >> what are PODS? > > And as a side note

Re: Public mutable fields in deftype

2010-12-24 Thread nicolas.o...@gmail.com
After a few thoughts, I think this is a mistake not to allow this, even if it his highly discouraged. I think indeed, if you consider the data-structure usage of types and Objects it is a very bad idea to have a mutable private field. But some type you create are not for holding data on the long-

Re: pods?

2010-12-24 Thread Meikel Brandmeyer
Hi, Am 24.12.2010 um 09:56 schrieb Meikel Brandmeyer: > Am 24.12.2010 um 09:44 schrieb Sunil S Nandihalli: > >> what are PODS? And as a side note: I'm sad that people on conferences know more about pods than people on this list. :( Sincerely Meikel -- You received this message because you a

Re: pods?

2010-12-24 Thread Meikel Brandmeyer
Hi, Am 24.12.2010 um 09:44 schrieb Sunil S Nandihalli: > what are PODS? It's planned to be new reference type, which handles transients inside. So you send it functions living over transients for update. On deref the pod automatically converts things back into a persistent value. So updates wi

Re: pods?

2010-12-24 Thread Sunil S Nandihalli
what are PODS? On Fri, Dec 24, 2010 at 9:52 AM, Seth wrote: > I am interested in the references to pods that are floating around the > internet. However, when i downloaded the github master repository, i > couldn't find pod anywhere. Of course there are 17 other branches... > Clojures support f