Re: clojure-scheme - Compiling Clojure to Scheme to C

2012-03-18 Thread Paulo Pinto
Great work! Just a question, why Clojure-Scheme-C, instead of Clojure-Clozure? That way there would no be any C compiler dependency. -- Paulo On Mar 14, 10:08 pm, Nathan Sorenson n...@sfu.ca wrote: I've modified the output of the ClojureScript compiler to emit Scheme code. At this point the

clojurewest talk videos?

2012-03-18 Thread László Török
Hi, will the videos of the talks be available for those who did not make it to the conference? thx -- László Török -- 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

Try Clojure instance with web based REPL interface.

2012-03-18 Thread zoka
Hi all, If you want to try couple of quick things without waiting for lein repl to fire up, or you are just curious about Clojure but have not managed to install it yet, point your browser at: http://noirmon.herokuapp.com/ringmon/monview.html You will get syntax coloured editor, ability to

Re: clojurewest talk videos?

2012-03-18 Thread Sean Corfield
On Sun, Mar 18, 2012 at 11:12 AM, László Török ltoro...@gmail.com wrote: will the videos of the talks be available for those who did not make it to the conference? They should be. Everything was video'd in the end. Probably take a few months to get everything sync'd with slides and posted

Creating map from string

2012-03-18 Thread Jimmy
Hi, I would like to generate a hashmap from a string. The key portions of the string will have some a prefix such as @ to define that they are a key. So the following string @key1 this is a value @another-key and another value @test1 and other value would get converted to. { :@key1 this

Re: Creating map from string

2012-03-18 Thread David Powell
You could use a regexp to pick out the key and the value - something like this: (into {} (map (fn [[_ x y]] [(keyword x) (clojure.string/trim y)]) (re-seq #(@[^ ]*) *([^@]*) s))) -- Dave -- You received this message because you are subscribed to the Google Groups Clojure group. To post

Re: Creating map from string

2012-03-18 Thread Moritz Ulrich
On Sun, Mar 18, 2012 at 21:14, David Powell djpow...@djpowell.net wrote: (into {}   (map (fn [[_ x y]] [(keyword x) (clojure.string/trim y)])     (re-seq #(@[^ ]*) *([^@]*) s))) I think `for' is cleaner than map + anonymous function: (into {} (for [[_ k v] (re-seq #(@[^ ]*) *([^@]*) s)]

Re: Creating map from string

2012-03-18 Thread gaz jones
argh i come back to paste in my answer and you beat me to it :( i was gonna say: (let [s @key1 this is a value @another-key and another value @test1 and other value] (reduce (fn [m [_ k v]] (assoc m k (string/trim v))) {} (re-seq #(@[\w-]+)([^@]*) s))) much the same... On Sun, Mar 18,

Re: clojure url exception

2012-03-18 Thread Brent Millare
I created an issue, doesn't look like we are getting a big response on the clojure group, maybe clojure dev? http://dev.clojure.org/jira/browse/CLJ-955 On Saturday, March 17, 2012 5:00:59 PM UTC-4, Brent Millare wrote: I still see this in 1.4.0-beta5 -- You received this message because

Re: The extensible reader

2012-03-18 Thread Brent Millare
So to answer my own question, this is in 1.4.0. Here is an example: (binding [*data-readers* {'user/f (fn [x] (java.io.File. (first x)))}] (read-string #user/f [\hello\])) returns #File hello On the best way to pass types around, though, I still think this is an open question. The

Re: Resolving vars and quoting

2012-03-18 Thread Paul Carey
Many thanks for all the replies. Paul On Thu, Mar 15, 2012 at 10:49 PM, Stuart Campbell stu...@harto.org wrote: Almost, but you do need to resolve the symbols to functions when you evaluate the operation: (defn arith [x y]   (map (fn [op] [((resolve op) x y) (list op x y)]) '[+ - / *]))

Re: Literate programming in emacs - any experience?

2012-03-18 Thread daly
On Sat, 2012-01-28 at 06:51 -0800, Folcon wrote: Hi Tim, Personally if you have done or would be interested in doing a quick vid cast of how you progress through your workflow, I think that would be very interesting. Sorry for the delay. Here is the answer to your request. Note that the

Re: Clojurescript One and Websockets

2012-03-18 Thread Brian Rowe
Hey Jay, Are there any plans to make a ring adapter for webbit? On Friday, March 2, 2012 6:40:27 AM UTC-5, Jay Fields wrote: clojure + web sockets, not using aleph: http://blog.jayfields.com/2011/02/clojure-web-socket-introduction.html On Mar 1, 2012, at 10:51 PM, Brian Rowe wrote: Hi,

Clojure code optimizer

2012-03-18 Thread Andru Gheorghiu
Hello, I am a third year student majoring in computer science and I am interested in the Clojure code optimizer project proposed for GSoC 2012. Could you please give more details (or examples) on the types of optimizations the optimizer should be able to do? Also, what is a tree shaker

Clojurescript One Errors

2012-03-18 Thread John Collins
I copied the clojurescript one project and made changes to the html files. When I do (go) after `lein repl` I get errors in the browser about not being able to resolve some namespaces. And also the wiki makes no mention how to compile the project after any modifications to the files. So please

ClojureScript error messages

2012-03-18 Thread Aaron
Is there any reason why ClojureScript does not return a source file and line number when there are reader errors? All I get is a long stack trace that only has line numbers for the clojure/clojurescript code that threw - not very helpful. Looking at the source for cljs.compiler/compile-file*

Re: how to include external lib with :foreign-libs in ClojureScript One?

2012-03-18 Thread George Oliver
On Fri, Mar 16, 2012 at 1:09 PM, George Oliver georgeolive...@gmail.comwrote: hi, I think I'm almost there but I can't figure out how to include an external js lib in a cljs one project. What's the correct way to do it when working in development mode? OK, I just figured out that

how to include external lib with :foreign-libs in ClojureScript One?

2012-03-18 Thread George Oliver
hi, I think I'm almost there but I can't figure out how to include an external js lib in a cljs one project. What's the correct way to do it when working in development mode? I have a dependency on unicodetiles.js in project.clj: :git-dependencies [other dependencies here

Re: beginner help with views in ClojureScript One?

2012-03-18 Thread George Oliver
On Thu, Mar 15, 2012 at 8:50 PM, George Oliver georgeolive...@gmail.comwrote: hi, I'm starting to modify the One sample application and can't get the hang of rendering a new view. I've tried looking at some forked projects but am coming up short. This is solved -- looks like I saved but

Re: 3d modeling tools

2012-03-18 Thread Niels van Klaveren
AFAIK there's not much projects focussing on 3D in Clojure, but you can take a look at processing (http://processing.org) and one of it's Clojure wrappers. It's a great little language for 2D/3D visuals, and there's plenty of swarm-like demos for it (http://openprocessing.org). For 3D

beginner help with views in ClojureScript One?

2012-03-18 Thread George Oliver
hi, I'm starting to modify the One sample application and can't get the hang of rendering a new view. I've tried looking at some forked projects but am coming up short. I created a basic template /templates/game.html: _within file=application.html div id=content div id=game h1

What is wrong with code

2012-03-18 Thread jayvandal
This is the code (ns example.core (:gen-class)) (defn -main [ args] (println Hello, World)) ;java -cp classes:clojure.jar com.example I can't get this to run ??? -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this

Keystone, the easiest web framework for Python. How about a 'keystone' for Clojure?

2012-03-18 Thread Leon Talbot
The idea : http://late.am/post/2011/11/27/keystone-a-simple-python-web-framework The doc : http://keystone.readthedocs.org/en/latest/index.html -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: Parallel SSH and system monitoring in Clojure

2012-03-18 Thread Sun Ning
You might interested in clojure-control[1], which has similar functionality to your library. [1] https://github.com/killme2008/clojure-control On 03/16/2012 06:12 AM, Chris McBride wrote: Hi, I releases two simple clojure libraries to help running commands via SSH on multiple servers.

Re: Question about this little method I wrote

2012-03-18 Thread Mike Ledoux
Thank you everybody who responded to my question! It is appreciated. On Feb 29, 3:14 pm, JuanManuel Gimeno Illa jmgim...@gmail.com wrote: A similar version: (defn combinations [[x xs]]     (if xs         (for [e x c (combinations xs)]             (cons e c))         (map list x))) Juan

understanding data structures, and other low-level stuff

2012-03-18 Thread Nic Long
Hi all, I am starting to learn Clojure after buying the book 7 Languages in 7 Weeks (really interesting read) and working through the examples there. But my background is PHP (and no Computer Science degree) so my understanding of data structures and in general, my understanding of low-level CS

Re: Which emacs packages?

2012-03-18 Thread Eduardo Bellani
I would advice to just to through the emacs tutorial *Emacs Tutorial Learn basic Emacs keystroke commands* link that appears when you start emacs. There are some starter kits around, such as https://github.com/bbatsov/emacs-prelude https://github.com/technomancy/emacs-starter-kit Another advice

Re: ANN: A Brief Beginner's Guide to Clojure

2012-03-18 Thread Phil Dobbin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 14/03/2012 18:24, John Gabriele wrote: I wrote a [brief beginner's guide to Clojure][1] that might interest those who are brand new to Clojure. [1]: http://www.unexpected-vortices.com/clojure/brief-beginners-guide/ First paragraph: The

Re: What is wrong with code

2012-03-18 Thread Aaron Cohen
On Thu, Mar 15, 2012 at 10:36 PM, jayvandal jayvan...@gmail.com wrote: This is the code (ns example.core        (:gen-class)) (defn -main [ args]        (println Hello, World)) ;java -cp classes:clojure.jar com.example Where is com.example coming from? Your namespace is example.core

Re: understanding data structures, and other low-level stuff

2012-03-18 Thread Andy Fingerhut
Feel free to ask follow-up questions on the basics privately, since many Clojure programmers are probably already familiar with them, whereas follow-up questions on persistent data structures are very on-topic, since I would guess many people who have studied computer science and/or programming

Re: ClojureScript error messages

2012-03-18 Thread David Nolen
On Fri, Mar 16, 2012 at 6:11 PM, Aaron aaroncrael...@gmail.com wrote: Is there any reason why ClojureScript does not return a source file and line number when there are reader errors? All I get is a long stack trace that only has line numbers for the clojure/clojurescript code that threw -

Re: understanding data structures, and other low-level stuff

2012-03-18 Thread Cedric Greevey
On Sun, Mar 18, 2012 at 11:57 PM, Andy Fingerhut andy.finger...@gmail.com wrote: I don't recall if it covers persistent data structures like the ones most commonly used in Clojure, but Cormen, Leiserson, and Rivest's Introduction to Algorithms is used in many colleges as a text in courses on