News for hackers. Stuff that matters.
Re:HostDB by senthilnayagam on Sunday November 10, 2013 @03:41PM (#6708340)
good to see a indian startup open sourcing one of their internal tool.

only question why perl and fcgi? why not golang, python or ruby for it

I last used fcgi 6-7 years back when that was the only option to host rails apps.

Re:HostDB by draegtun on Monday November 11, 2013 @06:29AM (#6711067)
>why perl?

Perl is very popular in India. Here's what Flipkart said in their blog post about HostDB:

The first prototype was written in Python by Abhishek. Both Krishnan and I refuse to read Python and Krishnan rewrote the whole thing in Perl one night

Re:HostDB by X-Istence on Sunday November 10, 2013 @03:59PM (#6708415)
Why not FastCGI? It is just another way to connect from the web server to a long running app, just like WSGI is...
Re:HostDB by senthilnayagam on Sunday November 10, 2013 @04:16PM (#6708479)
most modern apps and frameworks dont recommend FCGI

Rails deprecated its use 4 years back ( https://github.com/rails/fcgi_handler ), FastCGI is deprecated in Django as well( https://docs.djangoproject.com/en/dev/howto/deployment/ )

common pattern is a reverse proxy to a C based server with or without evented loop with some reverse proxy/load balancer, or some compiled implementation in jvm, golang, beam etc

Re:HostDB by X-Istence on Tuesday November 12, 2013 @04:42AM (#6716768)
I am familiar with Python ... and I can understand that FastCGI was never really supported in the first place there, especially since Python has WSGI.

I am not as familiar with Ruby.

But just because "modern apps and frameworks" don't recommend it doesn't mean it is a bad protocol. PHP with PHP-FPM is awesome and well supported. Fast CGI still has a place in this world, and I don't see why just because some apps/frameworks have decided it isn't worth their time to support it, it would be an invalid choice to make for a new app...

Re:HostDB by senthilnayagam on Tuesday November 12, 2013 @12:47PM (#6719361)
perl is a language which has not seen any new adoption by developers, same is true about fastcgi. they were the best/state of the art 5-10 years back

was it a design decision or they chose it as no alternate mechanisms/libraries is available in perl.

these decisions are important to know for a open source project, it will determine its adoption, number of contributors, and will it flourish

Re:HostDB by draegtun on Friday November 15, 2013 @05:07AM (#6738619)
>perl is a language which has not seen any new adoption by developers...

This is incorrect. Perl is still seeing good adoption by new developers.

Now your argument could be that it probably not at same rate compared to some of the top languages around at this moment but Perl is still growing.

Some facts...

- CPAN continues to grow - http://cpants.cpanauthors.org/stats/uploads | http://cpants.cpanauthors.org/stats/authors

- According to this tweet Perl still produces more new repos on Github than languages like Scala, Clojure & Go - https://twitter.com/dberkholz/status/395922559151009792

>was it a design decision or they chose it as no alternate mechanisms/libraries is available in perl

No idea what their decision criteria was however they are plenty of alternative mechanisms/libraries in Perl.

See PSGI/Plack for Perl's state of the art solution - http://plackperl.org