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

World: r4wp

[Ann-Reply] Reply to Announce group

GrahamC
14-Jan-2013
[1215]
Yeah ... managed to download something that worked :)
Gregg
14-Jan-2013
[1216]
Thanks for all your work on Red, Kaj!
Arnold
14-Jan-2013
[1217]
I will have a look at this CGI capability of Red soon!
DocKimbel
15-Jan-2013
[1218]
Kaj: I'm looking at your %console-pro.red script and it's really 
enjoyable for me to see all the pieces of Red programming stack put 
together and working well, at this point of the project. Kudos for 
having add script file loading to the console! :-)
Kaj
15-Jan-2013
[1219x2]
Yeah, it's brilliant, the way Red blurs the lines between high level 
and low level programming, and compiling and interpreting, bringing 
them much closer together
Sorry that I continued with the primitive marshalling. I couldn't 
stop myself ;-)
james_nak
17-Jan-2013
[1221]
Andreas, thanks for doing the rebolsource.net site. It is quite convenient.
Andreas
17-Jan-2013
[1222]
Thanks. I'm glad you find it useful.
Ladislav
17-Jan-2013
[1223]
having implemented R3 RANDOM (D.Knuth's algorithm adapted for R3) 
I am curious how are you implementing it in Red
Kaj
17-Jan-2013
[1224x2]
I'm just using the standard functions in the C library, so the details 
are up to the operating system
Most systems seem to generate 31 random bits
Ladislav
17-Jan-2013
[1226]
I'm just using the standard functions in the C library, so the details 
are up to the operating system

 - aha, so different interpreters will yield different random numbers?
Kaj
17-Jan-2013
[1227]
Not really different interpreters; different operating systems
Ladislav
17-Jan-2013
[1228]
OK, thanks
Kaj
17-Jan-2013
[1229]
Perhaps Arnold will come up with a custom standard generator
Kaj
18-Jan-2013
[1230x2]
Sqlab, you're probably using the Red console. The interpreter doesn't 
recognise paths yet, so it can't execute functions with refinements
https://github.com/dockimbel/Red/issues/382
Arnold
18-Jan-2013
[1232x2]
Hi Ladislav, I have tried to make a random function in Red (Red/System) 
I saw your name in theR3 source too. That is Knuth's algorithm adapted 
for R3 and adaption to REBI64 type so you made 62 digits possible.
But my problem with Red/System is amongst others no array, so you 
would keep administration using pointers, but than comes the question 
where to keep it? What starting address to use. And so on :)
Kaj
18-Jan-2013
[1234]
As Doc said earlier, use ALLOCATE
Arnold
18-Jan-2013
[1235x2]
But indeed I do think for such relative simple algorithms you would 
not use calling of C functions unless you want speed etc.

@Kaj, I heard you ;) That would be on http://static.red-lang.org/red-system-specs.html
about section 14.1 examl=ple using malloc I guess. I have very limited 
time off atm :(
Thank you Kaj, Just read Announce now :) !!
Kaj
18-Jan-2013
[1237x3]
:-)
14.1 is just an #import example. ALLOCATE is built in, and it might 
as well not use C code
It's not described in the documentation, but there are many examples 
in the Red code and my bindings
Arnold
18-Jan-2013
[1240]
As soon as I have a little more time I'll hit on it!
Gregg
19-Jan-2013
[1241x2]
The download script sounds great Kaj. May need to look at Fossil 
again. 


What I want is a REBOL wrapper that handles everything for me, let's 
me share and sync simply, and hides whether it's svn, git, fossil, 
etc.
Have to think on that a bit, and find some spare time somewhere. 
:-)
Kaj
19-Jan-2013
[1243x2]
That has been my end goal for many years, so it's just a matter of 
time
This script already hides the use of Fossil. All you need to do is 
download its one file
Gregg
20-Jan-2013
[1245]
More great stuff Kaj! File I/O is a key element.
Bo
20-Jan-2013
[1246]
Hard to keep up with all the stuff Kaj has been doing on Red recently!
Kaj
20-Jan-2013
[1247]
I've been unleashed after a decade in the dungeon :-)
sqlab
21-Jan-2013
[1248x2]
Is this the expected behavior ?

>> do %download.r
Script: "Download or update all Red(/System) extensions" (none)
Target test
Opening Red-test.fossil failed
Target common
Opening Red-common.fossil failed
..
..
And then there are many empty directories.
Ok, works now.
I had to change to "..\fossil open ..
Janko
21-Jan-2013
[1250]
Kaj: awesome work!!
Kaj
21-Jan-2013
[1251x2]
Thanks
Sqlab, do you have Fossil in the same directory as download.r? The 
script changes directories, so on Windows when Fossil is not really 
installed, this could have the effect of not finding it
sqlab
21-Jan-2013
[1253]
Yes, I use Fossil only for your Red bindings.
Kaj
21-Jan-2013
[1254]
Thanks. I've added code to download.r to test if Fossil is in the 
same directory. Can you confirm that this works on Windows?
sqlab
21-Jan-2013
[1255]
maybe tomorrow.
Anyway good work
Kaj
21-Jan-2013
[1256]
OK
sqlab
21-Jan-2013
[1257x2]
It does not work.

There is the problem, that what-dir gives the rebol directory path, 
not the windows path.Even using a "to-local-file what-dir .."  does 
not help, as to local-file does not preserve the trailing (back)\slasjh
sorry this helps
fossil: to-local-file join what-dir  %fossil
Scot
21-Jan-2013
[1259x3]
Just read through Nick's "Business Programming" piece.  Outstanding 
work!  Clear and complete.
I have only two thoughts that might be helpful:


The initial case for REBOL as a non-programmers development tool 
could use some visuals and diagrams.  


This initial message is perhaps the most important part of the piece 
in my view and might be developed into a standalone article to be 
spread around.
I can already think of at least three people who need to read the 
introduction.
Arnold
21-Jan-2013
[1262x2]
And it still relies on R2 combined with VID. That is logical though 
R3 and Red are the new preferred platforms for future development?
(Oh great work anyway!)
Kaj
21-Jan-2013
[1264]
Thanks Sqlab, that really helps. I've added it to download.r