« first day (2159 days earlier)      last day (1621 days later) » 

4:00 AM
>> about
 
; Brought to you by: try.rebol.nl
**************************************************************************
**                                                                      **
**  REBOL 3.0 [Alpha Test]                                              **
**                                                                      **
**    Copyright: 2014 REBOL Technologies                                **
**               All rights reserved.                                   **
**    Website:   www.REBOL.com                                          **
 
 
10 hours later…
1:47 PM
posted on September 28, 2016 by peterwawood

The Red Team has formalised the communication values to which the members of the Red community should aspire. We hope that these values (see below) will help the Red Community remain friendly and helpful as it grows. Peter Values members of the Red community should aspire to when communicating

 
 
1 hour later…
2:50 PM
0
Q: Why does rebol return error with https

user310291According to this page http://www.rebol.com/docs/ssl.html https is supported but when trying with https://dzone.com I got this error ** Access Error: Invalid port spec: https://dzone.com ** Near: read https://dzone.com

 
 
3 hours later…
5:50 PM
0
A: Why does rebol return error with https

DocKimbelThe documentation page you linked especially mentions Rebol/View requirement for SSL support: This feature is now available in REBOL/View as of 2.7.7.

 
 
1 hour later…
7:06 PM
@HostileFork qsort.r is failing with: ** Script error: lib-make doesn't have RETURN: enabled for library!
because typeset.payload.bits is 0x0003fffffffffffe and REB_LIBRARY is 0x32
I wonder where typeset is initialized
 
Well, I guess this is one way to make a function non-recursive. But is it really worth it? I am asking seriously about this:
>> spec-of :replace
 
; Brought to you by: try.rebol.nl
== [
    {Replaces a search value with the replace value within the target series.}
    target [series!] "Series to replace within (modified)"
    search "Value to be replaced (converted if necessary)"
    replace {Value to replace with (called each time if a function)}
    /all "Replace all occurrences"
    /case "Case-sensitive replacement"
    /tail "Return target after the last replacement position"
    /local save-target len value pos do-break
]
 
Notice the third parameter name, and that it can be a function.
IMO this is a cardinal sin, but perhaps it needs to be there, just to emphasize the language's quirkiness, I don't know.
"Replace is the value to replace the value to be replaced with" ... it just doesn't really scan.
This dude is the biggest hellraiser too, what with it co-opting three of the most highly used functions in Rebol: all, case, and tail.
I'm surprised anyone can parse the code at all, let alone easily, given that.
That however does mean it's a really good example though ... if it works.
 
7:39 PM
@ShixinZeng hmmm...the only two disabled by default are supposed to be void (opt) and FUNCTION!
@MarkI Yes, BrianH liked doing this sort of thing. It is interesting in the sense that being able to do it shows the malleability.
 
@HostileFork I guess expressivity is the enemy of clarity? :)
 
I would agree that it's not ideal, but studying these cases helps motivate methods of disambiguation...kind of a thought experiment.
 
I know there was an obfuscated Rebol example, and I'm not saying replace is confusing. It is borderline though, and clearly so.
 
@MarkI Expressivity is the enemy of regimentation. But not all regimentation maximizes clarity.
 
@HostileFork I think this is causing the issue: #define TS_VALUE ((FLAGIT_KIND(REB_MAX_VOID - 1) - 1) - FLAGIT_KIND(REB_0)), REB_MAX_VOID is 0x33, (FLAGIT_KIND(REB_MAX_VOID - 1) - 1 thus gives 0x0003ffffffffffff, which doesn't include the bit for REB_LIBRARY
I think the TS_VALUE should be TS_VALUE ((FLAGIT_KIND(REB_MAX_VOID) - 1) - FLAGIT_KIND(REB_0))
 
7:47 PM
@HostileFork <drawing fake-wetted finger down imaginary scorecard for you>
 
@ShixinZeng ah. Looks good from here!
 
@HostileFork After this change, that error went away. Now need to fix something else
@HostileFork I just noticed that r3 doesn't print the backtrace when it quits due to an error.
 
8:10 PM
@ShixinZeng The debug build should probably do as much as it can to track an error... release I dunno
 
@HostileFork hmm, I am running a debug build, and it just gives me: $ ../r3-build/win64/Debug/r3-view.exe zoe.r
** Script error: selected-widgets has no value
 
@ShixinZeng That looks like an error that was trapped and printed vs FAIL'd
>> print try [1 / 0]
 
