definterface vs. defprotocol type hints

2011-12-11 Thread blais
Hi, Why is it that defprotocol ignores type hints, while definterface deals with them? Both macros expand to a call to gen-interface--defprotocol just adds a bit more to that. I don't see why it wouldn't be possible. Is it just a historical artifact? -- You received this message because you

clojurescript extend-type question

2011-12-11 Thread Jack Moffitt
Is there a technical reason that there is no (extend-type object ...) in ClojureScript? I just found myself implementing several protocols on the native object to get better host interop, but it occurred to me that if it was this easy, surely it would have already been done. If there is no

Re: definterface vs. defprotocol type hints

2011-12-11 Thread Alan Malloy
On Dec 11, 8:15 am, blais goo...@furius.ca wrote: Hi, Why is it that defprotocol ignores type hints, while definterface deals with them? Both macros expand to a call to gen-interface--defprotocol just adds a bit more to that. I don't see why it wouldn't be possible. Is it just a historical

Talk about Clojure at FOSDEM 2012 !

2011-12-11 Thread Tom Marble
All: We are pleased to announce the Call for Participation in the FOSDEM 2012 Free Java DevRoom! This marks the 9th year that the Free Java DevRoom has been a part of FOSDEM. http://fosdem.org/2012/ Saturday 4th and Sunday 5th of February 2012 Brussels, Belgium The Free Java DevRoom has become

Re: clojurescript extend-type question

2011-12-11 Thread David Nolen
This already works: (extend-type js/Object ...) On Sun, Dec 11, 2011 at 1:21 PM, Jack Moffitt j...@metajack.im wrote: Is there a technical reason that there is no (extend-type object ...) in ClojureScript? I just found myself implementing several protocols on the native object to get

ANN: fs (Filesystem Utilities) 1.0.0 Released

2011-12-11 Thread Anthony Grimes
fs is a file system utilities library for Clojure. This library was originally created by Miki Tebeka and resided at https://bitbucket.org/tebeka/fs. Unfortunately, Miki recently found himself having less time for Clojure and wasn't able to fix bugs and add new features in a timely manner.

Lazy-seq of a binary file

2011-12-11 Thread Simone Mosciatti
Hi Guys, I'm pretty new of clojure so sorry for the maybe stupid question... Anyway, i'm looking for read a file byte by byte, perfect would be get a lazy-seq of every byte in the file, it's looks, for me, very weird that there isn't a built-in or some easy way to do that, but I haven't find

Re: Opposite function to cons, but in terms of construction, not destruction.

2011-12-11 Thread Marco Abis
Hi, total newbie here but what about conj? (conj (conj (conj [ 1 2 3] 4) 6) 7) would return [1 2 3 4 6 7] -- Marco Abis -- 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

Re: Lein not resolving?

2011-12-11 Thread Richard Tiger Melville
Yes - please disregard everyone. Local Artifactory repository was getting in the way On Dec 9, 2:55 pm, Phil Hagelberg p...@hagelb.org wrote: On Fri, Dec 9, 2011 at 12:38 PM, Richard Tiger Melville melvilleti...@gmail.com wrote: bash-4.1$ lein plugin install swank-clojure 1.4.0-SNAPSHOT

Working Slackware Linux / emacs 23.3.1 / lein 1.6.2 / swank-1.4.0 / clj 1.3.0 REPL

2011-12-11 Thread Richard Tiger Melville
Spent a day with the getting started instructions - everything failed: clojure-jack-in, cdt, package.el, you name it. This brute force method using M-x slime-connect is working for me: 1. eswank script #!/bin/sh LISPDIR=/usr/local/lisp

Re: ANN: fs (Filesystem Utilities) 1.0.0 Released

2011-12-11 Thread Miki
Thank you Anthony! I'm happy that fs found a good home and I'm sure it'll be much more awesome now. Let the revolution begin! ;) -- Miki -- 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: Working Slackware Linux / emacs 23.3.1 / lein 1.6.2 / swank-1.4.0 / clj 1.3.0 REPL

2011-12-11 Thread Phil Hagelberg
On Fri, Dec 9, 2011 at 2:17 PM, Richard Tiger Melville melvilleti...@gmail.com wrote: 4. Use bleeding edge lein to create the project That's actually not the bleeding-edge version. But anyway, if you are using your own custom shell script to launch swank it should be irrelevant what leiningen

Re: Lazy-seq of a binary file

2011-12-11 Thread Stephen Compall
On Sat, 2011-12-10 at 23:13 -0800, Simone Mosciatti wrote: Anyway, i'm looking for read a file byte by byte, perfect would be get a lazy-seq of every byte in the file, it's looks, for me, very weird that there isn't a built-in or some easy way to do that The tradeoffs aren't universal enough

casting spels in clojure problem

2011-12-11 Thread jayvandal
I am trying castin spels in clojure and I get this error. What does it mean?? user= (spel-print describe-paths 'living-room game-map) java.lang.IllegalArgumentException: Wrong number of args (3) passed to: user$spel-print (NO_SOURCE_FILE:0) == code is

Re: casting spels in clojure problem

2011-12-11 Thread Stuart Campbell
Hello, You'll need to include the source of the spel-print function, i.e. the (defn spel-print ...) part of the code. The error means that you're calling spel-print with either too many or too few arguments. But we can't tell unless you provide the code for that function :) Regards, Stuart On