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 each element of that seq 
(each document). The fn takes a document and a dictionary and annotates 
the document with terms found in the dictionary. Basically it uses regex 
to tag any occurrences of words that exist in the dictionary. When 
pmapping is finished, I should have a list of (annotated) strings that 
will be processed serially (doseq) in order to produce a massive file 
with all these strings separated by a new-line character (this is how 
most adaptive feature generators expect the data to be).


So you can see, this is perfect for pmap and indeed it seems to be doing 
extremely well but only for the first 240 papers roughly! all the cpus 
are working hard but after approximately 30-40 min  cpu utilisation and 
overall performance seems to degrade quite a bit...For some strange 
reason, 2 of my cores seem to refuse to do any work after these 240 
papers which results in a really really slow process. When I start the 
process it is going so fast that I cannot even read the output but as I 
said after 30-40 min it is getting unbelievably slow! Had the 
performance been stable I reckon I  need less than 60 min in order to 
annotate all 383 papers but with the current behaviour I have no choice 
but to abort and restart it passing it the leftovers...


any ideas? are there any issues involved with creating that many futures?

Jim



--
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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 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 each element of that seq
> (each document). The fn takes a document and a dictionary and annotates the
> document with terms found in the dictionary. Basically it uses regex to tag
> any occurrences of words that exist in the dictionary. When pmapping is
> finished, I should have a list of (annotated) strings that will be
> processed serially (doseq) in order to produce a massive file with all
> these strings separated by a new-line character (this is how most adaptive
> feature generators expect the data to be).
>
> So you can see, this is perfect for pmap and indeed it seems to be doing
> extremely well but only for the first 240 papers roughly! all the cpus are
> working hard but after approximately 30-40 min  cpu utilisation and overall
> performance seems to degrade quite a bit...For some strange reason, 2 of my
> cores seem to refuse to do any work after these 240 papers which results in
> a really really slow process. When I start the process it is going so fast
> that I cannot even read the output but as I said after 30-40 min it is
> getting unbelievably slow! Had the performance been stable I reckon I  need
> less than 60 min in order to annotate all 383 papers but with the current
> behaviour I have no choice but to abort and restart it passing it the
> leftovers...
>
> any ideas? are there any issues involved with creating that many futures?
>
> Jim
>
>
>
> --
> 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, send email to
> clojure+unsubscribe@**googlegroups.com
> For more options, visit this group at
> http://groups.google.com/**group/clojure?hl=en
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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/10/12 15:28, Adam wrote:
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 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 each
element of that seq (each document). The fn takes a document and a
dictionary and annotates the document with terms found in the
dictionary. Basically it uses regex to tag any occurrences of
words that exist in the dictionary. When pmapping is finished, I
should have a list of (annotated) strings that will be processed
serially (doseq) in order to produce a massive file with all these
strings separated by a new-line character (this is how most
adaptive feature generators expect the data to be).

So you can see, this is perfect for pmap and indeed it seems to be
doing extremely well but only for the first 240 papers roughly!
all the cpus are working hard but after approximately 30-40 min
 cpu utilisation and overall performance seems to degrade quite a
bit...For some strange reason, 2 of my cores seem to refuse to do
any work after these 240 papers which results in a really really
slow process. When I start the process it is going so fast that I
cannot even read the output but as I said after 30-40 min it is
getting unbelievably slow! Had the performance been stable I
reckon I  need less than 60 min in order to annotate all 383
papers but with the current behaviour I have no choice but to
abort and restart it passing it the leftovers...

any ideas? are there any issues involved with creating that many
futures?

Jim



-- 
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, send email to
clojure+unsubscr...@googlegroups.com

For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


--
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en 


