Re: Rouge: Ruby + Clojure

2012-10-19 Thread Arlen Christian Mart Cuss
Hi again,

On Friday, October 12, 2012 10:40:28 PM UTC+11, Arlen Christian Mart Cuss 
wrote:
>
> https://github.com/unnali/rouge#readme
>

As an aside, I've set up a Google Group mailing list for discussion and 
announcements:

https://groups.google.com/forum/#!forum/rouge-talk 

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: Rouge: Ruby + Clojure

2012-10-19 Thread Arlen Christian Mart Cuss
Hi Armando,

On Wednesday, October 17, 2012 2:48:44 AM UTC+11, Armando Blancas wrote:
>
> Finally came around to install a recent Ruby build and ran a little test 
> script just to get a feel for the startup time. Looks good, though the 
> faster the merrier.


That's a neat little check!  It's encouraging, too, as I haven't done much 
work in terms of optimisation yet.  I think we have a lot of scope for 
further improvement! :)

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: Rouge: Ruby + Clojure

2012-10-19 Thread Arlen Christian Mart Cuss
On Wednesday, October 17, 2012 2:20:09 PM UTC+11, Brian Marick wrote:

>  hash.become(TimesliceShaped) 
>

For the longest time I thought you were talking about the core Hash#become 
(Hash#replace since 2002!).  I've since become acquainted with Stunted. :)

That said, I'm a sucker for "non-OO" design, even in Ruby—I tend to prefer 
explicitly naming the (module+)function and thus making it clear how data 
are being transformed.  This is just a personal preference, but I suppose 
it might also help with not internalising any bad ideas about a given 
(Functional)Hash *being* a particular thing by virtue of the methods we've 
attached thus far.

(I'll admit here and now, though, that I'm out of depth in experience, and 
will see how wrong I can prove myself in the coming days. :-))

-- 
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: 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

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