Re: [GSOC 2013] core.match refactoring

2013-04-09 Thread Ambrose Bonnaire-Sergeant
Hi Patrick, I'm sure David will respond on the list. Racket's pattern matching facilities are very impressive: http://docs.racket-lang.org/reference/match.html FWIW the Typed Racket implementation has lots of cool examples using pattern matching. I can be more specific if you want. Thanks, Ambr

[GSOC 2013] core.match refactoring

2013-04-09 Thread crawfordpm
Hello all, Can anyone point me in the right direction to contacting David Nolen about refactoring/documenting core.match? I've done a bit of tinkering around with Erlang and it's gotten me intrigued with the implementation of pattern matching. I'm also looking over the papers mentioned in the

[gsoc2013]ClojureScript Optimization

2013-04-09 Thread Bill Liao
Hi, all, I'm very interested in optimizing clojurescript as I'm using it myself as frontend script language.I tried to get contact with David Nolen for this idea but couldn't find his email or github account. regards wliao -- -- You received this message because you are subscribed to the

Re: Confluence (http://dev.clojure.org) maintenance tonight

2013-04-09 Thread Christopher Redinger
This maintenance has finished. On Tue, Apr 9, 2013 at 7:49 PM, Christopher Redinger wrote: > We're going to bring Confluence down for maintenance. This will start > at 9pm Eastern. I anticipate it should only be down for less than 30 > minutes. > > -- > You received this message because you are

Re: [GSoC 2013] CinC

2013-04-09 Thread Daniel Solano Gómez
Hello, On Wed Apr 10 00:04 2013, Bronsa wrote: > Actually, I would be interested in doing this if still available :) Well, now that we have been accepted as a mentoring organization, now is the time to start getting in touch with potential mentors and develop a proposal. The student application

Re: IMPORTANT: For Potential GSoC 2012 mentors, do this now please!

2013-04-09 Thread Daniel Solano Gómez
Hello, Mike, On Tue Apr 9 17:31 2013, Mikera wrote: > I'm also stuck on this. I see the "My Dashboard" link, but no list of > projects. does someone need to accept me as a mentor first perhaps? I got your mentorship application and you should be approved now as a mentor. I plan on writing

Re: IMPORTANT: For Potential GSoC 2012 mentors, do this now please!

2013-04-09 Thread Mikera
I'm also stuck on this. I see the "My Dashboard" link, but no list of projects. does someone need to accept me as a mentor first perhaps? On Tuesday, 10 April 2012 00:54:46 UTC+8, David Nolen wrote: > > You don't see a My Dashboard link? > > On Mon, Apr 9, 2012 at 12:52 PM, Phil Hagelberg >

Confluence (http://dev.clojure.org) maintenance tonight

2013-04-09 Thread Christopher Redinger
We're going to bring Confluence down for maintenance. This will start at 9pm Eastern. I anticipate it should only be down for less than 30 minutes. -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@google

Re: Accessing Java members, from Clojure

2013-04-09 Thread Cedric Greevey
On Tue, Apr 9, 2013 at 5:00 PM, Timothy Washington wrote: > > Now, this works, but I'm always open to a better idea. In clojure-land, 1) > there's a thread constantly checking for new events on the list and 2) > there will be a thread of execution for each eventID. So I'm trying to come > up with t

Re: [ANN] java.jdbc 0.3.0-alpha1

2013-04-09 Thread Sean Corfield
On Tue, Apr 9, 2013 at 1:49 PM, r0man wrote: > first off, I like the new API design. Thanx. > 1.) Despite the asymmetry I'm also thinking that passing entities > and identifiers functions via the "db" argument is quite > convienient. Otherwise I always have to wrestle with those extra > paramete

Re: [GSoC 2013] CinC

2013-04-09 Thread Bronsa
Actually, I would be interested in doing this if still available :) On Mon, Mar 4, 2013 at 6:53 PM, Aaron Cohen wrote: > On Mon, Mar 4, 2013 at 11:26 AM, abp wrote: > >> Is this work related? >> >> http://clojurewest.org/sessions#martin >> https://github.com/kanaka/clojurescript >> > > Nope, c

Does the try special form complect the catch and finally clauses?

2013-04-09 Thread Emanuel Rylke
I've been thinking about exceptions a bit and it occurred to me that the catch and finally clauses are orthogonal. I mean code in a catch clause runs conditional on a exception being thrown and code in a finally clause runs unconditional on whether there was an exception or not. So i think usin

Re: Accessing Java members, from Clojure

2013-04-09 Thread Timothy Washington
Hey thanks for all the feedback. So I got a working solution, bits and pieces of this solution online. Cedric mentioned it, but basically, I'm having my java code call a clojure function that (via STM), pushes new event objects to a list in Clojure (fig.1). And with my Clojure code in place, my Ja

