« first day (3704 days earlier)      last day (76 days later) » 

12:08 AM
@HostileForksaysdonttrustSE What'd be the best way to return an array of strings from js-native/js-awaiter?
 
12:25 AM
Also, I think carets may be getting lost in the string -> native function transformation, e.g. {console.log("^^")}
 
 
1 hour later…
1:28 AM
@rgchris There's no special facility. let block = reb.Value("make block!", reb.I(array.length)); array.forEach(str => reb.Elide("append", block, reb.T(str))); return block;
 
@HostileForksaysdonttrustSE That's pretty close to what I ended up with. I assume there's a difference between reb.T and reb.Text related to value handles?
 
@rgchris reb.T is equivalent to reb.R(reb.Text(str)): forum.rebol.info/t/…
reb.R(), reb.T(), etc. functions shouldn't be used outside of the context of being parameters to an API function. Reason is that they are not tracked, and if there's an error they will leak. What keeps them from leaking is that even in the case of an error, the API routine (like reb.Value or reb.Elide or reb.UnboxInteger) will free them.
It can't do that if you make a separate assignment like let text = reb.T(whatever); reb.Elide("code that errors"); reb.Elide("code that consumes variable too late", text);
rebElide("so always use the .R, .T, as parameters", reb.T("like this"))
Then it can clean them up, because reb.Elide() had all the parameters in hand to process when the error occurs, and it spools through to the end to look for reb.R() even if it stops running due to an error.
 
That's caught me out a few times.
 
As my post says, we can try to be more accommodating in JavaScript, at some performance cost. There's no comparable option in C.
 
 
1 hour later…
2:41 AM
user image
2
Still a bit hackish, but there's a bare bones directory system that is somewhat consistent with a desktop fs. Still need to do binary as well.
 
@rgchris Cool. Would be nice to be able to fetch .zip files and unzip them there; perhaps get the sources from GitHub, and "build x86 executable with TCC in browser and then DOWNLOAD it."
It shows some contention over what %file means; the command download %file.txt {some data} interprets that as a name to be used for something on the local filesystem. Maybe that should be file://file.txt or something of that sort, or a plain text!, to keep things straight.
 
3:16 AM
@HostileForksaysdonttrustSE Would have to work within the 5MB limit though
The built-in colours have a purpose!
 
@rgchris One thing that console interface needs sorted out is better copy/paste, there's a weird joiner in it that is the only way I found to get the look, and when you try to copy transcripts that invisible character causes problems.
 
third Re-Meet video youtu.be/c2Q0ctv7FZY
 
Now and again I find features that make some garbage workarounds easier, e.g. CSS white-space attribute. But I don't know all of them.
In the conference video, I mention the craziness of having to flip the display upside down and then flip it again, in order to get 0 to be at the bottom of the screen...so that the scroll bar can be "glued" to the bottom as new input comes in.
A general audit of just "how it's all done" would be helpful. But I think there's nice nuances in it, like how your font for input is the same as the font for output from PRINT statements but just a lighter weight. And that the font was chosen to distinguish zero and the letter O, and 1 and the lowercase letter L, etc.
 
3:34 AM
did anyone know you can not use angle brackets in a youtube video details field??
I guess entity values are needed
 
3:46 AM
@HostileForksaysdonttrustSE Should add that there’s 5MB persistent storage limit, but there’s an additional 5MB per-session storage that could be used to store the generated files. How much space would you need? I notice the source folder (rounded up) is 3MB. Am I deluded to think it could be done?
 
@rgchris Once you've compiled a source file you don't need it so you could delete them as you go while producing object files. The final product could be built in memory and never be put on the filesystem. It's possible.
 
4:20 AM
this just hangs the replpad after the import phase of the module
If I import manually, it works fine
 
4:48 AM
@GrahamChiu Once you use something like IMPORT you are in the zone of "things that haven't been designed or tested hardly at all, and the people who kind of half-started it all ran off"
 
5:03 AM
FYI,
>> parse "abc" ["a" [1 | 2 | 3] "c"]
== Assertion failed: not IS_BAR(rule) and not IS_BLANK(rule) and not IS_LOGIC(rule) and not IS_INTEGER(rule) and not IS_GROUP(rule), file C:\Projects\ren-c\src\core\u-parse.c, line 2116 (crash!)
 
5:43 AM
@Edoc Do practice filing issues (!) But that's a case of it asserting where it noticed something wrong...but should give an error. INTEGER! expects some rule after it to be applied.
 
6:14 AM
Notably, this works:
‌>> parse "a2c" ["a" ['1 | '2 | '3] "c"]
== "a2c"
‌>> parse "a2c" ['a ['1 | '2 | '3] 'c]
== "a2c"  ; WORD! match is case insensitive, like TEXT!
‌>> parse "a2c" [#a [#1 | #2 | #3] #c]
== "a2c"  ; ISSUE! (conceptually "issuechar!" -> token! tbd) is case-sensitive
 
 
8 hours later…
1:56 PM
@HostileForksaysdonttrustSE Oh yes, I'm aware why that rule fails :) I just don't expect the interpreter to crash.
Also agreed on filing issues. I'm new to that, so I just need to figure that out.
 
@Edoc Better to assert and draw attention to the need for an error than to ignore the malformed input and just puzzlingly proceed along...
red>> parse "abc" ["a" [1 | 2 | 3] "c"]
== false
This is why I'd rather people run debug builds. We find such things.
 
@HostileForksaysdonttrustSE Ok, cool. Where do I file issues?
 
@HostileForksaysdonttrustSE Gracias.
 
 
5 hours later…
7:11 PM
@HostileForksaysdonttrustSE replacing import with do doesn't help either!
 
 
2 hours later…
9:16 PM
I had an interesting problem today. On Saturday we went to visit a number of senior citizens (almost all of whom I did not know) in their homes and rest homes.
We had a provisional route planned but then people changed it as we went.
So, I wanted to recreate the actual route we took
I had to do this by hand, but what I wanted my script to do was to read all the photos I took, look at the metadata, and order them by time with GPS coordinates, and then place them onto Google maps (or Bing)
In the end we started at 10:00 am and finished at 19:00 that night bringing Xmas gifts
 

« first day (3704 days earlier)      last day (76 days later) »