World: r4wp
[!REBOL3] General discussion about REBOL 3
older newer | first last |
GrahamC 16-Jan-2013 [550] | Looks like it's time to setup one's own r3 build environment to test these things out |
AdrianS 16-Jan-2013 [551x3] | Graham, would you prefer have functions for all HTTP methods (get, post, put, delete, head, options, trace, connect) ? |
btw, is boot/host-init.r not meant to be used? Seems to be pretty much identical to mezz/prot-http.r minus the header. Is the first produced from the latter? If so, why is it checked in? | |
The last question is addressed at anyone who'd know... | |
GrahamC 16-Jan-2013 [554x2] | Adrian, the actors are used to provide a series abstraction on ports. But as developers I think it might be clearer to have specific methods. Otherwise you're reading the options block to see exactly what is being done. |
though I guess we can always put wrappers around the read/write | |
BrianH 16-Jan-2013 [556x2] | Chris, WRITE dest block is the replacement for READ/custom. |
Graham, HTTP GET is supposed to be repeatable without side effects, and thus safe to cache. HTTP POST is supposed to generate side effects, and thus not be safe to cache. | |
Chris 16-Jan-2013 [558] | I welcome the change to Write, but lament the change to Read. Even if they appear the same, I see them as having semantically different objectives. |
BrianH 16-Jan-2013 [559x2] | You have to see it in terms of the whole model. READ and WRITE don't just operate on HTTP and files, they can operate on a wide variety of port types. |
An HTTP POST is not a read, for instance, it's more like a write because it is supposed to have side effects. | |
Chris 16-Jan-2013 [561x3] | I agree with that. |
I'm not sure how removing read/custom (or renamed read/args) has any bearing on other types... | |
Where for HTTP (or my sandbox port example above), it is actual functionality that is lost. | |
GrahamC 16-Jan-2013 [564] | SOAP requests are often GET |
BrianH 16-Jan-2013 [565x2] | SOAP's behavior is considered to be bad, as far as HTTP use is concerned. |
There was a proposal to enhance READ with something like an /options or /types option, I can't remember which, but it's not in CureCode. It was Carl's idea, but it might be in a blog, chat or another AltME world. I only remember it because I was waiting for that feature to enhance the clipboard scheme's handling of other datatypes. | |
GrahamC 16-Jan-2013 [567] | It severely restricts what you can pass to the scheme actors without any suitable refinements |
Chris 16-Jan-2013 [568] | Don't see it on the blog. |
BrianH 16-Jan-2013 [569] | WRITE is as unrestricted as READ/custom was. One of the ways that R3's port model was sped up was to restrict the number of options passed to the actions. |
Chris 16-Jan-2013 [570] | /options is better than nowt, but I'd maintain a /params (/args) refinement would be beneficial to at least a few different schemes. |
BrianH 16-Jan-2013 [571] | The /options refinements was one of the proposals for standard function options; /into was another such proposal. You'd have to look in R3 chat for details. |
GrahamC 16-Jan-2013 [572] | read/lines passes thru .. so I'm not sure what you're saving but not allowing /args |
BrianH 16-Jan-2013 [573] | Looked in chat #1097 (the area where standard options were discussed) and we haven't brought it up there yet, but Carl did a blog about it. |
GrahamC 16-Jan-2013 [574] | uRL? |
BrianH 16-Jan-2013 [575x2] | No idea, I just remember him doing so. |
The main subject of the initial /options proposal was MOLD, to replace all of the MOLD-related system/options settings. | |
Chris 16-Jan-2013 [577] | Still haven't found it -- just another point where you were waiting on changes : ) http://www.rebol.org/aga-display-posts.r?post=r3wp771x2326 |
Gregg 16-Jan-2013 [578] | World going offline for a while. |
Andreas 16-Jan-2013 [579x3] | Retrofitting QUERY would be another alternative to READ/custom. |
Change the signature of query to always include a mode field: QUERY target mode, then you could "default" read actions with READ, read actions with options with QUERY and the options as second parameter, write actions with options with WRITE. | |
I'd prefer using QUERY that way over READ/custom (or better, READ/args), which in turn I'd prefer over (ab)using WRITE. | |
GrahamC 16-Jan-2013 [582x2] | When did this behaviour of rejoin change? >> type? rejoin [ http:// "www.rebol.com" ] == url! >> rejoin [ now/date ] == "17-Jan-2013" |
It's behaving like ajoin for dates | |
GrahamC 17-Jan-2013 [584x6] | oh .. perhaps it never worked like that for dates |
Adrian, when make prep is run, prot-http.r is copied to host-init.r | |
tools/make-host-init.r is where the prot-http.r is included as well as all the others that are included into the binary | |
so looks like we can include our own protocols here | |
Ok, altering make-host-init.r to add schemes does add them to host-init.r but doesn't make the schemes available. I guess they must be initialised somewhere else. | |
Everything seems to end up in boot-code.r | |
AdrianS 17-Jan-2013 [590] | why is host-init.r checked in though, if it's generated? |
GrahamC 17-Jan-2013 [591x4] | mezz/boot-files.r ... add protocols here and they get included into the binary. I managed to add a new scheme to the binary this way |
So, looks like they have to be added in two separate files | |
Adrian, I would guess the directory was just uploaded to git | |
Aren't there also other autogenerated files on git | |
Ladislav 17-Jan-2013 [595x2] | https://groups.google.com/forum/?fromgroups#!topic/Rebol/-s8WtukYj1E You can also discuss here if you prefer, I posted it to GG in hope that even Carl might be able to see or discuss it there... |
No interest to discuss 'Molding decimal numbers "precisely enough"'? | |
Robert 17-Jan-2013 [597x2] | We just did a codecoverage check with R3 using the test-suite. |
So, Andreas and I tipped a priori. So, what's your tip? | |
Ladislav 17-Jan-2013 [599] | What is a "codecoverage check"? |
older newer | first last |