Re: [ANN] java.jdbc 0.3.0-alpha1

2013-04-09 Thread r0man
Hi Sean & Matching Socks, first off, I like the new API design. Here are my questions and suggestions: 1.) Despite the asymmetry I'm also thinking that passing entities and identifiers functions via the "db" argument is quite convienient. Otherwise I always have to wrestle with those extra parame

New CSS library - Garden

2013-04-09 Thread Joel Holdbrooks
Nobel Clojurians, I am pleased to announce the alpha version of *Garden*, a new library for writing CSS in Clojure. The project weds the best ideas from Hiccup, gaka, and cssgen and aims to provide a clean and conventional way to author stylesheets without b

Re: Accessing Java members, from Clojure

2013-04-09 Thread Cedric Greevey
On Tue, Apr 9, 2013 at 12:41 PM, Timothy Washington wrote: > Hi all, > > I have a polyglot project, comprising of a little Java and mostly Clojure > code. The Java class is a concrete callback for an external library. There > will be sub-second firing of that callback, and event map objects will g

Re: Accessing Java members, from Clojure

2013-04-09 Thread Gary Verhaegen
I'm not really sure I understand what you want to do here. If you want to access a Java class from Clojure, you can access it directly with the dot notation. If you are concerned about concurrency between your Java code and your Clojure code, this is no different from any concurrency in Java : you

Re: Accessing Java members, from Clojure

2013-04-09 Thread Cedric Greevey
On Tue, Apr 9, 2013 at 12:41 PM, Timothy Washington wrote: > Hi all, > > I have a polyglot project, comprising of a little Java and mostly Clojure > code. The Java class is a concrete callback for an external library. There > will be sub-second firing of that callback, and event map objects will g

Re: [ANN] Instaparse 1.0.0

2013-04-09 Thread Mark Engelberg
On Tue, Apr 9, 2013 at 7:14 AM, Tassilo Horn wrote: > IMHO, it would be cool if a clojure parser library would use a similar > format (exploiting clojure data structures beyond lists where they make > sense), at least internally. Of course, one could still have other > frontends like for the EBN

Re: [ANN] Instaparse 1.0.0

2013-04-09 Thread Mark Engelberg
Wow, the enthusiastic response has been really gratifying. Thanks for the kind words; I hope as people try it out that it lives up to the hype. On Tue, Apr 9, 2013 at 4:47 AM, Laurent PETIT wrote: > Do you have a roadmap for the next releases ? > Initially, my focus will be on gathering feedba

Re: Disable undocumented #= reader macro to prevent unsafe code injection?

2013-04-09 Thread Andy Fingerhut
On Tue, Apr 9, 2013 at 10:03 AM, rebcabin wrote: > The workarounds seem to be disabling or removing the #= reader macro or > writing my own custom reader (in addition to a custom evaluator). > Disabling #= by binding *read-eval* to false would cause an exception if such an expression ever occurr

Re: Disable undocumented #= reader macro to prevent unsafe code injection?

2013-04-09 Thread David Powell
Also - take a look at: https://github.com/flatland/clojail -- Dave -- -- 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 w

Re: Disable undocumented #= reader macro to prevent unsafe code injection?

2013-04-09 Thread David Powell
On Tue, Apr 9, 2013 at 6:03 PM, rebcabin wrote: > Hello -- I would like to use Clojure to build a safe code-remoting > application for query injection (moving queries closer to the data for > affinity and privacy). One alternative for this application is to read > Clojure code from strings WITHOU

Disable undocumented #= reader macro to prevent unsafe code injection?

2013-04-09 Thread rebcabin
Hello -- I would like to use Clojure to build a safe code-remoting application for query injection (moving queries closer to the data for affinity and privacy). One alternative for this application is to read Clojure code from strings WITHOUT evaluating it, then analyze the presented code and /

Accessing Java members, from Clojure

2013-04-09 Thread Timothy Washington
Hi all, I have a polyglot project, comprising of a little Java and mostly Clojure code. The Java class is a concrete callback for an external library. There will be sub-second firing of that callback, and event map objects will get pushed onto a list. >From Clojure, I need to access that list in

Re: [ANN] Instaparse 1.0.0

2013-04-09 Thread Rich Hickey
That looks stunning - congrats and thanks! On Apr 9, 2013, at 1:18 AM, Mark Engelberg wrote: > Instaparse is an easy-to-use, feature-rich parser generator for Clojure. The > two stand-out features: > > 1. Converts standard EBNF notation for context-free grammars into an > executable parser.

Re: [ANN] Instaparse 1.0.0