--
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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 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/10/12 15:28, Adam wrote:
>
> 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 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 each element of that seq
>> (each document). The fn takes a document and a dictionary and annotates the
>> document with terms found in the dictionary. Basically it uses regex to tag
>> any occurrences of words that exist in the dictionary. When pmapping is
>> finished, I should have a list of (annotated) strings that will be
>> processed serially (doseq) in order to produce a massive file with all
>> these strings separated by a new-line character (this is how most adaptive
>> feature generators expect the data to be).
>>
>> So you can see, this is perfect for pmap and indeed it seems to be doing
>> extremely well but only for the first 240 papers roughly! all the cpus are
>> working hard but after approximately 30-40 min  cpu utilisation and overall
>> performance seems to degrade quite a bit...For some strange reason, 2 of my
>> cores seem to refuse to do any work after these 240 papers which results in
>> a really really slow process. When I start the process it is going so fast
>> that I cannot even read the output but as I said after 30-40 min it is
>> getting unbelievably slow! Had the performance been stable I reckon I  need
>> less than 60 min in order to annotate all 383 papers but with the current
>> behaviour I have no choice but to abort and restart it passing it the
>> leftovers...
>>
>> any ideas? are there any issues involved with creating that many futures?
>>
>> Jim
>>
>>
>>
>> --
>> 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, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>>
>
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>
>
>  --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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 
some IMO less than attractive backquoting to get at the underlying LaTeX if 
you want PDF outputs which use some of the existing LaTeX packages (math 
libs come to mind).

I suggested Org-mode on this thread for these reasons:

1. Many Clojure users are also Emacs users.
2. Org-mode is built into Emacs and requires no additional install.
3. Org-mode is not tied to any one language and already has a module for 
Clojure LP development.
4. It can output to ASCII, HTML, LaTeX, PDF, DocBook, OpenDocument Text, 
TaskJuggler, Freemind, and XOXO formats.
5. Tangling and in-file live evaluation are very neat features.
6. It can produce both standalone reports and websites depending on the 
chosen export module.
7. Inline LaTeX is directly supported without any special backquoting and 
exports correctly to both HTML and PDF outputs.

Scribble definitely looks like a powerful language for programmatically 
generating documentation, and if someone wants to take on a Clojure port, I 
can see why that might be a very compelling idea. I just wanted to drop a 
pointer to a somewhat lower hanging fruit.

Sorry to hijack your thread.

  ~Gary

On Thursday, October 11, 2012 5:49:10 PM UTC-4, Eli Barzilay wrote:
>
> Gary Johnson  uvm.edu> writes: 
> > 
> > A lot of scribble's features are geared towards providing tooling for 
> > Literate Programming, 
>
> No, this is wrong.  The LP that we have is based on Scribble, but it was 
> done mainly as a demonstration of the benefits you get from having a 
> real language for writing your documentation.  That benefit (using a 
> real langugae) is the central motivation for Scribble.  Note also that 
> it's very much unlike markdown, where you can't program your 
> documentation language by design. 
>
> -- 
>   ((lambda (x) (x x)) (lambda (x) (x x)))  Eli Barzilay: 
> http://barzilay.org/   Maze is Life! 
>
>
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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 to see how (in)complete it is. :)

I'd love it if you gave it a try, and let me know your thoughts and 
feedback.  Even more than that, I'd love your contributions!  Clojure is a 
beautiful language, and I'm really happy to be able to combine it with my 
other favourite language.

Cheers,

Arlen

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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:
ClassNotFoundException penumbra.PenumbraSystem
java.net.URLClassLoader$1.run (:-1)


On Fri, Oct 12, 2012 at 6:09 AM, AtKaaZ  wrote:

