On Sun, Mar 18, 2012 at 11:57 PM, Andy Fingerhut
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 algorithms
> and da
On Fri, Mar 16, 2012 at 6:11 PM, Aaron 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 -
> not very helpful.
>
>
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
On Thu, Mar 15, 2012 at 10:36 PM, jayvandal 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
--Aaron
--
-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: "T
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
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 id
Thank you everybody who responded to my question! It is appreciated.
On Feb 29, 3:14 pm, JuanManuel Gimeno Illa wrote:
> A similar version:
>
> (defn combinations [[x & xs]]
> (if xs
> (for [e x c (combinations xs)]
> (cons e c))
> (map list x)))
>
> Juan Manuel
>
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. Hop
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 clojure@googlegroups.
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 t
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">
My game goes here.
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
calculati
On Thu, Mar 15, 2012 at 8:50 PM, George Oliver wrote:
> 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 didn't compile and load t
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 [
["https://github.com/tap
On Fri, Mar 16, 2012 at 1:09 PM, George Oliver wrote:
> 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 :foreign-libs is in pull-request
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* a
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
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 implementat
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:
>
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
Many thanks for all the replies.
Paul
On Thu, Mar 15, 2012 at 10:49 PM, Stuart Campbell 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)]) '[+ - / *]))
>
> Regards,
> S
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
#
On the best way to pass types around, though, I still think this is an open
question.
The problem is t
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 bec
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
On Sun, Mar 18, 2012 at 21:14, David Powell 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)]
[(keyw
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 po
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
On Sun, Mar 18, 2012 at 11:12 AM, László Török 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 online tho'...
--
Sea
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 sta
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 n
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 wrote:
> I've modified the output of the ClojureScript compiler to emit Scheme code.
> At this point the core li
32 matches
Mail list logo