Re: Clojure TCP client using Java Socket

2014-05-15 Thread Philipp Meier
Hi, Am Donnerstag, 8. Mai 2014 07:41:48 UTC+2 schrieb Dylan Gleason: *(defn- receive* * Given a socket create a DataInputStream and process the server* * response* * [reader socket]* * (let [bytes-in (make-array Byte/TYPE util/max-message-size)* *info {:type :receive

Re: Looking for advice to fine tune a simple function

2014-02-18 Thread Philipp Meier
Hi, Am Sonntag, 16. Februar 2014 23:31:46 UTC+1 schrieb Laurent Droin: Here is a function that I came up with that takes a bpm (heart beats per minute) value, as well as a sequence of 4 values that represent the boundaries defining the 5 different heart rate zones for a particular

Re: Review request for a double quoted string parser in parsatron

2014-02-03 Thread Philipp Meier
Hi, Am Montag, 3. Februar 2014 10:26:56 UTC+1 schrieb Kashyap CK: (p/defparser -char-parser [] (p/let- [ _e (optional (p/char \\) nil) _c (if _e (p/token #(#{\ \\ \n \r \t} %)) (p/token #(not= % \))) ] (p/always (if _e (escape-map _c) _c

Re: liberator video, compression question

2014-01-19 Thread Philipp Meier
Hi, Am Sonntag, 19. Januar 2014 03:04:40 UTC+1 schrieb Benjamin R. Haskell: On Sat, 18 Jan 2014, Brian Craft wrote: http://www.youtube.com/watch?v=OEZZOz6__CY At about 30 min he mentions that gzip, etc. aren't so interesting here because we can use, um.. something transfer,

Re: [ANN] Munich Lambda Meetups

2013-12-13 Thread Philipp Meier
Hi, Am Donnerstag, 12. Dezember 2013 18:54:03 UTC+1 schrieb Alex P: We (Munich Lambda[1]) are organising Meetups, dedicated to Functional Programming, and Clojure specifically. I suggest to post this also to the (very silent) google group clojure-de. -billy. -- -- You received this

Re: type hinting overloaded methods

2013-12-11 Thread Philipp Meier
Hi, Am Mittwoch, 11. Dezember 2013 14:27:01 UTC+1 schrieb Mikera: You can't really avoid the instance checks: the underlying mechanic is that the JVM needs to figure out somehow at runtime which overloaded method version to call, since all it knows at compile time is that it has an

Re: SuperShuttle sharing, 7 pm 11/13 from IAD?

2013-11-12 Thread Philipp Meier
Hi, Am Dienstag, 12. November 2013 03:18:55 UTC+1 schrieb Rich Morin: Does anyone want to split a SuperShuttle ticket from IAD to the Embassy Suites in Alexandria, VA, about 7 pm on 11/13? While I do not need one for IAD-Embassy Suites, I would split one the other way round on. My flight

Re: Functional purity and globals in Clojure

2013-09-10 Thread Philipp Meier
Am Dienstag, 10. September 2013 09:19:35 UTC+2 schrieb Alexandr Kurilin: - Something in the middle where perhaps you agree to never directly reference the configs map from your models (again, thinking MVC here) and instead only ever access it from controllers, and pass the

Re: Clojure newbie code review

2013-09-10 Thread Philipp Meier
Am Dienstag, 10. September 2013 01:24:10 UTC+2 schrieb Igor Demura: Hi Clojure community, (I tried codereview.stackaxchange.com before, but no responses where) I'm Clojure newbie, and feel very excited about it and functional programming in general. I wrote tiny app (59 lines of code)

Re: Functional purity and globals in Clojure

2013-09-10 Thread Philipp Meier
Am Dienstag, 10. September 2013 12:58:46 UTC+2 schrieb Luc: I agree more or less, I hate having my configuration data spread everywhere. I prefer to dedicate a name space to maintain/access configuration data. I usually split access to resources using bundles. A bundle can reflect

Re: vec to map with consolidated vals

2013-08-19 Thread Philipp Meier
Am Samstag, 17. August 2013 11:19:23 UTC+2 schrieb David Chelimsky: Hey Steven, here's a variation of my first example that, I think, gets closer to what you're proposing (with maybe-add handled in-line): (defn to-consolidated-map [parts] (reduce (fn [h [k v]] (assoc h k (+

Re: Comparing of 2 words

2013-08-19 Thread Philipp Meier
Hi Christian, Am Sonntag, 18. August 2013 18:52:54 UTC+2 schrieb Christian Sperandio: Hi, I wrote a set of functions to compare 2 words managing the keyboard mistakes. The common mistakes are insertion, deletion, substitution or inversion. This sound like you're looking for an

[ANN] liberator 0.9.0

2013-05-24 Thread Philipp Meier
Hi, I just released liberator 0.9.0. You'll find the new documentation and tutorial site at http://clojure-liberator.github.io/liberator/ Have fun! And thanks to all contributors, -billy. -- -- You received this message because you are subscribed to the Google Groups Clojure group.

Re: [ANN] liberator 0.9.0

2013-05-24 Thread Philipp Meier
Hi Marek, Am Freitag, 24. Mai 2013 19:29:31 UTC+2 schrieb Marek Srank: I think that the front page of the site lacks a decent explanation of what the liberator is... for example, you could put there the description from the 'getting started' page... :) Well, that's a very good proposal

Re: [ANN] Instaparse 1.0.0

2013-04-09 Thread Philipp Meier
Am Dienstag, 9. April 2013 11:41:38 UTC+2 schrieb puzzler: On Tue, Apr 9, 2013 at 1:33 AM, Tassilo Horn ts...@gnu.org javascript:wrote: Nice, but providing the grammar as a plain string looks somewhat unnatural to me. Why not something like this (parser being a macro)? (def as-and-bs

Re: clojure.string no namespace error

2011-10-18 Thread Philipp Meier
If you do a (require 'clojure.string) then all vars will be accessible as clojure.string/... e.g.clojure.string/split-lines . You can use use to import the vars into the current namespane: (use 'clojure.string) This wil make available all vars from clojure.string in you current namespace

Re: Binary compatibility and a culture of AOT abuse

2009-12-13 Thread Philipp Meier
packages. Philipp Meier -- 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

Re: Namespace/class visibility in eval

2009-09-25 Thread Philipp Meier
On 23 Sep., 15:33, John Harrop jharrop...@gmail.com wrote: On Wed, Sep 23, 2009 at 8:50 AM, Philipp Meier phme...@gmail.com wrote: Remember that clojure runs in the JVM and a JVM can have a SecurityManager which can be configured to allow or deny at most any dangeroues operatíon. A java

Re: Namespace/class visibility in eval

2009-09-23 Thread Philipp Meier
On 23 Sep., 03:26, John Harrop jharrop...@gmail.com wrote: On Tue, Sep 22, 2009 at 6:46 PM, Eric Tschetter eched...@gmail.com wrote: But, this looks like a gaping security hole. You're taking an HTTP POST request body and eval'ing it. Someone will, sooner or later, try typing (delete all

Modeling question multimethods or methodmaps?

2009-09-17 Thread Philipp Meier
Hi, I'm building a REST server library on top of compojure loosely modeled after the ideas of erlangs webmachine. The idea is to describe a resource using a couple of function which server as decision makers for the different stages of HTTP request processing. There will be a function to

Re: Modeling question multimethods or methodmaps?

2009-09-17 Thread Philipp Meier
On 17 Sep., 17:49, Stuart Sierra the.stuart.sie...@gmail.com wrote: On Sep 17, 7:50 am, Philipp Meier phme...@gmail.com wrote: I'm building a REST server library on top of compojure loosely modeled after the ideas of erlangs webmachine. The idea is to describe a resource using a couple