> 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.PenumbraSystem
> java.net.URLClassLoader$1.run (:-1)
>
> user=>
>
>
>
> On Thu, Oct 11, 2012 at 11:52 PM, AtKaaZ  wrote:
>
>> Just to be sure, this is the link: https://github.com/ztellman/penumbra
>> I notice OP was using a different fork (?)
>>
>>
>> On Thu, Oct 11, 2012 at 11:46 PM, Zach Tellman wrote:
>>
>>> I updated Penumbra to target the project structure for Leiningen 2 a
>>> while back, are you using v1 by any chance?
>>>
>>> Zach
>>>
>>>
>>> On Thursday, October 11, 2012 12:34:44 PM UTC-7, JvJ wrote:

 I'm trying to make a project using Penumbra for opengl, but somehow I
 get an issue when I try (use 'penumbra.opengl).
 It looks like there's a class excepiton:

 penumbra.PenumbraSystem
   [Thrown class java.lang.**ClassNotFoundException]

 Here's the project file I'm using:

 (defproject enjine "1.0.0-SNAPSHOT"
   :description "FIXME: write description"
   :dependencies [[org.clojure/clojure "1.3.0"]
  [prismofeverything/penumbra "0.6.9"]])

 Does anybody know why this might be happening?

>>>  --
>>> 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, send email to
>>> clojure+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/clojure?hl=en
>>>
>>
>>
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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, but that second one looks pretty fine to me.  It's also a lot 
more obvious where the function comes from. 

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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.PenumbraSystem
java.net.URLClassLoader$1.run (:-1)

user=>


On Thu, Oct 11, 2012 at 11:52 PM, AtKaaZ  wrote:

> Just to be sure, this is the link: https://github.com/ztellman/penumbra
> I notice OP was using a different fork (?)
>
>
> On Thu, Oct 11, 2012 at 11:46 PM, Zach Tellman  wrote:
>
>> I updated Penumbra to target the project structure for Leiningen 2 a
>> while back, are you using v1 by any chance?
>>
>> Zach
>>
>>
>> On Thursday, October 11, 2012 12:34:44 PM UTC-7, JvJ wrote:
>>>
>>> I'm trying to make a project using Penumbra for opengl, but somehow I
>>> get an issue when I try (use 'penumbra.opengl).
>>> It looks like there's a class excepiton:
>>>
>>> penumbra.PenumbraSystem
>>>   [Thrown class java.lang.**ClassNotFoundException]
>>>
>>> Here's the project file I'm using:
>>>
>>> (defproject enjine "1.0.0-SNAPSHOT"
>>>   :description "FIXME: write description"
>>>   :dependencies [[org.clojure/clojure "1.3.0"]
>>>  [prismofeverything/penumbra "0.6.9"]])
>>>
>>> Does anybody know why this might be happening?
>>>
>>  --
>> 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, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>>
>
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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 try exporting clojure for the server, and either 
compile that into gwt-friendly format, or leave it as js.

These objects are primarily just pojos with fields, lists and maps.

Would you recommend percolator for using clojure datatypes behind the 
list/map interfaces?

On Wednesday, August 22, 2012 2:05:16 PM UTC-6, Blake Miller wrote:
>
> This is somewhat related, though it's not exactly what the OP asked about. 
>
> This compiles with GWT: 
>
> https://github.com/blak3mill3r/percolator/blob/master/play/src/com/whatsys/test.clj
>  
>
> Also I wanted to point out that you could export a public interface 
> with the GWT compiler and call it with clojurescript. I'm not sure if 
> I understand your needs exactly ... not sure if that would help. 
>
> I'm picturing writing a bunch of UI components in GWT, describing the 
> UiBinder xml file as clojure forms, generating the actual xml with 
> clojure at compile time, and if you wanted to you could also have that 
> data structure available to your clojurescript client. 
>
> Cheers! 
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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.t.n.repl since 
refresh-tracker is private.

See https://gist.github.com/3865356 Line 6-15.

Works well enough, but the monkey-patch kinda bothers me, so if you feel 
like adding those functions I'd appreciate it. Maybe they are useful for 
somebody else, since Mika mentioned something similar.

Anyways, thanks for tools.namespace.

Regards,
/thomas

On Monday, October 8, 2012 1:04:32 AM UTC+2, Stuart Sierra wrote:
>
> Hi Mika,
>
> Due to the current governing process of the Clojure contributor agreement, 
> I cannot accept GitHub pull requests, only patches submitted via 
> http://dev.clojure.org/jira
>
> My intent is for the functions in clojure.tools.namespace.repl to be a 
> high-level API for direct invocation by users. All the components are 
> exposed in the namespaces c.t.n.track, c.t.n.files, etc. You should be able 
> to compose the various pieces for different use cases. If you encounter a 
> place where this is not possible, let me know and I will look into it.
>
> -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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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 can be used as the underpinnings of some interesting Clojure 
> tooling. 
>
> More info here: 
>
> http://blog.datomic.com/2012/10/codeq.html 
>
> Rich 
>
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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:
>
> 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:
> ClassNotFoundException penumbra.PenumbraSystem  
> java.net.URLClassLoader$1.run (:-1)
>
>
> On Fri, Oct 12, 2012 at 6:09 AM, AtKaaZ >wrote:
>
>> 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.PenumbraSystem  
>> java.net.URLClassLoader$1.run (:-1)
>>
>> user=>
>>
>>
>>
>> On Thu, Oct 11, 2012 at 11:52 PM, AtKaaZ > >wrote:
>>
>>> Just to be sure, this is the link: https://github.com/ztellman/penumbra
>>> I notice OP was using a different fork (?)
>>>
>>>
>>> On Thu, Oct 11, 2012 at 11:46 PM, Zach Tellman 
>>> 
>>> > wrote:
>>>
 I updated Penumbra to target the project structure for Leiningen 2 a 
 while back, are you using v1 by any chance?

 Zach


 On Thursday, October 11, 2012 12:34:44 PM UTC-7, JvJ wrote:
>
> I'm trying to make a project using Penumbra for opengl, but somehow I 
> get an issue when I try (use 'penumbra.opengl).
> It looks like there's a class excepiton:
>
> penumbra.PenumbraSystem
>   [Thrown class java.lang.**ClassNotFoundException]
>
> Here's the project file I'm using:
>
> (defproject enjine "1.0.0-SNAPSHOT"
>   :description "FIXME: write description"
>   :dependencies [[org.clojure/clojure "1.3.0"]
>  [prismofeverything/penumbra "0.6.9"]])
>
> Does anybody know why this might be happening?
>
  -- 
 You received this message because you are subscribed to the Google
 Groups "Clojure" group.
 To post to this group, send email to clo...@googlegroups.com
 Note that posts from new members are moderated - please be patient with 
 your first post.
 To unsubscribe from this group, send email to
 clojure+u...@googlegroups.com 
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en

>>>
>>>
>>
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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 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.t.n.repl
> since refresh-tracker is private.
>
> See https://gist.github.com/3865356 Line 6-15.
>
> Works well enough, but the monkey-patch kinda bothers me, so if you feel
> like adding those functions I'd appreciate it. Maybe they are useful for
> somebody else, since Mika mentioned something similar.
>
> Anyways, thanks for tools.namespace.
>
> Regards,
> /thomas
>
> On Monday, October 8, 2012 1:04:32 AM UTC+2, Stuart Sierra wrote:
>>
>> Hi Mika,
>>
>> Due to the current governing process of the Clojure contributor
>> agreement, I cannot accept GitHub pull requests, only patches submitted via
>> http://dev.clojure.org/jira
>>
>> My intent is for the functions in clojure.tools.namespace.repl to be a
>> high-level API for direct invocation by users. All the components are
>> exposed in the namespaces c.t.n.track, c.t.n.files, etc. You should be able
>> to compose the various pieces for different use cases. If you encounter a
>> place where this is not possible, let me know and I will look into it.
>>
>> -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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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 clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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 be useful to let somebody comment out forms as 
> follows:
>
> (->> foo
>   #_(bar baz)
>   #_quux)
>
> I can file an issue on JIRA if this makes sense.
>

I have filed it as `enhancement` here: 
http://dev.clojure.org/jira/browse/CLJ-1086

Shantanu

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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-specific, I'm 
confused as to whether that'll work...

Can someone point me in the right direction? Thanks!

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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
> Clojure library), but given that "Jars" are something Java-specific, I'm
> confused as to whether that'll work...
>
> Can someone point me in the right direction? Thanks!

JARs are a great way to deliver ClojureScript for Clojure users - lein
or otherwise. That's how core.logic ships both Clojure & ClojureScript
versions - in a single jar.

David

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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 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-specific, I'm 
> > confused as to whether that'll work... 
> > 
> > Can someone point me in the right direction? Thanks! 
>
> JARs are a great way to deliver ClojureScript for Clojure users - lein 
> or otherwise. That's how core.logic ships both Clojure & ClojureScript 
> versions - in a single jar. 
>
> David 
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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/domina or Chris
Granger's waltz http://github.com/ibdknox/waltz

David

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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 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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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 
just drop to shell.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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 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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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 express eg context-free grammars.

I still have lot of work to do to make this production-ready but I
wanted to get some feedback before I start comitting to the current
design.

Jamie

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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 generates worse code but it supports
> first-class, recursive views and can express eg context-free grammars.
>
> I still have lot of work to do to make this production-ready but I
> wanted to get some feedback before I start comitting to the current
> design.
>
> Jamie

Very cool! :)

David

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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...
>
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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 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... 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "Clojure" group. 
> > To post to this group, send email to clo...@googlegroups.com 
> > Note that posts from new members are moderated - please be patient with 
> your 
> > first post. 
> > To unsubscribe from this group, send email to 
> > clojure+u...@googlegroups.com  
> > For more options, visit this group at 
> > http://groups.google.com/group/clojure?hl=en 
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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 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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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 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...
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Clojure" group.
>> > To post to this group, send email to clo...@googlegroups.com
>> > Note that posts from new members are moderated - please be patient with
>> > your
>> > first post.
>> > To unsubscribe from this group, send email to
>> > clojure+u...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/clojure?hl=en
>
> --
> 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, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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]
~/dev/tools/rouge $ bundle --version
Bundler version 1.2.1
~/dev/tools/rouge $ gem --version
1.8.24

On Friday, October 12, 2012 4:40:28 AM UTC-7, Arlen Christian Mart Cuss 
wrote:
>
> 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 to see how (in)complete it is. :)
>
> I'd love it if you gave it a try, and let me know your thoughts and 
> feedback.  Even more than that, I'd love your contributions!  Clojure is a 
> beautiful language, and I'm really happy to be able to combine it with my 
> other favourite language.
>
> Cheers,
>
> Arlen
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


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/emezeske/lein-cljsbuild/issues/95 for more details)

