erikg: I like how you tried to use shell chars, but I think > for forks and write to files at the same time a bit confusing
and overall I'm a bit on the fence to what is better, | and > chars, or pipe and fork words
erikg: it's seems the chars are a bit more confusing/noisy, but maybe that's just a matter of getting used to that style. I don't like that Makefiles use a lot of weirds chars and at some point start looking more like perl regex. I think sometimes keywords are better, like in Dockerfiles
cool. erikg: it would be cool maybe to set up an example of using dat as the backend/serve point for their viz tool
and then later down the road (once we have dat script at some sort of alpha) using dat script to pipe some data in/out perhaps & show the power of both together.
pkafei
will be in Oakland from 12/7 - 12/14
paulfitz joined the channel
tphummel has quit
dat-git-bot
[dat] podviaznikov opened pull request #224: Fix example. Should be an array (master...patch-2) http://git.io/f5Clhw
paulfitz has quit
shama has quit
tphummel joined the channel
tphummel has quit
tphummel joined the channel
tphummel has quit
domanic joined the channel
floppy has quit
erikg
karissa: it should be easy for them to work from dat, provided indexes on quantities of interest
floppy joined the channel
karissa: also the iobio demo has been useful from time to time for randomly QC-ing alignments, but for some reason they seem to be stuck in demo land. grant applications.
karissa: try github is awesome- it has a slick interface
domanic has quit
domanic joined the channel
floppy has quit
paulfitz has quit
ogd
mafintosh: ping, im doing the live socket upgrade switching thing in my high level socket lib
mafintosh
ogd: i'm here
ogd
mafintosh: so i have httpsocket and im writing a new module called sockets that starts by establishing a httpsocket connection and then if a websocket can be established it should switch to that
mafintosh: so to hot-swap the stream, i should just be able to duplexify.setReadable and setWritable the new one once the old one is closed/drained etc?
mafintosh: i forget what you said on the call about a feature it might need
mafintosh
ogd: that would work
ogd: i don't think it needs any new features for this
ogd: the feature we were talking about was the end:false option
ogd
mafintosh: ah right
trygve_
Just curious; is this for the browser?
ogd
trygve_: yep
trygve_
how often do you not have a websocket these days?
ogd
trygve_: browsers have them, but we recently launched a websocket-only app and ive got a ton of reports from users saying it cant connect. probably because some http proxies dont support 'upgrade' events
trygve_
we run a pretty large socket app here and running on ssl fixes that.
ogd
trygve_: i would use socket.io or sock.js or engine.io or primus or whatever but they are all so complicated
trygve_: ah yea good point
trygve_
I've come to always ssl on websockets. then your next enemy is mobile devices and even worse mobile devices on the move.
ogd
trygve_: mobile devices are bad because they dont have websockets or some other reason?
trygve_
mobile devices have good websocket support, though your problem will be that a mobile device on the move will have variable latenzy. Thats an issue.
then, the network will drop a bit without the browser knowing when user move between radio transmitters. then all socket connections drop (also long polling).
paulfitz joined the channel
ogd
trygve_: ah so you are saying that tcp alone does not provide enough redundancy?
trygve_
so, you do need ping/pong messages that give you information about latenzy. and you need a reconnect strategy on top of the ping pong messages.
yep
xat-
trygve_: what about sse?
ogd
xat-: sse is just http long polling so it should have the same issues he describes
trygve_
sse are a bit better since the browsers have implemented reconnects.
xat-
wouldnt that be the perfect solution for mobile problems, since it sends the last transmitted id in the next request
trygve_
you also have a third issue on mobile when it comes to sockets and that is that the mobile jumps into sleep mode. Ex; when the lock screen goes on the browser will silently kill all connections without informing you to save battery.
and this happens in a magical way. so you need to detect that your app gets focus and reconnect.
ogd
trygve_: ahh that is crazy
trygve_
sockets to the browser is not easy. its so much more you need around it than just the socket. I've recently switched to Primus and its the first library I've seen that deal with all these issues in a nice way.
ogd
trygve_: oh good to know
trygve_
I'm only using the ws module + Primus now. Pretty nice to be honest. Though; ws does seriously need a rewrite...
xat- is now known as xAt
floppy joined the channel
ogd
trygve_: i have used ws for a while but havent really looked at the internals. what are the major issues with it?
trygve_
code is a bit old. einaros is not really maintaining it anymore. some of the older ws drafts can be removed since the browsers supporting those are off the market now. it lacks support for the node stream api's. stuff like that.
there are also some C bindings in there which really is not needed anymore.
Talked with Arnout about it in Amsterdam a month ago and he would love to rewrite ws, but he don't have time (me neighter).
ogd
trygve_: ah nice, i might take it on
trygve_
that would be awesome. the node world needs a new websocket module (I know there has been talks about having native support in node for websockets. iow, including the ws module in the distro).
tphummel has quit
ogd
trygve_: do you happen to know if you can do wss:// from a http:// site?
mafintosh
bmpvieira: you going to dockercon next week?
trygve_
ogd: yes you can
ogd
mafintosh: so i think we should upgrade try-dat to use wss://