• Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r4wp

[Ann-Reply] Reply to Announce group

BrianH
29-Nov-2012
[976x3]
Pekr, he already did port it to ARM Linux, but at the time noone 
working on the project had an ARM machine to test with other than 
an Android phone. And porting the core to Android is the simple part; 
the host would need to be rewritten almost completely for Android 
due to the different application model. Noone was using Amiga either. 
The only alternate platform that was getting any use by the project 
members was Syllable.
Porting the core takes about 5 minutes since it's just a matter of 
getting the compiler settings right. There is almost ne platform-specific 
code in the core. Porting the host code to a new platform can sometimes 
take a rewrite, depending on the application model of the platform.
You have to remember also that when the old R3 project was active, 
cheap ARM computers that could run straight Linux were almost unheard 
of, or were too expensive. Nowadays we have cheap micro-ARM computers 
that can be bought for less than $100 and can be easily experimented 
on.
Andreas
29-Nov-2012
[979x2]
Pekr, he already did port it to ARM Linux, but at the time noone 
working on the project had an ARM machine to test with other than 
an Android phone.


Maybe I fall into the "no one working on the project" category, but 
I had ARM machines available for at least the last 6 years or so. 
Last time Carl was rumored to have ported to ARM (most likely "again"), 
I was certainly around, with ARM machines, offering to test :)
But in any case, I see no indication as to why "porting to (Linux) 
ARM" should _not_ be a matter of 5 minutes, and I also see no real 
reason as to why not to believe Carl when he last claimed to have 
done such a port.
BrianH
29-Nov-2012
[981x2]
Good news: ARM compilers are better now too. They were a bit iffy 
back then.
Andreas, whether you were working on the project before, I certainly 
hope you will be now :)
Andreas
29-Nov-2012
[983x2]
(Just for reference: the last time Carl was reported to have the 
R3 core lib compiled for ARM was 2011-02.)
I'm certainly looking forward to the source release :)
BrianH
29-Nov-2012
[985]
IIRC he actually use the Android NDK compiler to do that build. But 
don't take my word for it.
Gregg
29-Nov-2012
[986]
Arnold, just FYI, I'm tinkering with your redcompiler script, and 
will send you my version soon. When I started with REBOL, many people 
were kind enough to pass on suggestions, to make my code more REBOLish, 
so I try to do the same from time to time. It's not a critique of 
your code, just ideas you can accept or reject.
Arnold
30-Nov-2012
[987]
I like your comments and code and I appreciate it. My script was 
made to make it work so it was pretty straightforward. When I have 
time, hopefully asap, I will update the script on rebol.org with 
your improvements.
james_nak
4-Dec-2012
[988]
Thank you Arnold and Gregg.
Gregg
4-Dec-2012
[989]
Thanks Arnold. You should probably remove all my ** comments, unless 
others want to compare the original, and see what I changed, and 
why.
DocKimbel
4-Dec-2012
[990]
Nice work guys!
Arnold
4-Dec-2012
[991]
Thank you!

Gregg, I left the ** comments as clarification and did not spend 
a lot of time to consider if they were necessary or not. I'll have 
a look at them and clear the comments if they do not add to the flow.
Gregg
4-Dec-2012
[992]
Kaj, do you have specific instructions for running test apps? e.g., 
for Red/System on Windows, should all GTK stuff work, or does it 
require other installations?

Basic MS DOS Red tests ran fine here.

\Red(System) Testing\MSDOS\Red>hello
Hello, world!
?a??e, ??sµe!
??, ??
Dobry den svete

