Re: [Tutorial] Making core.logic work with custom data structures

2012-01-07 Thread David Nolen
This is excellent. Thank you. On Friday, January 6, 2012, Tassilo Horn wrote: > Hi all, > > after spending the last two days making clojure.core.logic work with our > custom Java data structures, I decided to write a short blog posting > about it. Here it is: > > http://tsdh.wordpress.com/2012/0

Re: Disequality

2012-01-08 Thread David Nolen
Thanks for report. Please open a ticket. I'll look into this later this week. David On Saturday, January 7, 2012, jim wrote: > Hey David, > > From the readme the failing disequality example: > > (run* [q] > (fresh [x y] >(!= [x 2] [1 y]) >(== x 1) >(== y 2) >(== q [x y]))) > > g

Re: ClojureScript – inter-namespace usage

2012-01-09 Thread David Nolen
binding works just fine in CLJS. That it doesn't work with required "vars" sounds like a bug. On Monday, January 9, 2012, Stuart Sierra wrote: > Hi Shantanu, > > #1 is a bug. > > #2 is not possible because `import` doesn't exist in ClojureScript: it doesn't differentiate between host classes and

Re: core.logic, leiningen, clj-stacktrace: someone eats my backtraces

2012-01-09 Thread David Nolen
Do you see the same issue when working with lazy sequences? We definitely don't eat exceptions. On Monday, January 9, 2012, Tassilo Horn wrote: > Phil Hagelberg writes: > > Hi Phil, > >>> One thing that really made the programming extremely hard was that I >>> don't get any backtraces if an exce

Re: array literal syntax

2012-01-10 Thread David Nolen
There is no array literal syntax yet, but (array 22 33) should work for you. On Tue, Jan 10, 2012 at 2:46 PM, billh2233 wrote: > How do I code an array literal in clojurescript that translates to an > array literal in javascript? What's the syntax? > > If I code in clojurescript: > ... [22 3

Re: core.logic constraint satisfaction

2012-01-10 Thread David Nolen
On Tue, Jan 10, 2012 at 10:51 AM, GHZ wrote: > I have the following problem to solve, and before I try and tackle it > the long way around, I wondered this was a problem that fits inside > the domain of problems to be handled by core.logic (of which I hear a > lot about recently) > Seems ideally

Re: Disequality

2012-01-10 Thread David Nolen
On Sat, Jan 7, 2012 at 11:20 PM, jim wrote: > Hey David, > > From the readme the failing disequality example: > > (run* [q] > (fresh [x y] >(!= [x 2] [1 y]) >(== x 1) >(== y 2) >(== q [x y]))) > > gives me ([1 2]) > I just checked this. This fails for me. David -- You receive

Re: [ANN] ClojureScript One - Getting Started with ClojureScript

2012-01-11 Thread David Nolen
On Wed, Jan 11, 2012 at 2:27 PM, Brenton wrote: > Today we are releasing ClojureScript One. A project to help you get > started writing single-page applications in ClojureScript. > > http://clojure.com/blog/2012/01/11/announcing-clojurescript-one.html > > http://clojurescriptone.com/ > > https://

Re: Is this a bug? extending protocol on js/Object

2012-01-12 Thread David Nolen
You should never extend js/Object. On Thursday, January 12, 2012, Dave Sann wrote: > code is below. > Basically - if I extend a protocol on js/Object then I get an error when calling map on a map with integer keys. > Is this a bug or an error on my part? > Cheers > Dave > Results first: > If the

Re: Is this a bug? extending protocol on js/Object

2012-01-13 Thread David Nolen
It could create interop problems with other JavaScript libraries (including Google Closure). extending Object modifies its prototype. The problem is that objects are used as maps in JavaScript and these new properties will appear if someone tries to iterate through the keys with for..in. It's unfo

Re: Clojurescript One: (def fiv 5) compiles to ".fiv = 5;\n" ?

2012-01-13 Thread David Nolen
On Fri, Jan 13, 2012 at 12:16 PM, László Török wrote: > funny, if I start the cljs repl via script/cljs-repl it works > > I will look into it, maybe it's Emacs > > thx > Out of curiosity, how were you starting it before? David -- You received this message because you are subscribed to the Goo

Re: Is this a bug? extending protocol on js/Object

2012-01-13 Thread David Nolen
On Fri, Jan 13, 2012 at 1:32 PM, Jozef Wagner wrote: > How about using (extend-type default ...) ? Is it safe to use it? The question is how to implement that efficiently. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send

Re: `extends?`, `class` and `type` on ClojureScript

2012-01-13 Thread David Nolen
On Fri, Jan 13, 2012 at 3:36 PM, Shantanu Kumar wrote: > Hi, > > I noticed that `extends?`, `class` and `type` are not implemented on > ClojureScript (yet) – will they eventually be implemented? Is there a > way beside these to determine if a reified object implements a certain > protocol? > > Sha

