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

World: r4wp

[#Red] Red language group

DocKimbel
28-Jun-2013
[8967]
I'm trying to extend the build script for other platforms, but my 
Ubuntu 11.04 image somehow got stuck with old source repository versions 
and no way to install/update any packages...So I now need to install 
a 12.04 package in order to check the requirement for the build script 
and test it. I'm baffled that the support for a 2 years old Ubuntu 
version is so bad...
Pekr
28-Jun-2013
[8968]
How was the movie? Seen trailer, liked it ...
DocKimbel
28-Jun-2013
[8969x3]
I've found the trailer better than the movie, I was quite disappointed 
(I'm a huge DC comics fan)...the "epic" moments weren't that much 
epic to me, so the whole movie (2h30) was a bit borring...The Krypton 
civilisation and display technology were the most interesting parts 
to me. ;-) Actually, the movie reminded me a lot the "Tree of Life", 
like a mosaic of sequences, and with almost the same soporific audio 
track... No real breathtaking moments...Even the mandatory "love 
story" sounds fake... The fx +  3D was too much to me, you're quickly 
lost in the fight sequences. But that's just my opinion, others might 
like it very much. ;-)
If only Zack Snyder had chosen to adapt the "Red Son" instead...*that* 
would have been epic! ;-)
(Or "DC 1million" instead, with the original Superman coming out 
from the Sun core after 80k years of hibernation and meeting with 
the 843th Century's Superman with its incredibly enhanced abilities) 
;-)
Andreas
28-Jun-2013
[8972x2]
11.04 is a non-LTS release, support officially ended Oct 2012.
For out-of-support distros, the package sources move to a different 
server.
DocKimbel
28-Jun-2013
[8974]
Yes, I tried every 11.04 moved repo URL I could found online, none 
worked for me.
Andreas
28-Jun-2013
[8975]
If you switch your apt sources to old-releases.ubuntu.com, things 
should work again.
DocKimbel
28-Jun-2013
[8976x2]
Tried that, didn't work...
But I did it through Synaptic, I might try to do it manually...
Andreas
28-Jun-2013
[8978x2]
deb http://old-releases.ubuntu.com/ubuntu/natty main restricted
(A correct entry for /etc/apt/sources.list, for reference.)
DocKimbel
28-Jun-2013
[8980]
Yes, that's what I've inputted (though, I missed the "restricted" 
part).
Andreas
28-Jun-2013
[8981x2]
restricted is not strictly necessary.
Different package sections; for all of them it'd be "main restricted 
universe multiverse".
DocKimbel
28-Jun-2013
[8983x2]
I'll check the sources.list file in 11.04 once I finish installing 
12.04.
I can't even find a way to open a terminal in 12.04...why do they 
need to mess up things like that on new versions...
Andreas
28-Jun-2013
[8985x2]
Because they decided to switch to "Unity" ...
(Which isn't unequivocally liked or well-received ...)
DocKimbel
28-Jun-2013
[8987x2]
Synaptic wasn't updating the sources.list file correctly, changing 
it manually seems to have fix it. At least, I can now install a JDK 
package.
It's funny that they consider opening a terminal, a 2nd class feature 
while LibreOffice comes preinstalled (thanks for the bloat) and many 
icons shortcut are present right on the desktop...I can understand 
now why old linux users got pissed off...
Kaj
28-Jun-2013
[8989x2]
Bo, after sleep, here's one last optimisation for you grayscale comparison 
loop:
img1: img1 + 1
...
im1: (as-integer img1/1) + img1/2 + img1/3 / 3
img1: img1 + 4
Bo
28-Jun-2013
[8991]
Thanks!
DocKimbel
28-Jun-2013
[8992]
APK build script now works on Linux!
Kaj
28-Jun-2013
[8993]
Very cool
Arnold
28-Jun-2013
[8994]
I am facing this terrible message again and again.
*** Error: word has no value!
I want to know the name of the troublemaker!!
Kaj
28-Jun-2013
[8995x2]
That would be the word you're trying to access before it's defined
It would indeed help if its name were printed
Arnold
28-Jun-2013
[8997x5]
Yes and it is before any print I built in and I am sure there are 
prints before it comes there....
redefining sure.. :)
messed up something completely different along the way. But indeed 
naming the evildoer would have saved a lot of energy.
Is there a difference calling function from Red in included reds 
script vs calling it from a fellow reds script?
Does the #system-global [#include %random-taocp.reds] change 
random-seed: function [seed [integer!]][
    random-taocp/ran_start seed
]
to not longer working?
Bo
28-Jun-2013
[9002]
Sorry.  I don't know anything about that.
Arnold
28-Jun-2013
[9003x2]
Could it have to do with the context random-taocp ?
Have put some files in the folder Red/random compiled randomtest1.reds 
just yet and it still works. But the red script rndtst003.red compiles 
to give an error and not even print the line that was printed in 
ran_start function
ran_start in random-taocp.reds value seed: 310952
Add this to the issue list?
Kaj
28-Jun-2013
[9005x2]
A Red program is very different, because it includes the entire Red 
environment and runtime, which is much larger than the Red/System 
environment
How are you calling your Red/System function from Red?
Arnold
28-Jun-2013
[9007]
exactly like I do as I would from the reds counterpart.
Kaj
28-Jun-2013
[9008]
That can't work. You can't call Red/System functions in Red
Arnold
28-Jun-2013
[9009]
??????
Kaj
28-Jun-2013
[9010]
Are you making calls from Red to Red/System, or are you only including 
a #system-global []?
Arnold
28-Jun-2013
[9011]
I shared all relevant files. In my view I include using the #system-global 
in randomf.red and I make the calls also via this intermediate red 
script calling random-taocp/ran_start from the random-taocp context 
in the %random-taocp.reds script
Kaj
28-Jun-2013
[9012]
Where are the latest ones?
Arnold
28-Jun-2013
[9013]
For convenience I kept all scripts in one folder, and rightly so, 
it is hard enough already.

Eh latest ones? in the Red/random (I deleted the randompublic folder 
because it was old and had old files in it anyway)
Kaj
28-Jun-2013
[9014x3]
Well, there you have it. In randomf.red you're using Red/System functions 
and contexts as if they're Red code. They're simply not defined in 
Red
To call Red/System code from Red, you have to write a ROUTINE to 
wrap the differences and marshall the arguments:
https://github.com/dockimbel/Red/commit/1426d1e70d4eaac19444d120f3bbdaa2fa2e438a