Re: Rouge: Ruby + Clojure

2012-10-12 Thread Armando Blancas
I didn't realize 1.8 was such and old version; will get a recent build and give it another try. I'm interested in scripting, so the basic pieces are already there. With a short startup time this will be looking really useful. On Friday, October 12, 2012 6:05:39 PM UTC-7, Arlen Christian Mart Cus

Re: ANN subpar (paredit for codemirror)

2012-10-12 Thread Andrew
After subpar's parse beast is done, the info retained is basically this - for any given index, what is the index for the opening delimiter of the containing list? -1 if none - for any opening delimiter index, what are the start and end indices of the children, and what is the index f

Re: ANN subpar (paredit for codemirror)

2012-10-12 Thread Anthony Grimes
Awesome! I've been waiting for this. I'd love to see it added to refheap, https://github.com/Raynes/refheap. It'd be the only paredit-enabled pastebin on the market. On Friday, October 12, 2012 3:21:51 PM UTC-5, Andrew wrote: > > A ParEdit approximation for use in CodeMirror. > https://github.c

Re: Rouge: Ruby + Clojure

2012-10-12 Thread Arlen Christian Mart Cuss
Hi Armando, Thanks for giving it a go! On second thought, I've decided against 1.8 support. 1.8 was released initially in 2003, and is now considered deprecated. I gave it a solid go to see if the code I wrote was mostly-compatible with 1.8, but it started to turn into something of a dog's b

Re: Packaging ClojureScript libraries for use with Leiningen

2012-10-12 Thread Kevin Lynagh
If your downstream users are using the "lein-cljsbuild" plugin, note that it will automatically pick up externs and JavaScript libs within your JARs if you put them under /closure-js/libs/your-project/some-js-lib.js /clojure-js/externs/your-project/externs.js (see https://github.com/eme

Re: ANN strucjure 0.1.0

2012-10-12 Thread Jamie Brandon
> Compared to core.logic Oops, that should be core.match. -- 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

Re: Rouge: Ruby + Clojure

2012-10-12 Thread Armando Blancas
Nice work. I'm getting this error: ~/dev/tools/rouge $ bin/rouge ./bin/../lib/rouge.rb:6: undefined method `define_singleton_method' for Rouge:Module (NoMethodError) ~/dev/tools/rouge $ ruby --version In case any of this is relevant: ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin10.0]

Re: ANN subpar (paredit for codemirror)

2012-10-12 Thread kovas boguta
Question: what would it take to css style the parsed tokens? For instance, based on codeq output? On Fri, Oct 12, 2012 at 5:04 PM, Andrew wrote: > I forgot to add that the README.md has a link to a demo page (here) > > > On Friday, October 12, 2012 4:47:47 PM UTC-4, kovasb wrote: >> >> This is

Re: concat files after pmap