Re: Clojurescript One: distinguishing event sources / multiple widget instances

2012-01-18 Thread David Nolen
On Tue, Jan 17, 2012 at 10:08 PM, kovas boguta wrote: > Pretty basic question here. > > Suppose I want to have 2 copies of the form in the same application. > > How will the event handlers know which form the events are coming > from, and which form needs to be modified in response to those events

Re: "including" Protocols in clojurescript

2012-01-18 Thread David Nolen
On Wed, Jan 18, 2012 at 4:58 PM, Dave Sann wrote: > Scenario: > > Define a protocol, generally: > > in some-ns.fred > > (defprotocol Fred > (fred [this] "do something cool and useful")) > > Specifically extend the protocol for dom objects > > in someother-ns.dom.fred > > ; implementing Fred for

Re: Breaking news - Counterclockwise sponsored by Relevance !

2012-01-19 Thread David Nolen
Exciting news congrats! David On Thursday, January 19, 2012, Laurent PETIT wrote: > Hello, > > Happy new year to all of you ! > > I'm glad to inform you that Relevance ( http://thinkrelevance.com/ ) offered sponsorship for my work on Counterclockwise! > > I'm really glad and grateful to them, an

Re: identical?

2012-01-19 Thread David Nolen
On Thu, Jan 19, 2012 at 10:19 AM, Nicolas Garcin < nicolas.etienne.gar...@gmail.com> wrote: > Hi, > > I have a simple question regarding identical?: > I understand that keywords with the same name refer to the same > object. So > > (identical? :ab :ab) > > returns true. > Now, if I do the followin

Re: = in ClojureScript differs from Clojure API for arities other than 2