; Brought to you by: try.rebol.nl
** Math error: attempt to divide by zero
** Where: / try try do either either either -apply-
** Near: / 0
 
Hm. Well that had the near info in it.
 
Right, that's something I'm looking for
 
8:21 PM
Ren-C should do the same (sorry, I'm on the cell phone right now)
 
No, it does not
 
If it doesn't that's a bug
 
>> print try [1 / 0]
** Math error: attempt to divide by zero

>> quit
 
If you trap it, is the info in the error?
E.g the error object (not printed) has the trace or no?
 
>> e: try [1 / 0]
== make error! [
[self: code type id message near where __FILE__ __LINE__]
[
code: 4000
type: Math
id: zero-divide
message: "attempt to divide by zero"
near: [1 / 0 ??]
where: [/ trap either try]
__FILE__: %/home/zsx/r3-dev/src/core/t-integer.c
__LINE__: 422
]
]
 
8:24 PM
Well it's there, just not getting printed for whatever reason. :-/ looks like print of errors needs fixing
 
OK, I'll take a look
Thanks
 
 
1 hour later…
9:26 PM
@HostileFork found the issue:
diff --git a/src/core/s-mold.c b/src/core/s-mold.c
index 45d1893..c8af199 100755
--- a/src/core/s-mold.c
+++ b/src/core/s-mold.c
@@ -1142,7 +1142,7 @@ static void Mold_Error(const REBVAL *value, REB_MOLD *mold, REBOOL molded)

// Form: ** Where: function
value = &vars->where;
- if (VAL_TYPE(value) > REB_BLANK) {
+ if (VAL_TYPE(value) != REB_BLANK) {
Append_Codepoint_Raw(mold->series, '\n');
Append_Boot_Str(mold->series, RS_ERRS+2);
Mold_Value(mold, value, FALSE);
@@ -1150,7 +1150,7 @@ static void Mold_Error(const REBVAL *value, REB_MOLD *mold, REBOOL molded)
 
@ShixinZeng Ah, good catch! We should probably go over all the > REB_XXX or < REB_XXX things.
Any such comparisons should be more explicit macros (in the cases they are correct)
 
@HostileFork good point
$ git grep '> REB_'
src/core/f-stubs.c: assert(kind > REB_0 && kind < REB_MAX);
src/core/f-stubs.c: assert(kind > REB_0 && kind < REB_MAX);
src/core/t-block.c: if (VAL_TYPE(head + end - 1) > REB_BLANK) break;
src/core/t-block.c: if (VAL_TYPE(head + index) > REB_BLANK) break;
src/core/t-block.c: if (VAL_TYPE(head + index) > REB_BLANK) {
src/core/t-object.c: if (VAL_TYPE(var) > REB_BLANK && !GET_VAL_FLAG(key, TYPESET_FLAG_HIDDEN))
src/core/t-object.c: if (VAL_TYPE(var) > REB_BLANK && !GET_VAL_FLAG(key, TYPESET_FLAG_HIDDEN)) {
Or this:
$ git grep '[><] REB_'
src/core/b-init.c: assert(n < REB_MAX);
src/core/b-init.c: for (n = 1; n < REB_MAX; n++) {
src/core/c-error.c: assert(expected < REB_MAX);
src/core/c-error.c: assert(actual < REB_MAX);
src/core/c-eval.c: assert(f->eval_type < REB_MAX);
src/core/d-print.c: if (VAL_TYPE(value) < REB_MAX) Debug_Str(cs_cast(Get_Type_Name(value)));
src/core/d-trace.c: if (VAL_TYPE(var) < REB_FUNCTION)
src/core/f-stubs.c: assert(kind > REB_0 && kind < REB_MAX);
 
Those REB_BLANK ones are maybe worrisome.
 
Yep, I'll take a look tomorrow
talk to you later
 
@ShixinZeng Sorry again that I'm still traveling, not having all that much time to code. Maybe settling in for a bit, though, the next weeks.
I am halfway done with the user native tweaking
It really is cool. :-)
 
 
2 hours later…
11:11 PM
Hello :)
 
@Dsafds Hello homekey-based Ultron variant...
@Dsafds Since you like OSes, some humorous (yet true) context: youtube.com/watch?v=BMuJXsuD0LQ
 
11:53 PM
Ahhhh had to go sorry :(
@HostileFork ahahahahah
"Quality"
OK it's still hard to make but compared to modern OS's lol..
 

« first day (2159 days earlier)      last day (1621 days later) »