wuub / SublimePTY

ALPHA
143 stars 11 forks source link

Investigate asynchrous updates instead of RPC #18

Open wuub opened 12 years ago

wuub commented 12 years ago

Right now supervisor pokes each process every 0.2 seconds and also after sending any input event. It would great if console_server.py just let console_client.py know when something changed on screen.

guillermooo commented 12 years ago

I seem to remember you mentioned something about ZMQ. Any luck with that?

wuub commented 12 years ago

I wanted to use zmq as a reliable and low latency channel for keypresses and screen upades. After some tinkering I was able to load zmq extension into sublime and create both Context and Socket, but once anything connected to this socket sublime crashed hard.

guillermooo commented 12 years ago

I've been looking around and I can't find any "official" releases for Python 2.6. Were you using a driver for a different Python version perhaps?

wuub commented 12 years ago

IIRC I tried both win32 and amd64 2.6 binaries from here https://github.com/zeromq/pyzmq/downloads (obviously with 32 and 64bit st2). I suspect that boost python might not be playing so well with C extensions compiled for standard cpython and/or st2 didn't like zmq's background IO thread.

guillermooo commented 12 years ago

Shame. ZMQ looked like a good option and would make SublimePTY awesomer.