If are targeting both Clojure and ClojureScript you might want to check out 
my CLJX leiningen plugin which automatically does some rewrites in your 
code and spits out both .clj and .cljs files.
See 

https://github.com/lynaghk/c2/blob/master/project.clj

for a project that uses that approach.
Users can just put C2 in their leiningen deps as normal and can use it from 
clj or cljs code without having to do anything special.

kevin

On Friday, October 12, 2012 11:54:09 AM UTC-7, 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 
> Clojure library), but given that "Jars" are something Java-specific, I'm 
> confused as to whether that'll work...
>
> Can someone point me in the right direction? Thanks!
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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 breakfast.

Sorry for the hassle.

— Arlen

On Saturday, October 13, 2012 8:52:05 AM UTC+11, Armando Blancas wrote:
>
> 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]
> ~/dev/tools/rouge $ bundle --version
> Bundler version 1.2.1
> ~/dev/tools/rouge $ gem --version
> 1.8.24
>
> On Friday, October 12, 2012 4:40:28 AM UTC-7, Arlen Christian Mart Cuss 
> wrote:
>>
>> 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 to see how (in)complete it is. :)
>>
>> I'd love it if you gave it a try, and let me know your thoughts and 
>> feedback.  Even more than that, I'd love your contributions!  Clojure is a 
>> beautiful language, and I'm really happy to be able to combine it with my 
>> other favourite language.
>>
>> Cheers,
>>
>> Arlen
>>
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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.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 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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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 for the closing delimiter

