librelist archives

« back to archive

Shoes-like in JRuby

Shoes-like in JRuby

From:
Scott Werner
Date:
2010-10-01 @ 16:57
Hey guys,

I had to come up with a project for an independent study in Java for
class, and got my professor to approve using JRuby, and figured it
would be fun to try to make a shoes-like graphical app kit in JRuby.
I'm working on it at http://github.com/scottw/Hepcat in case anyone is
interested.  Not sure what the status is for a shoes rewrite, but
thought I'd let everyone know I'm seeing whats possible with JRuby.

Re: [shoes] Shoes-like in JRuby

From:
Jenna Fox
Date:
2010-10-01 @ 23:08
That's really awesome! I've been pondering a Shoes port to MacRuby - 
straight on to the Cocoa objects, with no compiled code needed. :)


On 02/10/2010, at 2:57 AM, Scott Werner wrote:

> Hey guys,
> 
> I had to come up with a project for an independent study in Java for
> class, and got my professor to approve using JRuby, and figured it
> would be fun to try to make a shoes-like graphical app kit in JRuby.
> I'm working on it at http://github.com/scottw/Hepcat in case anyone is
> interested.  Not sure what the status is for a shoes rewrite, but
> thought I'd let everyone know I'm seeing whats possible with JRuby.

Re: [shoes] Shoes-like in JRuby

From:
Yvon Thoraval
Date:
2010-10-01 @ 23:36
and what is the state of your MacRuby port ?
looks really interesting !

Yvon

2010/10/2 Jenna Fox <a@creativepony.com>

> That's really awesome! I've been pondering a Shoes port to MacRuby -
> straight on to the Cocoa objects, with no compiled code needed. :)
>
>
> On 02/10/2010, at 2:57 AM, Scott Werner wrote:
>
> > Hey guys,
> >
> > I had to come up with a project for an independent study in Java for
> > class, and got my professor to approve using JRuby, and figured it
> > would be fun to try to make a shoes-like graphical app kit in JRuby.
> > I'm working on it at http://github.com/scottw/Hepcat in case anyone is
> > interested.  Not sure what the status is for a shoes rewrite, but
> > thought I'd let everyone know I'm seeing whats possible with JRuby.
>
>

Re: [shoes] Shoes-like in JRuby

From:
Bluebie
Date:
2010-10-01 @ 23:48
I've been pondering it, have not started, just considering. 

—
Jenna / @Bluebie

On 02/10/2010, at 9:36 AM, Yvon Thoraval <yvon.thoraval@gmail.com> wrote:

> and what is the state of your MacRuby port ?
> looks really interesting !
> 
> Yvon
> 
> 2010/10/2 Jenna Fox <a@creativepony.com>
> That's really awesome! I've been pondering a Shoes port to MacRuby - 
straight on to the Cocoa objects, with no compiled code needed. :)
> 
> 
> On 02/10/2010, at 2:57 AM, Scott Werner wrote:
> 
> > Hey guys,
> >
> > I had to come up with a project for an independent study in Java for
> > class, and got my professor to approve using JRuby, and figured it
> > would be fun to try to make a shoes-like graphical app kit in JRuby.
> > I'm working on it at http://github.com/scottw/Hepcat in case anyone is
> > interested.  Not sure what the status is for a shoes rewrite, but
> > thought I'd let everyone know I'm seeing whats possible with JRuby.
> 
> 

Re: [shoes] Shoes-like in JRuby

From:
ashbb
Date:
2010-10-02 @ 01:06
Hi Scott,

http://github.com/scottw/Hepcat is awesome!
Especially the to-do list looks nice.

I'm writing Green Shoes slowly with the same approach of you but using
Ruby/GTK2 and rcairo.

http://github.com/ashbb/green_shoes

So, let's enjoy and keep on improving our colorful Shoes. ;-)

Cheers,
ashbb

Re: [shoes] Shoes-like in JRuby

From:
Cecil Coupe
Date:
2010-10-02 @ 04:05
Kudos to both ashbb and Scott Werner for their efforts. I'm seriously
impressed with both.

