Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
103 user(s) are online (6 user(s) are browsing News)

Members: 0
Guests: 103

more...

Headlines


Recent Replied Topics
Amiga Events : Ruby for AmigaOS 4
Posted by eXec on 2006/12/16 18:21:53 (6402 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: 1484
 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: 1876
 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: 1363
 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: 1876
 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: 1876
 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
Advertise Here

Site statistics
Registered members
  1671
Logged in last:
  24 hours, 63
  7 days, 128
  30 days, 174

Top Posters
1 kas1e
kas1e 8940
2 Raziel
Raziel 5402
3 LiveForIt
LiveForIt 3771
4 samo79
samo79 3750
5 ChrisH
ChrisH 3582
6 Chris
Chris 3361
7 orgin
orgin 3266
8 328gts
328gts 3014
9 Hans
Hans 2659
10 Antique
Antique 2613

New Members
kishigo
kishigo 03/25/2024
amigait
amigait 03/21/2024
fordprefect
fordprefect 03/06/2024
brufnus
brufnus 02/21/2024
Sugo77
Sugo77 02/11/2024
tomkrk78
tomkrk78 02/01/2024
Radar103
Radar103 01/28/2024
alanb
alanb 01/21/2024
Calab
Calab 01/20/2024
nikitas
nikitas 01/15/2024


Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project