« first day (1966 days earlier)      last day (1814 days later) » 

4:32 AM
@HostileFork Thanks for the suggestions and pickup on the bugs. I have incorporated these. I have also made an consistent ordering of key appearance. I've place File in third position since it doesn't really make sense to come last, but it's easy enough to have a different order. I can make the values ragged rather than aligned, but then File would look better last in that case.
Though then, maybe later there will be other keys that make more sense being last.
 
 
1 hour later…
5:34 AM
@Brett I'm definitely an anti-manual-alignment person (hate adding one new thing that requires changing many lines)...so ragged is okay with me. But perhaps then File: should be first?
@Brett The homepage there is in quotes (at least in some files) and should probably be a URL literal. I wonder if Branch: ren-c should be its own line. :-/
Putting Branch: ren-c on its own line, or at least not in quotes, is probably a good idea so that a curly brace string isn't needed on the project.
Anyway, it doesn't particularly matter as long as the stuff is Rebol formatted and easy enough to have a read-in-and-spit-out transformation.
 
 
1 hour later…
6:58 AM
@HostileFork Oops, fixed homepage. I don't see the value of putting Ren-c in quotes, perhaps just leave unquoted. Eg. "Rebol 3 Interpreter and Run-time (Ren-C branch)" or "Rebol 3 Interpreter and Run-time - Ren-C branch". Branch: ren-c on it's own line would be meaningful if there were values other than ren-c. I removed the alignment and reordered the keys as [File Summary Section Project Homepage]. This formats well and is easier to read quickly.
See the latest changes.
 
@Brett Works for me. Why don't you PR that, and I'll take care of the CREDITS.md file separately
 
@HostileFork Will do. I'll just pull your latest changes first.
1 change.
 
There are a whole-lot-of-changes on the specific binding branch, but I'll worry about merging those myself
And now you're free of the header conversion--so onto anything-but-that :-) I've merged up Ren Garden so it's running against all the current changes including specific binding, and amazingly it does appear to be working.
 
@HostileFork That's great
 
7:07 AM
@HostileFork Brilliant
 
Impressive :)
 
One mechanical thing is that there's no UI in the core for debugging, which means that the Ren-C GUI has to have its own code for it against the basic api
 
That's what I like about your work, taking things to the next level rather than assuming the status quo is good enough.
4
 
Tx. :-)
It makes sense for Ren Garden to have its own debugger code--you want to see a nice list box or tree widget or whatever for the stack. But then the question is, do you want the console GUI commands to work too
@giuliolunati See above pending REPL code --^ I don't know how it will affect your emscripten build...
@Brett I'm going to stick with the vision statement or suggestion that we try to build up some kind of demo incorporating Trello, and pushing on that
Among the things that have stayed relevant that Rebol interfaces with, Trello is a pretty big one, and it's something I personally use and like
 
7:18 AM
@HostileFork Glad you're using it. I imagine you'd have some ideas for a dialect that would make life more productive with it too.
 
I've really only gotten as far as the "I think this is where a good demo could come from" level of thinking. There needs to be parse debugging, and now that frames and specific binding work I should probably do that.
I did change it so that what parse does internally is use the same kind of structure that a function call does. When you are running code in a function call, it has a position of the source it is running...and then some args and locals as value cells.
Now recursions in parse use that same structure, except instead of the position being a position in code being DO'd, it's on the rules being processed.
 
That sounds nice.
[I broke the build :( - looking into it ]
 
The first "variables and local" is the ANY-SERIES! position current for the input. The second is the flags applicable to that level (so case-sensitivity-etc, currently an integer where the flags are bitwise, just persisting what was there). The third is a result being passed up.
So if you broke in the debugger, you'd see recursions in parse as these "fake functions" that would look like natives.
Those 3 arguments aren't necessarily ideal--the first one is pretty obvious, but a weird bit-flags-integer of the casing and such doesn't necessarily make sense, nor does this return result which should be using the ordinary return slot.
However, I just did the first step of getting PARSE away from using its own "parse state" structure and using the same structure as a function call, as a rote mechanical step
Before doing step-over, step-in, step-out design I wanted to have parse wired in so that however it was done would apply to both. One question is if to make it smooth, if there needs to be a BREAKPOINT instruction in parse or if (breakpoint) executed in parentheses would be good enough.
 
@hostilefork Um where should I be looking for this error:
gcc ../src/core/a-constants.c -c -DTO_WINDOWS -DTO_WINDOWS_X86 -DREB_API -DENDIAN_LITTLE -O2 -DUNICODE -I. -I../src/include/ -I../src/codecs/ -o objs/a-constants.o
In file included from ../src/include/sys-core.h:853:0,
from ../src/core/a-constants.c:35:
../src/include/tmp-funcs.h:784:8: error: stray '#' in program
extern #include "sys-core.h" void Set_Date_UTC(REBVAL *val, REBINT y, REBINT m, REBINT d, REBI64 t, REBINT z); // t-date.c
^
 
7:35 AM
@Brett Well, you've got extern #include "sys-core.h"... that's not legal. I guess figure out why the include is getting spliced between the extern and the function name.
 
Oh I see it. tmp-funcs line 784 has an #include on the line - guess I broke the parser.
 
So I've committed to x: print "Hello" not being an error (if x is bound), and now freely use this feature in the mezzanine. e.g. result: do code | if set? 'result [print "The evaluation returned a value"]
 
Hmm, to the parser the header to t-date.c looks like a prototype introduction.
 
@Brett Something about no space between the comment and the #include probably
I've also near-term gotten rid of value? and unset? to deprecate their usages in their current form. set? is the usual replacement for value? of an ANY-WORD!, void? replaces what unset? used to do.
This builds up to a push to use void results more frequently to indicate "no value". So take [] being no result. And the long term goal that it be fairly seamless to write while [value? x: take block] [...blah blah x blah blah...] (under the new definition of value?, which is covered by any-value? until the old meaning of value? is cleared out and the new definition can be settled)
Noting that while [x: take block] [...blah...] would give an error when you exhausted the input.
 
7:54 AM
@hostilefork Ahem, I have neglected to modify the parser for the latest header format - a small oversight surely :) Must have been the holiday that made it slip out of my mind. PR will be somewhat delayed!
 
