Search code examples
pythoncross-platformserver-side

What server-side language do I choose for cross platform application


I'm embarking on uncharted territory and am about to leave the comforts of Windows and .Net. I'm mid-savvy with Linux and am running nginx and nodejs today.

The requirements I have is to be able to develop a server-side implementation that can:

  • run on common platforms (Linux, Win, Mac)
  • indepedantly can use for instance jdbc to connect to different tsql rdbms servers (oracle, mysql, sql server, postgres)
  • get me started in reasonable time (haven't been writing c/c++ in many years)
  • support socket and threading
  • relatively short learning curve

My questions are:

  • Is python a good choise? Pros/cons
  • Is python slow enough to warrant using c/c++?

Let me know if you have any questions and I'll clarify.

/K


Solution

  • Python would suffice. You can do web sockets, sockets and have access to almost any database under the sun.

    But in my opinion, the only thing that fully does exactly what you ask for, is Java. You can use Play framework for example, that way you only use standard java, not the java enterprise.

    There you have jdbc, threads, sockets and everything else, and your code will run on anything from the tiniest pc machine with windows or linux, to Solaris and even on mainframes without changing a line of code.

    I personally prefer python as of late, but Play framework was very good.

    You might look into Ruby on Rails if you want. Their ORM system is extremely good, and they have drivers for most relational databases and even without changing your code you can do MongoDB.

    You don't really do C/C++ for web server development anymore