« first day (949 days earlier)      last day (2831 days later) » 
01:00 - 07:0007:00 - 00:00

7:02 AM
@GrahamChiu Looking into h2a again, seems that newlines get lost in a part of the text, that should just be copied verbatim.
 
I'm only removing single spaces
 
Ok, so if I access redis server directly from TCP, there's no problem with timeout. However, if I try to access it from REDIS scheme (that calls TCP awake handler), the timeout problem is present.
 
so the issue is in your write actor
 
The lack of documentation how to implement it is killing me
 
7:13 AM
I don't think it's the problem, as I never encountered that error.
 
just saying
 
If I check if the TCP port is open in the WRITE actor, I get false. If I try to write to TCP port, I get error, Port is not open. If I try to open it, I get error 10038. How does this make sense???
 
rp: open redis://ip:10
write rp [ block data ]
wait rp/state/tcp-port

I guess that doesn't work?
rp: open redis:// does not open the actual port
it's just an actor
the port is not opened until you wait on the port
ie. you only open the port once the event system is started
I think your whole async block at github.com/rebolek/prot-redis/blob/master/prot-redis.r3#L459 could be replaced by my sync-write function github.com/gchiu/Rebol3/blob/master/protocols/prot-demo.r#L62 except just remove this line github.com/gchiu/Rebol3/blob/master/protocols/prot-demo.r#L69 so that it just uses the async handler you installed
 
@rebolek - look at Other sections here - some good info on ports might be there - rebol.net/wiki/Table_Of_Contents
 
the sync version just uses a pre made async handler
the async version allows you to install your own async handler
 
7:21 AM
here's a flow of low level read/write actions - rebol.net/wiki/TCP_Port_Details
 
everything is async .. we just call it sync if you use a default handler
hope that makes sense
 
@GrahamChiu Yes, that works. Why???
 
magic!
 
It makes less and less sense to me...
 
in the sync write I have, I wait on the tcp port
you're waiting on the wrong port
well, my guess
there's this confusion about the main port and the sub port or tcp port
easy to get mixed up
 
7:26 AM
Yes, it's confusing and the docs aren't very helpful.
So, if I understand it, the problem with:

rp: open redis://192.168.211.10
write rp [ SET asynctest true ]
wait [ rp 3 ]

Is that I wait for my redis port and not for tcp subport?
 
Yes
You're not adding the tcp port to the list of ports in the wait list
 
Hmm. Ok, I give up on WAIT. I hated that function in R2 and now I hate it even more.
 
no just wait!
wait says take the tcp port, add it to the list of ports being monitored, and then start the event system ( afaik)
start-tcp-port: :wait
 
isn't there some "wait list" somewhere in the system, to which you can add?
 
@BrianH I'm likely going to use airbnb.com. Checked it out and there are quite a few available rooms in the area. Really nice ones.
 
7:38 AM
@pekr That's what wait does
 
@GrahamChiu But how can I add it?
 
if you don't add a port, then it just kicks off the event system
 
Why it's not added by the scheme?
 
but you're writing an async version so you need to do the wait yourself
 
@GrahamChiu Yes, but isn't it sync-write?
 
7:40 AM
just a name I used
 
I have sync version that works well, I just want to add async one.
 
well, it works async .. you just tested it
 
(it works well because I used your code ;)
 
and I based it on previous work
so, currently my ftp scheme has to use 'wait at the console to kick events off
 
So this wait until timeout also wait [ rp/state/tcp-port 3 ]
 
7:42 AM
because it's all written async
@rebolek yes
because they're written to be used as command line tools
this is not as hard as writing text-tables!
 
@GrahamChiu Not sure...maybe I should move back to text-tables ;)
Unfortunately I need this working...
 
@rebolek text-list first please .. I still have a bug when I insert into the demo layout!
 
@GrahamChiu I hope I can get this async witchery to do something useful today and then it's text-list... I promise!
 
Just sing out if you need help ...
 
7:57 AM
@GrahamChiu Do you think that there's a way if I open redis port, I can wait for redis port, so it makes sense and not for internal tcp subport, so it's complicated?
 
You can add the wait to the write actor so it's transparent to the user
 
I can't imagine telling to someone: "look, it's easy! You just open the port you want then just wait for it's internal subport and not for the port you just opened."
 
@rebolek but you would ask users to use the sync version
 
