Re: binary structures/bitstrings

2010-04-18 Thread Geoff
s about time I learn how to do that. - Geoff On Apr 16, 9:28 pm, Scott T wrote: > Does anyone know of a clojure library for handling (un)packing of > binary structures?  I'm looking for something similar to perl/ruby/ > python's pack(...) function or something like OCaml

Re: binary structures/bitstrings

2010-04-19 Thread Geoff
I've pushed the bytebuffer stuff into it's own repo and project and cleaned up the documentation a bit. See http://github.com/geoffsalmon/bytebuffer I'd appreciate any feedback you have after trying it out. - Geoff -- You received this message because you are subscribed to th

Re: Running Clojure scripts in Maven

2010-05-19 Thread Geoff
URLClassLoader with the plugin classloader as the parent. This might only work if it's running after the compile phase. Not sure of the maven classloader intricacies here. - Geoff On May 16, 11:26 am, Jason Smith wrote: > On May 16, 7:22 am, "Hugo Duncan" > wrote: >

Re: Running Clojure scripts in Maven

2010-05-20 Thread Geoff
simply support this, the goal could optionally take an "entryFn" instead of "source". The entryFn would be something like "my.ns/main-func" and would name a no-argument function to be called. - Geoff On May 19, 11:44 pm, Jason Smith wrote: > Okay, yes, what you a

Re: ANN: Gloss, a byte-format DSL

2011-01-06 Thread Geoff
specifying formats using (keyword, type) pairs and reading and writing maps instead of bytebuffer's which specifies formats as strings ('b' for byte, 'i' for int, and so on) and reads and writes seqs of values. - Geoff On Jan 5, 5:45 pm, "Eric Schulte" wrot

Java interoperability and Clojure

2009-04-02 Thread Geoff Wozniak
What are the limitations of Clojure and Java interoperability? Are they clearly stated somewhere? I have been experimenting with using Clojure to test some existing Java code (being able to do so makes a convincing argument to use it where I work) and I've noticed that there doesn't seem to be an

Re: Java interoperability and Clojure

2009-04-03 Thread Geoff Wozniak
m sure they'll be helpful in the future. On Apr 2, 11:26 pm, Stuart Halloway wrote: > Hi Geoff, > > You should have no trouble using setAccessible.  There are several   > demos of this in the source code for the book [1] that use   > setAccessible to check private fiel

Re: [ANN] Baum - Extensible EDSL in EDN for configuration files

2015-04-10 Thread Geoff Salmon
irement to warrant that though. thanks again! Geoff On Saturday, 4 April 2015 05:59:27 UTC-4, Ryo Fukumuro wrote: > > Hi all, > > I'd like to announce the release of Baum. > > https://github.com/rkworks/baum > > Baum, my first public library for Clojure, is designed to c

Re: [ANN] Clojure 1.7.0-RC1 now available

2015-05-29 Thread Geoff Shannon
I just tried to upgrade a clj/cljs webapp I wrote. I got an error but it was just a transitive dependency issue with instaparse https://github.com/Engelberg/instaparse/issues/90. Everything works great now that I'm using up-to-date dependencies! On Thursday, May 21, 2015 at 11:31:16 AM UTC-5,

"proxy"ing PersistentHash to allow key->val and (reverse key)->val mapping

