Re: Clojure on Nokia N900

2010-01-30 Thread hoeck
On 26 Jan., 17:42, npt11tpn wrote: > Hi guys, > Have not seen this discussed before and thought that it might be of > interest to mention that clojure runs on the latest Nokia tablet/ > mobile phone with JRE either from > > https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-S...

Re: clojure box 1.0 failed to connect to emacs server

2010-01-30 Thread Shawn Hoover
On Sat, Jan 30, 2010 at 5:48 PM, Rollo wrote: > Hi Shawn, > > Just tried with 1.1.RC1 - no luck. Emacs server won't start and system > will start spawning thousands of cmdproxy processes again. > Where does that bad condition comes from? > Let me know if I can help diagnose or test further. > > T

Re: clojure box 1.0 failed to connect to emacs server

2010-01-30 Thread Rollo
Hi Shawn, Just tried with 1.1.RC1 - no luck. Emacs server won't start and system will start spawning thousands of cmdproxy processes again. Where does that bad condition comes from? Let me know if I can help diagnose or test further. Thanks, Rollo On Jan 30, 4:37 pm, Shawn Hoover wrote: > Sound

Re: clojure box 1.0 failed to connect to emacs server

2010-01-30 Thread Rollo
Hi Shawn, You're right - my problems are with 1.1.0 on win7. I see you've updated your page (http://clojure.bighugh.com/) with instructions recommending using 1.1.RC1 for the moment. I'll try that and report back here. Thanks for your help! Rollo On Jan 30, 4:37 pm, Shawn Hoover wrote: > Sounds p

Re: clojure-contrib build failure

2010-01-30 Thread enjoying the view
Hi, Same thing here. $ mvn -version Maven version: 2.0.9 Java version: 1.6.0_16 OS name: "linux" version: "2.6.28-17-generic" arch: "i386" Family: "unix" $ java -version java version "1.6.0_16" Java(TM) SE Runtime Environment (build 1.6.0_16-b01) Java HotSpot(TM) Client VM (build 14.2-b01, mixed m

Re: Clojure on Ideone!

2010-01-30 Thread sphere research
We installed clojure.contrib, more info on: http://www.facebook.com/ideone please check it out! regards! On 18 Sty, 15:38, cej38 wrote: > Hi, >   This is interesting.  I have often wanted something like this.  Is > there a way to access clojure.contrib? > > Thanks -- You received this message

Re: Exception handling functional style

2010-01-30 Thread Peter Schuller
> I am trying to figure out some systematic and clear way how to handle > exceptions in clojure and their bubbling up through the call chain. > Let me illustrate it on some code examples (not executable, just to show the > principle). One response touched on it briefly, but I'm not sure what probl

Re: Style for mutable data

2010-01-30 Thread Johann Hibschman
On Jan 30, 4:35 pm, ataggart wrote: > Akin to what Johann said, why bother with the functions that deal with > the value/state? Put another way, the cell has identity over time, > thus implemented as a ref. A function that, say, prints a cell, should > take a cell/ref as its arg. This is my gener

Re: headMap / tailMap / subMap

2010-01-30 Thread Alex Osborne
On Jan 30, 6:59 pm, Rowdy Rednose wrote: >> > The goal is to narrow down a map to include only keys with a given >> > prefix. > I want to have it in O(1). That's why I use a tree map in the first > place. You can get at the subtree of sorted-map in O(log(n)) but only as a sequence, not as anoth

Re: headMap / tailMap / subMap

2010-01-30 Thread Chouser
On Sat, Jan 30, 2010 at 7:31 PM, Rowdy Rednose wrote: > I want to have it in O(1). That's why I use a tree map in the first > place. > > On Jan 31, 9:15 am, Sean Devlin wrote: >> If you can live with an O(n) operation, take/drop-with will do the >> job. >> >> Sean >> >> On Jan 30, 6:59 pm, Rowdy

Re: performance improvments for the following code

2010-01-30 Thread Alex Osborne
Andy Fingerhut writes: > I don't know about using map, but here is a function inspired by one > called 'most' in Paul Graham's On Lisp. You could use (most fit-fn > (take k (shuffle popu))) in place of your (first ...) subexpression > above, and it would avoid sorting elements that you would oth

Re: headMap / tailMap / subMap

2010-01-30 Thread Rowdy Rednose
I want to have it in O(1). That's why I use a tree map in the first place. On Jan 31, 9:15 am, Sean Devlin wrote: > If you can live with an O(n) operation, take/drop-with will do the > job. > > Sean > > On Jan 30, 6:59 pm, Rowdy Rednose wrote: > > > How would I do something like these 3 TreeMap

Re: headMap / tailMap / subMap

2010-01-30 Thread Sean Devlin
If you can live with an O(n) operation, take/drop-with will do the job. Sean On Jan 30, 6:59 pm, Rowdy Rednose wrote: > How would I do something like these 3 TreeMap operations with > clojure's sorted-map? > > The goal is to narrow down a map to include only keys with a given > prefix. -- You

headMap / tailMap / subMap

2010-01-30 Thread Rowdy Rednose
How would I do something like these 3 TreeMap operations with clojure's sorted-map? The goal is to narrow down a map to include only keys with a given prefix. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojur

Re: Style for mutable data

2010-01-30 Thread ataggart
Akin to what Johann said, why bother with the functions that deal with the value/state? Put another way, the cell has identity over time, thus implemented as a ref. A function that, say, prints a cell, should take a cell/ref as its arg. Probably more than you need, but I highly recommend Rich's ta

Re: Style for mutable data

2010-01-30 Thread Mark Engelberg
How about Cell? -- 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 first post. To unsubscribe from this group, sen

Re: Style for mutable data

2010-01-30 Thread Jeff Schwab
Johann Hibschman wrote: Does anyone have style suggestions for distinguishing the states from the refs to mutable data? Let's say I'm manipulating a cell in a lattice, or doing dynamic programming, or something. In any case, I have a cell. ;; Current convention: use "cell-" as the type of the s

Style for mutable data

2010-01-30 Thread Johann Hibschman
Does anyone have style suggestions for distinguishing the states from the refs to mutable data? Let's say I'm manipulating a cell in a lattice, or doing dynamic programming, or something. In any case, I have a cell. ;; Current convention: use "cell-" as the type of the state of a "cell". (defstru

Re: clojure.contrib compile fail

2010-01-30 Thread Jeff Schwab
Mike Mazur wrote: http://paste.lisp.org/display/94135 The automated build is also broken: http://build.clojure.org/job/clojure-contrib/lastFailedBuild/console Thanks, I didn't know about that. Looks like I guessed right about the ordering issue, though: http://groups.google.com/group

Re: Standard Practice for a Canned Lexer, Parser, Analyzer?

2010-01-30 Thread Michael Wood
On 30 January 2010 15:33, Roberto Mannai wrote: > On Sat, Jan 30, 2010 at 1:04 PM, Michael Wood wrote: >> >> I have come across references to a "declarative implementation of the >> DICOM-3 network protocol" written in Common Lisp and I was wondering >> what that means, exactly, and how one would

Re: Standard Practice for a Canned Lexer, Parser, Analyzer?

2010-01-30 Thread Michael Wood
On 30 January 2010 14:04, Alex Osborne wrote: > Michael Wood writes: > >> How about for things like binary network protocols?  Would you treat >> them the same way as e.g. source code for a language?  Obviously >> there's no "code generation", but you still need to parse it. > > As Roberto points

Re: clojure box 1.0 failed to connect to emacs server

2010-01-30 Thread Shawn Hoover
Sounds pretty bad! I'll look into it. Can one of you confirm the versions in play? The thread is talking about 1.0 and 1.0rc1, but I'm wondering if you mean 1.1.0. Shawn On Fri, Jan 29, 2010 at 1:41 PM, Rollo wrote: > Seconded. I have the same problem on win7, augmented by the fact that > emacs

Re: Request for Feedback: Improve VimClojure's documentation

2010-01-30 Thread Jeff Schwab
Meikel Brandmeyer wrote: Please send me your suggestions for FAQ and other tips via private email or add a ticket in the bb tracker for the "documentation" component. Hope you don't mind if I add to this thread instead. By the way, can you suggest a forum for reporting VimClojure bugs and c

Re: clojure.contrib compile fail

2010-01-30 Thread Mike Mazur
Hi, On Sat, Jan 30, 2010 at 22:07, Jeff Schwab wrote: > What is the right place to report a clojure-contrib compile failure, or to > look for information? > > The clojure-contrib I just pulled from github fails to compile, with an > error that the ColumnWriter class extended by PrintWriter is not

Re: Promise/Deliver use cases

2010-01-30 Thread Steven E. Harris
Jeff Rose writes: >Getting with a timeout versus without one is the difference of: > > ; blocking deref > @p > > ; deref with 100ms timeout > (.get (future @p) 100 TimeUnit/MILLISECONDS) But the former just blocks on the promise being delivered, while the latter creates an anonymous function, cr

clojure.contrib compile fail

2010-01-30 Thread Jeff Schwab
Hi: What is the right place to report a clojure-contrib compile failure, or to look for information? The clojure-contrib I just pulled from github fails to compile, with an error that the ColumnWriter class extended by PrintWriter is not found. The relevant source directory does define Colu

Re: Standard Practice for a Canned Lexer, Parser, Analyzer?

2010-01-30 Thread Roberto Mannai
On Sat, Jan 30, 2010 at 1:04 PM, Michael Wood wrote: > > I have come across references to a "declarative implementation of the > DICOM-3 network protocol" written in Common Lisp and I was wondering > what that means, exactly, and how one would go about doing something > for an arbitrary network pr

Re: Standard Practice for a Canned Lexer, Parser, Analyzer?

2010-01-30 Thread Roberto Mannai
On Sat, Jan 30, 2010 at 1:04 PM, Alex Osborne wrote: > there *are* binary protocol parser generators.  An > example would be Google protocol buffers: > > http://code.google.com/p/protobuf/ Very interesting, thank you -- You received this message because you are subscribed to the Google Groups "

Re: Standard Practice for a Canned Lexer, Parser, Analyzer?

2010-01-30 Thread Alex Osborne
Michael Wood writes: > How about for things like binary network protocols? Would you treat > them the same way as e.g. source code for a language? Obviously > there's no "code generation", but you still need to parse it. As Roberto points out, most common (application-level) network protocols

Re: Standard Practice for a Canned Lexer, Parser, Analyzer?

2010-01-30 Thread Michael Wood
On 30 January 2010 13:36, Roberto Mannai wrote: > I should not go with an automatic parser. Binary network protocols can > mean a broad range of things :). If there is just a passive consumer Yes, I suppose so :) > (like a textual HTTP browser), you could "consume" all the binary data > and then

Request for Feedback: Improve VimClojure's documentation

2010-01-30 Thread Meikel Brandmeyer
Dear vimming Clojurians, I want to populate the Bitbucket Wiki of VimClojure with tips and FAQs from the field. I'd like to collect the problems you hit, while using it and how you (hopefully) solved them. Please send me your suggestions for FAQ and other tips via private email or add a ticket

Re: Standard Practice for a Canned Lexer, Parser, Analyzer?

2010-01-30 Thread Roberto Mannai
I should not go with an automatic parser. Binary network protocols can mean a broad range of things :). If there is just a passive consumer (like a textual HTTP browser), you could "consume" all the binary data and then parse it, though I don't know if do exist a grammar for binary symbols (just fo

Re: Exception handling functional style

2010-01-30 Thread Lukas Lehner
. Konrad __ Information provenant d'ESET NOD32 Antivirus, version de la base des signatures de virus 4819 (20100130) __ Le message a été vérifié par ESET NOD32 Antivirus. http://www.eset.com -- You received this message because you are subscribed to the Google Groups &qu

Re: newbie python/clojure and java.lang.OutOfMemoryError: Java heap space

2010-01-30 Thread Alex Osborne
Francis Lavoie writes: > (filter even? (range 10)) > > What's puzzle me is that past at certain number (10 millions), clojure > chocks and throw a «java.lang.OutOfMemoryError: Java heap space», > 1. Why does it happen? The JVM puts a limit on the amount of memory that can be used. This is usual