But if I move wait to write actor, it's not going to be async.
 
By putting the async handler in the redis port, you can check in the write actor if it's there .. and so you know to use the wait in the write actor
so the write actor checks to see if you have an async handler, if so it copies it to the tcp-port if it is not already present and then does a wait on the tcp port to kick off the write
the async version leaves the port open, the sync version write closes the port
 
8:07 AM
@Sgeo Ladislav just posted about this stuff on AltME (you should be hanging out there as well until it becomes redundant). You're missing out on a fair bit of Rebol/Red chatter if you don't visit there.
@Sgeo, some docs @Ladislav put up.
https://github.com/saphirion/documentation/blob/master/arity.mdp
 
@Adrian not web public?
 
not all groups
 
that group?
 
yeah, that one is public
it won't hurt @Sgeo to check there once in a while (it only hurts @HostileFork)
anyhow, maybe I've already mentioned it to him, but he didn't see the point
 
@DocKimbel it was mentioned last week that people can't pass the captcha to register on CC
 
8:18 AM
@GrahamChiu Where's the original of the Anti-Alias.txt? I just want to check how it originally looked.
 
@GrahamChiu But is there any difference between sync and async handler for TCP port? Wait and other stuff is part of actors.
(for blocking version)
 
all tcp is async.
how you handle the opening and closing of ports, and how you use the actors determine what you call it
 
Hm.
 
In R2 everything was sync, in R3 everthing is async
2
 
8:28 AM
I probably still have bits of R2 mindset :)
 
Just stand on your head for a few hours each day .. does wonders to clear the head!
rebol3 turns everything upside down!
 
@GrahamChiu Let me try creating a new account on CC...
 
@sgeo here is the one with the issue
 
@GrahamChiu Indeed, I can't pass it either...looking into the code...
 
9:09 AM
@GrahamChiu Issue fixed.
 
cool
I guess I forgot that CC was on github too
@rebolbot save "CC-source" "Source code for Curecode" github.com/dockimbel/Curecode
 
@GrahamChiu CC-source is already a key
 
Doh
@rebolbot cc-source
 
Yep, brain is on the frizz
 
9:25 AM
@GrahamChiu so, WRITE is not executed until WAIT is called in async mode?
 
nothing happens until the event system is kicked off
so if the event system is active, then a write happens.
if not, then you need to do a wait to kick it off
you need to forget about async and sync .. it's all async
 
And how can I make it active without wait
 
well it needs to be active first then
but then you can't do the write !
ahh.. you can do the write from a gui
so say the event system is active, and so is the gui, you can send a write by using a button on action handler
 
I don't need GUI yet. I just want to open the port and write to it without wait.
 
Here you are .. an example :) compkarori.co.nz:8000/Rebol3/R3_GUI/Sendfax.r
anyway, you need to have 'wait in your write actor as I mentioned above if you want to do that from the console
and not have to type 'wait at the console
that gui example of mine looks bad now ... I didn't know what I was doing then
 
9:43 AM
I don't know what I am doing right now :)
But if I have to wait before next write, then I'm blocked.
 
can you show me your console code so I can see what exactly you're attempting to do
 
I'm trying two consecutive writes:
rp: open redis://192.168.211.10:6379
write rp [SET atest2 nazdar]
write rp [SET atest3 bazar]
wait [rp/state/tcp-port 10]
print mold to string! rp/state/tcp-port/spec/redis-data
close rp
 
it wont' work
what I did for this was to send all the writes in one go as a block and then the write actore queued them up
Let me find the example
In this example, if the write actor receives a block of commands, it uses the sync write function to write each one to the port, does a wait, the read returns from the wait, does another write, and then another wait until finished
It then returns all the read data in one go
that code is no longer working .. I think I broke it after that ... but it worked when I first wrote it :)
 
But waiting slows it down.
 
Does the redis scheme support serialised writes?
I mean the redis software?
Like sql, can you send combined commands?
and have you timed it? Are we talking microseconds or milliseconds?
 
9:59 AM
Yes, it supports serialized writes.
 
I guess you have lots of options then?
 
