Re: clojurescript: how do i copy one input text field to another?

2011-12-18 Thread drewn
I had this problem too. I tried to do it in Pinot+Noir. Haven't figured it out yet, so curious to see if there's any success with this! On Dec 16, 1:05 pm, bob wrote: > here is a link to both:https://gist.github.com/1487157 > (hopefully that is what you meant by create a paste.  first time > tr

ANN: stream-stream 0.1.0

2011-12-18 Thread Stephen Compall
stream-stream is a simple library for chunked reading of Readers and InputStreams, and incidentally chunked writing to Writers and OutputStreams. It is written for JVM Clojure 1.3.x, and does not support prior versions or other hosts. Its homepage is https://launchpad.net/stream-stream ; see its

Re: Thin clojure wrapper for zeromq

2011-12-18 Thread Andreas Kostler
No worries :) Thanks for re-igniting my awareness of Storm. On 19 December 2011 11:22, bjconlan wrote: > Sorry I should have read the full mail. For some reason I read it as a > question for an alternative to clojure-zeromq. Ignore my previous > email. It also doesn't support zmq.3x (only 2.x ser

Re: ClojureScript: Error when calling require in repljs REPL.

2011-12-18 Thread Fiel Cabral
I found the answer in the clojurescript wiki under "The REPL and Evaluation Environments". https://github.com/clojure/clojurescript/wiki/The-REPL-and-Evaluation-Environments (require x) is not supported but (ns ...) supports :require. On Dec 18, 4:23 pm, Fiel Cabral wrote: > I'm trying to learn

Re: Thin clojure wrapper for zeromq

2011-12-18 Thread bjconlan
Sorry I should have read the full mail. For some reason I read it as a question for an alternative to clojure-zeromq. Ignore my previous email. It also doesn't support zmq.3x (only 2.x series). Sorry about that, B. On Dec 18, 6:10 pm, Andreas Kostler wrote: > Hi All, > For a little hobby project

Re: Thin clojure wrapper for zeromq

2011-12-18 Thread bjconlan
https://github.com/dysinger/zilch It is used by the Storm project which is enough of a thumbs up for me. (I've forked it also @ https://github.com/bjconlan/zilch - but I only point this to you because if you are using osx I've improved on the readme for getting a more recent version of jzmq instal

Re: defrecord based on runtime metadata?

2011-12-18 Thread Bill Robertson
Thanks for the feedback. Yes, I meant expression not string. I've been fighting a nasty cold this weekend, and I'm a bit out of it. -- 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 tha

Re: defrecord based on runtime metadata?

2011-12-18 Thread Alan Malloy
Why do you want to do this? It's possible that it would improve performance if you generated loads of these records, but you would have to effectively compile your whole program at runtime in order to have the static type information needed to get the improved performance. Most of the time someone

Re: Error converting an example written in C++, TCL, python to clojure

2011-12-18 Thread Stephen Compall
On Sat, 2011-12-17 at 16:43 -0800, Antonio Recio wrote: > When I tried to translate in clojure I get errors. Like what? > Where is the error in my clojure code? Well, I can only guess, but for starters: > ren (doto (vtkRenderer.) `ren' isn't defined, and vtkRenderer isn't in java.lang,

Re: defrecord based on runtime metadata?

2011-12-18 Thread Stephen Compall
On Sun, 2011-12-18 at 11:56 -0800, Bill Robertson wrote: > I'm trying to define records based on meta data read in at runtime, > Short of generating a string and calling eval on it, is this possible? Supposing by "string" you meant "expression", no. https://groups.google.com/d/msg/clojure/kdAWhfB

Re: defrecord based on runtime metadata?

2011-12-18 Thread Cedric Greevey
On Sun, Dec 18, 2011 at 2:56 PM, Bill Robertson wrote: > I'm trying to define records based on meta data read in at runtime, > and I'm attempting to write a function that extracts name and attrs > and passes them to defrecord, but I don't understand how to > dynamically create the symbol for the r

ClojureScript: Error when calling require in repljs REPL.

2011-12-18 Thread Fiel Cabral
I'm trying to learn ClojureScript and I get this error when calling require in the repljs REPL: (I ran these commands after cloning the git repo last night and running script/bootstrap) ./script/repljs "Type: " :cljs/quit " to quit" ClojureScript:cljs.user> (+ 1 1) 2 ClojureScript:cljs.user> (zer

defrecord based on runtime metadata?

2011-12-18 Thread Bill Robertson
I'm trying to define records based on meta data read in at runtime, and I'm attempting to write a function that extracts name and attrs and passes them to defrecord, but I don't understand how to dynamically create the symbol for the record name. e.g. user=> (defrecord (symbol "foo" "bar") [a b])

Re: UnsatisfiedLinkError using clojure.lang.RT/loadLibrary

2011-12-18 Thread Dave Ray
java.library.path is only good for the first "layer" of libraries you load. Any dependent libs (like libvtkCommon.so) are loaded with the normal dynamic loading provided by the OS. So, i think there's two options: * Just use LD_LIBRARY_PATH env variable (or OS equivalent) and don't bother with jav

Re: UnsatisfiedLinkError using clojure.lang.RT/loadLibrary

2011-12-18 Thread Baishampayan Ghose
It seems the JVM is unable to locate certain shared library in the path you specified. Can you see whether that .so file actually exists in that directory? This is what the VTK wiki says about this type of errors - http://www.vtk.org/Wiki/VTK/FAQ#When_I_try_to_run_my_program_with_Java-wrapped_VTK.

Reuse of generic Clojure/ClojureScript code? Part 2

2011-12-18 Thread Dave Sann
Following on from : https://groups.google.com/d/topic/clojure/IngUs2TUJV8/discussion I modified Chris Granger's cljs-watch to facilitate easy use of generic clj files as ClojureScript files. cljs-watch code is here: https://github.com/davesann/cljs-watch An example Noir project layout is here:

Re: ANN: Midje 1.3.0

2011-12-18 Thread eniotna
Hi, I do not know if it's because i started writing directly clojure with facts but i find it really intuitive. Midje, there is a fact for that :d Thanks for your great work Antoine 2011/12/16 ronen > Joining the congrats, one of the must have tools for any Clojure > project > > Ronen > > On D

Thin clojure wrapper for zeromq

2011-12-18 Thread Andreas Kostler
Hi All, For a little hobby project I found myself looking for a clojure wrapper for 0MQ. clojure-zeromq is stale and doesn't support zeromq > 3.0.0 so I rolled my own: https://github.com/AndreasKostler/clj-0MQ It's in a very early stage of development but most of the functionality is there. Furthe