Take the 2-minute tour ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

If I'm looking to serve dynamic content, which language is going to be the best option(fastest I guess). So I guess I'm really asking what is going to be the fastest compiler/interpreter. From what I've read Java seems to be bad idea, but I've nothing to compare the other options, Python, Ruby, PHP.

share|improve this question

closed as not constructive by Bryan Dunsmore Dec 24 '12 at 16:59

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Hello Natt. Choice of programming languages is a very subjective topic and ergo I must close it as not constructive. If you choose a language though feel free to ask questions about it on Stack Overflow. Thanks. –  Bryan Dunsmore Dec 24 '12 at 16:59

2 Answers 2

Short: use ruby

Long: I have developed web-applications for 15 years and have not seen or heard anything that comes close to the ease of ruby on rails. But off course it always depends.

Sinatra (also a ruby framework) may be the better choice if it's just a small thing.

And even php may be good if it's a really small thing (1-2 pages). it certainly is easiest to deploy on a standard box. Php easily ends up a mess if it's bigger.

The speed you should probably be looking for is development speed, not execution. Ruby on rails (possibly with puma web server) and database access will get you maybe 10 concurrent users on the pi. With sinatra (and a less complex application) maybe 20.

Also ruby comes with an excellent package management, bundler, easy but powerful templating language (erb) and lots of gems to get you up to speed.

share|improve this answer

I don't know about fastest, but php is the most common for dynamic content. What matters most is what language you are best at/have packages utilizing.

share|improve this answer
    
most common for dynamic content on Pi? I am really concerned with performance, so the fastest jitter/compiler/interpreter. The language isn't the issue really. –  Nattrass Dec 22 '12 at 21:09
2  
What, more exactly do you want it for? You could in fact use C++ instead if speed is of the greatest importance. –  Gunnish Dec 22 '12 at 21:12
    
Good call, do you know any good c++ web frameworks suitable for the Pi. I'm just trying to avoid the sluggish performance i've read about regarding java –  Nattrass Dec 22 '12 at 21:35

Not the answer you're looking for? Browse other questions tagged or ask your own question.