« first day (2569 days earlier)      last day (1211 days later) » 

1:10 AM
Build c390034 on 10-Nov-2017/1:31:21Z is now available for download. Please use debug builds and report issues. No warranty of fitness is implied.
These are the direct links for OSX x64, Win x64, Linux x64, and Android-arm.
 
1:58 AM
It looks like we're going to soon be able to splice arrays inline as compositions dynamically. e.g. where today you can write block: [+ 2] | do compose [1 (block)] you'll be able to say something along the lines of block: [+ 2] | 1 eval/inline block. Naming suggestions for whatever this form of EVAL is welcome.
It could just be inline I guess. 1 inline block. It is kind of like "inlining a function"
Anywhere you would DO COMPOSE [...] something, this will be significantly faster, won't need to make intermediate arrays...so it would pay to make it brief and convenient. In the API it will be useful as well: REBVAL *block = ...; rebDo(blah, blah, rebInline(block), blah, ...). Should work on STRING! also.
 
 
1 hour later…
3:12 AM
Should USE soft quote? e.g. use block [block: ...] vs block: [a b] | use (block) [a: ... b: ...] cc: @rgchris ... I do wonder about the tradeoffs here, it's really a matter of "how often is the block of things synthesized"
 
 
3 hours later…
5:45 AM
0
A: Is it possible in Red to test value? for a variable inside a context not in global context?

HostileFork Is it possible in Red to test value? for a variable inside a context not in global context? By definition, no. Because there is no such thing as "the global context". Remember that "Rebol (Red) actually does not have scope at all" ... "Rebol (Red) fakes it." (See: Is there a overall ex...

 
 
3 hours later…
8:45 AM
0
A: Is it possible in Red to test value? for a variable inside a context not in global context?

sqlabHere a solution without searching in the 'global' system/words, but in the 'local' self >> a: 1 == 1 >> context [ [ probe all [ [ find words-of self 'a 1 [ value? pick find words-of self 'a 1 [ ] [ probe value? 'a [ ] none true == make object! [] >> >>

 
 
5 hours later…
1:51 PM
@ingo I have some good news...
>> guess-what: "slɐuıɯɹǝʇ xısod uı 8-ɟʇn"
== "slɐuıɯɹǝʇ xısod uı 8-ɟʇn"

>> print reverse copy guess-what
nʇɟ-8 ıu dosıx ʇǝɹɯıuɐls
But that's only a small bit of it.
 
2:18 PM
posted on November 12, 2017 by hostilefork

The very old/crufty R3-Alpha POSIX termios-based code was considered to be only a temporary codebase to be replaced with something better. No truly suitable replacement has been found, so this commit bites the bullet and pushes the existing code to make it more tolerable. It now supports UTF-8 entry...although the cursor-oriented commands need to be updated to account correctly for multib

 
>> if blank? line: input [print "Escape pressed, but script kept running"]
I'm about to press escape right here->
Escape pressed, but script kept running
== _

>> line: input | print "But Ctrl-C should stop this from printing..."
I'm about to press Ctrl-C right here->
[interrupted by Ctrl-C or HALT instruction]
 
2:47 PM
Got further with my PiCAM project, driving the widely used active low relay modules on GPIO-alerts triggered by motion detection. #RaspberryPi has so many possibilities with #Rebol. http://picam.tgd-consulting.de #SmartHome #webcam #surveillance
 
 
6 hours later…
8:43 PM
@HostileFork You could, but the question remains what happens if you say: remove as binary! str: "Î"
 
@rgchris Yes, locked strings returning locked binaries, I mean
If you lock a string permanently, then no harm in viewing its data as UTF-8 binary directly, if they're UTF-8 everywhere.
FAIL on unlocked strings.
 
Sorry, I should say: remove as binary! str: copy "Î"
So this would fail?
 
@rgchris Yup. AS BINARY! on STRING! only allowing locked STRING! input, and when it gets it giving locked BINARY! output
 
Could you lock just the binary representation?
 
Hm.
 
8:47 PM
Can manipulate STR but not BIN
 
Well, you can, it will cost you 4 * sizeof(void*) to do so. Locking is on a series node by series node basis.
No, that won't work if the data expands in the original string, the new node would have no way of knowing.
We could introduce a locked binary bit on values, and use the same series...but now that's another place to look for locking.
I think the answer is "no"
 
It is usually the case that manipulating the binary could corrupt the associated string, be it a STRING!, TAG!, FILE!, URL! etc.
And not vice versa.
 
As a first cut, if you're willing to lock a string (or if it was locked already) giving you a BINARY! locked view on it is better than nothing. Perhaps a practical approach to getting a read-only view on a mutable string safely will arise, but it would add costs in other places.
 
Also related—if you can do as string! foo://åbç then it's worth remembering that it is equivalent to foo://%C3%A5b%C3%A7
#{666F6F3A2F2F25433325413562254333254137} And not #{666F6F3A2F2FC3A562C3A7}
 
One of these days I'm going to look back over all those URL encoding things and see if I can figure out what I think about it :-(
 
9:01 PM
Unfortunately it's the nature of how URLs are defined.
This too is wrong:
>> foo://%C3%A5b%C3%A7
== foo://åbç
(Red does get this right)
Though it gets this wrong:
>> foo://%C3%20
*** Access Error: invalid UTF-8 encoding: #{C3200000}
*** Where: do
*** Stack: load
Maybe...
 
@rgchris I'm sure you have a writeup of this somewhere. Is everything known about this problem and its pertinence in Rebol space all in one place?
 
9:22 PM
posted on November 12, 2017 by hostilefork

The HOST-CONSOLE code is called directly from C code, as the topmost level of evaluation. So one problem with situations where running the console raises an error is that there's nowhere to escalate that error to... the console is supposed to be the way errors are delivered and values are probed. So a bug in the console basically means the whole program has to crash out. This makes the

 
^-- For fans of console customization, this is a major deal.
>> system/console/print-result: function [] [asdfasdfasdf]
*** ERROR WHILE RUNNING CONSOLE SKIN CODE ***
...Reverting to default skin for safety, report error...
** Script Error: asdfasdfasdf has no value
** Where: print-result _
** Near: ... asdfasdfasdf ??
Hopefully @draegtun won't be able to resist coming back and working on it some more. :-)
 
9:57 PM
I mucked around with Red and Rebol2 consoles, to see what all they did. Ren-C has leapfrogged them--and a lot of other apps. Amazing what I can do in a couple days when I put my mind to it. Even though some of this stuff is insane. And Rebol2 and Red had the advantage of controlling the message pump (full GUI apps), so, not much of an excuse there.
@ingo @rgchris @giuliolunati and anyone with interest, the posix termios code is now more or less readable/hackable. I commented and reorganized. People should be empowered to go after whatever bugs them...but again, as much of this needs to move to usermode Rebol as possible.
 

« first day (2569 days earlier)      last day (1211 days later) »