almost-sinatra icon indicating copy to clipboard operation
almost-sinatra copied to clipboard

Coffee, and possibly horses

Open jcoglan opened this issue 13 years ago • 20 comments

Yeah, so I don't think is really going to scale to meet the growing needs of HorseBook. I need to support 1,000,000 requests per second and the only way you can do this is with a lightweight modern platform like CoffeeScript.

I've ported your framework to Coffee and am already running it in production. Features:

  • Routes based on path and method
  • Sets params to url-encoded body or query string values
  • Before blocks
  • Renders HAML and EJS
  • In-memory sessions
  • Works great with MongoDB

I hope you can see how this is clearly better than doing it in Ruby, which everyone knows isn't a real language.

jcoglan avatar Aug 18 '12 17:08 jcoglan

Oh and it supports PATCH which is a real deal-breaker for the Ruby version. Can Ruby even do PATCH, idk?

jcoglan avatar Aug 18 '12 17:08 jcoglan

Nice. Does it support fibers?

rkh avatar Aug 18 '12 17:08 rkh

The irony that this is 28 lines largely because you can't use semi-colons in Coffeescript overwhelms me.

arsduo avatar Aug 18 '12 17:08 arsduo

Fiber support is coming when I rewrite in Fargo.

jcoglan avatar Aug 18 '12 17:08 jcoglan

The irony that this is 28 lines largely because you can't use semi-colons in Coffeescript overwhelms me.

It's 15 lines if you replace semicolons with newlines in the Ruby version.

rkh avatar Aug 18 '12 17:08 rkh

@rkh how the heck is this PR still open

jcoglan avatar Aug 01 '13 13:08 jcoglan

Hahaha. Amazing. It's not mergeable anymore, could you maybe rebase?

rkh avatar Aug 01 '13 20:08 rkh

Still needs a rebase.

rkh avatar Jul 08 '14 10:07 rkh

Nope #sorrynotsorry

jcoglan avatar Jul 08 '14 10:07 jcoglan

@rkh Why can't you just merge it anyway. Don't be such a pedant.

fnx-ableton avatar Jul 08 '14 11:07 fnx-ableton

image

rkh avatar Jul 08 '14 11:07 rkh

Any updates on this?

rkh avatar Mar 18 '17 04:03 rkh

lmao

jcoglan avatar Mar 19 '17 01:03 jcoglan

@rentalcustard or, maybe, I could not

jcoglan avatar Mar 20 '17 10:03 jcoglan

@jcoglan as a man in the Open Source Community I demand your labour time on this

rentalcustard avatar Mar 20 '17 10:03 rentalcustard

Still needs a rebase.

jtarchie avatar Jan 16 '19 19:01 jtarchie

@jtarchie yes, still waiting for rebase.

simi avatar Jan 23 '20 01:01 simi

Any movement on this? I require this critical infrastructure for my application.

tekknolagi avatar Sep 22 '21 18:09 tekknolagi

Anyway to get this merged in? We've been waiting awhile for the new features.

jtarchie avatar Jan 13 '22 21:01 jtarchie

We missed the chance to merge this on its tenth anniversary. We should revisit it in 2032.

rkh avatar Apr 12 '23 11:04 rkh