On Mon, Mar 26, 2012 at 4:03 PM, Daniel Solano Gomez
cloj...@sattvik.com wrote:
On Mon Mar 26 15:15 2012, Cedric Greevey wrote:
What you're running into is the overhead of get the root value of vars
like swap! and move-up!. The only way to avoid this is use something
like definline.
I
Hello everyone,
I decided to introduce clojure in our company. I'm thinking about preparing
training material both for our programmers and for a selection of mathematica
and physics students that in the future could be engaged in our company.
Some days ago I took a look to marginalia (thanks
Thanks for the notification David. Done!
Ambrose
On Tue, Mar 27, 2012 at 4:21 AM, David Nolen dnolen.li...@gmail.com wrote:
http://www.google-melange.com/gsoc/homepage/google/gsoc2012
If you had submitted a proposal via Confluence or here on the mailing list
please submit now using the real
Il 26 marzo 2012 22:17, Devin Walters dev...@gmail.com ha scritto:
I would email their support staff and ask if that promotion is still
available.
Thank you Devin for your interest!
MeetUp seems nice, I'll looking forward to the answer of the staff.
HAND,
--
Marco Dalla Stella
web:
Hi,
I did that in my last Clojure talks and I enjoyed it.
Usually I create one project (lein new) for each talk and in that I have
one namespace, but not the default core.clj that is created by lein.
After that I develop the talk (code plus comments) in Emacs (lein swank on
the shell, M-x
Hi,
The key question is Why do we need a cheatsheet? Well, the learning
Speaking from personal experience as someone who writes Python for a
living. There are a lot of cases where I know that Clojure *could*
already have a function to do something but I don't know what it's
called. So I have
Hi,
I am new to macros in general but am having a hard time trying to make
a macro that wraps proxy. I am trying to convert the following:
(proxy [java.util.Observer] []
(update [o arg]
(println arg)))
Is what i originally have but I want to convert it using a macro to:
(observer
I'm also very new but would add that 'filter' also returns a lazy sequence.
So 'for' isn't special in that regard (if I understand your comment).
I do 'filter' into 'map' a lot and seeing this question makes me realize
'for' can handle that case nicer so thanks for asking.
On Sunday, March
by the way, how can you put syntax color on Clojure code?
in this email, very nice syntax colorized code is displaying.
thank you.
On Monday, March 26, 2012 7:49:27 AM UTC+9, Dustin Getz wrote:
first a quesiton about idiomatic code:
;; provided by book Fogus Houser, Joy of Clojure
(defn
Howdy group, I was reading the implementation of Agent -- Agent.java,
and have a question on nested send/send-off's.
When an action is being executed, send/send-off's are queued in the
persistent vector `nested':
static void dispatchAction(Action action){
LockingTransaction trans =
I seem to understand it. `nested' is seen non-null value in the thread
_that executes the action_. In any other threads, the default null value
will be seen. And in the executing thread, after pending sends are
released, no user code will be executed, so no actions will be dropped.
Best
If anyone could help that would be great.
try to start with writing a function like:
user= (def code '(proxy [java.util.Observer] [] (update [o arg]
(println arg
#'user/code
user= (cons 'observer (list (first (first (next code))) (next (next code))) )
(observer java.util.Observer ([]
Maybe I'm in the minority but I don't think the cheat sheet needs to be a
queryable oracle for all Clojure information. It's just a tool to jar your
memory or browse for a function by category. When I first started using
Clojure I found it helpful to browse through sequence functions in
user= (def c1 '(proxy [java.util.Observer] [] (update [o arg]
(println arg
#'user/c1
user= (def c2 (list (first (first (next c1))) (next (next c1
#'user/c2
user= (def c3 (first (next c2)))
#'user/c3
user= (def c4 (first (next c3)))
#'user/c4
user= (cons 'observer (list (first c2) [] c4))
thanks Stefan, it's the kind of experience I was looking for.
regards
mimmo
On Tuesday, March 27, 2012 12:20:41 PM UTC+2, Stefan Kamphausen wrote:
Hi,
I did that in my last Clojure talks and I enjoyed it.
Usually I create one project (lein new) for each talk and in that I have
one
I think a tool like you describe sounds like a fun hack to write but I don't
see how it has anything to do with the cheat sheet.
A tool that writes the code instead of you cannot be called a sheet
anymore. It's cheating in its *purest* form :) But I repeat: Don't get
excited too much. To make
Ok sounds great, thanks. I will try the 2-preview asap.
--
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 new members are moderated - please be patient with your
first
Yes a visual interactive repl would be really useful.
Perhaps you could have two modes, a traditional repl mode that
displays the result of what you send to the repl and an immediate mode
that replaces/modifies the last output when you modify the code that
generated it. This should make it
(top-posting corrected)
On Sunday, March 25, 2012 5:49:27 PM UTC-5, Dustin Getz wrote:
first a quesiton about idiomatic code:
;; provided by book Fogus Houser, Joy of Clojure
(defn index [coll]
(cond
(map? coll) (seq coll)
(set? coll) (map vector coll coll)
:else (map
(3) tooltips using a modified TipTip jQuery plugin tool, for people like me
who like its look feel better than (2).
http://homepage.mac.com/jafingerhut/files/cheatsheet-clj-1.3.0-v1.4-tooltips/cheatsheet-full.html
I like that one - looks cool - very helpful!!
Thanks, Frank.
On Mar
Forgot to add that we only need one cheatsheet, and I vote for (3).
On Mar 27, 2012, at 7:55 AM, Frank Siebenlist wrote:
(3) tooltips using a modified TipTip jQuery plugin tool, for people like me
who like its look feel better than (2).
There can be only one. :-)
I prefer #3 as well.
On Mon, Mar 26, 2012 at 2:25 PM, Andy Fingerhut andy.finger...@gmail.comwrote:
Welcome, Pierre.
Thanks for the info. My current thinking is to start publishing on
clojure.org two, or maybe even three versions of the cheatsheet:
(1) no
I'm Italian too, I live in the heel of the boot (in Puglia)
I didn't write a single line of Clojure but I´m playing with the Guile
Scheme and I can't stand curly braces
If someone manages to set up a meeting with meetup.com I'd love to be made
aware of that
Thank you guys,
be cool
Il giorno 27
Love the new cheatsheet! Because no good deed go unpunished: Can you make
hiding the popup a little less sensitve? I find myself looking at a popup
and then unconsciously moving the mouse into the popup text and that causes
the popup to disappear.
On Monday, March 26, 2012 2:25:17 PM UTC-7,
An alternative to the complexities involved may be to write
number-crunching hot spots in Java. Thus I'd add to Tip 10 that it ain't so
bad if you exploit some JVM-platform-goodness *you* just wrote; by
definition it's not much code, it's much simpler and can be done in a
functional style.
On
ClojureScript compilation as service.
Some background and deeper
discussion:
http://blog.fogus.me/2012/03/27/compiling-clojure-to-javascript-pt-3-the-himera-model/
Himera itself: http://himera.herokuapp.com/
Source (patches welcomed): https://github.com/fogus/himera
Feedback welcomed.
--
Hello folks.
I've just released version 1.7.1 of Leiningen, bringing a few bug fixes
to the stable 1.x series:
* Fix a bug where the repl task left JVM processes running.
* Make upgrade task accept arbitrary versions.
* Fix a bug where javac classes would get removed before AOT compilation.
*
On Mon, Mar 26, 2012 at 3:37 AM, Sergey Didenko sergey.dide...@gmail.comwrote:
Hi,
I believe I've heard claims that nothing stops Clojure 1.3 code to be
made very close to Java in terms of execution speed.
My personal experience is that it is very difficult to get Java execution
speed.
On
On Tue, Mar 27, 2012 at 2:18 PM, Mark Engelberg mark.engelb...@gmail.comwrote:
On Mon, Mar 26, 2012 at 3:37 AM, Sergey Didenko
sergey.dide...@gmail.comwrote:
Hi,
I believe I've heard claims that nothing stops Clojure 1.3 code to be
made very close to Java in terms of execution speed.
Hi Benny and Phil,
Thank you for your replies. I've managed to make some progress and have
lein-oneoff working and swank at least recognised (not getting a repl in
emacs jus yet ...)
I am running Ubuntu 11.10 and installed Leiningen through apt-get. That
appears to install Leiningen version
I recently ran into some code** that was in Java, and ran in single
digit microseconds (not millis). I converted it to clojure, and got it
running at about the same speed... though it did take me a day to
figure out all the tweaks.
It can be done, if you're willing to invest the time and learn
2012/3/26 Cedric Greevey cgree...@gmail.com:
(comp {:k1 5 :k2 6}), that is not used in production whereas (comp
{:k1 5 :k2 6}) (note spacing) is used in production but isn't broken.
(comp {:k1 5 :k2 6}) _is_ used in Production, because it works and
somebody left it in.
Without even showing a
You can spot a weak argument when euphemisms and stuff we are
yet-to-encounter start to pop up.
I find puzzler's experience exactly to mine, point by point, and given the
little talk of multi-threading coding in this board I'd expect the same to
apply to many others. If anything, the
Nice!
I'm interested in the namespace issues.
I see there are a bunch of mappings in himera.server.setup. Is this necessary?
On Tue, Mar 27, 2012 at 1:41 PM, Fogus mefo...@gmail.com wrote:
ClojureScript compilation as service.
Some background and deeper
discussion:
On Tue, Mar 27, 2012 at 3:12 PM, Armando Blancas abm221...@gmail.comwrote:
If anything, the java-in-parens gvec.clj *proves* how difficult it is to
get Java perf in Clojure. The good real world perf looks a lot like Java,
regardless of where you place the parens. So I agree with puzzler, Java
I've installed Leiningen on many machine following the brief installation
instructions here:
https://github.com/technomancy/leiningen
If you put 1.3.0 version of Clojure in your project.clj and do lein deps, it
should download that version of Clojure into the lib directory of your
project.
ted tedbra...@gmail.com writes:
I am running Ubuntu 11.10 and installed Leiningen through apt-get.
That appears to install Leiningen version 1.6.1 and symbolic links
with Clojure 1.2.1. Is there an easy way to upgrade to the latest
version of Leiningen?
New versions of Leiningen are
Jim Duey has been doing some very, very exciting work integrating
core.logic with JDK 7 fork/join:
http://www.clojure.net/2012/03/26/Messin-with-core.logic/
David
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
That's a distinction without a difference. I'm saying the host interop
overwhelms the cool stuff. That's the kind of code I find foolish to write
in product development. I don't advocate going back and forth to Java, but
when the host takes over, that's sign that *it* can be the simpler, better
On Tue, Mar 27, 2012 at 5:28 PM, Armando Blancas abm221...@gmail.comwrote:
That's a distinction without a difference. I'm saying the host interop
overwhelms the cool stuff. That's the kind of code I find foolish to write
in product development. I don't advocate going back and forth to Java,
Can lein install create checksum (MD5, SHA-1) files when installing
artifacts in a local Maven repository? Heroku requires artifacts be
deployed with checksum files.
lein install generates a pom.xml, but when running mvn install
-DcreateChecksum=true from that pom.xml, mysteriously the
I would be happy to, if someone could teach me how to do it. I didn't write
the JavaScript that does the tooltips -- I just took the TipTip jQuery plugin
and bashed away at it slightly until it did what I wanted. I've tried using
keepAlive: true in the options it already implements to see if
Julien Chastang julien.c.chast...@gmail.com writes:
Can lein install create checksum (MD5, SHA-1) files when installing
artifacts in a local Maven repository? Heroku requires artifacts be
deployed with checksum files.
Can you explain a bit more about what you're trying to do? I can't think
Hi Phil,
On Friday, March 23, 2012 3:57:28 PM UTC-7, Phil Hagelberg wrote:
Arthur Edelstein arthuredelst...@gmail.com writes:
In clooj + lein, there are three steps to adding a jar to a project.
1. Edit the project.clj file to include the artifact in the project's
dependencies
2. Go to
On Tue, Mar 27, 2012 at 5:28 PM, Armando Blancas abm221...@gmail.com wrote:
That's a distinction without a difference. I'm saying the host interop
overwhelms the cool stuff. That's the kind of code I find foolish to write
in product development. I don't advocate going back and forth to Java,
Would you consider removing the underlining from all links ?
I think it would look much better,
--
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 new members are
Hello everyone
I had a go at adding support for complex numbers, it's at:
https://github.com/andrea-chiavazza/clojure/tree/complex
Some repl usage examples:
user= (/ (complex 73 13) (complex 15 25))
#Complex (142/85 -163/85i)
user= (/ (complex 73 13) (complex 15.0 25.0))
#Complex
On Mar 26, 5:25 pm, Andy Fingerhut andy.finger...@gmail.com wrote:
(3) tooltips using a modified TipTip jQuery plugin tool, for people like me
who like its look feel better than (2).
http://homepage.mac.com/jafingerhut/files/cheatsheet-clj-1.3.0-v1.4-t...
I like #3 as well, though would
On Tue, Mar 27, 2012 at 3:05 PM, Herwig Hochleitner
hhochleit...@gmail.com wrote:
2012/3/26 Cedric Greevey cgree...@gmail.com:
(comp {:k1 5 :k2 6}), that is not used in production whereas (comp
{:k1 5 :k2 6}) (note spacing) is used in production but isn't broken.
(comp {:k1 5 :k2 6}) _is_
You can do 2 things, together or separate depending on your choice:
-increase the area that will respond to the mouse hover, so you don't have
to be exactly on the link to see the tooltip
-lengthen the fadeOut delay.
I have implemented both at the URL below.
On Mar 27, 2012 6:26 PM, Andrea Chiavazza ndrch...@gmail.com wrote:
Hello everyone
I had a go at adding support for complex numbers, it's at:
https://github.com/andrea-chiavazza/clojure/tree/complex
Some repl usage examples:
user= (/ (complex 73 13) (complex 15 25))
#Complex (142/85
On Tuesday, March 27, 2012 4:54:56 PM UTC-6, Phil Hagelberg wrote:
Julien Chastang writes:
Can lein install create checksum (MD5, SHA-1) files when installing
artifacts in a local Maven repository? Heroku requires artifacts be
deployed with checksum files.
Can you explain a bit more
52 matches
Mail list logo