Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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. – user46 Dec 24 '12 at 16:59

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
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.