World: r4wp
[#Red] Red language group
older newer | first last |
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 [9014x6] | 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 | |
I'm getting this when running build.r on Linux Mint (based on Ubuntu): | |
Generating apk... /bin/bash: builds/tools/aapt: Bestand of map bestaat niet Signing apk... jarsigner: unable to open jar file: builds/eval-unsigned.apk Aligning apk... /bin/bash: builds/tools/zipalign: Bestand of map bestaat niet ...all done! | |
Bestand of map bestaat niet means the file doesn't exist | |
Arnold 28-Jun-2013 [9020] | life w be so muchh easier ;-) |
Kaj 28-Jun-2013 [9021] | It looks for aapt and zipalign in the wrong place, but they're not available, anyway |
Bo 28-Jun-2013 [9022] | I'm diving into my first attempt at recursion in Red/System. |
james_nak 28-Jun-2013 [9023] | Thanks Doc, that did it. |
DocKimbel 28-Jun-2013 [9024] | Kaj: it worked fine on my Ubuntu system. Did the script download the binaries in builds/tools/ ? If not, can you please trace the reason why it didn't? |
Kaj 28-Jun-2013 [9025] | I didn't see any download activity |
DocKimbel 28-Jun-2013 [9026] | Try to delete the whole builds/ folder and try again. |
Kaj 28-Jun-2013 [9027x2] | It worked now |
I ran the script with R3 first, and it bombed out just before the downloading. It does very little error checking, so the folder structure was already created, and afterwards it skips the download completely | |
DocKimbel 28-Jun-2013 [9029] | Yes, you're supposed to use R2 for Red. ;-) The download is done once only, so it doesn't need extensive error checking, if something goes wrong, just delete the builds/ folder and run it again. |
older newer | first last |