\Red(System) Testing\MSDOS\Red>Fibonacci.exe
Fibonacci 40: 102334155
Arnold
4-Dec-2012
[993]
Iirc, GTK must be installed for the GTK programs to work. It is not 
linked in.
Kaj
5-Dec-2012
[994x2]
GTK is included in the MSDOS directory. Most dependencies for Windows 
are
To get Unicode output on Windows, you need to switch the command 
prompt to Consolas font
Gregg
5-Dec-2012
[996]
Thanks Kaj. I will probably set up a test env for this, since I don't 
want to install all dependencies for this in my main env.
Kaj
5-Dec-2012
[997x2]
No installation is needed. The libraries are simply there and are 
used from that directory. The graphical programs can simply be clicked 
on (although they provide extra output in the command line)
Or perhaps better put, unpacking or syncing the files is the installation
Gregg
5-Dec-2012
[999]
Great. Thanks Kaj.
Pekr
10-Dec-2012
[1000]
Hasn't someone written 6502 emulator for REBOL too? Was it Geomol? 
It would be nice to compare speed-wise :-)
Kaj
10-Dec-2012
[1001x2]
I've never heard of it, but it would be extremely slow
I think Henrik is interested in the topic
Arnold
10-Dec-2012
[1003]
Half a Raspberry, or run two emulators! Good progress Kaj.
Kaj
10-Dec-2012
[1004]
Thanks
Henrik
10-Dec-2012
[1005]
I was interested as a curiosity, but probably not for my own use.
DocKimbel
10-Dec-2012
[1006]
Great work Kaj! Can it be used to emulate 32-bit CPU?
NickA
10-Dec-2012
[1007]
6502 emulater by John Niclasen:  http://www.fys.ku.dk/~niclasen/rebol/language/em6502.r
Kaj
10-Dec-2012
[1008x4]
Oh, that is indeed great comparison material :-)
Doc, it's firmly an 8-bit CPU emulator, but it can certainly serve 
as a general example to implement other emulators in Red/System
Hm, John's emulator uses RebCode, perhaps that's why it slipped my 
mind. It would be fairly fast, but only runs on some REBOL versions
It seems mostly meant for testing RebCode. It lacks a lot of functionality 
needed for emulating a real machine
Endo
11-Dec-2012
[1012]
Great work Kaj.
Geomol
11-Dec-2012
[1013]
Yes, my em6502.r was a test of the speed of rebcode. It was meant 
as a proof-of-concept. I never used it much. It's for the rebcode 
found in REBOL/View 1.3.50, which was the first rebcode version afaik. 
So not compatible with later rebcode.


There also is an assembler: http://www.fys.ku.dk/~niclasen/rebol/language/asm6502.r

and a MOS 6502 workbench: http://www.fys.ku.dk/~niclasen/rebol/language/m6502wb.r

, if anyone can find some use of it.
Steeve
11-Dec-2012
[1014]
I also made a Z80 emulation using rebcode http://www.rebol.org/view-script.r?script=galaga.r
Kaj
11-Dec-2012
[1015]
Cool stuff
DocKimbel
11-Dec-2012
[1016]
Steeve: very cool work, Galaga was one of my favorite Arcade game 
of all time, I wish you could port the Arcade version to Red someday! 
;-)
Endo
12-Dec-2012
[1017]
Great news!! REBOL is now open source!
james_nak
12-Dec-2012
[1018]
Kaj, thanks. 6502 brings back great memories. I got my first and 
only published program in the June 1986 Compute Gazzette with a C64 
program called Quick Key.
Maxim
12-Dec-2012
[1019]
yay,   R3 is now free   :-D
Geomol
12-Dec-2012
[1020]
Wow, did that really happen? :) Could it be the beginning of something 
great?
GrahamC
12-Dec-2012
[1021]
Now we just wait for the freeing of World .. and all Rebol variants 
will be open source :)
Andreas
12-Dec-2012
[1022]
Yay!

$ ./r3 --do 'print system/version'
2.101.0.4.4
Kaj
12-Dec-2012
[1023]
Eh? I thought the next release would be alpha 112?
Andreas
12-Dec-2012
[1024x2]
R3 alpha 112 was 2.100.111
R3 open source is 2.101.0, at the moment.