HNHacker News
TopNewBestAskShowJobs

lifo

193 karma · joined May 1, 2008

submissionscomments
lifo··on Oasis Labs: privacy-first high-performance cloud computing on blockchain
How is this different from Enigma, https://enigma.co, which originated at MIT a few years back and did an ICO last year? Enigma already has TEE (they have Intel partnership for that) and sMPC is coming up.
lifo··on Existential crisis at Railsconf
You can't use Faye without eventmachine. Cable only uses faye-websocket though - https://github.com/faye/faye-websocket-ruby . Do let me know if you had any negative experiences with that. I don't know about the state of the things in the 1.9.3 days, but faye-websocket has always "just worked" for me.
lifo··on Existential crisis at Railsconf
As someone who's done the bulk of the work for Action Cable, I wanted to clear the confusion re: cable and eventmachine. Cable is currently using EventMachine because it uses faye-websocket for dealing with websockets. And Faye is one of the very few well maintained ruby library dealing with websockets.

And in fact, Action Cable uses Celluloid threadpool to run all the application code in threads. So the model is a combination of EventMachine + Threads.

There's absolutely no reason it can't use Threads + Celluloid all the way. But building on top of Faye was the simplest way to get things up and running.

lifo··on Justin.tv porting their site from Rails to Django?
> That's correct, but any C IO (such as DB queries) will generally release the GIL, which allows other threads to run.

Ditto with Ruby too.

lifo··on Asynchronous ruby framework for websockets, eventsource and streaming
Personally, I think Cramp's interface is a lot better than Goliath when it comes to streaming, because everything is streaming in Cramp. YMMV. https://github.com/lifo/cramp/blob/master/examples/sse/serve... in case you want to compare. Also, goliath websockets branch looks outdated.

FWIW, I do like Goliath. More async solutions in Ruby the better!

lifo··on Asynchronous ruby framework for websockets, eventsource and streaming
1. It can work within the same Rails process if you're using async Rails.

2. http://cramp.in/examples two chat apps there. But I don't have a live demo running.

lifo··on Asynchronous ruby framework for websockets, eventsource and streaming
It's a great fit when you need to use your existing Ruby code. Active Record models for example. It works very good alongside async sinatra as well.

All said, it all boils down to your personal choice of languages.

lifo··on Asynchronous ruby framework for websockets, eventsource and streaming
I'd love to see it too! However, I do think the comparisons should be about the ability handle the number of open connections seamlessly and not req/sec. And relevant memory/cpu usages.
lifo··on Asynchronous ruby framework for websockets, eventsource and streaming
Ha! I didn't realize about '/'. I asked in #startups about giving my old thread a bump but no one responded. So I tried making a new post and it worked!
lifo··on Asynchronous ruby framework for websockets, eventsource and streaming
Cramp is a fully asynchronous web framework that's very good at dealing with thousands of open connections. It supports WebSockets (latest protocol) and Server-sent Events out of the box. Optionally, supports using Ruby 1.9 fibers to prevent spaghetti evented code - which means seamless Active Record integration.
lifo··on What’s Up With All These Changes in Rails?
You seem to know very little about Rails 3. But if you think ramaze has a "community", I guess I can understand why.