23 points · by saurabh · 16y ago · 29 comments
Also, PHP really needs something like Plack/PSGI/Rack so that you don't have to manually reconfigure the web server for every library you want to use.
The Apache configuration mentioned in this article is pretty generic.
PHP has a standard HTTP interface, unlike the other languages before WSGI/Rack/JSGI/PSGI came around. Of course, PHP's interface isn't function-based, so you don't have the advantages of stackable middleware.
A spec closer to the *SGI's would indeed be nice.
http://github.com/dhotson/kelpie
It actually works pretty well, no apache required! It's pretty fast too.. all the init stuff you normally have to do every single request can be done once on server startup.
I also wrote a little sinatra style framework to go on top of it: http://github.com/dhotson/kelpie/blob/master/demoapp.php
Anyway, it's turning out to be a pretty fun little project. :-)
When I've tried to write long-running applications in PHP I always get memory leaks. How do you handle this in Kelpie?
This is an interesting idea, but I like better my syntax though. But again, I'm not even a real programmer.
I'm a poor self-promoter.
<snip>
But again, I'm not even a real programmer.
Modesty isn't very useful when promoting. Tell us why your framework is better! if (get('hello')){
// do stuff
}Too bad mine grew to become a monster, pretty much like all other popular PHP frameworks out there. I guess simplicity really is one of the hardest features to implement.
with gpl v2, it was a requirement. hence gpl v2 licensed applications such as wordpress and drupal don't need to be shared with site users
code built upon the framework is derivation and thus, has to be licensed accordingly
"To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying."
Are you sure you're not thinking of the Affero GPL?"Any of the license terms and conditions can be waived if you get permission from the copyright holder."
MVC is a descriptive point of view, not a prescriptive implementation plan. It's one of the only software idioms that's actually an Alexanderian Pattern, unlike the vast majority of the GoF that's just reflective of language warts/features.
There are tons of completely different ways you could describe the web as MVC:
Model View Controller
URL Response Request
DB Response Request
Response Hypermedia Sub-Requests
LocalStorage DOM Javascript
data:// JavaScript DOM Events
...