# \[ANN\] LittleCoder 0.4

**URL:** <https://rubytalk.org/t/ann-littlecoder-0-4/36581>\
**Category:** ruby-talk\
**Created:** [31 March 2007 07:51 UTC](https://rubytalk.org/t/ann-littlecoder-0-4/36581 "2007-03-31T07:51:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harold\_Hausman](https://avatars.discourse-cdn.com/v4/letter/h/ac91a4/32.png) [@Harold\_Hausman](https://rubytalk.org/u/Harold_Hausman)\
**Post date:** [31 March 2007 07:51 UTC](https://rubytalk.org/t/ann-littlecoder-0-4/36581/1 "2007-03-31T07:51:49Z")

</div>

Hello all,

[http://www.danceliquid.com/LittleCoder/](http://www.danceliquid.com/LittleCoder/)

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/LittleCoder/](http://www.danceliquid.com/LittleCoder/)
> 
> Highest regards,  
> -Harold

---

<div class="post-metadata">

**Author:** ![Luciano\_Ramalho](https://avatars.discourse-cdn.com/v4/letter/l/ec9cab/32.png) [@Luciano\_Ramalho](https://rubytalk.org/u/Luciano_Ramalho)\
**Post date:** [31 March 2007 12:01 UTC](https://rubytalk.org/t/ann-littlecoder-0-4/36581/2 "2007-03-31T12:01:11Z")

</div>

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.libsdl.org/](http://www.libsdl.org/)

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,
> > 
> > [LittleCoder](http://www.danceliquid.com/LittleCoder/)
> > 
> > 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 [LittleCoder](http://www.danceliquid.com/LittleCoder/)
> > 
> > Highest regards,  
> > -Harold

---

<div class="post-metadata">

**Author:** ![\_Pena\_Botp1](https://avatars.discourse-cdn.com/v4/letter/_/94ad74/32.png) [@\_Pena\_Botp1](https://rubytalk.org/u/_Pena_Botp1)\
**Post date:** [2 April 2007 04:13 UTC](https://rubytalk.org/t/ann-littlecoder-0-4/36581/3 "2007-04-02T04:13:39Z")

</div>

# 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

> **···**
>
> From: Harold Hausman [[mailto:hhausman@gmail.com](mailto:hhausman@gmail.com)] :

---

<div class="post-metadata">

**Author:** ![Chad\_Perrin1](https://avatars.discourse-cdn.com/v4/letter/c/977dab/32.png) [@Chad\_Perrin1](https://rubytalk.org/u/Chad_Perrin1)\
**Post date:** [31 March 2007 17:25 UTC](https://rubytalk.org/t/ann-littlecoder-0-4/36581/4 "2007-03-31T17:25:39Z")

</div>

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.

> **···**
>
> 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.libsdl.org/](http://www.libsdl.org/)
> > 
> > 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!
> 
> --  
> CCD CopyWrite Chad Perrin [[http://ccd.apotheon.org](http://ccd.apotheon.org) ]  
> 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."

---

<div class="post-metadata">

**Author:** ![Harold\_Hausman](https://avatars.discourse-cdn.com/v4/letter/h/ac91a4/32.png) [@Harold\_Hausman](https://rubytalk.org/u/Harold_Hausman)\
**Post date:** [1 April 2007 01:51 UTC](https://rubytalk.org/t/ann-littlecoder-0-4/36581/5 "2007-04-01T01:51:36Z")

</div>

> 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.libsdl.org/](http://www.libsdl.org/)

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

> **···**
>
> On 3/31/07, Luciano Ramalho \<ramalho@gmail.com\> wrote:

---

<div class="post-metadata">

**Author:** ![Harold\_Hausman](https://avatars.discourse-cdn.com/v4/letter/h/ac91a4/32.png) [@Harold\_Hausman](https://rubytalk.org/u/Harold_Hausman)\
**Post date:** [2 April 2007 04:41 UTC](https://rubytalk.org/t/ann-littlecoder-0-4/36581/6 "2007-04-02T04:41:01Z")

</div>

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

> **···**
>
> 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.

---

<div class="post-metadata">

**Author:** ![Phil](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@Phil](https://rubytalk.org/u/Phil)\
**Post date:** [1 April 2007 04:22 UTC](https://rubytalk.org/t/ann-littlecoder-0-4/36581/7 "2007-04-01T04:22:06Z")

</div>

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.110mb.com/](http://cynicalryan.110mb.com/)
> 
> Rules of Open-Source Programming:
> 
> 22. Backward compatiblity is your worst enemy.
> 
> 23. Backward compatiblity is your users' best friend.

---

<div class="post-metadata">

**Author:** ![\_Pena\_Botp1](https://avatars.discourse-cdn.com/v4/letter/_/94ad74/32.png) [@\_Pena\_Botp1](https://rubytalk.org/u/_Pena_Botp1)\
**Post date:** [2 April 2007 09:55 UTC](https://rubytalk.org/t/ann-littlecoder-0-4/36581/8 "2007-04-02T09:55:21Z")

</div>

# 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

> **···**
>
> From: Harold Hausman [[mailto:hhausman@gmail.com](mailto:hhausman@gmail.com)] :
