[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[ANN] LittleCoder 0.4

Harold Hausman

3/31/2007 7:52:00 AM

Hello all,

http://www.danceliquid.com/Li...

Years ago, _why wrote an article titled "The Little Coder's
Predicament" where he suggests that it's a problem that programming is
not as accessible as it was in the Commodore 64 days.

I happen to agree with him, and as an attack on that problem I've
written some software.

What is it?
-----------
LittleCoder is essentially a Ruby interpreter bolted on to DirectX.

It hopes to be a fun and easy way to do simple graphics on Windows for
kids of all ages.

Rather than expose the eternal foul suffering of DirectX directly, it
tries to wrap everything up into a lovely Rubyish facade that's all
smiles.

Pretty much everything has been traded in favor of the simplicity of
scripting it. Loading and displaying images is a one liner. Playing
sounds is a one liner. But there is still a bit of depth as it can
respond to mouse and keyboard input, and even do some animation.

It is far from complete, but a few of us have been using it to good
effect and I thought, 'the more the merrier'.

So check it out. It'll be fun!

Learn more
----------
Some examples and documentation are available as links from the main
page at http://www.danceliquid.com/Li...

Highest regards,
-Harold

7 Answers

ramalho@gmail.com

3/31/2007 12:01:00 PM

0

That's way cool, Harold. I happen to teach programming and I often
talk about that predicament (even though I did not know about _why's
article until I read your post).

I'm a Linux and OSX user however, so I think having LittleCoder run on
top of SDL [1] would make it even cooler.

[1] http://www.l...

There are already a couple of Ruby-SDL bindings available. How hard
would it be to port LittleCoder? I'd like to check that, but I'm not
sure when I'll be able to look deeper into this, though.

Nevertheless, great idea, Harold!

Cheers,

Luciano

On 3/31/07, Harold Hausman <hhausman@gmail.com> wrote:
> Hello all,
>
> http://www.danceliquid.com/Li...
>
> Years ago, _why wrote an article titled "The Little Coder's
> Predicament" where he suggests that it's a problem that programming is
> not as accessible as it was in the Commodore 64 days.
>
> I happen to agree with him, and as an attack on that problem I've
> written some software.
>
> What is it?
> -----------
> LittleCoder is essentially a Ruby interpreter bolted on to DirectX.
>
> It hopes to be a fun and easy way to do simple graphics on Windows for
> kids of all ages.
>
> Rather than expose the eternal foul suffering of DirectX directly, it
> tries to wrap everything up into a lovely Rubyish facade that's all
> smiles.
>
> Pretty much everything has been traded in favor of the simplicity of
> scripting it. Loading and displaying images is a one liner. Playing
> sounds is a one liner. But there is still a bit of depth as it can
> respond to mouse and keyboard input, and even do some animation.
>
> It is far from complete, but a few of us have been using it to good
> effect and I thought, 'the more the merrier'.
>
> So check it out. It'll be fun!
>
> Learn more
> ----------
> Some examples and documentation are available as links from the main
> page at http://www.danceliquid.com/Li...
>
> Highest regards,
> -Harold
>
>

Chad Perrin

3/31/2007 5:26:00 PM

0

On Sat, Mar 31, 2007 at 09:01:11PM +0900, Luciano Ramalho wrote:
> That's way cool, Harold. I happen to teach programming and I often
> talk about that predicament (even though I did not know about _why's
> article until I read your post).
>
> I'm a Linux and OSX user however, so I think having LittleCoder run on
> top of SDL [1] would make it even cooler.
>
> [1] http://www.l...
>
> There are already a couple of Ruby-SDL bindings available. How hard
> would it be to port LittleCoder? I'd like to check that, but I'm not
> sure when I'll be able to look deeper into this, though.
>
> Nevertheless, great idea, Harold!

There's always the cross-platform open source UCBLogo, which provides
an excellent advancement path from simple and easy (think "Turtle
Graphics") all the way up to m-expression based Lisp dialect with
macros. It's not strictly on-topic for a Ruby list, but still a very
good idea, in my opinion.

--
CCD CopyWrite Chad Perrin [ http://ccd.ap... ]
Ben Franklin: "As we enjoy great Advantages from the Inventions of
others we should be glad of an Opportunity to serve others by any
Invention of ours, and this we should do freely and generously."

Harold Hausman

4/1/2007 1:52:00 AM

0

On 3/31/07, Luciano Ramalho <ramalho@gmail.com> wrote:
> That's way cool, Harold. I happen to teach programming and I often
> talk about that predicament (even though I did not know about _why's
> article until I read your post).
>

Thanks for the kind words. (:

> I'm a Linux and OSX user however, so I think having LittleCoder run on
> top of SDL [1] would make it even cooler.
>
> [1] http://www.l...
>

SDL is a different kind of animal, and one I'm only a little familiar
with. On interesting feature of LittleCoder is that *ALL* of the
boiler-plate code for booting up a window, getting a drawing context,
etc, is hidden in the C++ portion of the app. This was a top priority,
because we wanted to be able to express single line Ruby programs that
did interesting things like draw pictures and make noises. (Strangely,
opening a window is not considered interesting. ;)

The other difference here is that LittleCoder builds the Ruby
interpreter into the application.

Getting RubySDL to run anything at all is a non-trivial exercise in
installing Ruby, using gems to get RubySDL, and if you're unlucky,
some .dll dancing becomes necessary. LittleCoder on the other hand can
be downloaded, unzipped, and double clicked.

Definitely something similar could be done on other platforms, perhaps
using SDL, but unfortunately the only computer I have right now is
running Windows. I'm looking to get some linux in my life, so perhaps
an OpenGL linux version of LittleCoder is somewhere over the horizion.

>
> Nevertheless, great idea, Harold!
>

Thanks again!
-Harold

Phillip Gawlowski

4/1/2007 4:22:00 AM

0

Harold Hausman wrote:
>
> Definitely something similar could be done on other platforms, perhaps
> using SDL, but unfortunately the only computer I have right now is
> running Windows. I'm looking to get some linux in my life, so perhaps
> an OpenGL linux version of LittleCoder is somewhere over the horizion.

Besides, today's C64 / Apple ][ or other "beginning computer" of the
70s/80s is a Windows PC with DirectX already included. This a much wider
traget audience for the moment.

This is a nice project. And if I had kids, I'd introduce them to
LittleCoder, especially as Windows is really, really lacking in this
department (so is Linux, as far as I know, but that's a different beast
altogether).

Good stuff, really.

--
Phillip "CynicalRyan" Gawlowski
http://cynicalryan....

Rules of Open-Source Programming:

22. Backward compatiblity is your worst enemy.

23. Backward compatiblity is your users' best friend.

Peña, Botp

4/2/2007 4:14:00 AM

0

From: Harold Hausman [mailto:hhausman@gmail.com] :
# LittleCoder is essentially a Ruby interpreter bolted on to DirectX.

if you can bolt form widgets on it (like text boxes, dropdown list, menus, etc) w dazzling eye-candy/presentation-like features, then that would be a killer.

kind regards -botp

Harold Hausman

4/2/2007 4:41:00 AM

0

On 4/2/07, Peña, Botp <botp@delmonte-phil.com> wrote:
> From: Harold Hausman [mailto:hhausman@gmail.com] :
> # LittleCoder is essentially a Ruby interpreter bolted on to DirectX.
>
> if you can bolt form widgets on it (like text boxes, dropdown list, menus, etc) w dazzling eye-candy/presentation-like features, then that would be a killer.
>

A killer of what?

Those do sound like interesting features, but I'm not sure who would
use them, and for what?

Can you elaborate?

Regards,
-Harold

Peña, Botp

4/2/2007 9:55:00 AM

0

From: Harold Hausman [mailto:hhausman@gmail.com] :
# Those do sound like interesting features, but I'm not sure who would
# use them, and for what?

because i have yet to see gui apps that are directx (or opengl) driven. true they're being used in games, but why not for gui apps? people are now realizing this, that is why there is xgl for linux and vista for windows. if you can build a set of gui form widgets to start with (so we can build/contribute from there) that are as easy to use as ruby, i would think it would pave way for a new wave of gui apps that is pioneered once again by ruby (think rails pioneering rapid web dev). imagine having access to directinput/media/sound/draw with ease using simply ruby.

ok, i've seen the bouncing ball and the stretchable boxes. Can you demo a text input with transparency and that zooms when you drag it?

:)

kind regards -botp