Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
58 user(s) are online (4 user(s) are browsing News)

Members: 0
Guests: 58

more...

Support us!

Headlines


Recent Replied Topics
Amiga Events : Ruby for AmigaOS 4
Posted by eXec on 2006/12/16 18:21:53 (6627 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: 1494
 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: 1912
 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: 1408
 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: 1912
 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: 1912
 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
  1774
Logged in last:
  24 hours, 64
  7 days, 129
  30 days, 194

Polls
Running AmigaOS 4 on?
AmigaOne SE/XE or microA1 12% (26)
Pegasos2 3% (8)
X5000 22% (48)
X1000 14% (30)
A1222 8% (19)
Sam 440/460 18% (40)
Classic PowerPC Amiga 2% (6)
WinUAE emulation 7% (16)
Qemu emulation 9% (21)
Total Votes: 214
The poll closed at 2025/12/1 12:00
6 Comments

Random Photo
Amiga 3000UX 030/25mhz NAKED! more amigas to follow..

New Articles List

New Members
3VILC
3VILC 12/06/2025
ldg72
ldg72 12/01/2025
NathanH
NathanH 11/28/2025
AmigaBSD
AmigaBSD 11/26/2025
turbo41
turbo41 11/16/2025
web8bits
web8bits 11/11/2025
Bluewizard
Bluewizard 11/09/2025
ninsei
ninsei 11/04/2025
GetBoinged
GetBoinged 10/26/2025
A1200NG
A1200NG 10/19/2025


Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project