4 ms·
Aside from the fact it's an obvious troll... I had that basic idea when web app frameworks starting becoming popular. So I implemented a web framework which to
by bensummers 17y ago
Aside from the fact it's an obvious troll...
I had that basic idea when web app frameworks starting becoming popular. So I implemented a web framework which took a 'description' of the app written in perl, and generated C++ which compiled into a single exe file which served the app with a built in http server. Small bits of business logic were written in C++, but basically it was done by the perl. All templates, internationalisation, everything, compiled down to a few database queries, string concatenations and the odd if statement.
I then build a couple of production sites in this, one on my own, and another with a few other developers.
Conclusions from this:
1) It's really really fast and efficient, and the single exe model for deployment is lovely.
2) It's a pain to implement such a framework, and a pain to use it.
3) I'm never using perl again.
4) Life's too short for this kind of game.
The code is here: http://www.boxbackup.org/trac/ticket/6 http://www.boxbackup.org/trac/ticket/6
- bad_user 17y agoI like Perl ... using modern Perl practices and CPAN modules. It's the best web development environment I worked with ... and I've worked on projects with PHP (my own framework :) + Symfony), Python/Django/web.py, ASP.NET, Java/Struts and Ruby/Rails. You should give it another try sometimes. Take a look at Catalyst (the web framework), DBIx::Class, Moose and POE.
- bensummers 17y agoI think I just got a bit fed up of the crufty syntax for object-orientated code. Everything computer-related sucks, you just have to choose something which sucks the least where it matters for your project. And familiarity counts for a lot too.