« first day (1451 days earlier)      last day (2329 days later) » 

2:47 AM
@ShixinZeng A very nice start! Sent you a minor bugfix on AltME.
 
3:16 AM
Hah, very very nice.
With a bit of trickery, I have a statically-linked R3 binary for Linux with an encapped "Hello, World!". 803K in size.
Who would've thought that, just two years ago!
$ cat test/hello.reb
Rebol []
print "Hello, World!"

$ make/r3-static make/encap.r /r r3-static /p ../test/hello.reb /o ../test/hello_static

$ file test/hello_static
test/hello_static: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped

$ du -sh test/hello_static
804K	test/hello_static

$ test/hello_static
Hello, World!
Hooray for encap! :)
@ShixinZeng Also sent you a pull req for the minor encap fix: github.com/zsx/r3/pull/10
 
 
4 hours later…
7:12 AM
@earl can you explain simply what this does? Does it include the script in windows as part of the binary? Is the script encrypted inside the binary?
 
 
1 hour later…
8:25 AM
https://github.com/red/red/pull/963
GitHub
Red Pull Req—FIX: redundant tests for SAME? on objects.
qtxie
1413858186
 
 
1 hour later…
9:33 AM
posted on October 21, 2014 by BrianH

[Comment] It's not the lookahead for infix that's causing the problem, it's that at the time you are evaluating the REDUCE of the block, the context to which the 'c is bound is not valid. The context of a function is stack-relative, and the values of words bound to the function context are looked up in the stack. As such, the stack frame in question only exists when the function is running. Wor

posted on October 21, 2014 by BrianH

[Comment] This is a bug, not a design change. SORT is supposed to be case-insensitive by default. There's a separate bug (in another ticket) for SORT completely ignoring its /case option at the moment.

 
9:51 AM
posted on October 21, 2014 by BrianH

[Comment] This was proposed before for the map! type, in #1315, #1437, and with #1774 as a counter-proposal. You can look there for the issues involved with having a modal type with no way to specify the mode in syntax or reflection. It comes down to not having a way to indicate the mode, since the spec block is already a block of arbitrary data. #1774 was the only workable solution for the ma

posted on October 21, 2014 by BrianH

[Comment] It is possible to make a port scheme that behaves the way that you suggest, for schemes that can possibly have series-like semantics. However, many port schemes aren't even remotely series-like, and creating a new port that is supposed to be referring to the same data at another position is only theoretically possible with schemes that even have position as a concept, and are able to

posted on October 21, 2014 by BrianH

[Comment] There is a CONSTRUCT/only that works the way you want. The default behavior is there to make headers easier to write. The flexibility is intentional, and we even cleaned up its semantics in Rebol 3 (added new keywords, made datatypes more consistent). The /only option is there for people who need more strict semantics. Neither of them execute code though.

 
10:17 AM
posted on October 21, 2014 by BrianH

[Comment] Sounds good, as long as we limit the case-insensitivity to finding char! values, not finding integers. When you are finding chars, case-insensitivity is a thing, so it makes sense to be consistent with the rest of Rebol. But when finding integers, case is not a thing, and we should be sure to not make it a thing.

posted on October 21, 2014 by BrianH

[Comment] Remember when fixing FOR, #884. See #2132 for where the old FOR should go.

posted on October 21, 2014 by BrianH

[Comment] If we do this, deprecate it first. And be sure to put the existing mezzanine into the old module (#2132).

 
10:41 AM
posted on October 21, 2014 by BrianH

[Comment] Read through #1976 before you make any suggestions. Larger number spaces were part of that discussion, and proposed in a way that doesn't have the downsides of your proposal. Btw, they're not characters, so not any-string!; they're not bytes, so not binary! (though all types are binary in one way or another underneath). You're thinking of vectors of integers as an underlying datatype

 
 
3 hours later…
1:12 PM
@HappySpoon this simply embedded the rebol script into the rebol interpreter, such that you only need ONE file to execute the script (instead of two: a script and a interpreter)
The script is not encrypted, as you can't really hide it from other people reading it without user inputs, when everything is open source
if the interpreter can decrypt the script, so can a person
 
2:06 PM
but maybe it could be compressed. IIRC, there was a format, called .rip, which offered rebol header and then compressed part
 
 
1 hour later…
3:23 PM
@pekr it is compressed
 
You would have to use some key to encrypt it, which would lead to needing a key to decrypt it in order to run, yes? (problematic) or translate it into some kind of compiled format to hide the script. Am I thinking about that the right way?
 
@kealist even if you hide it in some weird format, it's still in the executable file
People can still find it
 
4:11 PM
@ShixinZeng Is compression optional? Where binary size perhaps matters less than skipping the decompression step at startup, for example.
 
@rgchris the interpreter does support embedding plain source code, just the encap.r needs to be updated for that purpose
 
4:26 PM
@rgchris here you go: github.com/zsx/r3/commit/…
An option "/a" or "/as-is" is added to encap.r to embed the script without compression
 
5:20 PM
0
Q: error trying to run any simple r3-gui Rebol script but only when pre-downloaded

KevSo I downloaded Saphir's Rebol 3 for 32-bit Linux (I have Mint 17). If test.r contains: load-gui view [text "Hello World!"] ...I get a window as expected and this: $ ./r3-32-view-linux test.r Fetching GUI... But if, instead, test.r contains: do %r3-gui.r3 view [text "Hello World!"] ......

 
 
2 hours later…
7:04 PM
@ShixinZeng I was wondering since Rebol Tech have an encapper where the source is embedded and encrypted. Their decyrption key must be hidden inside the binary somewhere.
 
@HappySpoon I think that's possible because it's closed source, it would be (extremely) hard to find out the key
 
@ShixinZeng So, if someone includes a key in their own binaries, they achieve a closed source release
 
However, when you open up the source, no matter how you transform the key, people can find it
@HappySpoon including key itself doesn't make it a closed source release
I meant including key inside the executable would only make sense when it's closed source
 
@ShixinZeng I mean if someone wants to release a closed source binary, they can do this like RT with your method?
I think that would help persuade people to develop Android apps
 
The part of the interpreter that looks for decryption key needs to be closed source, not the REBOL script
 
7:16 PM
Yes, sure.
 
Then just define a new type for the embedded script
right now, only two types are supported: compressed and uncompressed
 
I'm not familiar with the encryption methods in Rebol3 but I presume that since we have SSL, we do have access to encryption
 
If you really want to prevent people reading your REBOL source code, you need to keep them from accessing console as well
or they can always find it there
 
It would be good if there were some mechanisms to hide the keys somehow ...
Not an Atronix need presumably
 
We thought about it, but as I've said, we open source all interpreter related work, there is really not a way to hide it
 
8:16 PM
0
A: error trying to run any simple r3-gui Rebol script but only when pre-downloaded

draegtunThis might end up being more of a query than an answer but here goes! Try the following from Rebol console: $ ./r3-32-view-linux >> source load-gui load-gui: make function! [[ {Download current Spahirion's R3-GUI module from web.} /local data ][ print "Fetching GUI..." either ...

 

« first day (1451 days earlier)      last day (2329 days later) »