« first day (2363 days earlier)      last day (1417 days later) » 

12:23 AM
@ShixinZeng I've edited the text ... hopefully it's more accurate now!
 
 
2 hours later…
2:11 AM
Hmmm, if I am not crazy, I seem to have come across a weird space inserting bug
Yep, I'm crazy, had some block -> string conversion that did it. Sorry for the drama
 
@kealist Note new functions SPACED and UNSPACED. Note also that print ["Line one" | "Line Two"] uses BAR! to signal line break. Note also that voids opt out, e.g. print [(if false ["not printed"]) "but this is"]
 
2:58 AM
Anyone freeze-frame the code in WestWorld? It's kind of Rebolish. Look at the FUNC at 0:19 for instance.
 
@HostileFork Thank you
 
@kealist Feedback welcome...
 
@HostileFork looks like Javascript
 
@BrandonSeet Funny, I was just watching a Brandon Flowers video, and your avatar is quite bizarre.
@GrahamChiu JavaScript doesn't have a FUNC
 
hehe it's an ice cream shop in Budapest
 
3:01 AM
@BrandonSeet Heard of Rebol or Red?
 
no what's this about ?
 
@HostileFork it's a scripting language inside a browser
 
@BrandonSeet Old people, remembering the good ol' days of programming, mostly.
 