2014-07-25 Thread Geoff Little
I'm attempting to proxy PersistentHashmap so that "get"ting an existing key or its reverse returns the same value. Here's the code that I have (defn sym-key-hash-map [] (proxy [clojure.lang.PersistentHashMap] [nil 0 nil false nil] (valAt [key] (or (proxy-super valAt key)

Re: "proxy"ing PersistentHash to allow key->val and (reverse key)->val mapping

2014-07-25 Thread Geoff Little
bump! On Thursday, July 24, 2014 9:52:48 PM UTC-4, Geoff Little wrote: > > I'm attempting to proxy PersistentHashmap so that "get"ting an existing > key or its reverse returns the same value. > > Here's the code that I have > > (defn sym-key-hash-map [] &

Re: "proxy"ing PersistentHash to allow key->val and (reverse key)->val mapping

2014-07-25 Thread Geoff Little
rgeant wrote: > > Hi Geoff, > > You probably want a sorted-map-by: > > user=> (sorted-map-by (fn [a b] (or (when (every? coll? [a b]) (when (= a > (reverse b)) 0)) -1)) [1 2] 42 [2 1] 42) > {[1 2] 42} > > Thanks, > Ambrose > > > On Fri, Jul 25, 201

Re: "proxy"ing PersistentHash to allow key->val and (reverse key)->val mapping

2014-07-25 Thread Geoff Little
Is this comparator called when get is called? How does this allow calling get on the reverse of a valid key? Geoff On Friday, July 25, 2014 7:58:47 PM UTC-4, Ambrose Bonnaire-Sergeant wrote: > > The function basically returns 0 if the keys are equivalent, or -1 > otherwise. > >

Demoralising experience trying to install on Win 7

2014-10-24 Thread Geoff Caplan
Hi Wanting to get Clojure running on a Win 7 machine with no diskspace for dual boot. It's been a demoralising experience. I tried the Win installer linked from the Leiningen website. It failed to download the Leiningen 1 jar - the shell simply flashed open and crashed. Dug around the git site

Re: Demoralising experience trying to install on Win 7

2014-10-25 Thread Geoff Caplan
> > Hi folks > Thanks for the suggestions! 1. Sven - yes, I have the SDK for Java 8 and JAVA_HOME is set correctly 2. Divyansh - thanks - Clooj works on my box, but as you say it's hardly a long-term solution... 3. Phillip - I've tried the installer, as I said, but it doesn't work.

Re: Demoralising experience trying to install on Win 7

2014-10-25 Thread Geoff Caplan
Thanks for the tips, Jony - I've finally made it. Here's the contrast between setting up Haskell and setting up Clojure: *HASKELL* 1) Go to the homepage and download the Haskell Platform as an .exe 2) Install and use *CLOJURE* 1) Go to the homepage and discover I have to go to the Leiningen si

Re: Demoralising experience trying to install on Win 7

2014-10-25 Thread Geoff Caplan
y, 25 October 2014 15:49:21 UTC+1, Andy Fingerhut wrote: > > Geoff: > > I hesitated before replying, because I was concerned that anything I could > say other than "we'll get right on that" will sound at best like an excuse, > or at its worst like a dismissal. The to

Re: Demoralising experience trying to install on Win 7

2014-10-26 Thread Geoff Caplan
ecosystem - I've been waiting 20 years for this! Many thanks to everyone who has worked so hard to make this possible. Geoff -- 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

Re: FleetDB or other "NoSQL" store for Clojure?

2011-07-16 Thread Geoff Wilson
NoSQL type DBs, where the documents themselves are quite large, rather than lots of smaller entries joined in many tables for a relational DB. Thanks, Geoff On 15/07/2011, at 5:09 PM, Timothy Washington wrote: > I've actually tried FleetDB, and describe here, what I found. I didn'

Re: Is there a reason that def- isn't part of the core lib?

2011-09-19 Thread Geoff Wilson
Wouldn't a set of standard entries in a lein project file be sufficient for a beginner? I’m not sure that Clojure needs something as packaged as the Haskell Platform (http://hackage.haskell.org/platform/), and it certainly should not be part of core. On 19/09/2011, at 4:33 PM, Stuart Hallowa

Re: Interested in a port of Ruby's String#unpack

2011-12-26 Thread Geoff Salmon
it looks useful I can try to bring it up to date. - Geoff On Dec 26, 10:03 pm, mrb_bk wrote: > I also thought I would mention that I've been hanging out in #clojure > as mrb_bk - please hit me up if you would like to chat about this. > > On Dec 26, 10:08 am, mrb_bk wrote

Re: Interested in a port of Ruby's String#unpack

2011-12-27 Thread Geoff Salmon
at I needed.  I'll > let you know if it works when I try it out this afternoon -- not sure > what kind of work needs to be done to bring it up to date. > > On Dec 27, 1:03 am, Geoff Salmon wrote: > > > > > > > > > Hi, does the unpack function in this library

Re: Interested in a port of Ruby's String#unpack

2011-12-29 Thread Geoff Salmon
I think I fixed the take-ulong problem, and I've pushed 0.2.0 to clojars. Let me know if you have any problems with it. - Geoff On Dec 27, 12:47 pm, Geoff Salmon wrote: > I've pushed some updates to get it running with 1.3. take-ulong is > still broken because clojure.lang.Big