2012-01-19 Thread David Nolen
On Thu, Jan 19, 2012 at 11:18 AM, Gijs S. wrote: > Subject: = in ClojureScript differs from Clojure API for arities other > than 2 > > Using ClojureScript f4c0de502c92ce710da923888d672f22213b902c (checked > out on Thu Jan 19 2012) > => (= 1) > false ;; incorrect > > => (= 1 1) > true > > => (= 1

Re: ClojureScript in IE 9 (does it work?)

2012-01-20 Thread David Nolen
It would be helpful if you could investigate the precise problem if there is one and submit a JIRA ticket. On Friday, January 20, 2012, gchristnsn wrote: > Thanks for the suggestions, I have created a wrapper function and it > works, but it seems, there are more problems. > > I use reader/read-st

Re: ANN: ClojureScript revision 927 release

2012-01-20 Thread David Nolen
Sweet! On Fri, Jan 20, 2012 at 2:14 PM, Stuart Sierra wrote: > We have released JARs for ClojureScript to the Sonatype OSS > repository. They will be uploaded to the Maven Central repository > within 24 hours. > > We do not yet have any automated build/release cycle for > ClojureScript. If you w

Re: Clojurescript One: distinguishing event sources / multiple widget instances

2012-01-20 Thread David Nolen
On Fri, Jan 20, 2012 at 6:06 PM, kovas boguta wrote: > Hi David, > > Setting aside the "data binding" aspect of the problem for a minute.. > > jQuery, Dojo and other JS libs seem to be going all-in on the "event > delegation" paradigm. > Yup event delegation is definitely the way to go. David -

Re: Clojure for Cocoa

2012-01-22 Thread David Nolen
On Sun, Jan 22, 2012 at 4:06 AM, Axel Katerbau, Objectpark < akater...@googlemail.com> wrote: > Hi all, > > I'm pondering the idea of having Clojure for "regular" Mac OS/iOS > programming with the Objective-C libraries like Cocoa and the like. > > Having a Clojure variant that embraces the Objecti

Re: Logic program and hierarchical data

2012-01-23 Thread David Nolen
One way: (ns hierarchy.core (:refer-clojure :exclude [==]) (:use [clojure.core.logic])) (def order [:domain :kingdom :phylum :class :order :family :genus :species]) (def homo-sapiens {:domain :eukarya :kingdom :animalia-metazoa :phylum :chordata :class :mammalia :order :primate

Re: Logic program and hierarchical data

2012-01-23 Thread David Nolen
On Tue, Jan 24, 2012 at 12:00 AM, Cedric Greevey wrote: > On Mon, Jan 23, 2012 at 11:41 PM, David Nolen > wrote: > > (def homo-sapiens > > {:domain :eukarya > >:kingdom :animalia-metazoa > >:phylum :chordata > >:class :mammalia > >

Re: Clojure for Cocoa

2012-01-24 Thread David Nolen
On Mon, Jan 23, 2012 at 4:55 AM, Axel Katerbau, Objectpark < akater...@googlemail.com> wrote: > Hi David, > > On 23 Jan., 04:00, David Nolen wrote: > > > This would be cool. I think just comes down to how ambitious you are. > > > > ClojureScript is effective

Re: Is this a bug? extending protocol on js/Object

2012-01-25 Thread David Nolen
On Fri, Jan 13, 2012 at 1:32 PM, Jozef Wagner wrote: > How about using (extend-type default ...) ? Is it safe to use it? > > Oops, extend-type with default does work and it seems to work well. David -- You received this message because you are subscribed to the Google Groups "Clojure" group. To

Re: No support for primitive type returns within protocols (1.3)?

2012-01-25 Thread David Nolen
On Wed, Jan 25, 2012 at 3:34 PM, Ben Mabey wrote: > Hi again, > > Is it possible to add primitive type hints to protocols (as the return > type)? My attempt below failed: > > (definterface IPrimitiveTester > (getType [^int x]) > (getType [^long x]) > (getType [^float x]) > (getType [^double

Re: No support for primitive type returns within protocols (1.3)?

2012-01-25 Thread David Nolen
On Wed, Jan 25, 2012 at 3:51 PM, Ben Mabey wrote: > On 1/25/12 1:41 PM, David Nolen wrote: > > On Wed, Jan 25, 2012 at 3:34 PM, Ben Mabey wrote: > >> Hi again, >> >> Is it possible to add primitive type hints to protocols (as the return >> type)? My attem

Re: (:require-macros ...) produces empty js file

2012-01-27 Thread David Nolen
On Fri, Jan 27, 2012 at 1:26 AM, philip k wrote: > Hi, I'm using cljs-watch to cross compile generic Clojure code into > both class files and js files using the latest master Clojurescript > checkout; this all works wonderfully until I try to add a (:require- > macros ...) directive as follows: >

CLJS: Checked Arithmetic?

2012-01-27 Thread David Nolen
In this branch https://github.com/clojure/clojurescript/compare/master...checked-arithmetic, I've implemented one possible approach to checked arithmetic for ClojureScript. In Clojure this means checking for overflow. In JavaScript a much more common source of error is type coercion from the arithm

Re: Why don't these two functions produce equivalent results?

2012-01-27 Thread David Nolen
On Fri, Jan 27, 2012 at 2:41 PM, Bill Robertson wrote: > I don't understand why the two functions below (recurs and transi) do > not produce the same result. To the best of my understanding doseq > will consume an entire sequence as demonstrated here: > > user=> (doseq [x (range 0 10)] (print x))

Re: Why don't these two functions produce equivalent results?

2012-01-27 Thread David Nolen
On Fri, Jan 27, 2012 at 3:08 PM, Bill Robertson wrote: > I have read (doc transient), (doc assoc!) and (doc persistent!), and I > don't see what I'm missing, which is why I came here for help. The documentation here http://clojure.org/transients says: "Don't bash in place" Note that all the ex

Re: CLJS: Checked Arithmetic?

2012-01-28 Thread David Nolen
On Fri, Jan 27, 2012 at 5:38 PM, philip k wrote: > I'm not so sure about this, but is it possible to throw an exception > when dividing by zero for example? I don't know if exceptions are the > right way of dealing with this at all, but at least this would be > bringing things more in line with C

Re: CLJS: Checked Arithmetic?

2012-01-28 Thread David Nolen
On Sat, Jan 28, 2012 at 12:16 PM, Max Penet wrote: > Hello David, > This is interesting! > The JavaScript behavior is definitively not a good one, that said the > only thing that I think could do more harm than good is the fact these > checks are enabled by default. I am not sure the majority of

Re: ClojureScript: Unexpected token in generated JavaScript when using destructuring in deftype

2012-02-03 Thread David Nolen
On Thu, Feb 2, 2012 at 5:02 PM, Benjamin Klüglein < scheibenk...@googlemail.com> wrote: > Hi folks, > > I wrote a small piece of Clojure code of which I thought it would use the > ClojureScript subset of Clojure, so that it could be compiled to > JavaScript. But when I compile it (successfully) I

Re: ClojureScript: Unexpected token in generated JavaScript when using destructuring in deftype

2012-02-03 Thread David Nolen
On Fri, Feb 3, 2012 at 10:29 AM, Meikel Brandmeyer (kotarak) wrote: > Hi, > > it is: > > Clojure 1.3.0 > user=> (defprotocol Test (foo [this data])) > Test > user=> (deftype Foo [] > > Test > (foo [this {:keys [bar a b c] :as d}] > (println bar))) > user.Foo > user=> (foo (Foo.) {:bar 123

Re: ClojureScript "console.log"

2012-02-04 Thread David Nolen
On Sat, Feb 4, 2012 at 2:14 PM, Thomas Heller wrote: > Hey, > > I'm playing with ClojureScript and one thing that would help me out in > a big way would be to print out data at certain points. > > I can call (.log js/console "test" 1 2 3 4) and it prints the expected > results, but whenever I wan

Re: ClojureScript {:optimizations :advanced}

2012-02-06 Thread David Nolen
More externs files here: http://code.google.com/p/closure-compiler/source/browse/#svn%2Ftrunk%2Fcontrib%2Fexterns I imagine that the CJLS community will provide something similar for useful, popular JavaScript libraries not covered well by CLJS, Closure, or CLJS libs. David On Mon, Feb 6, 2012

Re: cljs-143 - possible issue

2012-02-06 Thread David Nolen
Fixed, thanks for the report. On Mon, Feb 6, 2012 at 10:30 PM, Dave Sann wrote: > I tried to comment on JIRA - but am not sure if it was accepted. > > http://dev.clojure.org/jira/browse/CLJS-143 > > There appears to still be an issue with this in the following scenario: > > (ns test > (:requir

Re: Clarification on ClojureScript libraries

2012-02-07 Thread David Nolen
On Tue, Feb 7, 2012 at 11:18 AM, Base wrote: > Hi All - > > I am finding that I am confused on the differences of using clojure > libraries vs using Clojurescript libraries. > > For the former, it is easy enough to just add the reference to the > project.clj and it automagically appears in the li

Re: Clojurescript options :foreign-libs (and an idea seeking opinions)

2012-02-09 Thread David Nolen
I'm not following your line of reasoning - http://lukevanderhart.com/2011/09/30/using-javascript-and-clojurescript.html, shows that :foreign-libs and advanced compilation work fine together. David On Wed, Feb 8, 2012 at 9:22 PM, Dave Sann wrote: > I think that the use of :foreign-libs to includ

Re: Clojurescript options :foreign-libs (and an idea seeking opinions)

2012-02-09 Thread David Nolen
Ah yes. What you want is something like "extern-lib" (not saying it will be called that) - some way for you to include JS that won't get submitted to advanced compilation yet which has externs to define. Please open a ticket in JIRA for this. David On Thu, Feb 9, 2012 at 6:24 PM, Dave Sann wrot

Re: mixins/multiple inheritance

2012-02-09 Thread David Nolen
I think the suggestions thus far are not ideal. Both protocols and multimethods provide a way to define a default case. The default case gives you opportunity to adopt a delegation / component based design. (defprotocol IFlightOrgan (flight-organ [this])) (defprotocol IFlight (can-fly? [this]

Re: ClojureScript def, vars, and binding

2012-02-14 Thread David Nolen
This is interesting. However it seems, at least to me, like a big change with too little justification. When you're CA is in, please setup a design document for this line of development - http://dev.clojure.org/display/design/ClojureScript. David On Tue, Feb 14, 2012 at 5:15 AM, Brandon Bloom wr

Re: clojurescript: js* question

2012-02-14 Thread David Nolen
I don't think ClojureScript is going to support what you want, js* is an implementation detail - not something for general use. You can however provide your own special form that does what you want. The ClojureScript compiler is built on top of multimethods so you can just add parse/emit cases for

Re: ClojureScript def, vars, and binding

2012-02-14 Thread David Nolen
I put your notes here, http://dev.clojure.org/display/design/Dynamic+Binding How are you ensuring that the binding frames are local to a particular asynchronous block of code and that they are removed when that asynchronous block of code exits? David On Tue, Feb 14, 2012 at 3:41 PM, Brandon Bloo

Re: .class files constantly going stale?

2012-02-15 Thread David Nolen
I've never have this problem. I'm assuming you're using AOT? David On Sat, Feb 11, 2012 at 11:34 AM, Andrew Cholakian wrote: > I've noticed that when writing clojure code I constantly need to 'rm -rf > classes' in my project, otherwise anything related to (defrecord) or > (defprotocol) doesn't u

Re: ClojureScript def, vars, and binding

2012-02-15 Thread David Nolen
On Tue, Feb 14, 2012 at 7:17 PM, Brandon Bloom wrote: > > I put your notes here, > > http://dev.clojure.org/**display/design/Dynamic+Binding > > Thanks! > > I don't do anything special for asynchronous code, this simply provides the > primiti

Re: Lack in the documentation

2012-02-15 Thread David Nolen
Java is not a barrier of entry for Clojure for most folks - it is in fact one of the major reasons for Clojure's success. If you're mostly interesting in GUIs and games - some people have taken the time to provide Clojure-y libraries for just that. - Games, https://github.com/ztellman/penumbra - G

Re: ClojureScript assoc performance

2012-02-15 Thread David Nolen
It is intended, copy-on-write. No one has yet attempted persistent data structures for ClojureScript. Until then I think transient versions of the current data structures might be useful if someone is willing to contribute them. David On Wed, Feb 15, 2012 at 1:24 PM, Takahiro Hozumi wrote: > Hi

Re: ClojureScript def, vars, and binding

2012-02-15 Thread David Nolen
On Wed, Feb 15, 2012 at 2:09 PM, Brandon Bloom wrote: > ClojureScript doesn't have future-call or agents yet, but if they (or > similar constructs) are to be implemented correctly, you need the ability > to save and load a binding frame. That's what my changes accomplish. > Given the single-thre

Re: add-watch in clojurescript: awesome, or not awesome?

2012-02-16 Thread David Nolen
Sounds like you should build a simple abstraction layer over atoms instead of trying to use them directly? Or provide a new data binding / propagation protocol that avoids the limitation of atoms? For data binding you most definitely always want to receive the old value in my experience. On Wednes

Re: ClojureScript def, vars, and binding

2012-02-16 Thread David Nolen
On Wednesday, February 15, 2012, Brandon Bloom wrote:. > There are analogous constructs in a single-threaded, async-callback world. In particular, many Javascript libraries have a concept of promises and futures for managing the async callback speghetti. Like I said, that part of the puzzle needs

Re: Lack in the documentation

2012-02-16 Thread David Nolen
On Thu, Feb 16, 2012 at 12:04 PM, Gregg Williams wrote: > Would it kill somebody to write a library of simple functions that > would answer most beginners' simple needs, then have it "blessed" as > canonical? I'd write it myself, but I still don't know enough! If > every beginner has to painfully

Re: add-watch in clojurescript: awesome, or not awesome?

2012-02-16 Thread David Nolen
On Thu, Feb 16, 2012 at 4:39 PM, kovas boguta wrote: > I'm arguing that IMHO, the atom+watcher abstraction is not rich enough > to build upon. > I'm not disagreeing :) > If you want to roll your own, you need to maintain your own > notification system and bypass the existing mechanism entirely.

Re: Lack in the documentation

2012-02-16 Thread David Nolen
Nothing I said was meant to dismiss any particular contribution(s) of any kind made by anyone. If this was not clear, apologies. On Thursday, February 16, 2012, Gregg Williams wrote: >> It's tiresome to hear people complain about something they do not >> contribute anything towards. > > Thank yo

Re: ClojureScript def, vars, and binding

2012-02-16 Thread David Nolen
On Fri, Feb 17, 2012 at 1:28 AM, Laurent PETIT wrote: > Forgive me if I'm wrong, but global vars / dynamic variables have > essentially more to do with scoping than multithreading, e.g. they existed > in lisps and other languages way before thread support was added to them. > > So I don't understa

Re: ClojureScript def, vars, and binding

2012-02-17 Thread David Nolen
On Thu, Feb 16, 2012 at 1:33 PM, Brandon Bloom wrote: > > A robust solution can be implemented via CPS transformation > > Forgive me for my ignorance, but how exactly would a CPS transformation > enable one to capture and restore the current set of dynamic bindings? > The problem is dealing with

Re: Lazy loading of doms

2012-02-17 Thread David Nolen
I'm assuming you've put the script tag that waits for this computation directly into the page? On Fri, Feb 17, 2012 at 8:54 AM, Brent Millare wrote: > I have web content that loads instantly except for a small section of it, > which depends on high latency computations, that take a second to do.

Re: Lazy loading of doms

2012-02-17 Thread David Nolen
When you inline expensive computations in script tags directly those will delay loading of the page. For anything particularly expensive, I would probably wait until the DOM is ready. If this calculation is happening server side then prevent your script from delaying page load by asynchronously cal

Re: Lazy loading of doms

2012-02-17 Thread David Nolen
On Fri, Feb 17, 2012 at 3:49 PM, Brent Millare wrote: > The computation is happening server side. From what you said, I think > XMLHttpRequest is what I need. Also from what your saying, it sounds like > there isn't any clojurescript specifics here, its all in the realm of > javascript. Is that ri

Re: ClojureScript def, vars, and binding

2012-02-17 Thread David Nolen
On Fri, Feb 17, 2012 at 1:37 PM, Brandon Bloom wrote: > The problem is dealing with with asynchronous code, right? Not capturing >> / restoring dynamic bindings. >> > > No, the problem is that there is no mechanism to capture and restore > dynamic bindings. > > This is a shortcoming irrespective

Re: ClojureScript for form

2012-02-20 Thread David Nolen
for creates lazy sequences - this can be a problem if you need side effects. I suggest using doseq instead. David On Mon, Feb 20, 2012 at 11:26 AM, Adrian Mowat wrote: > Hi Everyone, > > I have been coding clojure for a few months and I've just started > using clojurescript and I am struggling t

Re: notes on Mathematica pattern transformation & Clojure predicate dispatch

2012-02-20 Thread David Nolen
Lots to think about :) I definitely agree there needs to be a simple way to "query" a predicate dispatch system in order for it to work well in larger programs. But I haven't thought about it much more then that yet. David On Mon, Feb 20, 2012 at 9:56 PM, kovas boguta wrote: > Mathematica imple

Re: notes on Mathematica pattern transformation & Clojure predicate dispatch

2012-02-21 Thread David Nolen
On Tue, Feb 21, 2012 at 12:20 AM, kovas boguta wrote: > I also have a small syntax idea. > > One principle that would be nice, and that Mathematica lacks, is > parity between anonymous predicate dispatch constructs, and those > attached to vars. > > So while one way is to look at predicate dispatc

Re: Bret Victor - Inventing on Principle

2012-02-24 Thread David Nolen
Thanks for bringing the discussion back on track. That's a great list of contexts & links. David On Fri, Feb 24, 2012 at 4:27 PM, Raju Bitter wrote: > Thanks for posting the link. I've been following Bret Victor's blog > and the stuff he has been doing for some time. > > Bret has built some very

Re: ClojureScript "use" statement not working

2012-02-25 Thread David Nolen
Patches welcome! :) http://dev.clojure.org/jira/browse/CLJS David On Sat, Feb 25, 2012 at 6:14 PM, Chris McBride wrote: > Thanks, > > Also, having a line number that corresponds to my source would be > helpful. > > On Feb 25, 4:41 pm, Cedric Greevey wrote: > > On Sat, Feb 25, 2012 at 4:04 PM,

Re: Google Summer of Code 2012 - any mentors?

2012-02-26 Thread David Nolen
http://dev.clojure.org/display/community/Google+Summer+of+Code+2012 Please submit more project ideas :) David On Sun, Feb 26, 2012 at 6:15 AM, Alexander Yakushev wrote: > So the application submiting procedure for organizations starts > tomorrow but sadly there isn't any word about it at least

Re: Google Summer of Code 2012 - any mentors?

2012-02-27 Thread David Nolen
Clojure/core hasn't yet been accepted as an organization - and it might not at all! I have a feeling the more great ideas that students propose, the more people step up as potential mentors - the more compelling it is to choose an organization. So far we've seeded the proposal list with some mento

Re: Bret Victor - Inventing on Principle

2012-02-27 Thread David Nolen
Look Chris Granger (@ibdknox) has gone and put those ideas into action - http://www.chris-granger.com/2012/02/26/connecting-to-your-creation/ Lovely stuff. David On Mon, Feb 27, 2012 at 9:06 AM, Alex Miller wrote: > If you'd like to see Bret talk, he will be speaking at Strange Loop > this yea

Google Summer of Code 2012: We need mentors!

2012-02-27 Thread David Nolen
We need mentors as much as we need students. There are many great projects inside and outside of contrib. If you own a project that could use documentation, new work, visual design, *anything*, please consider taking the 5-10 minutes to write up a proposal idea here - http://dev.clojure.org/displa

Re: Best definition of "ClojureScript" in one sentence

2012-02-27 Thread David Nolen
On Mon, Feb 27, 2012 at 12:25 PM, Cedric Greevey wrote: > On Mon, Feb 27, 2012 at 11:29 AM, Raju Bitter > wrote: > > Thanks, Dan, and a good point you are making. > > > > Actually I have that information in the same paragraph, why it it is > > important. The publishing company was discussing if

Re: Google Summer of Code 2012 - any mentors?

2012-02-27 Thread David Nolen
On Mon, Feb 27, 2012 at 12:50 PM, Phil Hagelberg wrote: > Devin Walters writes: > > > Some seeds for project ideas: > > - documentation > > - clooj > > - clojars > > - leiningen > > If I had any big ideas for Leiningen I don't think I could wait until > the summer to implement them... but I woul

Re: Google Summer of Code 2012: We need mentors!

2012-02-27 Thread David Nolen
Excellent! I won't be at Clojure/West, so take the lead on the that! :) David On Mon, Feb 27, 2012 at 1:18 PM, Daniel Solano Gomez wrote: > On Mon Feb 27 12:08 2012, David Nolen wrote: > > We need mentors as much as we need students. > > > > There are many great proj

Re: Best definition of "ClojureScript" in one sentence

2012-02-27 Thread David Nolen
On Mon, Feb 27, 2012 at 1:41 PM, Raju Bitter wrote: > >> How about "ClojureScript is a little language that compiles into > >> JavaScript"? ;) > > > > > > Well, ClojureScript is not little the way that CoffeeScript is - > > ClojureScript comes with cljs.core. > > Exactly, ClojureScript has it's ow

Re: Google Summer of Code 2012 - any mentors?

2012-02-27 Thread David Nolen
Added On Mon, Feb 27, 2012 at 1:54 PM, Alexander Yakushev wrote: > I post the following proposal here because I'm not sure I've done it > right. It would be interesting for me and may be for someone else. > > Decent Emacs-based Clojure IDE > > Brief explanation: > Clojure has a critical need for

Re: Best definition of "ClojureScript" in one sentence

2012-02-27 Thread David Nolen
On Mon, Feb 27, 2012 at 5:58 PM, Daniel Barlow wrote: > I'd suggest that it's a continuum not a dichotomy, but one convenient > place to draw an arbitrary line is whether you think it sane and sensible > to use debugging facilities designed for the target language or whether you > view that as ak

Re: Is it possible to run the ClojureScript compiler in browser via a Java Applet?

2012-02-28 Thread David Nolen
Then interacting with the browser environment becomes unnecessarily complex. The ClojureScript browser REPL already provides the interactive behavior one would expect from having the compilation environment available in the browser but promises much more powerful interactions (evaluating expressio

Re: for behavior difference between clojure and clojurescript?

2012-02-29 Thread David Nolen
Yes it's a known issue. Right now, = only works for two args. For the time being this is for performance reasons, a decent = is critical. The way ClojureScript currently handles multiple arity fns is quite unfortunate from a performance perspective - it uses the JavaScript arguments object. This r

Re: for behavior difference between clojure and clojurescript?

2012-03-02 Thread David Nolen
On Thu, Mar 1, 2012 at 3:21 AM, Benjamin Peter wrote: > Hi all, > > thanks for responding. > > On Mar 1, 1:21 am, David Nolen wrote: > > Yes it's a known issue. Right now, = only works for two args. For the > time > > being this is for performance reasons, a

Re: ClojureScript: browser REPL omitting namespace in generated JS

2012-03-02 Thread David Nolen
Please open a ticket in JIRA. Thanks! On Fri, Mar 2, 2012 at 4:50 AM, Stuart Campbell wrote: > Hello, > > I'm encountering a problem where the browser REPL sometimes omits the > ClojureScript namespace in its generated JavaScript, e.g. (def x 42) > compiles to ".x = 42" instead of "foo.x = 42".

Re: Serializing ClojureScript data structures

2012-03-02 Thread David Nolen
pr-str will do what you want. That said we should probably add toString methods to the core datatypes to prevent this surprise. David On Fri, Mar 2, 2012 at 11:14 AM, Chris McBride wrote: > In Clojure (str {:a 1}) returns "{:a 1}". > In ClojureScript (str {:a 1}) returns "[Object object]". > >

Re: [ANN] kibit, A static code analyzer

2012-03-04 Thread David Nolen
This is just ... fantastic! :D David On Sun, Mar 4, 2012 at 2:23 PM, Jonas wrote: > Kibit[1] is a simple code analysis tool (and leiningen plugin) which > someone hopefully will find interesting or useful. The purpose of the > tool is to tell its users that "Hey, There's already a function for

Re: [ANN] kibit, A static code analyzer

2012-03-05 Thread David Nolen
It should unify: (foo ?x . ?y) If it doesn't we should open up a ticket for that. On Sunday, March 4, 2012, Jonas wrote: > > > On Sunday, March 4, 2012 9:39:19 PM UTC+2, David Nolen wrote: >> >> This is just ... fantastic! :D >> > > David, quick questi

Re: Google Summer of Code 2012 - any mentors?

2012-03-05 Thread David Nolen
Thanks! Unless somebody else wants to - I'm willing to be the backup admin. David On Mon, Mar 5, 2012 at 1:21 AM, Christopher Redinger wrote: > I've created a new page in Confluence with questions from the application. > > > http://dev.clojure.org/display/community/Google+Summer+of+Code+2012+App

Re: Clojurescript: persistent data structures?

2012-03-05 Thread David Nolen
On Mon, Mar 5, 2012 at 10:55 AM, László Török wrote: > Hi, > > I may not be fully up to speed with the latest developments re. > Clojurescript, so please bear with me. > > I was wondering, what are the impediments of implementing persistent data > structures in Clojurescript similar to those Cloj

Re: Clojurescript: persistent data structures?

2012-03-05 Thread David Nolen
ce > > On Mar 5, 2012 5:05 PM, "David Nolen" wrote: > >> On Mon, Mar 5, 2012 at 10:55 AM, László Török wrote: >> >>> Hi, >>> >>> I may not be fully up to speed with the latest developments re. >>> Clojurescript, so please bea

Google Summer of Code 2012 Application

2012-03-07 Thread David Nolen
I've made some progress here: http://dev.clojure.org/display/community/Google+Summer+of+Code+2012+Application+Questions For those with edit right please edit as you see fit and as soon as you can, we're running out of time, thanks! :) David On Wed, Mar 7, 2012 at 1:37 PM, Alexander Yakushev wro

Google Summer of Code 2012 Proposal & Backup Mentors

2012-03-07 Thread David Nolen
http://dev.clojure.org/display/community/Google+Summer+of+Code+2012 A reminder that we're still looking for proposals from community members and interested students. We're also looking for backup mentors - if you'd be willing to step up this summer should something happen to a mentor please say so

Re: Google Summer of Code 2012 Application

2012-03-07 Thread David Nolen
Looks like Dan Friedman, William Byrd and the IU Googlers they know might be getting behind our application as vouchers. There's no better time to submit proposals or step up to be a mentor than now :) David On Wed, Mar 7, 2012 at 1:47 PM, David Nolen wrote: > I've made some

Re: Google Summer of Code 2012 Application

2012-03-07 Thread David Nolen
March 9th! David On Wed, Mar 7, 2012 at 5:26 PM, Chris Granger wrote: > When's the official cutoff? > > Cheers, > Chris. > > > On Wed, Mar 7, 2012 at 2:24 PM, David Nolen wrote: > >> Looks like Dan Friedman, William Byrd and the IU Googlers they know might &

Re: [Clojurescript] Way to avoid function call indirection in deftypes?

2012-03-08 Thread David Nolen
The overhead is not as great as you think. In the newer crop of JS engines it's surprisingly small and I imagine that it will get smaller. I don't see this getting changed anytime soon as it allows for polymorphism as well as handling the default case if provided. If you see a better way to get th

Re: [Clojurescript] Way to avoid function call indirection in deftypes?

2012-03-08 Thread David Nolen
Nope, JavaScript has a terrible notion of truth. What if you want to add functionality to numbers? Or strings? 0 and blank strings are false-y. That said I have a branch where we inline the truth test which does a give a perf boost on many JS engines. This needs to benchmarked more thoroughly befo

Re: [Clojurescript] Way to avoid function call indirection in deftypes?

2012-03-08 Thread David Nolen
In my branch the truth test is always inlined. Support for type-hints and inference in the compiler could simplify the test when possible. On Thursday, March 8, 2012, Philip K wrote: >> Nope, JavaScript has a terrible notion of truth. What if you want to add functionality to numbers? Or strings?

Re: ns-publics, ns-map etc in ClojureScript?

2012-03-09 Thread David Nolen
On Fri, Mar 9, 2012 at 3:05 PM, Shantanu Kumar wrote: > Hi, > > Is there a plan to support namespace-related meta programming > functions such as ns-publics, ns-map etc. in ClojureScript? I was > wondering about at least the ones that we annotate with ^:export in > the CLJS files. > > Shantanu >

A New Core.logic Primer

2012-03-14 Thread David Nolen
Thanks to Edmund Jackson we have a new primer for core.logic: https://github.com/clojure/core.logic/wiki/A-Core.logic-Primer Feedback appreciated! David -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@goo

Re: A New Core.logic Primer

2012-03-14 Thread David Nolen
On Wed, Mar 14, 2012 at 4:09 PM, Daniel Gagnon wrote: > > > On Wed, Mar 14, 2012 at 3:00 PM, David Nolen wrote: > >> Thanks to Edmund Jackson we have a new primer for core.logic: >> https://github.com/clojure/core.logic/wiki/A-Core.logic-Primer >> >> Feedback

Re: [ANN] clojure-scheme - Compiling Clojure to Scheme to C

2012-03-14 Thread David Nolen
Excellent work! On Wed, Mar 14, 2012 at 5:08 PM, Nathan Sorenson wrote: > I've modified the output of the ClojureScript compiler to emit Scheme > code. At this point the core library is successfully compiled by Gambit > Scheme. A nice advantage of this is that Gambit compiles code via C, > meani

Re: A New Core.logic Primer

2012-03-15 Thread David Nolen
On Thu, Mar 15, 2012 at 9:05 AM, Milton Silva wrote: > This primer is a good introduction to core.logic operators. What I think > is missing is a tutorial that answers these questions: > > What type of problems does core.logic excel at solving? > How do you solve problems with core.logic? > How d

Re: A New Core.logic Primer

2012-03-15 Thread David Nolen
On Thu, Mar 15, 2012 at 12:59 PM, Daniel Gagnon wrote: > Could this tutorial explain the foremost question people have when seeing > core.logic: why is o appened to the names of all those functions? It's a convention from The Reasoned Schemer. It's just an easy way to differentiate goals from re

<    12   13   14   15   16   17   18   19   20   >