Re: [ANN] Nippy, a fast Clojure serializer and drop-in reader replacement

2012-07-09 Thread Frank Siebenlist
Just trying to understand the issues/solutions for the (de-)serializing of clojure data structures… With the tag literal support of 1.4+, is that kind of the idiomatic way of the future to structure protocols for serialized clojure data/code? When you say that Nippy is much faster than the read

Re: Light Table on Windows XP

2012-07-09 Thread Mark Engelberg
That worked. Thanks. On Thu, Jul 5, 2012 at 8:50 AM, Mark Rathwell wrote: > My guess on this is that you need PowerShell 2.0, just a guess though. > It can be download as a part of this package: > > http://www.microsoft.com/en-us/download/details.aspx?id=16818 > > > On Thu, Jul 5, 2012 at 10:21

Light Table Playground got a lot more useful.

2012-07-09 Thread Chris Granger
Hey folks, In case you missed it via other channels, the Light Table Playground can now hook into your own projects! http://www.chris-granger.com/2012/07/09/light-table-playgrounds-level-up/ Take her for a spin :D Cheers, Chris. -- You received this message because you are subscribed to the G

Re: easier way to memoize a record's protocol implementing defns?

2012-07-09 Thread Weber, Martin S
On 2012-07-09 18:07 , "Herwig Hochleitner" wrote: >> (I had written): >> So is there a way to do it cleaner without resorting to using the >> map/implementation (detail) form of protocol extension? > >Currently, there is no way to get the implementing fns for a >type-protocol point. I doubt the

Re: correctness / error checking for Clojure

2012-07-09 Thread ArturoH
On Wednesday, June 20, 2012 11:07:16 PM UTC-5, Jack Moffitt wrote: > > > So taking up the task of insuring correctness/consistency but leaving > aside > > static typing as is typically practiced. How can we best catch errors > and > > inconsistencies in our code before our end users do? How

Re: easier way to memoize a record's protocol implementing defns?

2012-07-09 Thread Herwig Hochleitner
> > So is there a way to do it cleaner without resorting to using the > map/implementation (detail) form of protocol extension? > Currently, there is no way to get the implementing fns for a type-protocol point. I doubt there will be soon, since clojure compiles implementations in a deftype/record

Re: ClojureC - A Clojure to C compiler - Work in Progress

2012-07-09 Thread j1n3l0
Hi, There is also a package for Ubuntu if you wish to install it that way: sudo apt-get install libgc-dev Will be keeping an eye on this one :) Nelo Onyiah -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloj

easier way to memoize a record's protocol implementing defns?

2012-07-09 Thread Weber, Martin S
Assume we want to memoize a function that is part of a protocol extended to some user-defined record, like so: (defprotocol SomeOps (someop [_])) (defrecord AImp [x] SomeOps (someop [me] (comment magic here))) one quite heavy-weight way of doing is includes a couple of indirections: (defn ^:priv

Re: ClojureC - A Clojure to C compiler - Work in Progress

2012-07-09 Thread Mark Probst
On Mon, Jul 9, 2012 at 6:58 PM, Paul Stadig wrote: > On Mon, Jul 9, 2012 at 12:12 PM, Paul Stadig wrote: >> On Mon, Jul 9, 2012 at 12:07 PM, Mark Probst wrote: >>> Yes. I'm sorry I forgot to mention that. Please let me know if it >>> works and I'll update the README. >> >> It works with lein2.

Re: ClojureC - A Clojure to C compiler - Work in Progress

2012-07-09 Thread Paul Stadig
On Mon, Jul 9, 2012 at 12:12 PM, Paul Stadig wrote: > On Mon, Jul 9, 2012 at 12:07 PM, Mark Probst wrote: >> Yes. I'm sorry I forgot to mention that. Please let me know if it >> works and I'll update the README. > > It works with lein2. The tests are running now, but there are some > failures.

Re: ClojureC - A Clojure to C compiler - Work in Progress

2012-07-09 Thread Paulo Pinto
On Jul 9, 4:11 pm, Mark Probst wrote: > On Mon, Jul 9, 2012 at 4:05 PM, Paulo Pinto wrote: > > A question that I also mentioned on the HN thread, any idea to bypass > > C and > > compile directly to native, for example via LLVM? > > No particular plans.  Why would you prefer that? > > Mark I w

Re: ClojureC - A Clojure to C compiler - Work in Progress

2012-07-09 Thread Paul Stadig
On Mon, Jul 9, 2012 at 12:07 PM, Mark Probst wrote: > Yes. I'm sorry I forgot to mention that. Please let me know if it > works and I'll update the README. It works with lein2. The tests are running now, but there are some failures. I'll keep poking at it. Thanks! Paul -- You received this m

Re: ClojureC - A Clojure to C compiler - Work in Progress

2012-07-09 Thread Mark Probst
On Mon, Jul 9, 2012 at 6:05 PM, Paul Stadig wrote: > On Mon, Jul 9, 2012 at 11:50 AM, Mark Probst wrote: >> On Mon, Jul 9, 2012 at 5:47 PM, Paul Stadig wrote: >>> I checked out the code and followed the instructions to setup glib2 >>> and the GC. When I run `lein test` "I get Exception in thread

Re: ClojureC - A Clojure to C compiler - Work in Progress

2012-07-09 Thread Paul Stadig
On Mon, Jul 9, 2012 at 11:50 AM, Mark Probst wrote: > On Mon, Jul 9, 2012 at 5:47 PM, Paul Stadig wrote: >> I checked out the code and followed the instructions to setup glib2 >> and the GC. When I run `lein test` "I get Exception in thread "main" >> java.io.FileNotFoundException: Could not locat

Re: ClojureC - A Clojure to C compiler - Work in Progress

2012-07-09 Thread Mark Probst
On Mon, Jul 9, 2012 at 5:47 PM, Paul Stadig wrote: > I checked out the code and followed the instructions to setup glib2 > and the GC. When I run `lein test` "I get Exception in thread "main" > java.io.FileNotFoundException: Could not locate clojurec/ > core__init.class or clojurec/core.clj on cla

Re: ClojureC - A Clojure to C compiler - Work in Progress

2012-07-09 Thread Paul Stadig
Mark, This looks interesting. Thanks for working on this. I checked out the code and followed the instructions to setup glib2 and the GC. When I run `lein test` "I get Exception in thread "main" java.io.FileNotFoundException: Could not locate clojurec/ core__init.class or clojurec/core.clj on cla

Re: ClojureC - A Clojure to C compiler - Work in Progress

2012-07-09 Thread Mark Probst
On Mon, Jul 9, 2012 at 4:44 PM, Timothy Baldridge wrote: >> No particular plans. Why would you prefer that? > > Simplicity for one thing, self hosting for another. Self-hosting is orthogonal to this question. In principle one can make the ClojureC compile run on ClojureC and be self-hosting. >

Re: ClojureC - A Clojure to C compiler - Work in Progress

2012-07-09 Thread Timothy Baldridge
> No particular plans. Why would you prefer that? Simplicity for one thing, self hosting for another. This is the problem I see with a project like this: 1) My macros are written in Clojure for the JVM, my code is written in Clojure for C 2) My code path is then ClojureScript->JVM Macros->C->GCC

