| Poster
| Thread
|
| spotUP |
Re: Ruby for AmigaOS 4 |
#1 |
Home away from home 
|
Posts: 670
|
|
Posted: 2006/12/16 16:56
|
|
any chanse that you'll port rubygame too? great to see ruby ported!
|
|
|
|
|
|
 |
| Snuffy |
Re: Ruby for AmigaOS 4 |
#2 |
Home away from home 
|
From: Michigan
|
|
Posts: 915
|
|
Posted: 2006/12/16 20:32
|
|
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!
|
|
|
_________________
A1-XE/G4 + OS4 =  ...but OS 4.1 is the one to play with now!
|
|
|
 |
| AmigaHeretic |
Re: Ruby for AmigaOS 4 |
#3 |
Just can't stay away 
|
Posts: 124
|
|
Posted: 2006/12/17 4:21
|
|
Great news. Always good to have more ways to program for Amiga. Good Job!
|
|
|
|
|
|
 |
| Atheist |
Re: Ruby for AmigaOS 4 |
#4 |
Home away from home 
|
From: Vancouver, B.C., Canada
|
|
Posts: 668
|
|
Posted: 2006/12/17 6:31
|
|
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.
|
|
|
_________________
Support Amiga Fantasy cases!!! How to program: 1. Start with lots and lots of 0's. 10. Add 1's, liberally.  "Details for OS 5 will be made public in the fourth quarter of 2007, ..." - Bill McEwen Whoah!!! He spoke, a bit late.
|
|
|
 |
| salass00 |
Re: Ruby for AmigaOS 4 |
#5 |
Home away from home 
|
From: Finland
|
|
Posts: 641
|
|
Posted: 2006/12/17 7:34
|
|
@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.rbThe 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
|
|
|
_________________
µA1-C - 750FX 800MHz, 512 MB, 500GB HD (UDMA100), DVD-RW, OS4.1  Sam440ep - 440EP 667MHz, 512MB, 700GB HD, DVD-RW, OS4.1
|
|
|
 |
| Elwood |
Re: Ruby for AmigaOS 4 |
#6 |
Home away from home 
|
From: Lyon, France
|
|
Posts: 552
|
|
Posted: 2006/12/17 12:59
|
|
tousand => thousand No ?
|
|
|
|
|
|
 |
| salass00 |
Re: Ruby for AmigaOS 4 |
#7 |
Home away from home 
|
From: Finland
|
|
Posts: 641
|
|
Posted: 2006/12/17 13:18
|
|
@Elwood
Correct. Thought I fixed that already. Must have forgot to save or something...
|
|
|
_________________
µA1-C - 750FX 800MHz, 512 MB, 500GB HD (UDMA100), DVD-RW, OS4.1  Sam440ep - 440EP 667MHz, 512MB, 700GB HD, DVD-RW, OS4.1
|
|
|
 |
| Snuffy |
Re: Ruby for AmigaOS 4 |
#8 |
Home away from home 
|
From: Michigan
|
|
Posts: 915
|
|
Posted: 2006/12/17 20:58
|
|
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.
|
|
|
_________________
A1-XE/G4 + OS4 =  ...but OS 4.1 is the one to play with now!
|
|
|
 |
| salass00 |
Re: Ruby for AmigaOS 4 |
#9 |
Home away from home 
|
From: Finland
|
|
Posts: 641
|
|
Posted: 2006/12/18 4:12
|
|
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)
Updated: 2006/12/18 4:20
|
|
|
_________________
µA1-C - 750FX 800MHz, 512 MB, 500GB HD (UDMA100), DVD-RW, OS4.1  Sam440ep - 440EP 667MHz, 512MB, 700GB HD, DVD-RW, OS4.1
|
|
|
 |
| ssolie |
Re: Ruby for AmigaOS 4 |
#10 |
Amigans Defender 
|
Posts: 629
|
|
Posted: 2006/12/19 19:55
|
|
Thanks for the port!
|
|
|
|
|
|
 |