Re: Apply elements in a vector as arguments to function

2013-03-29 Thread Marko Topolnik
ClojureDocs currently show just the original docstring followed by user-contributed examples. I think a lot of readers would benefit from somethig like this: apply (apply f args* argseq) *Scripture:* Applies fn f to the argument list formed by prepending args to argseq. *Interpretation: *The fi

Re: [ANN] Pedestal Application Framework

2013-03-29 Thread Jeremiah Dodds
Cedric Greevey writes: > It's a definite improvement ... but "please print and sign the agreement, then > scan and mail"? There are a growing number of people that do *everything* > online, to the point of not having a printer, not having a scanner, or not > having either. > > Of course, the same

Problem with map (only when running on browser)

2013-03-29 Thread Nico
I have the following code: (defn log-call [call] (.log js/console (pr-str call))) (defn generate-report [] ;; Get the data from the textarea calls_log (let [all-calls (.split (.-value (.getElementById js/document "calls_log")) "\n") [calls-headers & calls-log] all-calls]

Re: Clojure Style Guide

2013-03-29 Thread Colin Fleming
I agree - I thoroughly enjoyed this. On 30 March 2013 08:45, Alan Thompson wrote: > Hey - Just saw a nice article on this in (def newsletter) . It looks like > quite a good reference on the subject. > > https://github.com/bbatsov/clojure-style-guide

Re: What is the status of Clojure on LLVM or C?

2013-03-29 Thread Marko Topolnik
On Friday, March 29, 2013 5:37:19 PM UTC+1, Herwig Hochleitner wrote: > > 2013/3/29 Marko Topolnik > > >> Yes, you are involving Clojure startup here, which turns the tables >> altogether. This is far more work than just Java startup: all the >> namespaces must be initialized: all their def'd v

Re: What is the status of Clojure on LLVM or C?

2013-03-29 Thread Aaron
I'm working on a Clojure DSL for generating C code called c-in-clj: https://github.com/aaronc/c-in-clj. Right now it only works on ClojureCLR, but could be ported to Clojure JVM if someone desired. The API should be considered unstable but I have been using to generate real production code. T

Re: Clojure Style Guide

2013-03-29 Thread Erlis Vidal
Alan, Thanks for this. I've enjoy (and learn) a lot reading your clojure style guide! Great job. I think it deserve a link in clojure-docs.org I couldn't find anything similar on that page, wich I use a lot too. Regards, Erlis On Fri, Mar 29, 2013 at 3:45 PM, Alan Thompson wrote: > Hey - Just

Re: Invoke a specific multimethod

2013-03-29 Thread George Oliver
On Friday, March 29, 2013 6:19:19 PM UTC-7, JvJ wrote: > > Is it possible to invoke a particular multimethod and bypass the dispatch > function? > > For instance, suppose that I have a multimethod with a dispatch value of > ::foo, and it's a really complex method. > > Now, I want all cases wher

GSoC 2013: What's next?

2013-03-29 Thread Daniel Solano Gómez
Hello, all, First, a big thanks to everyone who has helped build up our Project Ideas page[1]. Without your help, we would have a much weaker application for participating in this year's Google Summer of Code (GSoC). Earlier today, the application period for mentoring organisations closed. Over

Re: clojurescript memory management

2013-03-29 Thread Evan Mezeske
Are you having trouble with the ClojureScript compiler running out of memory? lein-cljsbuild runs the ClojureScript compiler in a fairly "clean room" Leiningen project, with only a few things from your project.clj being passed through (for instance, things that affect the classpath). It would

Re: What is the status of Clojure on LLVM or C?

2013-03-29 Thread Timothy Baldridge
I really didn't discuss this in my talk at all. My talk focused more around Mjolnir and how it allows for construction of compilers in general. That being said, yes, this has been the hidden agenda behind the library from the start. For those who didn't see the talk, Mjolnir exposes access to LLVM

Re: What is the status of Clojure on LLVM or C?

2013-03-29 Thread Jean Niklas L'orange
On Friday, March 29, 2013 5:04:33 AM UTC+1, tbc++ wrote: > This is something I've thought/talked about for some time now. In reality > this is one of the reasons I started Mjolnir. I would like to see an > implementation of Clojure on LLVM. Mjolnir is several months away from > being able to ha

Re: Floating point comparator issue?

2013-03-29 Thread Alan Malloy
Comparator.compare returns an int. (int 0.2) and (int -0.2) both return 0. Thus, your comparator is returning 0, saying "I don't care what order these go in". On Mar 29, 6:44 pm, JvJ wrote: > Alright check this out: > > ;; Normal subtraction as comparator sorts in ascending order > (sort-by ident

Floating point comparator issue?

2013-03-29 Thread JvJ
Alright check this out: ;; Normal subtraction as comparator sorts in ascending order (sort-by identity #(- %1 %2) [1 -1]) (-1 1) ;; Reverse subtraction as comparator sorts in descending order (sort-by identity #(- %2 %1) [1 -1]) (1 -1) ;;=== ;; And now w

Invoke a specific multimethod

2013-03-29 Thread JvJ
Is it possible to invoke a particular multimethod and bypass the dispatch function? For instance, suppose that I have a multimethod with a dispatch value of ::foo, and it's a really complex method. Now, I want all cases where the dispatch function returns nil to use the same multimethod. Is t

Re: Clojure libraries on remote machines

2013-03-29 Thread Softaddicts
Look at apache archiva. You can install it on a computer that has internet access and allow computers being barred from internet access to use it as a maven repo providing they have access to this single computer that runs archiva. Archiva can act as a cache using proxies for external repos. You

ANN Quartzite 1.1.0 is released

2013-03-29 Thread Michael Klishin
Quartzite [1] is a powerful scheduling library built on top of Quartz scheduler [2]. 1.1.0 release notes: http://blog.clojurewerkz.org/blog/2013/03/30/quartzite-1-dot-1-0-is-released/ 1. http://clojurequartz.info 2. http://quartz-scheduler.org/ -- MK http://github.com/michaelklishin http://twit

ANN Monger 1.5.0 is released

2013-03-29 Thread Michael Klishin
Monger [1] is a Clojure MongoDB driver for a more civilized age: easy to use, with sane defaults, very fast, well documented, and with batteries included. 1.5.0 release notes: http://blog.clojurewerkz.org/blog/2013/03/30/monger-1-dot-5-0-is-released/ 1. http://clojuremongodb.info -- MK http://g

Re: [ANN] Pedestal Application Framework

2013-03-29 Thread Michael Klishin
2013/3/29 Ryan Neufeld > Maybe I can have a conversation with you about your experience on > ClojureWerkz docs? Feel free to contact me directly. -- MK http://github.com/michaelklishin http://twitter.com/michaelklishin -- -- You received this message because you are subscribed to the Googl

Re: [ANN] Pedestal Application Framework

2013-03-29 Thread Paul deGrandis
Cedric, I don't own a printer, so I end up making heavy use of http://hellofax.com/ I'd point people there if they want to keep the whole process digital for themselves. Cheers, Paul -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to t

Re: [ANN] Pedestal Application Framework

2013-03-29 Thread Ryan Neufeld
I definitely hear you - getting pedestal.io open for contributions is a goal of mine too. Maybe I can have a conversation with you about your experience on ClojureWerkz docs? > Ryan, > > This is very good news. One thing I'd like to see is a way for the > community to contribute to pedestal.io

Re: [ANN] Pedestal Application Framework

2013-03-29 Thread Cedric Greevey
On Fri, Mar 29, 2013 at 11:26 AM, Michael Klishin < michael.s.klis...@gmail.com> wrote: > > 2013/3/29 Ryan Neufeld > >> This means Github for issues and pull-requests, easy-to-submit CAs, etc. >> Hopefully once we've proven out these more modern workflows we can start to >> backport them into the

Re: EDN syntax document contains an apparent omission.

2013-03-29 Thread Andy Fingerhut
Up at the top of the page you link to, there is a button labeled "Issues" (at least if you are logged in with a free-to-create Github account), and you can create an issue for this there. Andy On Fri, Mar 29, 2013 at 10:01 AM, Cedric Greevey wrote: > https://github.com/edn-format/edn#equality s

EDN syntax document contains an apparent omission.

2013-03-29 Thread Cedric Greevey
https://github.com/edn-format/edn#equality should probably mention keywords in this list: "nil, booleans, strings, characters, and symbols are equal to values of the same type with the same edn representation." -- -- You received this message because you are subscribed to the Google Groups "Clo

Re: What is the status of Clojure on LLVM or C?

2013-03-29 Thread Herwig Hochleitner
2013/3/29 Marko Topolnik > Yes, you are involving Clojure startup here, which turns the tables > altogether. This is far more work than just Java startup: all the > namespaces must be initialized: all their def'd values calculated at > runtime and assigned. Some of these may involve quite heavywe

Re: What is the status of Clojure on LLVM or C?

2013-03-29 Thread Rich Morin
On Mar 29, 2013, at 03:44, Marko Topolnik wrote: > Yes, you are involving Clojure startup here, which turns the tables > altogether. This is far more work than just Java startup: all the > namespaces must be initialized: all their def'd values calculated > at runtime and assigned. Some of these may

Re: [ANN] Pedestal Application Framework

2013-03-29 Thread Michael Klishin
2013/3/29 Ryan Neufeld > This means Github for issues and pull-requests, easy-to-submit CAs, etc. > Hopefully once we've proven out these more modern workflows we can start to > backport them into the Clojure process. > > I have to ask you this: is there anything we've missed, or do you have any

Re: [ANN] Pedestal Application Framework

2013-03-29 Thread Ryan Neufeld
Hey, sorry for the delay in answering your question Michael. We will definitely be accepting pull requests. In fact, we've already accepted a few minor pulls from community members. I know you've been an outspoken critic of the Clojure contribution process - we understand that pain, and want to

Re: [ANN] http-kit 2.0.0 released

2013-03-29 Thread xumingmingv
Good Job! 在 2013-3-29,下午2:03,"Shen, Feng" 写道: > Hello folks. > > I just released version 2.0.0 of http-kit. > > > 2.0.0 (2013/3/29) > Unify WebSocket and HTTP long polling/streaming with Channel protocol and > with-channel (API breaks with the RC) > WebSocket support sending and receiving

WAT? BigInt instead of Long?

2013-03-29 Thread Peter Mancini
(class 1) java.lang.Long ;check! (class (* (/ 1 255) 254)) clojure.lang.Ratio ;check! (class (* (/ 1 255) 255)) clojure.lang.BigInt ;WAT? Should not example 3 and example 1 end up the same? (Noob question, I know, but this didn't make sense to me and I thought I was doing something wrong when I

Jenkins plugins in clojure

2013-03-29 Thread Erlis Vidal
Hi guys, I was just wondering if someone in the group have written any jenkins plugin using clojure not java as programming language? I'm about to start writing a plugin but I would like to use this opportunity and use clojure. Anyone have any information about this? Thanks! Erlis -- -- You

Re: appengine-magic leiningen plugin and template

2013-03-29 Thread Gregg Reynolds
On Thursday, March 28, 2013 5:29:54 AM UTC-5, Gregg Reynolds wrote: > > Hi, > > People working with appengine--magic might be interested in a > template-and-plugin pair I've put together over the past week. This is my > first crack at leiningen (and I'm fairly new to Clojure as well), so > co

Re: What is the status of Clojure on LLVM or C?

2013-03-29 Thread Marko Topolnik
On Friday, March 29, 2013 11:37:36 AM UTC+1, John Szakmeister wrote: > On Fri, Mar 29, 2013 at 5:49 AM, Mikera > > wrote: > > I decided to benchmark JVM startup again, in case of any doubt, and > because > > I see plenty of FUD on this issue. > > Okay. I pushed up a barebones example of a co

Re: What is the status of Clojure on LLVM or C?

2013-03-29 Thread John Szakmeister
On Fri, Mar 29, 2013 at 5:49 AM, Mikera wrote: > I decided to benchmark JVM startup again, in case of any doubt, and because > I see plenty of FUD on this issue. Sorry, I don't mean to spread any FUD. I'm just being loose with the phrase "start-up time". You're right, I should be more precise i

Re: What is the status of Clojure on LLVM or C?

2013-03-29 Thread Mikera
I decided to benchmark JVM startup again, in case of any doubt, and because I see plenty of FUD on this issue. Code is here: https://github.com/mikera/miscellania/blob/master/src/main/java/hello/world/App.java timecmd bat file use to benchmark is in this SO answer: http://stackoverflow.com/a/6

Re: What is the status of Clojure on LLVM or C?

2013-03-29 Thread John Szakmeister
On Fri, Mar 29, 2013 at 5:28 AM, Marko Topolnik wrote: > >> I certainly don't see that. I've measured this more than a few times, >> and it's several seconds for a simple "Hello World" Java application >> on any machine that I can touch. Additionally, on an embedded system, >> I'm not going to h

status update on uWSGI + Ring

2013-03-29 Thread Roberto De Ioris
Hi everyone, uWSGI 1.9 (the first official release supporting clojure/ring) has been released some week ago and three minor releases followed it. Thanks to the reports of a bunch of clojure users and the work of Mingli Yuan i am pleased to announce that the whole ring test-suite passes on uWSGI+r

Re: What is the status of Clojure on LLVM or C?

2013-03-29 Thread Marko Topolnik
> I certainly don't see that. I've measured this more than a few times, > and it's several seconds for a simple "Hello World" Java application > on any machine that I can touch. Additionally, on an embedded system, > I'm not going to have the same kind of CPU power. For instance, the > cur

Re: What is the status of Clojure on LLVM or C?

2013-03-29 Thread John Szakmeister
On Thu, Mar 28, 2013 at 9:26 PM, Mikera wrote: > On Friday, 29 March 2013 05:45:53 UTC+8, Laurent PETIT wrote: >> >> 2013/3/28 Marko Topolnik : >> > Or you may have just a trivial requirement for a program that both >> > starts >> > and executes quickly. >> >> To what extent would an LLVM / C vers

Re: What is the status of Clojure on LLVM or C?

2013-03-29 Thread Marko Topolnik
On Thursday, March 28, 2013 10:45:53 PM UTC+1, Laurent PETIT wrote: > > 2013/3/28 Marko Topolnik >: > > Or you may have just a trivial requirement for a program that both > starts > > and executes quickly. > > To what extent would an LLVM / C version of a Clojure program not > incur startup