Ruby for small devices ?

Discussion in 'Ruby' started by zimba-tm, Dec 9, 2005.

  1. zimba-tm

    zimba-tm Guest

    SGVsbG8gcnVieSBmZWxsb3dzLAoKSSB3b3VsZCBsaWtlIHRvIGtub3cgaWYgYW55b25lIGhhcyBl
    eHBlcmllbmNlIHdpdGggZW1iZWRkaW5nIHJ1YnkgaW4Kc21hbGwgZGV2aWNlcyBhbmQgaWYgc3Vj
    aCBwcm9qZWN0IGV4aXN0cyA/CgpJbiBteSBjdXJyZW50IHdvcmssIEknbSB1c2luZyBFbHBoZWwg
    Y2FtZXJhcywgbW9iaWxlIHBob25lcywgZXRjLi4gCkJ1dCBydWJ5IGlzIHByZXR0eSBoZWF2eSwg
    cGx1cyBJIGRvbid0IGtub3cgaWYgaXQgY29tcGlsZXMgb24gQVJNIG9yCm90aGVyIENQVXMuCgpB
    bnkgaGludCB3b3VsZCBiZSBhcHByZWNpYXRlZCA6KQoKLS0KQ2hlZXJzLAogIHppbWJhCgpodHRw
    Oi8vemltYmEub3JlZS5jaAo=
     
    zimba-tm, Dec 9, 2005
    #1
    1. Advertising

  2. Check out the "Embedding Ruby" presentation from RubyConf 2005:
    http://www.zenspider.com/dl/rubyconf2005/EmbeddedRuby.pdf

    The stuff you're interested in starts around page 18, I'd say.

    --Wilson.

    On 12/9/05, zimba-tm <> wrote:
    > Hello ruby fellows,
    >
    > I would like to know if anyone has experience with embedding ruby in
    > small devices and if such project exists ?
    >
    > In my current work, I'm using Elphel cameras, mobile phones, etc..
    > But ruby is pretty heavy, plus I don't know if it compiles on ARM or
    > other CPUs.
    >
    > Any hint would be appreciated :)
    >
    > --
    > Cheers,
    > zimba
    >
    > http://zimba.oree.ch
    >
     
    Wilson Bilkovich, Dec 9, 2005
    #2
    1. Advertising

  3. zimba-tm

    Kero Guest

    > Check out the "Embedding Ruby" presentation from RubyConf 2005:
    > http://www.zenspider.com/dl/rubyconf2005/EmbeddedRuby.pdf


    Good stuff.

    I run Ruby on my iPAQ (I suppose zauri work as well) which has
    a StrongArm 200 MHz (arm v4l)
    32 MB flash, 32 MB RAM

    and as in the above presentation, I chopped the stdlibs in a couple of
    packages so I do not carry all the dependencies around. See
    http://feeds.handhelds.org/ruby/ to get the general idea (polluted with some
    apps) and bear in mind that I have 1.8.3 packages cross compiled as well
    (but not uploaded). mm, I also see that my descriptions are a bit too much
    copy'n'paste.

    Bye,
    Kero.
     
    Kero, Dec 9, 2005
    #3
  4. zimba-tm

    zimba-tm Guest

    T2ssIHRoYW5rcyBhIGxvdCBwcGwgOi0pCgpXaWxzb24sIHRoZSBwYXBlciB3YXMgYSB2ZXJ5IGlu
    dGVyZXN0aW5nIHJlYWQuIEl0J3MgcXVpdGUgZnVubnkgdG8gc2VlCndoYXQgcGVvcGxlIGRvIHdp
    dGggcnVieS4KCktlcm8sIGZlZWRzLmhhbmRoZWxzLm9yZyBzZWVtcyBkb3duIGZvciBtZS4gQXJl
    IHlvdSBzdXJlIGl0J3MgdGhlIHJpZ2h0IGRvbWFpbiA/CgpGb3IgbW9yZSBwcmVjaXNpb25zLCBF
    bHBoZWwgY2FtZXJhc1sxXSBydW4gd2l0aCBhbiBFdHJheCBBeGlzClByb2Nlc3NvciBhbmQgYW4g
    RlBHQS4KSSB3aWxsIGxvb2sgaW50byB0aGlzIGR1cmluZyB0aGUgd2Vlay4KCkNoZWVycywKICB6
    aW1iYQoKaHR0cDovL3ppbWJhLm9yZWUuY2gKClsxXTogaHR0cDovL3dpa2kuZWxwaGVsLmNvbS8K
     
    zimba-tm, Dec 10, 2005
    #4
  5. zimba-tm

    Isaac Gouy Guest

    This is about Smalltalk on small devices, not Ruby, but it may be of
    interest
    http://www.daimi.au.dk/~marius/documents/andersen2004esug.pdf
    http://www.smalltalksolutions.com/smalltalksolutions/pdf/Bak.pdf

    zimba-tm wrote:
    > Hello ruby fellows,
    >
    > I would like to know if anyone has experience with embedding ruby in
    > small devices and if such project exists ?
    >
    > In my current work, I'm using Elphel cameras, mobile phones, etc..
    > But ruby is pretty heavy, plus I don't know if it compiles on ARM or
    > other CPUs.
    >
    > Any hint would be appreciated :)
    >
    > --
    > Cheers,
    > zimba
    >
    > http://zimba.oree.ch
     
    Isaac Gouy, Dec 10, 2005
    #5
  6. zimba-tm

    Kero Guest

    Kero, Dec 12, 2005
    #6
  7. zimba-tm

    Dick Davies Guest

    I just discovered Scratchbox (http://scratchbox.org) and its awesome for
    cross-compilation of biggish apps.

    [ quick overview:

    It's a cross-toolchain for arm and ppc. It's main 'wow' feature
    is that it uses qemu-arm to emulate an ARM host.
    You run '/scratchbox/login' and have root on an emulated ARM, then
    build software.

    All the ease of compilation (i.e. you can just run './configure',
    it ships with an svn client, etc.)
    except an order of magnitude faster (qemu is a bit slow, but i386
    is much faster than arm
    in the first place, so it's a net win).

    For platforms that the emulator isn't good enough for, you can use 'sbrs=
    h'
    to login to the PDA, mount the toolchain and source tree from your
    scratchbox using NFS and build stuff there.

    ]

    Ruby 1.8.3 built with no trouble
    ( ext/dl expected a /bin/sh, but a symlink fixed that) and irb, etc runs fi=
    ne
    in the scratchbox. Now i just need to
    copy the files onto my slug where it can run natively.

    See the quick howto at:
    http://scratchbox.org/documentation/user/scratchbox-1.0/html/tutorial.html

    - that's all i needed, just substituted ruby for glib.
    > zimba-tm wrote:
    > > Hello ruby fellows,
    > >
    > > I would like to know if anyone has experience with embedding ruby in
    > > small devices and if such project exists ?
    > >
    > > In my current work, I'm using Elphel cameras, mobile phones, etc..
    > > But ruby is pretty heavy, plus I don't know if it compiles on ARM or
    > > other CPUs.
    > >
    > > Any hint would be appreciated :)
    > >
    > > --
    > > Cheers,
    > > zimba
    > >
    > > http://zimba.oree.ch

    >
    >
    >



    --
    Rasputin :: Jack of All Trades - Master of Nuns
    http://number9.hellooperator.net/
     
    Dick Davies, Dec 12, 2005
    #7
  8. T24gMTIvOS8wNSwgV2lsc29uIEJpbGtvdmljaCA8d2lsc29uYkBnbWFpbC5jb20+IHdyb3RlOgo+
    IENoZWNrIG91dCB0aGUgIkVtYmVk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gdGhpcmQgdGltZSdzIHRoZSBjaGFybToKCndoaWxlIChUaHJlYWQu
    Y3JpdGljYWwgPSB0cnVlOyBAbG9ja2VkIGFuZCBAbG9ja2VkICE9IFRocmVhZC5jdXJyZW50KQoK
    c29ycnkgYWJvdXQgdGhhdAoKT24gMTIvMTIvMDUsIElsbWFyaSBIZWlra2luZW4gPGlsbWFyaS5o
    ZWlra2luZW5AZ21haWwuY29tPiB3cm90ZToKPiBPbiAxMi8xMi8wNSwgSWxtYXJpIEhlaWtraW5l
    biA8aWxtYXJpLmhlaWtraW5lbkBnbWFpbC5jb20+IHdyb3RlOgo+ID4gVGhlIGxlYWtpbmcgTXV0
    ZXggcHJvYmxlbSBzaG93Y2FzZWQgaW4gdGhlIHByZXNlbnRhdGlvbiBwYWdlIDI3LCBJCj4gPiB0
    aGluayB0aGUgZm9sbG93aW5nIGNoYW5nZSBmaXhlcyBpdCBhdCBsZWFzdCBmb3IgI3N5bmNocm9u
    aXplIDoKPgo+IGZvcmdvdCB0aGUgI2xvY2stcGFydDoKPgo+ICAgZGVmIGxvY2sKPiAtICAgIHdo
    aWxlIChUaHJlYWQuY3JpdGljYWwgPSB0cnVlOyBAbG9ja2VkKQo+ICsgICAgd2hpbGUgKFRocmVh
    ZC5jcml0aWNhbCA9IHRydWU7IEBsb2NrZWQgIT0gVGhyZWFkLmN1cnJlbnQpICMgZ28KPiBhaGVh
    ZCBpZiB3ZSBoYXZlIHRoZSBsb2NrCj4gICAgICAgQHdhaXRpbmcucHVzaCBUaHJlYWQuY3VycmVu
    dAo+ICAgICAgIFRocmVhZC5zdG9wCj4gICAgIGVuZAo+ICAgICBAbG9ja2VkID0gdHJ1ZQo+ICAg
    ICBUaHJlYWQuY3JpdGljYWwgPSBmYWxzZQo+ICAgICBzZWxmCj4gICBlbmQKPgo+Cj4gQW55dGhp
    bmcgZWxzZSBJIG1pc3NlZD8KPgo=
     
    Ilmari Heikkinen, Dec 12, 2005
    #9
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Richard B. Katz
    Replies:
    0
    Views:
    714
    Richard B. Katz
    Dec 4, 2003
  2. ALuPin

    Programming Altera Devices

    ALuPin, Jun 28, 2004, in forum: VHDL
    Replies:
    4
    Views:
    1,521
    ALuPin
    Jun 29, 2004
  3. bobrics

    Using Virtex 4 devices

    bobrics, Feb 17, 2005, in forum: VHDL
    Replies:
    1
    Views:
    536
    bobrics
    Feb 19, 2005
  4. Michael Sars Norum

    Big problems in small devices... J2ME

    Michael Sars Norum, Nov 10, 2004, in forum: Java
    Replies:
    2
    Views:
    382
    Darryl L. Pierce
    Nov 16, 2004
  5. Naveen Vaila

    "Windows CE Devices and Palm Devices Help Needed"

    Naveen Vaila, May 24, 2004, in forum: ASP .Net Mobile
    Replies:
    1
    Views:
    536
    Abraham Durairaj
    Jun 23, 2004
Loading...

Share This Page