2013-04-09 Thread Tassilo Horn
Mark Engelberg writes: Hi Mark, >> (def as-and-bs >> (parser >> S = AB* . >> AB = A B . >> A = "a" + . >> B = "b" + .)) > > I played around with that, but even if you suppress evaluation by > using a macro, Clojure's reader makes strong assumptions about certain > symbols.

Re: [ANN] Instaparse 1.0.0

2013-04-09 Thread Michael Klishin
2013/4/9 Laurent PETIT > I find this library very exciting. It is incredibly well documented, > already covers a broad range of use cases, I can't wait for trying it. > I concur. Thank you Mark for not letting your users down and writing the docs. -- MK http://github.com/michaelklishin http:

Re: Basic multiplication incorrent?!?

2013-04-09 Thread Plínio Balduino
In languages that doesn't give you support to arbitrary precision like Clojure do, it's a usual practice compare values using round functions. In pseudo-C it would be like that: float a = 148.52 * 0.0256; float b = 3.802112; a == b; => false round(a, 5) == round(b, 5); => true Or, if possible,

Re: Basic multiplication incorrent?!?

2013-04-09 Thread Rostislav Svoboda
I see. I did some testing. It's not clojure, it's not java, it's deeper. People of planet Earth! Stop wasting time on SETI if your machines can't properly calculate 148.52 * 0.0256 !!! -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to th

Re: Basic multiplication incorrent?!?

2013-04-09 Thread Michael Wood
On 9 April 2013 14:27, Rostislav Svoboda wrote: > Can anyone explain me please why I get: > > Clojure 1.5.1 > user=> (* 148.52 0.0256) > 3.80211206 > > The correct result should be: > https://www.google.com/search?q=148.52+*+0.0256 > 3.802112 Plínio's answer is correct, but just to demons

Re: Basic multiplication incorrent?!?

2013-04-09 Thread Plínio Balduino
This article explains better how it works: http://en.wikipedia.org/wiki/Floating_point#Accuracy_problems Regards Plínio On Tue, Apr 9, 2013 at 9:27 AM, Rostislav Svoboda wrote: > Can anyone explain me please why I get: > > Clojure 1.5.1 > user=> (* 148.52 0.0256) > 3.80211206 > > The co

Re: Basic multiplication incorrent?!?

2013-04-09 Thread Plínio Balduino
Nothing weird there. Looks like an usual floating point operation. On Tue, Apr 9, 2013 at 9:27 AM, Rostislav Svoboda wrote: > Can anyone explain me please why I get: > > Clojure 1.5.1 > user=> (* 148.52 0.0256) > 3.80211206 > > The correct result should be: > https://www.google.com/search

Basic multiplication incorrent?!?

2013-04-09 Thread Rostislav Svoboda
Can anyone explain me please why I get: Clojure 1.5.1 user=> (* 148.52 0.0256) 3.80211206 The correct result should be: https://www.google.com/search?q=148.52+*+0.0256 3.802112 If you don't believe me try it on: http://tryclj.com/ thx Bost -- -- You received this message because you

Re: [ANN] Instaparse 1.0.0

2013-04-09 Thread Laurent PETIT
I find this library very exciting. It is incredibly well documented, already covers a broad range of use cases, I can't wait for trying it. There are also a lot of interesting ideas that may pollinate outside it, I love the cross-pollination capability of open source software ! (i.e. I'd love to s

Re: Signing libraries on clojars

2013-04-09 Thread Marko Topolnik
Most probably it is waiting for you to enter the passphrase to unlock your private key. You should be seeing a message to that effect, though. On Monday, April 8, 2013 11:42:20 AM UTC+2, puzzler wrote: > > When I do "lein deploy clojars", the tool hangs after reporting that it > has created the

Re: Something goofy you can do in Clojure.

2013-04-09 Thread Mark Engelberg
Ah. That's pretty funny :) On Tue, Apr 9, 2013 at 2:48 AM, Jim foo.bar wrote: > Hey Mark, don't get paranoid :)... this is all Cedric did! > > user=> (def .3 0.4) > #'user/.3 > > user=> (+ .3 1.7) > 2.1 > > Jim > > > > > On 09/04/13 10:46, Mark Engelberg wrote: > > What version are you running

Re: [ANN] Instaparse 1.0.0

2013-04-09 Thread Mark Engelberg
Thanks for the suggestion. I based the syntax off of EBNF, and hadn't run across ABNF notation before your link just now. It shouldn't be too hard to add support for ABNF's repetition syntax and comments. Getting the semantics of the terminal values to precisely match the ABNF spec seems like mo

Re: [ANN] Instaparse 1.0.0

2013-04-09 Thread Softaddicts
I am not convinced that typing more delimiter characters is a better thing. The string representation is ... shorter and less error prone. As Mark said, a string isolates you from the reader which could change its behavior over time introducing other undesirable side effects like {} with an uneve