2012-10-12 Thread Stuart Sierra
You could use clojure.java.io: (require [clojure.java.io :as io]) (defn cat-files [output-file & input-files] (with-open [stream (io/output-stream output-file)] (doseq [file input-files] (io/copy (io/file file) stream -S -- You received this message because you are subscribed

Re: ANN subpar (paredit for codemirror)

2012-10-12 Thread Andrew
I forgot to add that the README.md has a link to a demo page (here) On Friday, October 12, 2012 4:47:47 PM UTC-4, kovasb wrote: > > This is great!! > > Can't wait for good os x bindings. Maybe I can fi

Re: Question on mandatory arguments for -> and ->> macros

2012-10-12 Thread Stuart Sierra
Thank you, especially thanks for tagging it an enhancement. -S -- 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

Re: ANN subpar (paredit for codemirror)

2012-10-12 Thread kovas boguta
This is great!! Can't wait for good os x bindings. Maybe I can figure it out. On Fri, Oct 12, 2012 at 4:21 PM, Andrew wrote: > A ParEdit approximation for use in CodeMirror. > https://github.com/achengs/subpar Could conceivably benefit Light Table. In > other news, I'm in the market for a job.

Re: ANN strucjure 0.1.0

2012-10-12 Thread David Nolen
On Fri, Oct 12, 2012 at 4:27 PM, Jamie Brandon wrote: > Strucjure is a library for parsing and pattern matching using PEGs, > roughly modelled after OMeta. > > https://github.com/jamii/strucjure > > Compared to core.logic, strucjure does not perform decision tree > optimisation and probably genera

ANN strucjure 0.1.0

2012-10-12 Thread Jamie Brandon
Strucjure is a library for parsing and pattern matching using PEGs, roughly modelled after OMeta. https://github.com/jamii/strucjure Compared to core.logic, strucjure does not perform decision tree optimisation and probably generates worse code but it supports first-class, recursive views and can

ANN subpar (paredit for codemirror)

2012-10-12 Thread Andrew
A ParEdit approximation for use in CodeMirror. https://github.com/achengs/subpar Could conceivably benefit Light Table. *In other news, I'm in the market for a job...* -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send emai

concat files after pmap

2012-10-12 Thread Brian Craft
I'm using pmap to run a bunch of compute intensive jobs that output to files. Afterwards I need to combine them into one file (in a particular order). Are there any tools to do a file concat? I found the fs library on github, but it doesn't appear to have a concat or append. Perhaps I should ju

Re: Packaging ClojureScript libraries for use with Leiningen

2012-10-12 Thread Michael Fogus
I've looked at the core.logic packaging, but it wasn't immediately obvious what was happening. I eventually figured it out, but it would be nice to have a roadmap for making cross-language packaging easier, even if the needed pieces were not yet available. -- You received this message because yo

Re: Packaging ClojureScript libraries for use with Leiningen

2012-10-12 Thread David Nolen
On Fri, Oct 12, 2012 at 3:02 PM, Conrad wrote: > Sounds good- That means I can use the source layout & project.clj of > core.logic as a guide to organize my library- Thanks! If you're not concerned w/ shipping for both targets you might want to take a look at domina http://github.com/levand/domin

Re: Packaging ClojureScript libraries for use with Leiningen

2012-10-12 Thread Conrad
Sounds good- That means I can use the source layout & project.clj of core.logic as a guide to organize my library- Thanks! On Friday, October 12, 2012 1:57:13 PM UTC-5, David Nolen wrote: > > On Fri, Oct 12, 2012 at 2:54 PM, Conrad > > wrote: > > Hi, can someone point me towards some documentat

Re: Packaging ClojureScript libraries for use with Leiningen

2012-10-12 Thread David Nolen
On Fri, Oct 12, 2012 at 2:54 PM, Conrad wrote: > Hi, can someone point me towards some documentation as to the proper way to > package a ClojureScript-based library that can be used in the usual way via > leiningen? > > I'm thinking I'd be able to upload it to clojars.org (as I would do for a > Cl

Packaging ClojureScript libraries for use with Leiningen

2012-10-12 Thread Conrad
Hi, can someone point me towards some documentation as to the proper way to package a ClojureScript-based library that can be used in the usual way via leiningen? I'm thinking I'd be able to upload it to clojars.org (as I would do for a Clojure library), but given that "Jars" are something Java

Re: Question on mandatory arguments for -> and ->> macros

2012-10-12 Thread Shantanu Kumar
On Monday, 8 October 2012 09:57:15 UTC+5:30, Shantanu Kumar wrote: > > > > On Monday, 8 October 2012 04:57:06 UTC+5:30, Stuart Sierra wrote: >> >> From the look of the source, there's no reason why ->> couldn't have >> arity-1. I guess it just doesn't come up much. >> > > Arity-1 for ->> would b

Re: Bug in printing futures

2012-10-12 Thread Stuart Sierra
Patch welcome. -S -- 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 post. To unsubscribe from this group, s

Re: Intern a var from outside namespace

2012-10-12 Thread Stuart Sierra
Sounds like a load-order issue. Make sure the code *creating* the namespaces/vars is loaded before the code *using* them. But better yet, just don't do it. :) -S -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to c

Re: Smarter code reloading with tools.namespace 0.2.0

2012-10-12 Thread Laurent PETIT
FWIW, You can access a private var via the var special form: (var repl/refresh-tracker) (or #'repl/refresh-tracker for short) HTH, -- Laurent 2012/10/10 Thomas Heller > Hey Stuart, > > I wrote a little "autotest" script which uses tools.namespace to figure > out which tests to run. Basically I

Re: Issues with Penumbra

2012-10-12 Thread JvJ
Another issue that was giving me trouble was that penumbra 0.6.0 appears to only work with Clojure 1.2 because of some issues with Contrib dependencies. It looks like prismofeverything's 0.6.9 refactors it to work with 1.3 and up. On Friday, 12 October 2012 00:37:47 UTC-4, AtKaaZ wrote: > > Up

Re: Smarter code reloading with tools.namespace 0.2.0

2012-10-12 Thread Thomas Heller
Hey Stuart, I wrote a little "autotest" script which uses tools.namespace to figure out which tests to run. Basically I just watch the source files, when modified I run (refresh) and use the repl/refresh-tracker var to find out which tests should be executed. To do this I had to monkey-patch c.

Re: ANN: codeq

2012-10-12 Thread Nils Grunwald
Very interesting concept and a really great way to showcase Datomic strengths... I can't wait to play with codeq this week-end! Nils On Wednesday, October 10, 2012 4:27:37 PM UTC+2, Rich Hickey wrote: > > I released a little app today that imports Git repos into Datomic. My hope > is that it ca

Re: Clojurescript, is it ready yet?

2012-10-12 Thread James Nelson
Hi. I'm interested in using percolator as part of my code generation process. I am currently exporting a generated factory which takes interfaces and provides black-box implementation classes; it emits extensions of JavascriptObject for gwt, and pure java for server. Ideally, I would like to t

Re: Intern a var from outside namespace

2012-10-12 Thread Arlen Christian Mart Cuss
On Friday, October 12, 2012 4:38:36 PM UTC+11, David Jacobs wrote: > Having a map leads to pretty bad syntax for what I'm trying to do. That's > why I want to metaprogram here. > > I want this ... > > (post/all api-key) > > … instead of this ... > > ((post/api :all) api-key) > I'm not sure, bu

Re: Issues with Penumbra

2012-10-12 Thread AtKaaZ
I see that latest is here 0.6.0 here: http://clojars.org/repo/penumbra/penumbra/ from 30-Aug-2012 18:35 with lein2 I did: lein new pu cd pu edit project.clj and add *[penumbra "0.6.0"]* to *:dependencies* lein deps lein repl user=> (use 'penumbra.opengl) ClassNotFoundException penumbra.PenumbraS

Re: Interest in Scribble for Clojure?

2012-10-12 Thread Gary Johnson
I see. After taking a closer look, I can see that you could do LP in Scribble as well as also outputting some different kinds of documentation formats, such as Javadocs or standalone documents. The downside I'm seeing is that this all has to be programmed in Scheme and that you may have to do s

Rouge: Ruby + Clojure

2012-10-12 Thread Arlen Christian Mart Cuss
Hi all, I'd like to announce Rouge, which is an implementation of Clojure on Ruby. https://github.com/unnali/rouge#readme The readme above shows example of some Rouge code, most of which is currently taken from the boot file of Rouge itself. The thing is fully TDDed, so you can read the specs

Re: Issues with Penumbra

2012-10-12 Thread AtKaaZ
Upon further inspection(s) I notice that the penumbra-0.6.0.jar does not contain the java .class files for at least PenumbraSystem but also the Natives which is a bit odd because when doing lein uberjar they do get compiled and included (70Kb vs 60 kb .jar) So I believe this is why the error: Clas

Re: pmap performance degradation after 30-40 min of work?

2012-10-12 Thread Adam
If you have the memory you could just increase the heap size to a higher value (like -Xmx2048m or something). But even if you do that I would still run jconsole to see what's happening. ~Adam~ On Fri, Oct 12, 2012 at 9:41 AM, Jim foo.bar wrote: > No i haven't profiled memory , only cpu but w

Re: pmap performance degradation after 30-40 min of work?

2012-10-12 Thread Jim foo.bar
No i haven't profiled memory , only cpu but what you're saying makes perfect sense. In every single iteration (each file) I'm 'slurp'-ing the 2 files (the dictionary and the file to annotate) provided. Would you suggest a different GC if that is the case or simply stop slurping? Jim On 12/1

Re: pmap performance degradation after 30-40 min of work?

2012-10-12 Thread Adam
Have you tried running jconsole to monitor the memory usage? It sounds like maybe you're running out of heap space and you're mainly seeing the garbage collector doing it's thing vs your actual program. ~Adam~ On Fri, Oct 12, 2012 at 9:23 AM, Jim foo.bar wrote: > Hi all, > > I finally found a

pmap performance degradation after 30-40 min of work?

2012-10-12 Thread Jim foo.bar
Hi all, I finally found an ideal use-case for pmap, however something very strange seems to be happening after roughly 30 minutes of execution! Ok so here is the scenario: I've got 383 raw scienific papers (.txt) in directory that i'm grouping using 'file-seq' and so I want to pmap a fn on e