Re: Access denied with clojure.java.io/copy

2012-07-09 Thread Dave Ray
On Sun, Jul 8, 2012 at 1:47 AM, Pierre-Henry Perret wrote: > > Using clojure.java.io/copy I get the following output: > > ___ > Exception in thread "main" java.io.FileNotFoundException: > .lein-git-deps\project\cljs-src (Access denied) (NO_SOURCE_FILE:0 > > > The sourc

Re: Access denied with clojure.java.io/copy

2012-07-09 Thread Tim Visher
On Sun, Jul 8, 2012 at 4:47 AM, Pierre-Henry Perret wrote: > > Using clojure.java.io/copy I get the following output: > > ___ > Exception in thread "main" java.io.FileNotFoundException: > .lein-git-deps\project\cljs-src (Access denied) (NO_SOURCE_FILE:0 > > > The sourc

Re: ClojureC - A Clojure to C compiler - Work in Progress

2012-07-09 Thread Mark Probst
On Mon, Jul 9, 2012 at 4:05 PM, Paulo Pinto wrote: > A question that I also mentioned on the HN thread, any idea to bypass > C and > compile directly to native, for example via LLVM? No particular plans. Why would you prefer that? Mark -- You received this message because you are subscribed t

Re: ClojureC - A Clojure to C compiler - Work in Progress

2012-07-09 Thread Paulo Pinto
On Jul 9, 1:03 pm, Mark Probst wrote: > Dear Clojurians, > > I'm excited to announce ClojureC, an effort to produce a Clojure > implementation that targets C: > >  https://github.com/schani/clojurec > > My personal goals with this are to be able to write self-contained > (command-line) Clojure p

Re: [ANN] ClojureC - A Clojure to C compiler - Work in Progress

2012-07-09 Thread Baishampayan Ghose
> I'm excited to announce ClojureC, an effort to produce a Clojure > implementation that targets C: > >   https://github.com/schani/clojurec > > My personal goals with this are to be able to write self-contained > (command-line) Clojure programs that have (essentially) zero start-up time, > as well

[ANN] ClojureC - A Clojure to C compiler - Work in Progress

2012-07-09 Thread Mark Probst
Dear Clojurians, I'm excited to announce ClojureC, an effort to produce a Clojure implementation that targets C: https://github.com/schani/clojurec My personal goals with this are to be able to write self-contained (command-line) Clojure programs that have (essentially) zero start-up time,

Re: Can I examine the state of a Clojure lazy sequence?

2012-07-09 Thread Tassilo Horn
Tassilo Horn writes: > I think, you are looking for `realized?`. Here's a function for > creating a vector of realized elements of a lazy seq. > > user> (defn realized-vec [s] > (loop [s s, r []] > (if (and (seq s) (realized? (rest s))) > (recur (rest s) (conj r (first