« first day (2785 days earlier)      last day (995 days later) » 

3:17 AM
posted on June 16, 2018 by hostilefork

The port state in the following examples contains bytes that are being used by the port, yet appear empty--meaning the bytes won't be copied, and it breaks the invariant of a BINARY! which may trip up in other ways: >> p: open %test.txt >> p/state == #{} >> p: open http://example.com >> open p >> p/state/connection/state == #{} The reason this happens is that th

 
@HostileFork 35% of prep time is spent by make-headers.r while scanning f-dtoa.c
 
@giuliolunati Good find!
I guess as C files go, that's a pretty complex one for the C PARSE rules. Truth be told, we probably don't need a C parser to do what we're doing in the prep step. :-/ But it's good test code, so what we should probably do is understand why that parse is so slow instead of ignoring it!
Can we take Brett's C.lexicals and get a good reproducible "this is stupid slow" parse on f-dtoa.c, that just demonstrates slowness relative to other C files...isolated from the rest of the prep process?
 
 
4 hours later…
7:01 AM
@Oldes In the "is it a bug" category, the device polling when there's a custom polling function does not remove the REBREQ if it returns DR_DONE. But in Poll_Device, if done or error, it is removed. Maybe a detail that will matter to you someday. <shrug>
 
7:12 AM
One of the problems with code that doesn't really assert() or have invariants is when you have questions like "is it working?", the answer is always "uh, maybe".
 
 
1 hour later…
8:14 AM
I guess that polling thing is not supposed to be a bug. The polling function is expected (for some reason) to know the internals of the request linked list, so that's the point of it. It's a per-device polling function, e.g. Poll_DNS(). Trying to unwind how this stuff works so I can get rid of it.
 
8:28 AM
posted on June 16, 2018 by hostilefork

in such a cases it would be helpful to see commit which contain the fix. I pointed to the exact lines, described the exact problem, and if you don't know how to set the length of a binary, you need to fish around for it. In R3-Alpha it was something like this: VAL_TAIL(value) = <some REBCNT>; // sets the tail field TERM_SERIES(VAL_SERIES(value)); // puts a terminator, BINARY! do have

 
9:09 AM
@Oldes Let's keep the stupid issue tracker on issues. But don't ask me to put in more effort on your R3-Alpha irritation than I already do.
If you're going to go around, being counterproductive, wanting to turn people away from my work, not understanding it, not caring to understand it...the fact I would talk to you at all remains a mystery.
 
I'm not going anywhere... I just say, that merging Ren-C is hard as you changed almost everything. While its is quite easy to follow Atronix branch. And if you write stupid comments that I cannot figure out something myself, than I have right to answer. And it looks you have rights to delete my comments. Who cares.
 
@Oldes I deleted all the off topic stuff, including mine.
Let's keep it on the issues.
 
Fine.
Btw... do you have any test where the issue is visible?
 
0
Q: Red-lang Event: symetric of over (not-over)?

user310291https://doc.red-lang.org/en/view.html over mouse Mouse cursor passing over a face. This event is produced once when the mouse enters the face and once when it exits. If flags facet contains all‑over flag, then all intermediary events are produced too. There is no symetric event ? How do I know...

 
@Oldes Well, I was trying to explain the workings of PORT! in R3-Alpha, and was checking to see what I was writing was true in R3-Alpha, and while I was I was doing so I thought "uh, why is that binary empty" and then I found that.
Some cases you might think it would create a problem work around it, e.g. when accept ports are copied... the *sock = *nsock is doing the byte copy.
 
9:21 AM
The question is, why Carl commented this line: github.com/rebol/rebol/blob/…
 
Dunno.
 
I don't have enough knowledge about ports, but as it is original Carl's code, he could have some reason.
 
On the new name for the project I came up with Rebol Enhanced Beta One Language or .. REBOL :-/
 
@Oldes Since it was explicitly commented out, you might be right that it could have been an attempt to hide the data. I don't know. But if that's the intent, it's not a good way to do it.
 
I think that when it was written there was no handle type.
 
9:29 AM
Handles also have no memory cleanup in R3-Alpha, and would leak if the pointers that are Malloc()'d Alloc()'d are not explicitly freed. Using a BINARY! means it falls under ordinary garbage collection.
 
 
9 hours later…
6:37 PM
I suggested that if you say append value-of-type-x value-of-type-y (e.g. the types do not match), then it will act as append value-of-type-x to type-x value-of-type-y. This suggested that to block! of any non-block value should be that value in a block of length one.
And it's now firmed up that **append copy [a b c] _** is going to be `[a b c _]`.
That means `to block!` of a BLANK! has to be `[_]` under this system. That means TO doesn't participate in the "blanks in, nulls out" protocol. I guess that is going to have to be how it is...if a function takes a *full spectrum* ANY-VALUE!, it doesn't participate in that program.
Given the increased role of null, blanks aren't popping up as much these days--unless you make them on purpose. We could thusly say that to string! _ is "_". If you don't want that you're required to throw in an OPT to convert the blank to null. This actually isn't such a bad thing, it means you could write find "a_b" _ and it would give you "_b", which is "how it looks".
 
 
1 hour later…
8:08 PM
@HostileFork No need to call for personal interest in particular. I know it is none of your interest. :-)
 
 
1 hour later…
9:31 PM
@HostileFork [f-dtoa.c slow parsed] Apparently C directives are parsed much slow, and f-dtoa.c has much of them
 
@giuliolunati Ah...well the directive parsing wasn't really working that well either. :-/ Part of the goal was to eliminate them if they were unnecessary, but there were still a lot of unnecessary ones in the results anyway. We should probably look at the whole question of how that is done and redo it better...
I'm heading out @ the moment, but feel free to make a forum post or issue on your findings...maybe you have ideas...!
 
10:01 PM
Is there any disdvantage to automatic type conversion? I know we had that with rejoin.
 
@HostileFork [f-dtoa.c slow parsed] the bottleneck is the **emit-directive** procedure in **make-headers.r**
 
10:17 PM
@giuliolunati I think it needs a different method. I don't really like it going backwards in the buffer.
@GrahamChiu You want Rebol code to be *less" predictable? :-/ We know that we want routines to be polymorphic and distinguish "1" from 1, so it wouldn't be all the time regardless
But I also think that it's best to not automatically convert to leave the door open to such ideas in the future.
If your routine takes a string but callers go around passing integers that get stringified, that ties your hands in the future if you think of a clever use for the distinction...you could break callers passing ints expecting them to be stringified
 
 
1 hour later…
11:40 PM
@HostileFork that's why I was wondering why you wanted automatic type conversion when appending
 

« first day (2785 days earlier)      last day (995 days later) »