Better HN
topnewbestaskshowjobs
Log inSign up

lifo

193 karma · joined May 1, 2008 (18y ago) · 16 submissions

Submissions

comment 8y ago · link · parent

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.

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

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.

comment 14y ago · link · parent

> 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.

5.

The Documentation Dilemma(37signals.com ↗)

49 points · by lifo · 14y ago · 10 comments

comment 15y ago · link · parent

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!

comment 15y ago · link · parent

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.

comment 15y ago · link · parent

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.

comment 15y ago · link · parent

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.

comment 15y ago · link · parent

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!

comment 15y ago · link · parent

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.

12.

Asynchronous ruby framework for websockets, eventsource and streaming(cramp.in ↗)

101 points · by lifo · 15y ago · 14 comments

13.

Cramp: Real-time web application framework in Ruby(cramp.in ↗)

10 points · by lifo · 15y ago · 1 comment

comment 15y ago · link · parent

You seem to know very little about Rails 3. But if you think ramaze has a "community", I guess I can understand why.

15.

Edge Rails gets application templates(m.onkey.org ↗)

2 points · by lifo · 17y ago · discuss