Coffee, and possibly horses - #14
Conversation
|
Oh and it supports |
|
Nice. Does it support fibers? |
|
The irony that this is 28 lines largely because you can't use semi-colons in Coffeescript overwhelms me. |
|
Fiber support is coming when I rewrite in Fargo. |
It's 15 lines if you replace semicolons with newlines in the Ruby version. |
|
@rkh how the heck is this PR still open |
|
Hahaha. Amazing. It's not mergeable anymore, could you maybe rebase? |
|
Still needs a rebase. |
|
@rkh Why can't you just merge it anyway. Don't be such a pedant. |
|
Any updates on this? |
|
lmao |
rentalcustard
left a comment
There was a problem hiding this comment.
i demand that you make it better.
| @@ -0,0 +1,17 @@ | |||
| [J,M,duc,euc,n,e,w]=[JSON,Math,decodeURIComponent,encodeURIComponent,((p)->p.replace(/\/*$/,'').replace /^\/?/,'/'),((d,s)->d[k]=(if d[k]instanceof Array then d[k].concat v else v)for k,v of s;d),(s,c)->s.split(/\s+/).map c] | |||
There was a problem hiding this comment.
Pretty sure this should be [K,M,dfm,euc,n,e,w]=
| %title= title | ||
| %body | ||
| %p= site_name() | ||
| %a{href: '/hello?name=World'} Say hello! |
| .git | ||
| .gitignore | ||
| .npmignore | ||
| .redcar |
There was a problem hiding this comment.
Remove this line to make it merge cleanly
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
| this software and associated documentation files (the 'Software'), to deal in | ||
| the Software without restriction, including without limitation the rights to use, |
| next() | ||
|
|
||
| app.get '/', -> | ||
| @cookie message: {value: 'Sinatra; it’s a framework', path: '/hello'} |
| , "dependencies" : {"async":"", "faye-websocket":"", "vault-cipher":"", "haml":"", "ejs":"", "mime":""} | ||
| , "devDependencies" : {"coffee-script":""} | ||
|
|
||
| , "licenses" : [ { "type" : "MIT" |
| <div class="sub"><pre class="prettyprint">$ curl 'localhost:4567/hello?name=_why' | ||
| Hello _why, welcome to Awesome.net!</pre></div> | ||
|
|
||
| <p>You can also register templates in the app code itself:</p> |
|
@rentalcustard or, maybe, I could not |
|
@jcoglan as a man in the Open Source Community I demand your labour time on this |
|
Still needs a rebase. |
|
@jtarchie yes, still waiting for rebase. |
|
Any movement on this? I require this critical infrastructure for my application. |
|
Anyway to get this merged in? We've been waiting awhile for the new features. |
|
We missed the chance to merge this on its tenth anniversary. We should revisit it in 2032. |


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:
paramsto url-encoded body or query string valuesI hope you can see how this is clearly better than doing it in Ruby, which everyone knows isn't a real language.