I think it might be very easy to convert ashbb's Green Shoes to qtruby
or even wxRuby. 

Distributing and building the 'shoes' gem on all three platforms (four
for java) needs some deeper thought about gem and platform dependencies
so that non developers don't have to play macport or fink or apt-get
terminal games to install Ruby plus extra stuff just to run a simple
Shoes script. 

It's the elephant in the room that no one wants to think about.



On Sat, 2010-10-02 at 10:06 +0900, ashbb wrote:
> Hi Scott,
> 
> http://github.com/scottw/Hepcat is awesome!
> Especially the to-do list looks nice. 
> 
> I'm writing Green Shoes slowly with the same approach of you but using
> Ruby/GTK2 and rcairo. 
> 
> http://github.com/ashbb/green_shoes
> 
> So, let's enjoy and keep on improving our colorful Shoes. ;-)
> 
> Cheers,
> ashbb

Re: [shoes] Shoes-like in JRuby

From:
ashbb
Date:
2010-10-04 @ 07:55
Hi Cecil et al,

> Distributing and building the 'shoes' gem on all three platforms (four
> for java) needs some deeper thought about gem and platform dependencies
> so that non developers don't have to play macport or fink or apt-get
> terminal games to install Ruby plus extra stuff just to run a simple
> Shoes script.
I totally agree with you.

For now, Green Shoes is just a ruby code on github.
So you have to make an environment (need to install dependent gems)
before playing Green Shoes.

This is my two cents:
1) make Green Shoes gem
2) package Green Shoes as same as Red Shoes

1st: Zak is trying now. I'm going to do with him. Although I need to study
creating gems at first. :-P

2nd: I think it's possible to make green_shoes.exe/.dmg/.run with Red Shoes
rakefiles. Of course we have to improve (or rewrite) them for Green Shoes,
though.

But before trying the above plans, I have to study some more points. ;-)
- fonts and UTF-8
- make Para's background transparent
- timer
- catch errors
- etc.

ashbb

Re: [shoes] Shoes-like in JRuby

From:
Scott Werner
Date:
2010-10-04 @ 10:31
ashbb - for creating gems, using the gem jeweler makes it really easy:
Gem install jeweler
Jeweler <projectname>
Put files in the lib directory (and add the paths to the rakefile)
Rake package

And you have your gem.  Couple more options for auto deployment to
rubygems.org and github, but its pretty much that simple if you want to go
the simple route :)
On Oct 4, 2010 3:55 AM, "ashbb" <ashbbb@gmail.com> wrote:
> Hi Cecil et al,
>
>> Distributing and building the 'shoes' gem on all three platforms (four
>> for java) needs some deeper thought about gem and platform dependencies
>> so that non developers don't have to play macport or fink or apt-get
>> terminal games to install Ruby plus extra stuff just to run a simple
>> Shoes script.
> I totally agree with you.
>
> For now, Green Shoes is just a ruby code on github.
> So you have to make an environment (need to install dependent gems)
> before playing Green Shoes.
>
> This is my two cents:
> 1) make Green Shoes gem
> 2) package Green Shoes as same as Red Shoes
>
> 1st: Zak is trying now. I'm going to do with him. Although I need to study
> creating gems at first. :-P
>
> 2nd: I think it's possible to make green_shoes.exe/.dmg/.run with Red
Shoes
> rakefiles. Of course we have to improve (or rewrite) them for Green Shoes,
> though.
>
> But before trying the above plans, I have to study some more points. ;-)
> - fonts and UTF-8
> - make Para's background transparent
> - timer
> - catch errors
> - etc.
>
> ashbb

Re: [shoes] Shoes-like in JRuby

From:
ashbb
Date:
2010-10-04 @ 12:41
Ah, looks cool! Okay, I'll try. :)

Thanks,
ashbb

Re: [shoes] Shoes-like in JRuby

