r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!REBOL2 Releases] Discuss 2.x releases

Anton
9-Oct-2008
[361]
http://anton.wildit.net.au/rebol/gui/self-hider-btn.r
james_nak
10-Oct-2008
[362]
Even Better. Thanks Anton. You sure make some cool stuff.
Anton
10-Oct-2008
[363]
Thankyou James.
james_nak
23-Oct-2008
[364]
Has anyone ever seen the "Call" word not work? I've been trying to 
simply call %/c/rebol/view.exe and it shows up in task manager but 
I never see the application. It's not just that particular app either. 
The funny thing is I was successful doing that at my work computer.
Graham
23-Oct-2008
[365x2]
yes
try one of the options like call/show
james_nak
23-Oct-2008
[367x2]
Any idea why?
OK.
Graham
23-Oct-2008
[369]
bug
james_nak
23-Oct-2008
[370]
Good idea Doc. That worked.
Gregg
23-Oct-2008
[371]
The show option, and hiding the shell window by default, was a change 
in new releases.
james_nak
23-Oct-2008
[372]
But if I'm not mistaken, you can't stop the shell window from flashing. 
The problem I was having was that the program I was calling wasn't 
showing up at all.
BrianH
23-Oct-2008
[373]
Q: "Any idea why?" call/show

A: Most of the time call is used to run background processes, and 
REBOL <= 2.7.6 did not give you the option, always flashing that 
shell window. Starting with 2.7.7 the called app (and the shell window) 
is not shown by default.
Graham
24-Oct-2008
[374x2]
I was the first to report this problem
See posts from the 21-Mar-2008 and we talk about call, call/show 
and call/shell
amacleod
24-Oct-2008
[376]
Is 2.7.7 released?
BrianH
24-Oct-2008
[377x3]
No, and work on it has barely started. We will have a public development 
release of the new R3 GUI first.
Some of the same people are the ones doing development on both. Priorities 
:)
Sorry, my answer above about call was wrong. It was fixed in 2.7.6.
RobertS
22-May-2009
[380]
.
Tomc
2-Jun-2009
[381]
Hi,
For homework, I was asked about the random number generator in 
my favorite language ... did some experiments but answered 
closed source
 to what "algorithm does it use?" for this part, I got a zero.

So, could someone with access to rebol source or internal doc 

get me information on the algorithms for 'random and 'random/secure

they are probably some flavor of linear congruent generators 
(please don't say RANDU) but multiplictive?  or mixed?  
maybe a PMMLCG? shuffling? QCG? MRG? What constants are used? 
what is the period? how many streams? 


The easiest on you would be just send me the source and let me figure 
it out 

but is that is verboten as much detail as you may send to me (privately)
would be appreciated 

note: the information will only be seen in a distilled form by my 
professor
and not kept by me.

thanks Tom
Ladislav
2-Jun-2009
[382x3]
Hi Tom, I think, that the best what can be done is to put this to 
CureCode (R3 uses the same algorithm, I guess) as a documentation 
bug
posted to CureCode as #879
please use CureCode to add any comments, or even suggestions how 
to change the implementation
Henrik
2-Jun-2009
[385]
Updated headline to be slightly clearer. :-)
Ladislav
2-Jun-2009
[386]
:-D
Henrik
2-Jun-2009
[387]
Good that we don't have an undocumented NO or SOME function :-)
Ladislav
2-Jun-2009
[388x2]
ROTFL
Random: I have a simulation, where I use www.random.org data to make 
sure I am truly random
Tomc
2-Jun-2009
[390]
Hi Ladislav  welcome back 

I have no idea what curecode is ,  assume it is rambo5 or whatever

I don't need random numbers  myself at the moment  (I sometimes use 
hotbits )

I need to answer a homework question with something other than "don't 
know"  

I will go try to find out about curecode
Henrik
2-Jun-2009
[391]
Tomc: http://curecode.org/rebol3/view-tickets.rsp
BrianH
2-Jun-2009
[392x2]
Tomc, look here for the answer, though you might need to do some 
math: http://curecode.org/rebol3/ticket.rsp?id=879
Copied here: Answer: currently, there are two primary random generators:

1. old method, high speed, simple multiplicative:
    next = next * 1103515245L + 12345L;
    tmp = next & 0xffff0000;
    next = next * 1103515245L + 12345L;
    tmp |= (next >> 16);


2. much slower, SHA1() of a repeating pattern of the integer bytes 
(20 bytes total).
GiuseppeC
2-Jun-2009
[394]
Hello, I have big conceptual problems with REBOL objects.  They differ 
a lot from common OOP. Inheritance is done by copying, no accessors, 
function redefinitions needs binding,  the object is composed of 
multiple blocks and I don't know how REBOL compiler interprets them.
BrianH
2-Jun-2009
[395]
They don't differ that much from standard prototype-based OOP. The 
only difference is that delegation is done manually.
GiuseppeC
2-Jun-2009
[396]
I really ask myself why the REBOL object model is so different than 
standard OOP. I need some very good documentation but I have fount 
it nowhere. Does it exists ? Is it one of the best kept secrets ?

I have read that someone was able to buil a full class system using 
REBOL with multiple inheritance but this is a myth for me.
BrianH
2-Jun-2009
[397]
It only differs from class-based OOP. There are at least 3 standards 
for OOP, and only class-based OOP has inheritance.
GiuseppeC
2-Jun-2009
[398x3]
BrianH, I have learnt OOP in Thinking in Java and VB.NET programming 
language.
I admit I know only class-based OOP
However, the question remains the same. Does a good article/documentation 
exists for rebol OOP ?
BrianH
2-Jun-2009
[401x2]
The main reason REBOL's object! model is not class-based is because 
it was initially developed after it became known that class-based 
OOP has a lot of downsides. That's wasn't known about class-based 
OOP at first.
As for the docs/articles, I think they exist but I don't know where.
GiuseppeC
2-Jun-2009
[403x3]
I'll wait for the answer of other people to continue. The I'll start 
experimenting and asking questions. I stopped working using REBOL 
object lot of time ago when I found really difficult to have an unique 
template to build many object with different fuctions.
Also I needed to have the ability to change a function in many objects 
like you do in other languages changing a single pointer to the destination 
fuction.
Late night here. Hope to read you soon !
BrianH
2-Jun-2009
[406]
In prototype-based object languages, you handle code sharing with 
delegation. A "class" is a common object that many similar objects 
delegate to. Since delegation is explicit in REBOL, that means that 
object functions call other object functions or other functions explicitly. 
In the case you mention, you just assign a new function to the word 
in the shared object or global context.
james_nak
2-Jun-2009
[407]
Have any of you ever seen where the request-date requester does not 
display the correct month? For example, it will say May 2009 when 
it is actually displaying June 2009. Selecting a date will give you 
the june date. Using the /date refinement doesn't seem to help either.
kcollins
2-Jun-2009
[408]
Wikipedia has an article about prototype based programming: 

http://en.wikipedia.org/wiki/Prototype-based_programming
Tomc
3-Jun-2009
[409]
thanks BrianH and Ladislav  I found curecode and ticket 879  it will 
do nicely.
Henrik
3-Jun-2009
[410]
james, yes, it's a known bug.