« first day (1927 days earlier)      last day (1853 days later) » 

12:16 AM
posted on February 08, 2016 by ladislav

Currently, it is not possible to define an arbitrary range for random. Examples: if the value is 0, random returns 0 if the value is 1, random returns 1 if the value is -1, random returns -1 if the value is 2, random returns an integer in the 1 to 2 range if the value is -2, random returns an integer in the -2 to -1 range , etc. The problem is that this way it is impossible to define a "f

posted on February 09, 2016 by ladislav

Advantages: PCG is fast, secure, and can yield 64 (pseudo)random bits, while the existing generator yields less.

 
 
12 hours later…
12:44 PM
@HostileFork That link has nothing to do with HTML, and points to a blank line. Is that what you meant to link to? I ask because it's scanner code.
 
@MarkI Hm, weird, it was the right link when I pasted it. I was talking about this stuff, which should be in userspace.
 
@HostileFork That's better! Thanks.
One quickie follow-up, I saw this comment in l-types.h: "As written today, the creation process may call into the evaluator"
You are of course aware that "the creation process" you are talking about is not ever supposed to run the evaluator, right?
The MAKE/TO stuff for everything currently and absolutely does not call the evaluator.
I suppose it is technically possible for someone to make that change, but they shouldn't, and that's what should be commented.
Commented because there is no way to prevent it, if you see what I mean.
Hm. I guess I should have asked this question via source notes, sorry!
 
@MarkI Yes it does.
>> make object! [x: 1 + 2]
 
; Brought to you by: try.rebol.nl
== RESULT is an object of value:
   x               integer!  3
 
>> #[object! [x: 1 + 2]]
 
12:55 PM
; Brought to you by: try.rebol.nl
== RESULT is an object of value:
   x               integer!  1
 
Hm, well it does for some types I think
I think object may be specifically set up to avoid it.
 
@HostileFork Now you're getting it, and NO, it doesn't, I checked.
 
I do not believe there is a particular prevention
 
There isn't because there can't be, as I mentioned!
There should be a comment though, I am surprised there isn't.
But I shouldn't be, surprised that is :)
 
The construction syntax and in general questions of round-tripping have not been outlined, in terms of what guarantees (if any) there are.
 
12:58 PM
Well I think not calling the evaluator from the scanner is a big one. YMMV.
But that does restrict what implementers are allowed to do inside MAKE/TO for their types.
 
Which is reasonable, and if I put a comment there it presumably was in the spirit of "it might do this so that should be looked into". If I said it did it, then presumably it's because I observed a case where it could happen. Which isn't condoning it, but also I cannot attack each possible such thing at the time I notice it.
 
If they allow syntactic construction, that is.
@HostileFork Absolutely not, and I actually like your comment, it's better than nothing, I was not being critical, I'm just detailing things.
Being complete. My curse, actually.
 
If you're here, there's probably more than one curse affecting you.
 
Hey, cursedy! How's that curse I cursed you with?
 
Any witch doctor will tell you that curses are not always simplified down to a single one. It's usually a matter of combined lifestyle factors.
 
 
2 hours later…
2:56 PM
Hm. HELP appears to only look in lib, and it ignores any user-space overrides:
>> aqua: 0 help tuple!
 
; Brought to you by: try.rebol.nl
tuple! is a datatype
It is defined as a sequence of small integers (colors, versions, IP)
It is of the general type scalar

Found these related words:
   aqua            tuple!    40.100.130
   base-color      tuple!    200.200.200
   beige           tuple!    255.228.196
   black           tuple!    0.0.0
   blue            tuple!    0.0.255
   brick           tuple!    178.34.34
   brown           tuple!    139.69.19
   coal            tuple!    64.64.64
 
IMO It should at least say "Found these related words in lib".
 
 
3 hours later…
5:49 PM
I would now call myself nearly 100% confident that the specific binding solution can work. The main problem is that there is a lot of code in the category I'll tend to label "life support" which is a lot of crufty C that could use a going over, and it all is affected rather deeply by the change.
 

« first day (1927 days earlier)      last day (1853 days later) »