From:
Zachary Scott
Date:
2010-10-04 @ 13:07
Yes I was using Jeweler in my 'gemify' branch on github. But switched over
to use bundler as it's designed to manage gems and gem dependencies, and
does a very good job at this. Here's my gem branch I've been hacking on:
http://github.com/zacharyscott/green_shoes/tree/gemify

Currently we're getting the cairo_create_context bug, not sure if it's
related to an api breakage in cairo 1.10.0.

Also, I tried it using rcairo from github and hacked together a downstream
gem of rcairo for use with green shoes. You can find my fork here:
http://github.com/zacharyscott/rcairo

The bundler gem uses the same commands as Jeweler to build and release the
gems, or you can install the gem straight from the github repo. Bundler is
very flexible, go here for more info: http://gembundler.com/


Last night I had a good discussion about the various colorful assortment of
shoes, and we sorta came up with this general idea:

shoes: a color agnostic api for shoes
green shoes: gtk & cairo bindings for windows and linux
blue shoes: qt OR macruby bindings for osx and other apple devices
red shoes: jruby for everything else, such as android

Any thoughts on this would be appreciated.

Thanks,

Let's have fun with Shoes!

On Mon, Oct 4, 2010 at 8:41 AM, ashbb <ashbbb@gmail.com> wrote:

> Ah, looks cool! Okay, I'll try. :)
>
> Thanks,
> ashbb
>



-- 
Zachary Scott

http://zacharyscott.net/
http://twitter.com/hasmanytweets

Re: [shoes] Shoes-like in JRuby

From:
Scott Werner
Date:
2010-10-04 @ 14:13
On Mon, Oct 4, 2010 at 9:07 AM, Zachary Scott <zachary.s.scott@gmail.com> wrote:
> Yes I was using Jeweler in my 'gemify' branch on github. But switched over
> to use bundler as it's designed to manage gems and gem dependencies, and
> does a very good job at this. Here's my gem branch I've been hacking
> on: http://github.com/zacharyscott/green_shoes/tree/gemify
> Currently we're getting the cairo_create_context bug, not sure if it's
> related to an api breakage in cairo 1.10.0.
>
> Also, I tried it using rcairo from github and hacked together a downstream
> gem of rcairo for use with green shoes. You can find my fork here:
> http://github.com/zacharyscott/rcairo
> The bundler gem uses the same commands as Jeweler to build and release the
> gems, or you can install the gem straight from the github repo. Bundler is
> very flexible, go here for more info: http://gembundler.com/


Cool I'll have to check out bundler for that purpose, thanks for the info.

> Last night I had a good discussion about the various colorful assortment of
> shoes, and we sorta came up with this general idea:
> shoes: a color agnostic api for shoes
> green shoes: gtk & cairo bindings for windows and linux
> blue shoes: qt OR macruby bindings for osx and other apple devices
> red shoes: jruby for everything else, such as android
> Any thoughts on this would be appreciated.
> Thanks,
> Let's have fun with Shoes!

That sounds really cool, and would probably make documentation less of
a burden on everyone if we have a centralized api everyone is building
to, and having a mini 'consortium' overseeing the api sounds like a
lot of fun 8) (would probably look good to my professor as
well..haha!)  If this is what everyone decides, I can go ahead and
rename my jruby repo and fork/branch however is best, I kind of went
with my own name and independent branch because I didn't want to step
on any toes or anything.  There are a few things specific to jruby I'd
like to explore once I get the base api finished, but I guess that
bridge can be crossed when I get there.

Re: [shoes] Shoes-like in JRuby

From:
ashbb
Date:
2010-10-04 @ 13:52
Hi Zak,

- http://github.com/zacharyscott/green_shoes/tree/gemify
- http://github.com/zacharyscott/rcairo

Really cool! Thanks for the great work. :)


> shoes: a color agnostic api for shoes
> green shoes: gtk & cairo bindings for windows and linux
> blue shoes: qt OR macruby bindings for osx and other apple devices
> red shoes: jruby for everything else, such as android

