« first day (2549 days earlier)      last day (1231 days later) » 

1:01 AM
>> foo: compose/only [1 (next [a b c d]) 2]
== [1 [b c d] 2]
>> back second foo
== [a b c d]

>> bar: copy/deep foo
== [1 [b c d] 2]
>> back second bar
== [b c d]
 
 
3 hours later…
3:35 AM
posted on October 23, 2017 by @hostilefork Brian Dickens

@hostilefork wrote: Rebol has historically had a lot of trouble with questions of equality, and various hierarchies of it. The idea of EQUIV? even came up, which was to check to see if two blocks of code weren't just STRICT-EQUAL? but if the words in them had the same bindings. :-/ (I killed off EQUIV? in Ren-C pretty early because I couldn't think of

 
^-- @rgchris @MarkI See proposal that block/foo...which runs the same underlying code as PICK...would only consider SET-WORD! as a candidate from blocks with the search term WORD!. If you want to consider other types of words, you use SELECT, and then it matches the type of the search term...giving you the subsequent thing. I feel like this makes sense as block: [foo: bar bar: 20] seems better if you say block/bar and get 20 in most reasonable usages.
Given the puzzlingness of paths, and the necessity for things like block/:foo to have a meaning that is not "look for a GET-WORD! in the block", and block/foo: not meaning "look for a SET-WORD! in the block", that this would be an improvement. People can use SELECT.
We should make a COMPARE operation that comes back with the words >, =, or <. Then greater?: chain [:compare | func [status [word!]] [status = '>]], >: enfix :greater?
Though I guess you need equal? as a native in there somewhere to test the result. :-) Or you could use SWITCH...
 
4:15 AM
posted on October 23, 2017 by hostilefork

>> obj: make object! [x: 10 y: 20] >> some-func: does [var: 'y] >> var: 'x >> obj/(print "left" var): (print "right" some-func 30) right left == 30 >> obj/x == 10 >> obj/y == 30 What seems like a reasonable expectation (var will be used as it was seen when the SET-PATH! was visited) is undermined, because the right hand state is allowed to execute and mo

 
Y'know, that actually does suggest a function for pathing a block. block/[bar:] could mean to literally look for BAR:
 
 
6 hours later…
10:45 AM
posted on October 23, 2017 by dredmorbius

[Hacker News] The Rebol Internet Operating System: iOS (2010) (1 point)

 
11:18 AM
0
A: Rebol for android showing very small gui

sqlabYou did not initialize your dpi, it is unset and has no value. Can you try gui-metric/set 'unit-size (gui-metric 'screen-dpi) / 128

 
@Oldes "Windows" is not a build environment. It doesn't come with a C compiler. If you want help building something, you have to state things like "I installed this distribution of MinGW" or "I'm using clang" or "I'm trying to build with Visual Studio".
Soliciting help means not coming in dictating terms of what you read about the old R3-Alpha and how you could build it and then telling us how we've screwed it up. And if you're going to have the attitude to come in with that perspective, and want help, you better be ready to listen to explanations about things to inform your worldview instead of jumping to the next "oh but I want to build" step.
If you don't have the time to write complete sentences, much less read links I send you, then no. No help.
This is not a product. This is a project. If you want mad dashes toward catastrophe, there is a project for you and it's called Red.
And also, if you're having byte-ordering issues, things like what kind of processor is relevant...big endian, little endian, etc. And the byte ordering macro panic has more output than just that to help with just this situation.
Byte order sensitive bit-flags and masking are described here. The sanity test that is failing is given here. It's not the most obscure code in the world, so one question would be if you are correctly having either __LP64__ or __LLP64__ defined for your 64-bit compiler.
 
 
2 hours later…
1:13 PM
@HostileFork Um, what is the paradox? the x is new, and the 'x is old. There could even be multiple 'xs with different pre-existing bindings. But there can be only one <mode Highlander=off> x, of course.
@HostileFork Also, there are no "variables" in Rebol. Rebol has words where other languages have variables. Is there some problem with this that I am not understanding?
 
 
5 hours later…
5:54 PM
posted on October 23, 2017 by Oldes

FEAT: basic support for ANSI escape sequences in Windows console by Oldes

 
6:52 PM
@MarkI The paradox is there won't be any remaining references to the 'x, because they'll be wiped out. If you say for-each [x 'x] [...] [something x [something-else x...]] no matter how many x you have in there, you are either going to rebind them to the new x (in which case 'x is a no-op) or leave them alone (in which case no one can reach the synthesized x).
 
7:15 PM
@HostileFork I see. I was thinking you were rebinding to the new context only those x's that didn't match the binding of a 'x. But that's a lot more work of course.
 
7:25 PM
@MarkI There's not really infrastructure for that, but I've asked this question before...of what <with> x (a.k.a. R3-Alpha's EXTERN) means in function specs...it could be interpreted to mean that any x in the body should be rebound to the binding of that x WORD! following the <with> :-/
Binding is not really set up for this today, but the technique I suggested yesterday for being able to make a temporary mapping from REBSER to an arbitrary value on the data stack might be applicable to being able to bind to multiple objects in one pass, as well as to accommodate such alternatives.
Today we only get an effective transient map from REBSER (canon string) to a small C integer, which doesn't provide a lot of flexibility...the binding C function gets passed a single context pointer down through all the recursions, and that's assumed to be the context all the integers are for.
 
 
2 hours later…
9:46 PM
posted on October 24, 2017 by Steven White

It seems like I should be able to do this.  I want to read an unknown amount of data at run time, and depending on what I get I want to put it into one or more blocks, the names of which will be determined by the data itself.  For example, some of the data might be for street names, and some header in the data will indicate this, perhaps by a header record containing the tex

 
10:17 PM
0
A: Rebol for android showing very small gui

GordRDefine 1.) layout, 2.) init-size, and 3.) unit-size (gui-metric 'screen-dpi) then 4.) call to view. Ex: 1 DB_HomeV: layout [ Buttons, fields, etc. ] 2 DB_HomeV/facets/init-size: 246x408 3 gui-metric/set 'unit-size (gui-metric 'screen-dpi) / 112 4 view/options DB_HomeV [max-hint: round/flo...

 

« first day (2549 days earlier)      last day (1231 days later) »