<-script src="Narrative:EXIT-WW"-><-/script->
  <-script OVERRIDE FUNC
    if destination.mode == system.Target {"TRAIN"
      let itemMem = memStroe.allItems
[[indexPath "INFILTRATE"-><-/script->
  <-script ESCAPE FUNCTION
    if destination.mode == system.Target {"Narrative/Attribute" ->
      Host:function(Execute){ return (); },
      loadData:function(Narrative){
 
@BrandonSeet Why Rebol, Red, and the PARSE dialect are cool, but I wrote that a while ago. My current opinions may be different.
 
3:04 AM
reading up on it haha thanks for the intro
 
@GrahamChiu But they're rebelling.
 
are there any examples of apps/webapp using rebol?
 
@HostileFork I will play around with them some
 
Jul 12 '15 at 13:29, by rgchris
See also: Twitter, Etsy, S3...
Though that's kind of old stuff.
I'll give Kaj a dollar if he puts tryrebol back up. Anyone want to match my donation?
We could probably get him at least 4 dollars.
What the heck. I'll raise my donation to $1.50.
 
3:14 AM
match you 1 c for every $1
 
Okay, so we're now at $1.515
 
Which, let's see, if you use Red what does that round to? What rounding rules are we going to use?
 
So my rebol app allows me to surrender control of my PC to amazon :(
 
3:22 AM
@HostileFork we need one language to rule them all
 
3:36 AM
 
3:47 AM
@HostileFork there's something desperate about that .. a universal language for Europeans!
 
4:01 AM
anyone verse with printer drivers and development?
 
 
7 hours later…
11:37 AM
@HostileFork I'd like maybe [1 2 3] 1 => 1 | maybe [2 3] 1 => _
 
12:01 PM
@HostileFork - can't find, again, a -4 proposal. I promise, that this time I save it as a bookmark :-)
 
@pekr -4 is just the idea that X[Y], X{Y}, X<Y> etc. are reserved, the only exceptions are )[, ][, )(, ](. Those are the violations of the "words separated by spaces" that are endorsed. All the rest could mean something if given meaning one day. So print XXX<hello> may be defined however.
 
Well, there was related CC ticket or something like that, started by Ladislav, claiming that space should be required in all cases?
 
@giuliolunati That is interesting, I will think about it. MAYBE is a bit odd.
@pekr 2094
Space in all cases is not consistent with the desired aesthetics or practice of the language.
But, <foo>{baz}#bar is not advantageous enough to justify stealing the syntactic space.
Hence Plan -4 is the compromise.
(A joke based on Plan 9)
"From Outer Space"
 
@HostileFork @GrahamChiu @rgchris maybe found workaround for that crash-on-refresh bug in http.reb
 
@giuliolunati I don't want people doing workarounds for something when it is open source! If there is a bug please repro the bug, so we fix it! :-/
Right way to deal with a bug is, fix bug.
Though if a workaround informs what the bug is, that can be a clue
 
12:14 PM
Maybe workaround isn't the right word -- maybe is the right thing -- check it please
Also testing if we can rely on internal chunking
@HostileFork However the repro was running webserver then hit fast repeatedly refresh button and see if webserver crashes.
 
 
1 hour later…
1:49 PM
@GrahamChiu The source code for the port is scattered over a few files: core/c-port.c core/n-io.c, core/p-net.c, os/dev-net.c and mezz/sys-port.r
@GrahamChiu The event actually was sent to the system port, and it the port doesn't have an awake function, it's ignored
So, all events go to system port, whose awake function calls the port's (or its scheme's) awake function
 
2:16 PM
If the awake of any port returns true, the port is added to waked list, which makes awake of system port return true, and then Awake_System returns 1,
Wait_Ports then stops waiting and returns true‌​, finally, WAIT returns the waked port
@HostileFork It just came to me that we can (should?) write the Ren's lexer (Scan_UTF8_Managed) in Rebol using PARSE
But the interpreter needs to boot first, during which Scan_UTF8_Managed is called. This could be solved by creating the boot_array using C (generated by a REBOL script)
Of course, Scan_UTF8_Managed can't scan the rule it uses to parse the code, so the rule needs to be created in C as well
Since the rule is written in Rebol, it should be easier to modify and hopeful, more people will be interested in hacking on it.
Not sure about the performance impact, but it might not be that critical, because a script only needs to be parsed once
 
 
5 hours later…
7:38 PM
@giuliolunati I think we need to trap all writes, and not just that one.
 
8:19 PM
@GrahamChiu Maybe. But now no more crashes or freezes happen. I'm very happy, because httpd + webserver.reb are my everyday work tools!
2
 
9:18 PM
@HostileFork I was able to get rid of the Scan_UTF8_Managed in Startup_Core: github.com/zsx/r3/commit/…
Note that it requires Ren-C as r3-make
 
9:41 PM
@ShixinZeng Hmmm, interesting. So my thought on this general idea was that PARSE would work on BINARY! or STRING! and be able to get you a value. e.g. parse "10 {abc}" [set i integer! set s string!], and basically the scanner logic would be folded into parse.
Then, base LOAD on PARSE, not "transcode"
A loop of set v any-value!, more or less, and try to optimize that case. But it does raise the bar on line number knowledge in parse to report errors, so parse has to get a bit better at knowing where it is in the input data
But yeah, a continuous reduction in the amount of C needed is good
Ideally, I want the r3 console to use only the REBVAL* API (as void*), no direct REBSER knowledge...of course there's a ways to go for that, but it's closer than in the past.
 
posted on April 21, 2017 by JackKort

REBOL.ORG says domain expired on 4-17-2017. Anyone know if that valuable resource will be back online?

 
So it seems to me that, the host-main.c should be allowed to use LOAD. Just not Scan_UTF8. I'll look at what you've got and try and think about that early bootstrap, how much can use what.
12
A: The Cost of C++ Exceptions and setjmp/longjmp

Drew DormannThis is by design. C++ exceptions are expected to be exceptional in nature and are optimized thusly. The program is compiled to be most efficient when an exception does not happen. You can verify this by commenting out the exception from your tests. In C++: //throw 1; $ g++ -O3 -g -std=...

I don't really see any way to do that reasonably in C.
 
10:19 PM
Interesting question though. Might we enable the C++ build to use the zero cost exceptions, so long as the C build still has an alternative/fallback?
We'd have to wire the PUSH_TRAP a little differently so it was a try/catch in the C++ build, not necessarily super easy, but also not necessarily super difficult either.
 
In looking over Red's move as shown used by Doc here, gitter.im/red/red/France?at=58f8ae6c3e27cac331a82e2a, I played with ren-C's a bit and I think I've found a bug.
    >> a: [3 4 5] move a 2
    ** Script error: limit has no value
    ** Where: move
    ** Near: ... unless limit ?? [limit: 1] if skip [
        if 1 > size [ca...
 
10:36 PM
@Adrian Haven't used move, but yup. In Ren-C, unused refinements or locals are void, and that relatively unknown/unused function hasn't been updated. Should say limit: default [1], not unless limit [limit: 1]
 
Doc says he added move recently. I like the Red implementation more than R3's, I think. Well, it is missing some of the functionality in the Rebol version, but it has added stuff too.
 
@Adrian Well, be our guest :-)
 
@HostileFork should I combine the two?
 
@Adrian I don't think anyone has ever mentioned that function in chat, and you'd be hard pressed to find anyone using it. If it's come up recently and people are giving it scrutiny, there's almost certainly no harm in you syncing it and bringing it up to date with what people decide is reasonable, assuming it is. So yup
 
11:28 PM
So move is a genetic roll?
 

« first day (2363 days earlier)      last day (1417 days later) »