hahaha. Awesome!
Personally, I must connect Red to Original Shoes. :-P
So, I'd like to use Red Shoes for original Shoes and to use other color for
jruby Shoes.
How about Black Shoes? Like a Java mascot color?

But I don't like to push it to jruby Shoes.
I think it's okay to use any color as you like. ;-)

ashbb

Re: [shoes] Shoes-like in JRuby

From:
Scott Werner
Date:
2010-10-04 @ 14:48
>> shoes: a color agnostic api for shoes
>> green shoes: gtk & cairo bindings for windows and linux
>> blue shoes: qt OR macruby bindings for osx and other apple devices
>> red shoes: jruby for everything else, such as android
>
> hahaha. Awesome!
> Personally, I must connect Red to Original Shoes. :-P
> So, I'd like to use Red Shoes for original Shoes and to use other color for
> jruby Shoes.
> How about Black Shoes? Like a Java mascot color?
>
> But I don't like to push it to jruby Shoes.
> I think it's okay to use any color as you like. ;-)

Personally if I have any say in it, I'd be partial to something like
Two-Tone Shoes as kind of a play off using swing/java+ruby, but I'm
down for whatever ;)

Re: [shoes] Shoes-like in JRuby

From:
Zachary Scott
Date:
2010-10-04 @ 15:00
Haha how about Chocolate Shoes? Since jruby is like candy for java
developers, and coffee/java is the same color (brown).

On Mon, Oct 4, 2010 at 10:48 AM, Scott Werner <stwerner@vt.edu> wrote:

> >> shoes: a color agnostic api for shoes
> >> green shoes: gtk & cairo bindings for windows and linux
> >> blue shoes: qt OR macruby bindings for osx and other apple devices
> >> red shoes: jruby for everything else, such as android
> >
> > hahaha. Awesome!
> > Personally, I must connect Red to Original Shoes. :-P
> > So, I'd like to use Red Shoes for original Shoes and to use other color
> for
> > jruby Shoes.
> > How about Black Shoes? Like a Java mascot color?
> >
> > But I don't like to push it to jruby Shoes.
> > I think it's okay to use any color as you like. ;-)
>
> Personally if I have any say in it, I'd be partial to something like
> Two-Tone Shoes as kind of a play off using swing/java+ruby, but I'm
> down for whatever ;)
>



-- 
Zachary Scott

http://zacharyscott.net/
http://twitter.com/hasmanytweets

Re: [shoes] Shoes-like in JRuby

From:
Devyn Cairns
Date:
2010-10-06 @ 05:54
Yes! Chocolate Shoes, Coffee Shoes, Brown Shoes, something like that.

On Mon, Oct 4, 2010 at 10:48 AM, Scott Werner <stwerner@vt.edu> wrote:
>
>> >> shoes: a color agnostic api for shoes
>> >> green shoes: gtk & cairo bindings for windows and linux
>> >> blue shoes: qt OR macruby bindings for osx and other apple devices
>> >> red shoes: jruby for everything else, such as android
>>
>
I like the color agnostic API.


> >
>> > hahaha. Awesome!
>> > Personally, I must connect Red to Original Shoes. :-P
>> > So, I'd like to use Red Shoes for original Shoes and to use other color
>> for
>> > jruby Shoes.
>> > How about Black Shoes? Like a Java mascot color?
>> >
>> > But I don't like to push it to jruby Shoes.
>> > I think it's okay to use any color as you like. ;-)
>>
>> Personally if I have any say in it, I'd be partial to something like
>> Two-Tone Shoes as kind of a play off using swing/java+ruby, but I'm
>> down for whatever ;)
>>
>
>
>
> --
> Zachary Scott
>
> http://zacharyscott.net/
> http://twitter.com/hasmanytweets
>



-- 
    ~devyn

Re: [shoes] Shoes-like in JRuby

From:
Scott Werner
Date:
2010-10-02 @ 12:47
Thanks for the kind words everyone, definitely will be using these
emails when I need some extra motivation 8).