Hmmm
I get around 0.01 - 0.03 sec locally to VM for one operation (open/write/wait...).
 
 
2 hours later…
11:44 AM
@HostileFork As mentioned in the Trello card related to that, the current plan is to get the issue database into a separate Github repository, tentatively called r3-issues. A separate (issues-only) repository simplifies administration.
 
 
4 hours later…
3:44 PM
@GrahamChiu OK, so the first problem, which I should have noticed sooner:
- a linebreak in an asciidoc table means a new line, so I remove all newlines in a table. Is there a way to add multline table to asciidoc? Will have to find out.
- For some reason, in the Anti-Alias.txt the all tags fall through to the catch-all phrase. Is there some different encoding?
How do I make test prints in Rebol3, which are readable, not binary? (I guess I new it once, but right now ...)
@HostileFork What's the usage pattern for your new logo? Is it encouraged to use it on all Rebol related sites, or only for 'official' sites?
 
@ingo The best policy I've got is that it can be used wherever the Rebol name can be used. So technically it's Carl's/RebolTechnologies call. However, I do think it is nice for people to invent their own spins and that the design we've been thinking about for rebolsource.net can be used in "official community sites".
It's a motif, and one can riff off of the design in a tasteful way without looking too much like the "official" pages. I can offer some advice on that, if you have a specific application in mind.
 
4:02 PM
@ingo - to-string read %file.txt
 
@pekr Incidentally, the fashion these days seems to be that we drop TO-STRING etc and instead use TO STRING! ... putting the hyphenated version to rest as another R3/Backward. Any opinion on that? I feel like it's good personally, because I didn't even know there was a non-hyphenated generalized TO for some time.
 
well, you would have to ditch make-* functions we tend to use, etc. Not sure about usefullness of such an aproach. Also - when I use help at prompt, I just type >> help to- .... and it list me all available functions ...
but - I have no strong opinion on that, I think there are more important topics, as finishing console, call, protocols, new skin for gui
 
@pekr Thanks, that's what I tried, and seemed not to work ... guess I'd forgotten to reDO the file, after the changes.
@HostileFork I'm thinking to rejuvenate an old website of mine, which never really took off. Guess I'll take you up on this once I've got something to show off.
Sorry, have to go now. See you later.
 
4:18 PM
@ingo TTYL
 
 
2 hours later…
5:48 PM
@HostileFork that's just your fashion - most others don't agree. However, the low-level mezzanine code shouldn't use those functions, and it's a nice goal to make it possible for them to be optional, even if they're included by default. Most people aren't as minimalist as you, Fork.
@pekr most of the make-* functions need replacing for behavioral reasons, but we don't need to ditch them. They've already been moved to the sys context, out of lib.
The goal of Rebol 3 was to make it seem monolithic from the outside (one exe), but have that monolith internally be made of modules. And then the default interpreter would have some of those modules imported by default, and some delay-loaded for future reference. But it's also the goal to make minimalist builds possible, to delay or not include at all as much as possible.
 
Douglas Crockford: Advanced JavaScript
it's pathetic... he goes thru all the shit in js. he says things, like:
"how do you do inheritance with power constructors? it turns out, it works really really well. i call it parasitic inheritance."
"so i use the new keyword only once in my object() function. thats how i factored it from my whole application"
and he also says many times how the syntax is ugly. he even calls syntactic sugar syntactic rat poison...
 
 
2 hours later…
8:07 PM
@onetom Picking on JavaScript these days is like picking on X86 assembly for being clunky... it's abstracted away by almost everyone.
 
8:52 PM
posted on June 06, 2013 by BrianH

[Comment] Relying on third-party toolkits would be OK if we only support them if they're already installed to support apps that use them. But that's not what I was talking about: Linux standard GUIs have multiple, incompatible clipboards, at the same time. In general, each GUI or non-G UI framework has a different clipboard. Linux itself doesn't have a clipboard at all. Different approaches: F

 
 
1 hour later…
9:55 PM
so a clipboard:// r3 extension for those platforms?
 
10:25 PM
@BrianH looks like Ladislav says that removing return/redo wasn't decided yet on Altme or that he changed his mind
 
@GrahamChiu Very inaccurate interpretation of what I actually did state.
 
11:23 PM
@Adrian @GrahamChiu FYI It has been a very busy time for me at the moment, but I should have more time next week to work on the EC2 instance and the bot
 
@Ladislav "Looks like" to me ... who knows what goes inside your head.
 
01:00 - 07:0007:00 - 00:00

« first day (949 days earlier)      last day (2831 days later) »