@Brett As usual, no rush :-)
If you wish to deal with something that might not be set and get a NONE! out of it, you can say while [x: to-value take block] [...blah...] so that will convert them to nones. The name TO-VALUE for this function may not be ideal, but as a data point...it's what I came up with, and then I was looking through some old PRs from BrianH and he'd made the same function with the same name.
While that might not prove it's a great name, it at least suggests it's not a terribly counter-intuitive one.
 
@HostileFork So you are embracing the no value idea?
How do you find this direction in the code where you have used it?
 
@Brett Hm?
x: thing is an improvement over set/opt 'x thing
 
I'm probably a little late to this, but I had the impression you were pushing in a different direction earlier.
 
I tried out check-set, the quoting setter, as suggested by earl
check-set x: thing
That was equivalent to value? x: thing, but required quoting and was somewhat dodgy in that sense.
 
8:01 AM
Yes and you were looking at the varargs model as an alternative.
 
That turned out to suck.
 
I looked like it might but I couldn't be sure :-)
Hence my question about embracing the void
 
Well, when I go over options, it isn't necessarily because I think they're going to be great, but I like having the full list to explain why not to do it.
So I have an answer besides just a vague "that's probably bad".
So the decision that shifted matters was deciding that indeed, an object can have a variable and it be not set... and this is distinct from not having the variable.
 
Good approach
 
I was trying out things to see if it would be possible to have a world where not set and not in the object were the same thing. The answer is: not really
 
8:04 AM
@HostileFork Yes I think that feels right. I'd thought of it as we have a symbol that is as yet undefined, vs not there at all.
 
So the next step was figuring out how to represent that and not require a reified unset.
Which gave object specs, and we'd already been pretty sure object specs were needed in the first place. make object! [[a b c] [a: 1 c: 3]]... b is not set.
 
That's implemented?
Or slated for the future?
 
More or less. :-/ The single-arity generator that behaves like MAKE OBJECT! used to is the suggested retake of HAS. The two-arity generator is CONSTRUCT
This also pushes SELF-ish-ness to HAS and CONSTRUCT, as selfishiness has been moved further and further out of the guts
MAKE OBJECT! does no evaluation. Hence you can say obj: make object! [[x] [x: y:]] and obj/x will be the set-word! y:
 
So it's job is to bind and set only?
 
Further spec abilities would include type restrictions, so make object! [[x [integer! string!]] [x: 10]] and who knows what else the spec language might permit.
@Brett Yep
And as with functions it binds the things in the spec only
So above, that would not bind the y
And I'll repeat some of the warnings I was giving to Shixin earlier about "beware the illusion of the mold round-tripping". There's no such thing. You'd need some binary format
 
8:15 AM
I have a script somewhere where I created an object with fields x y z and but didn't necessarily bind their definitions with the object fields.
@HostileFork It's a pleasant and agreeable illusion. Why do you need binary?
Loss of bindings?
 
@Brett Yep
 
Yep.
I guess we tend to work around that automatically.
But then I guess also, that's where dialects should have saved the day.
 
@Brett The problem is that if MAKE OBJECT! and MAKE FUNCTION! don't do the bindings, you can't put that responsibility on the generator...unless the generator does some kind of post-process step. Because it doesn't have the things to make the bindings to. And in the case of relatively bound functions, the API would be weird because it's not normal binding.
There's a lot of stuff here to think through, and I haven't actually tried a user-mode HAS or CONSTRUCT (the way I did with functions)...and I just realized that it wouldn't work because it's taking advantage of the system's privileged ability to create and evaluate in the same step in native code.
Well, it would work but it couldn't give the fields the initializers. It would collect the fields of the object and just make it empty. make object! [[x y z][]], then once it was made, bind the code and run it. I guess that is what it does.
@Brett So that's how your thing would have to work, to make the empty object and then bind the things you're going to poke into it selectively.
 
@HostileFork Yes, I think that's what I did in binding/custom/object
Sort of.
 
Yup. Well, most things should continue to work if MAKE OBJECT! is replaced by HAS. I've got a compatibility mode where if make object! doesn't have the [[...][...]] pattern it runs as-if it were a HAS.
 
8:30 AM
@hostifile Ok well I head of to make a meal. I'll get back to you on the header update once I've modified the build parser to accept the new format.
 
'k, thanks!
 
 
3 hours later…
11:16 AM
0
Q: How to get Cookies from a Webpage?

NoobscripterI searched a lot on Google as well as Stackoverflow. I could not find How to get Cookies from a Webpage and then edit it and send it back? [I know how to make POST/GET requests using read/write but Cookies idk]

 
 
3 hours later…
2:15 PM
posted on March 19, 2016 by Mike Parr

A while back, I mentioned a toy editor (Ride) that I developed for Red, on Windows. I recently fixed a major flaw, and it now has search/replace/undo/line-numbering. You can get it here: http://www.mikeparr.info/redlang.html It is not great as an editor, but is very easy to configure to run

 

« first day (1966 days earlier)      last day (1814 days later) »