ashbb - I've looked at green shoes a lot, and just noticed I wasn't
watching the repo or following you on github, fixed that.  I'm pretty
excited about how far along you are with the pure ruby implementation
of shoes, hopefully not as much time will have to be spent working on
making it work across all platforms.  I'm kind of a beginner compared
to all of you, so if nothing else, working on this JRuby version is
teaching me a lot about how things work internally (reading shoes and
all of your forks to see how things are done) and maybe getting up to
speed enough to be able to actually contribute to moving shoes
forward.

Cecil - Well that's kind of what I like about JRuby - its possible to
package the applications to executables (Rawr
(http://rawr.rubyforge.org/) makes this pretty easy) so that the only
thing required to be installed on someone's computer is Java 6.  I
think its a pretty safe assumption that a random non-developer would
have java 6 installed. Also, a lot of the cross platform issues are
either already taken care of by Java, or can be made trivial by using
java libraries where there isn't a ruby equivalent.



On Sat, Oct 2, 2010 at 12:05 AM, Cecil Coupe <ccoupe@cableone.net> wrote:
> Kudos to both ashbb and Scott Werner for their efforts. I'm seriously
> impressed with both.
>
> I think it might be very easy to convert ashbb's Green Shoes to qtruby
> or even wxRuby.
>
> Distributing and building the 'shoes' gem on all three platforms (four
> for java) needs some deeper thought about gem and platform dependencies
> so that non developers don't have to play macport or fink or apt-get
> terminal games to install Ruby plus extra stuff just to run a simple
> Shoes script.
>
> It's the elephant in the room that no one wants to think about.
>
>
>
> On Sat, 2010-10-02 at 10:06 +0900, ashbb wrote:
>> Hi Scott,
>>
>> http://github.com/scottw/Hepcat is awesome!
>> Especially the to-do list looks nice.
>>
>> I'm writing Green Shoes slowly with the same approach of you but using
>> Ruby/GTK2 and rcairo.
>>
>> http://github.com/ashbb/green_shoes
>>
>> So, let's enjoy and keep on improving our colorful Shoes. ;-)
>>
>> Cheers,
>> ashbb
>
>
>

Re: [shoes] Shoes-like in JRuby

From:
Steve Klabnik
Date:
2010-10-02 @ 16:30
Yeah, I'm excited about all of these Shoes-es, too. I know I've been pretty
quiet over the last few weeks, but I have some really good news to tell you
guys sometime soon.

I have some more thoughts on all of this, but I want to collect them a bit
more.

Re: [shoes] Shoes-like in JRuby

From:
Zachary Scott
Date:
2010-10-02 @ 12:45
Firstly, great work Scott on your JRuby project!

On building shoes and its dependencies:

I've been working with ashbb to help figure out this issue. Hoping to have
something together this weekend to show you all, so please stay tuned!

On Sat, Oct 2, 2010 at 12:05 AM, Cecil Coupe <ccoupe@cableone.net> wrote:

> Kudos to both ashbb and Scott Werner for their efforts. I'm seriously
> impressed with both.
>
> I think it might be very easy to convert ashbb's Green Shoes to qtruby
> or even wxRuby.
>
> Distributing and building the 'shoes' gem on all three platforms (four
> for java) needs some deeper thought about gem and platform dependencies
> so that non developers don't have to play macport or fink or apt-get
> terminal games to install Ruby plus extra stuff just to run a simple
> Shoes script.
>
> It's the elephant in the room that no one wants to think about.
>
>
>
> On Sat, 2010-10-02 at 10:06 +0900, ashbb wrote:
> > Hi Scott,
> >
> > http://github.com/scottw/Hepcat is awesome!
> > Especially the to-do list looks nice.
> >
> > I'm writing Green Shoes slowly with the same approach of you but using
> > Ruby/GTK2 and rcairo.
> >
> > http://github.com/ashbb/green_shoes
> >
> > So, let's enjoy and keep on improving our colorful Shoes. ;-)
> >
> > Cheers,
> > ashbb
>
>
>


-- 
Zachary Scott

http://zacharyscott.net/
http://twitter.com/hasmanytweets