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

World: r4wp

[Rebol School] REBOL School

Nicolas
2-Nov-2012
[1448x2]
I made a program that embeds a dll to generate a cellular automaton 
image. Could someone test it for me?     http://pastebin.com/raw.php?i=67KtcSK3
windows only
Maxim
2-Nov-2012
[1450]
seems to work here  (a big triangle filled with some recursive inverse 
triangles)
Nicolas
2-Nov-2012
[1451x3]
yay!
Thanks.
I'm curious. Is there anyway to access a binary function like this 
without writing it to a dll or shared object I wonder?
Endo
2-Nov-2012
[1454]
works here too, xp/pro 32bit.
Nicolas
2-Nov-2012
[1455x3]
I'm mostly worried about big endian machines
The triangle is a cellular automaton. This one is a good source of 
randomness according to Stephen Wolfram.
Thank you Endo, Maxim
Marco
2-Nov-2012
[1458]
Works the same for me on W7 64bit.
Arnold
5-Nov-2012
[1459]
I need to save some stack space for my evaluation routine runs out 
of stack with the search-depth on 2 (I had expected this but than 
on depth 5 or so)

can unset help? Is there a method to keep track of the stack? To 
see how much you have and use up?
Sujoy
5-Nov-2012
[1460x2]
hi all
am trying to use Kaj's 0mq bindings on an aws micro instance.
i have rebol-core 2.7.8.4.3 installed
when i do %ZeroMQ-binding.r2, i get:

Script: "ZeroMQ Binding" (none)
** Script Error: Feature not available in this REBOL
** Where: context
** Near: binary: make struct! [value [binary!]] none
Any ideas?
this works fine on windows7 with rebol-view 2.7.8
PeterWood
5-Nov-2012
[1462]
REBOL/core does not include the ability to call shared libraries. 
REBOL/View does.
Sujoy
5-Nov-2012
[1463x10]
rats
trying rebol-view
now getting this:


./rebol: error while loading shared libraries: libX11.so.6: cannot 
open shared object file: No such file or directory


any experience running rebol-view on aws? looks like some libs/headers 
are missing...
libX11 and libX11-devel are loaded on the instance...
linX11.so.6 is located in /usr/lib64, and i'm guessing that rebol 
is looking in usr/lib
loaded all i686 extensions to the 64bit instance
now get:

$ ./rebol -v
** User error: Bad face in screen pane!
** Near size text self
shouldn't ./rebol -v open the console on linux directly?
note: this is happening with MaxV's http://www.maxvessi.net/rebsite/Linux/
2.7.8 as well
just saw this:
http://www.rebol.org/aga-display-posts.r?post=r3wp226x4139
trying a reboot
no luck with rebooting...
Sujoy
6-Nov-2012
[1473x4]
xfonts-100dpi and xfonts-75dpi installed (yum install xorg-x11-fonts-100dpi.noarch 
and xorg-x11-fonts-75dpi.noarch)
damn. >2 hrs and no luck
any ideas anyone?
read somewhere that Xvfb may need to be used - no luck yet... :(
ok - finally got it to launch the console

two more dependencies loaded:
1. xorg-x11-xvfb.x86_64
2. xorg-x11-xauth.x86_64

then:
$ xvfb-run ./rebol -vs

>>

works!
MaxV
6-Nov-2012
[1477]
Sujoy, what distro are you using?
Sujoy
6-Nov-2012
[1478]
Amazon Linux AMI 2012.09
MaxV
6-Nov-2012
[1479]
WOW, I didn't know of the existence of Amazon Linux. 

It has a very particular configuration for cloud and not for graphic, 
so you need Xvfb.
Sujoy
6-Nov-2012
[1480x2]
:)
took a while to figure out, but i found your posts on altme
MaxV
6-Nov-2012
[1482]
However if you have trouble with more "classic" distro, let me know, 
so I'll correct the installer packages. See also this: 
http://rebol2.blogspot.it/2012/09/linux-packages.html
Sujoy
6-Nov-2012
[1483]
thanks MaxV
NatasjaK
6-Nov-2012
[1484]
With Kaj here I've got my own private school, but I still am curious, 
so taking a look here. Goodmorning.
Sujoy
6-Nov-2012
[1485]
Kaj - i've been trying to run the ZeroMQ bindings on an Amazon Linux 
AMI (took a while to get Rebol View running!)

I have installed and built zeromq from the source, but the result 
is a 64bit build, so rebol complains:

wrong ELF class: ELFCLASS64

would you happen to have a 32bit libzmq.so i can use?
NatasjaK
6-Nov-2012
[1486]
Sujoy - Kaj is still asleep, I will tell him you asked this question 
as soon as he's awake.
Sujoy
6-Nov-2012
[1487]
:) thanks Natasja
NatasjaK
6-Nov-2012
[1488]
Welcome Sujoy :)
Kaj
6-Nov-2012
[1489x3]
Sujoy, you're in luck; last week I added most dependency libraries 
for Windows to my Red testing repository:
http://red.esperconsultancy.nl/Red-test
They're in the MSDOS folder. The 0MQ library is a bit old, because 
newer available versions are a bit harder to unpack in Windows, but 
it's sufficient for my bindings
Sujoy
6-Nov-2012
[1492]
Hi Kaj
Am actually trying on an aws instance (amazon linux 2012.09)
would you have the .so files?
Kaj
6-Nov-2012
[1493x2]
Ah, as Natasja said, not very awake yet here. Sorry
I'm not planning to add Linux binaries, as they're very dependent 
on the Linux distribution
Sujoy
6-Nov-2012
[1495]
true
Kaj
6-Nov-2012
[1496]
It would be best to force a 32 bit compile on your AMI. If that's 
problematic, best install some 32 bit distro and extract them from 
there
Sujoy
6-Nov-2012
[1497]
got it working just as you said. forced a 32bit compile of zeromq
works - i can now do %ZeroMQ-binding.r2 with no issues
more anon