« first day (1860 days earlier)      last day (1920 days later) » 

1:10 AM
Well, I've shaved 192 bits off of every block, paren, and path allocated in the system.
Considering that just booting gives you 9440 "ANY-ARRAY!", how many bytes is that RebolBot?
>> 9440 * (192 / 8)
 
; Brought to you by: try.rebol.nl
== 226560
 
That's on 64-bit, 32-bit will be half that.
Not-too-shabby
And of course, lots of series made and worked with after boot, but that's just the impact on the boot footprint.
 
 
1 hour later…
2:26 AM
@johnk This is a small prep change before the giant changes for object/module, if you don't mind testing to see how it works for you let me know: github.com/metaeducation/ren-c/commit/…
The way it's done now is quite convoluted. make module! [[spec][body]] calls into the system, which then calls out to Rebol code of the routine make-module*. That routine then produces an empty object which will be what you'd think of as the usual key/values you'd expect for that body based on the top-level set words, using guidance from the spec.
Then that routine turns around and calls to module! on the object, and also asks it to store the "spec". :-/ It presumes that running to module! will give you back a module! whose binding identity is identical to the object! you passed in...so that this new module you create doesn't have its own frame, and all the bindings will be such that when the body is executed it will do its assignments into this "new" module.
But I'm pleased to say that on my branch here, FRAME! is dead (yet the executable passing the tests and building hostilefork etc.), and I think module! can be dead...and so can make-module*, leaving only the MODULE generator.
 
 
8 hours later…
10:15 AM
So it is still kind of a bummer that FUNCTION and OBJECT are nouns, and then here's MODULE wanting to be another noun-that-verbs. m: module ["spec"] [body]. What about modularize ?
module: modularize ["spec"] [body]. Then maybe the new object could be objectify :-)
object: objectify [spec] [body]
We could also be less silly and use hyphen forms. make-object, make-function, make-module.
 
 
3 hours later…
 
1 hour later…
2:20 PM
posted on December 04, 2015 by Edoc

Following on the web service question, has anybody seen a script that can encode (and double-encode) strings with entities for safe use in XML? https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references

 
 
2 hours later…
3:52 PM
>> find [fred] immediate!
 
; Brought to you by: try.rebol.nl
== [fred]
 
Er ... what?
The documentation for FIND is a little thin on this one. Datatypes match by type, not by value?
>> find reduce [any-word!] any-word!
 
; Brought to you by: try.rebol.nl
== [make typeset! [word! set-word! get-word! lit-word! refinement! issue!]]
 
>> find reduce [any-word!] typeset!
@RebolBot alive?
 
3:58 PM
>> find reduce [any-word!] typeset!
 
; Brought to you by: try.rebol.nl
== [make typeset! [word! set-word! get-word! lit-word! refinement! issue!]]
 
Even weirder. Appears they match by type and by value. Groan.
So it is impossible to find whether the datatype! datatype is in a block of datatypes, because everything will match.
 
 
2 hours later…
6:04 PM
@MarkI Yes, FIND is poorly specified.
 
6:18 PM
>> find [<foo>] "foo"
 
; Brought to you by: try.rebol.nl
== none
 
>> <foo> = "foo"
 
; Brought to you by: try.rebol.nl
== true
 
Rebol has too many different competing notions of equality, and no real rhyme or reason to which it uses when.
I propose that rather than contemplate the issue, we should rewrite it in assembly first.
But let's not use an existing documented assembly... instead let's take a step back and design the assembly language and include all of Rebol's existing problems in that.
Because once the whole thing runs faster, people will love it.
 
6:31 PM
My own proposal would be that FIND and SELECT follow the logic of equal? unless they are given the /strict switch in which case they follow strict-equal?
red> <foo> = "foo"
 
; Brought to you by: try.rebol.nl
*** Script error: <foo> has no value
*** Where: =
*** Stack: do-console all not unset? set do first head reduce do* _execute if all not unset? set do first head reduce do* =
 
 
2 hours later…
8:44 PM
@HostileFork Do you mean Push_Trap_Helper and Trapped_Helper_Halted, in c-error.c ?
 
9:01 PM
@giuliolunati Yup!
It's too bad git line comments on deltas do not work if you've run a giant conversion. Otherwise, if you have a question about a line of source you can click on the blame log... go to the version... and then leave a remark. But if you go to the diff and it's too big to show, GitHub won't let you comment on lines in it. :-/
@Brett I feel like we're broken from history mostly at this point anyway, so we might want to go ahead and start a fresh repository, where RebolBot commits one file at a time... maybe the moment to do that is a redo of the file headers to put in a new Rebol-loadable data format (parallel to the function comments) and update the copyrights and credits/etc.
Clones will be faster, the repo will take up less disk space, and a copy can be kept off the side for those historically interested. ren-c-archive
 
 
1 hour later…
10:11 PM
@HostileFork need your help to debug:
this line --> REBSER *ser = Copy_String(mo.series, mold_tail, -1);
gives me error --> 1 leaked REBSERs during Do_Core - Panic_Series() on most recent...
 
10:28 PM
@giuliolunati You must either decide if you want to Free_Series() on the copy or if you want to give it to the GC say MANAGE_SERIES() on it.
Once you say MANAGE_SERIES(), if you do not guard it, there are many operations which might make it vanish out from under you...
If you put a string series into a REBVAL, with Val_Init_String(), that will automatically manage it for you if it is not already.
By the time a Do_Core() ends, everything must balance so all the allocated series since that Do_Core() started have either been freed or given to the GC. If you ever have trouble wondering where a leaked series is coming from, use Panic_Series (when running under Valgrind or Address sanitizer)
If you wish to run under address sanitizer, add this to your makefile:
SANITIZE= -fno-omit-frame-pointer -fsanitize=undefined,address -L/usr/local/lib -I/usr/local/include

; add $(SANITIZE) to your RFLAGS and HFLAGS lines
; then change your CLIB line to look like:

CLIB= -ldl -lm -fsanitize=address,undefined -L/usr/local/lib -I/usr/local/include -lasan -lubsan
I very much suggest using address sanitizer! Valgrind does much the same, and even checks a couple things address sanitizer does not. It also can work without needing to mess with the makefile. But it is a lot slower, and you sort of have to remember to run it...and it makes debugging a little trickier because the program you are running is valgrind running rebol, not just rebol.
 
@HostileFork just tried a quick test. Works to a point then a crash. Not time to debug now, but here is the error message if that helps
r3: ../src/core/n-data.c:1016: VAL_TYPE_Debug: Assertion `!((v)->flags.bitfields.type == REB_TRASH)' failed.
It had loaded modules and made https requests successfully. The failure happened responding to a message. I'll look into it later today
 
10:46 PM
@johnk Thanks! I need to make sure everyone is set up with a debug build so they can see the state of the crash and let me TeamViewer it or (preferably!) learn to debug...! Working today on more changes in the modify-with-confidence goal, hope it to make things much more transparent on this object/module/port/error stuff...
 

« first day (1860 days earlier)      last day (1920 days later) »