Re: Opinions on Equality Semantics

2013-04-09 Thread Gary Verhaegen
Since Clojure is not a pure language, you cannot even expect (a == a) ==> ((f a) == (f a)), so I do not think it is a stretch to break that theorem for b != a. Most importantly, Clojure's notion of equality is centered around the notion of simple data, irrespective of the specific type of object y

Re: [ANN] Instaparse 1.0.0

2013-04-09 Thread David Powell
Looks awesome. Would it be possible to plug in support for the ABNF[1] notation that the IETF use? Might be useful for implementing standards. Mostly just a different syntax for repetition, and has support for comments. [1] http://www.rfc-editor.org/std/std68.txt -- Dave -- -- You received

Re: Something goofy you can do in Clojure.

2013-04-09 Thread Gary Verhaegen
Technically, this is a user error, since . (dot) is not a valid character inside user-defined symbols. Clojure does mostly take the stance that it is a sharp tool and you are allowed to cut yourself, should you really want to. See http://clojure.org/reader for reference, especially these two sente

Re: [ANN] Instaparse 1.0.0

2013-04-09 Thread Mark Engelberg
On Tue, Apr 9, 2013 at 2:41 AM, Mark Engelberg wrote: > What do you think would be gained by making it a macro? From my > perspective, a macro is essentially just a string that is being processed > by the Clojure reader (and thus subject to its constraints). If the > grammar were expressed in th

Re: [ANN] Instaparse 1.0.0

2013-04-09 Thread Philipp Meier
Am Dienstag, 9. April 2013 11:41:38 UTC+2 schrieb puzzler: > > On Tue, Apr 9, 2013 at 1:33 AM, Tassilo Horn >wrote: > >> Nice, but providing the grammar as a plain string looks somewhat >> unnatural to me. Why not something like this (parser being a macro)? >> >> (def as-and-bs >> (parser >>

Re: Something goofy you can do in Clojure.

2013-04-09 Thread Niels van Klaveren
In Clojure 1.5.1: => (+ .3 1.7) CompilerException java.lang.RuntimeException: Unable to resolve symbol: .3 in this context, compiling:(NO_SOURCE_PATH:1:1) So the only way you can do this is if you def'd .3 before => (def .3 0.4) => (+ .3 1.7) 2.1 On Tuesday, April 9, 2013 10:53:06 AM UTC+2, C

Re: Something goofy you can do in Clojure.

2013-04-09 Thread Jim foo.bar
Hey Mark, don't get paranoid :)... this is all Cedric did! user=> (def .3 0.4) #'user/.3 user=> (+ .3 1.7) 2.1 Jim On 09/04/13 10:46, Mark Engelberg wrote: What version are you running? As far as I know, .3 isn't even a valid representation for a number -- you'd have to write it as 0.3. S

Re: Something goofy you can do in Clojure.

2013-04-09 Thread Mark Engelberg
What version are you running? As far as I know, .3 isn't even a valid representation for a number -- you'd have to write it as 0.3. So I'm not sure where you're running that code snippet such that you don't get an immediate error. On 1.5.1: => (+ 0.3 1.7) 2.0 That said, I think most programmer

Re: [ANN] Instaparse 1.0.0

2013-04-09 Thread Mark Engelberg
On Tue, Apr 9, 2013 at 1:33 AM, Tassilo Horn wrote: > Nice, but providing the grammar as a plain string looks somewhat > unnatural to me. Why not something like this (parser being a macro)? > > (def as-and-bs > (parser > S = AB* . > AB = A B . > A = "a" + . > B = "b" + .)) >

Re: Opinions on Equality Semantics

2013-04-09 Thread Tassilo Horn
JvJ writes: > This is just an idle curiosity up for discussion, but in Clojure, if > (= a b) is true, then given some function f, it is not necessarily > true that (= (f a) (f b)) I think this axiom isn't true in any language. Take `str` / toString() as an example. If that statement was true,

Something goofy you can do in Clojure.

2013-04-09 Thread Cedric Greevey
This may look mildly surprising, and suggests one more thing *not* to ever do in production code: user=> (+ .3 1.7) 2.1 user=> :) Shouldn't be hard to figure out how to put a repl in a state where that expression will evaluate to that result. I'm sure mathematicians everywhere are deeply offende

Re: [ANN] Instaparse 1.0.0

2013-04-09 Thread Tassilo Horn
Mark Engelberg writes: Hi Mark, > Example: > > (def as-and-bs > (parser > "S = AB* > AB = A B > A = 'a'+ > B = 'b'+")) Nice, but providing the grammar as a plain string looks somewhat unnatural to me. Why not something like this (parser being a macro)? (def as-and-bs (p