Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
145 user(s) are online (24 user(s) are browsing News)

Members: 2
Guests: 143

VooDoo, eastone, more...

Support us!

Headlines


Recent Replied Topics
Amiga Events : Ruby for AmigaOS 4
Posted by eXec on 2006/12/16 18:21:53 (6494 reads) News by the same author
Amiga Events

Ruby - a dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write.

Grab it from OS4Depot (version 1.8.5).

Printer friendly page Send this story to a friend
The comments are owned by the author. We aren't responsible for their content.
Author Thread
spotUP
Published: 2006/12/16 18:56  Updated: 2006/12/16 18:56
Just can't stay away
Joined: 11/26/2006
From:
Comments: 1492
 Re: Ruby for AmigaOS 4
any chanse that you'll port rubygame too?
great to see ruby ported!
Snuffy
Published: 2006/12/16 22:32  Updated: 2006/12/16 22:32
Just can't stay away
Joined: 12/06/2006
From: Michigan
Comments: 1027
 Re: Ruby for AmigaOS 4
Hi eXec !

Thanks for this. I fiddle with it for awhile.

I enjoyed Perl port by Andy Broad. Did a few Perl tutorials. I would to learn some Ruby now!
AmigaHeretic
Published: 2006/12/17 6:21  Updated: 2006/12/17 6:21
Just popping in
Joined: 12/05/2006
From:
Comments: 124
 Re: Ruby for AmigaOS 4
Great news. Always good to have more ways to program for Amiga. Good Job!
Atheist
Published: 2006/12/17 8:31  Updated: 2006/12/17 8:31
Quite a regular
Joined: 11/28/2006
From: Vancouver, B.C., Canada
Comments: 759
 Re: Ruby for AmigaOS 4
I see that True Basic is also available. Unfortunately, other than AmigaBasic, AMOS Professional, and some success with AOS CLI commands, I haven't been able to pick up weird layouts for programming languages.

I've tried True Basic, and I've seen Blitz Basic code.

I think it was True Basic that had like "A++" for increment, and "==" for equal, and I'll have nothing to do with that.

Biltz Basic was totally ununderstandable to me.

Perl I've seen, and it's totally incomprehensible.
salass00
Published: 2006/12/17 9:34  Updated: 2006/12/17 9:34
Just can't stay away
Joined: 11/30/2006
From: Finland
Comments: 1890
 Re: Ruby for AmigaOS 4
@Atheist

You don't have to use post/pre-increment if you don't want to. You can always write the longer A=A+1 if that is the way you prefer.

Ruby is a very nice language IMO. Here is a small number to english function I wrote:
http://a500.org/n2e.rb

The program runs without problems with the OS4 ruby.

The program produces the following output:
Quote:

65536 => sixty-five tousand five hundred and thirty-six
15 => fifteen
123 => one hundred and twenty-three
299792458 => two hundred and ninety-nine million seven hundred and ninety-two tousand four hundred and fifty-eight
4294967296 => four billion two hundred and ninety-four million nine hundred and sixty-seven tousand two hundred and ninety-six
18446744073709551067 => eighteen billion four hundred and fourty-six million seven hundred and fourty-four tousand and seventy-three billion seven hundred and nine million five hundred and fifty-one tousand and sixty-seven
1024 => one tousand and twenty-four
503 => five hundred and three
155007 => one hundred and fifty-five tousand and seven
Elwood
Published: 2006/12/17 14:59  Updated: 2006/12/17 14:59
Just can't stay away
Joined: 12/09/2006
From: Lyon, France
Comments: 1370
 Re: Ruby for AmigaOS 4
tousand => thousand
No ?
salass00
Published: 2006/12/17 15:18  Updated: 2006/12/17 15:18
Just can't stay away
Joined: 11/30/2006
From: Finland
Comments: 1890
 Re: Ruby for AmigaOS 4
@Elwood

Correct. Thought I fixed that already. Must have forgot to save or something...
Snuffy
Published: 2006/12/17 22:58  Updated: 2006/12/17 22:58
Just can't stay away
Joined: 12/06/2006
From: Michigan
Comments: 1027
 Re: Ruby for AmigaOS 4
hi salass00,

Ruby is a very nice language IMO

How do run a Ruby program -- xx.rb ?

I was expecting a unix shell and see it amiga shell?

I'm a little confused with this "miniruby" build.
salass00
Published: 2006/12/18 6:12  Updated: 2006/12/18 6:20
Just can't stay away
Joined: 11/30/2006
From: Finland
Comments: 1890
 Re: Ruby for AmigaOS 4
miniruby programname.rb

When testing programs you've written you should use:

miniruby -w programname.rb

This enables warnings in the interpreter.

No need to use unix shell.

For language details you can check the following sites:
http://ruby-doc.org/
http://www.ruby-lang.org/en/ (official ruby site)
ssolie
Published: 2006/12/19 21:55  Updated: 2006/12/19 21:55
Amigans Defender
Joined: 11/26/2006
From: Canada
Comments: 986
 Re: Ruby for AmigaOS 4
Thanks for the port!
General
Site sponsors
 
Contact us on discord to advertise here.

Site statistics
Registered members
  1722
Logged in last:
  24 hours, 70
  7 days, 128
  30 days, 189

Random Photo
WB V2 Please don't vote

New Articles List

New Members
Amigafreak02
Amigafreak02 11/15/2024
Drakken
Drakken 11/14/2024
ybbasepiw
ybbasepiw 11/11/2024
Mr_byte
Mr_byte 11/06/2024
ghettofinger
ghettofinger 10/30/2024
VaultDweller
VaultDweller 10/30/2024
Greenslade
Greenslade 10/11/2024
komyash
komyash 09/20/2024
Correine
Correine 09/16/2024
Falke_34
Falke_34 09/14/2024


Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project