I don't fully understand what you want, but my impression is that more info 
should be retained.

On Friday, October 12, 2012 9:30:22 PM UTC, kovasb wrote:
>
> 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 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... 
> >> > 
> >> > -- 
> >> > You received this message because you are subscribed to the Google 
> >> > Groups "Clojure" group. 
> >> > To post to this group, send email to clo...@googlegroups.com 
> >> > Note that posts from new members are moderated - please be patient 
> with 
> >> > your 
> >> > first post. 
> >> > To unsubscribe from this group, send email to 
> >> > clojure+u...@googlegroups.com 
> >> > For more options, visit this group at 
> >> > http://groups.google.com/group/clojure?hl=en 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "Clojure" group. 
> > To post to this group, send email to clo...@googlegroups.com 
> > Note that posts from new members are moderated - please be patient with 
> your 
> > first post. 
> > To unsubscribe from this group, send email to 
> > clojure+u...@googlegroups.com  
> > For more options, visit this group at 
> > http://groups.google.com/group/clojure?hl=en 
>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

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 Cuss 
wrote:
>
> 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 breakfast.
>
> Sorry for the hassle.
>
> — Arlen
>
> On Saturday, October 13, 2012 8:52:05 AM UTC+11, Armando Blancas wrote:
>>
>> 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]
>> ~/dev/tools/rouge $ bundle --version
>> Bundler version 1.2.1
>> ~/dev/tools/rouge $ gem --version
>> 1.8.24
>>
>> On Friday, October 12, 2012 4:40:28 AM UTC-7, Arlen Christian Mart Cuss 
>> wrote:
>>>
>>> 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 to see how (in)complete it is. :)
>>>
>>> I'd love it if you gave it a try, and let me know your thoughts and 
>>> feedback.  Even more than that, I'd love your contributions!  Clojure is a 
>>> beautiful language, and I'm really happy to be able to combine it with my 
>>> other favourite language.
>>>
>>> Cheers,
>>>
>>> Arlen
>>>
>>

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en