World: r4wp
[Rebol School] REBOL School
older newer | first last |
BrianH 11-Mar-2013 [1727x2] | I don't recommend using FOR in R2, patched or not, but I would rather have a patched version than a non-patched version. That's the whole point to rebol-patches. I don't judge the functions in some philosophical or practical way, I just make sure they at least work. |
Better functions are more the purview of other projects. | |
GrahamC 11-Mar-2013 [1729] | Is 'for used much at all? |
Ladislav 11-Mar-2013 [1730x3] | or, to tell it differently: I prefer to have a version of FOR which would be more R3 FOR compatible... |
(instead of patching the R2 FOR, which I do have patches for, but which is extremely slow) | |
FOR is not used in R2 (at least I never recommended its usage) because: * it is buggy * it is extremely slow | |
BrianH 11-Mar-2013 [1733x2] | Can that be done without breaking too much code? Because if so, that would definitely be in the project scope. A native FOR replacement would be ideal, but we can't change existing R2 versions to have always had such a function in the past. The rebol-patches project is for bringing up the compatibility and fixing known bugs when run on existing R2 versions. I hope to push its compatibility all the way back to 2.5.0. Replacing FOR with a non-buggy native version in some future R2 release would just mean that for that version going forward rebol-patches wouldn't need to patch that particular function. |
So unless you have a way for rebol-patches to perform a retrofit of an existing R2 version with a new native function using cross-platform code, we're going to need not only the mezz patch for the past and the native for future R2 releases (if any). | |
Ladislav 11-Mar-2013 [1735x2] | I did not mean native. I just meant mezzanine FOR but implemented differently. |
(to behave more like the native FOR in R3 or REPEAT in R2) | |
BrianH 11-Mar-2013 [1737x2] | OK, cool. Will it have the same external API, so that if it is used in the same way (without obscure hacks) it will do the same thing? I'm OK with changing its behavior when you change the variable in mid loop, as long as that isn't commonly done in R2. If it's too incompatible that would be more something to put in R2/Forward (I'm spliting the fixes from the major changes). |
How would it be different? Do you have a link to one of those articles you write about this kind of thing? :) | |
Ladislav 11-Mar-2013 [1739] | OK, I will try to write it as I think it should be both faster and less buggy. |
BrianH 11-Mar-2013 [1740] | Apache license OK, same as R3? I know it's for R2, but it makes the contributor rights more clear. |
Ladislav 11-Mar-2013 [1741] | Sure |
BrianH 11-Mar-2013 [1742] | Before you ask, the MAP-EACH fix is going in there too :) |
GiuseppeC 13-Mar-2013 [1743x5] | I will help to make the new REBOL ! |
Until then I need your help: | |
I whish to re-learn REBOL from scratch starting from REBOL3 | |
I have understood that until now I have looked to REBOL with the eye of the "old-style-programmer" | |
I apologize for avery stupid question I'll make in the following weeks/months. | |
Arnold 13-Mar-2013 [1748] | no stupid questions exist. Mostly more stupid not to ask them, as only then they can help you to understand. |
Sunanda 13-Mar-2013 [1749] | SKIP's offset arg can take a pair! -- Can someone show me an example of doing that? |
GrahamC 13-Mar-2013 [1750] | that's for moving across a bitmap isn't it? |
Sunanda 13-Mar-2013 [1751] | That's what I'd like to know :) |
GrahamC 13-Mar-2013 [1752] | let me scan my source code |
Sunanda 13-Mar-2013 [1753] | Also interested in usage example for TAKE/DEEP where the /deep can be a pair! |
GrahamC 13-Mar-2013 [1754x2] | auto-crop-bitmap-text: func ["Returns a cropped image, or none if the input image was blank" image [image!] /local region ][ if region: find-bitmap-text-crop-region image [ copy/part skip image region/1 region/2 ; return a cropped image ] ] |
not sure if that's what you're after | |
Sunanda 13-Mar-2013 [1756] | Thanks......I can see now how SKIP can work on an image bitmap img: to-image #{....plausible hex stream....} skip img 2x2 However, TAKE does not work on image bitmaps.....Are there other types of bitmap? |
BrianH 13-Mar-2013 [1757] | The bitset type could be thought of as a one-dimensional bitmap of depth 1, but that's stretching the defitnition a little :) |
Sunanda 14-Mar-2013 [1758] | :) Is TAKE intended one day to work on image bitmaps? Or is there another use for: TAKE/DEEP word 10x10 |
BrianH 14-Mar-2013 [1759] | No, because TAKE removes from the original, and that would change the dimensions of the original in the case on an image, assuming it's possible (you can't take a hole from the middle, for instance). So you mean COPY/part here. |
Sunanda 14-Mar-2013 [1760] | My confusion is due to the help for TAKE saying the /DEEP arg can take a pair! -- So I was looking for a usage case. |
BrianH 14-Mar-2013 [1761x2] | Well, maybe it was intended to work on image (if so, sorry). I'd have to review the R2/Forward code to be sure, since its version of TAKE would have replicated that. It's a really weird thing to do to an image though. |
The R2/Forward TAKE makes reference to an image in its code, but not in its typespec. Weird. A bug? | |
Bo 14-Mar-2013 [1763] | BrianH: If I wanted to take a subsection of an image, why wouldn't it create a new image with just that subsection, and then replace the "taken" part in the old image with 0.0.0? Or am I understanding the purpose of 'take incorrectly? |
GiuseppeC 15-Mar-2013 [1764x2] | First question about REBOL(£): |
Is there an article which explains how REBOL3 loads words in memory and how their are organized, stored, evaluated ? | |
Sunanda 16-Mar-2013 [1766] | Here's a starting point for such an article..... http://www.rebol.com/docs/expert-intro.html |
BrianH 16-Mar-2013 [1767] | Bo, TAKE physically removes stuff, it doesn't leave a hole. |
NickA 19-Mar-2013 [1768x2] | Has anyone worked with the Amazon aws services? I'm not sure how to "Calculate an RFC 2104-compliant HMAC with the SHA256 hash algorithm" as described in step 8 on page 62 here: http://awsdocs.s3.amazonaws.com/Associates/latest/prod-adv-api-dg.pdf |
Just trying to look up prices based on SKU. This is the string I have so far: http://webservices.amazon.com/onca/xml?Service=AWSECommerceService&AWSAccessKeyId=[mykey]&Operation=ItemLookup&ItemId=041554286915&IdType=SKU&Timestamp=2013-03-19T10:04:31Z&Signature=[this-is-what-I-need] | |
Gregg 19-Mar-2013 [1770] | Graham has, but hit github repo for it seems to be empty. Not sure where he has it posted now. |
NickA 19-Mar-2013 [1771] | Thanks Gregg - I'll see what he knows :) |
GrahamC 19-Mar-2013 [1772x2] | You can't yet because we can't calculate a sha256 .. we only have sha1 |
so, you'll have to use an external library to do that part | |
Bo 19-Mar-2013 [1774] | I'm looking into pitching a Rebol programming class to the community college here (I'd teach it). I know of NickA's excellent tutorials. What would you all suggest for a class text. |
caelum 19-Mar-2013 [1775x2] | I found the 'Rebol for Dummies' book quite disappointing for my personal use, but it might be good as a course book though. It certainly covers a lot of ground quickly. I personally preferred Nick's video series http://re-bol.com/rebol.html.Somehow more interesting and easier to digest. Just my personal experience. |
I also have 'Rebol. The Official Guide' which at 700+ pages is massive and way too much. Also, no graphics included, so I would not necessarily recommend that as an introductory course book. | |
older newer | first last |