Python vs JS vs PHP for embedded systems
I've got a question about which programming language is preferable for developing websites in the embedded system (hence with some limited resources). Here is my small investigation in a table form.
|Runtime Size (Gentoo Linux x86)||~1.4Mb (/usr/lib/libpython3.1.so)||~3.2Mb (/usr/lib/libv8.so)||~7Mb (/usr/bin/php)|
|Type System||Strong Typing||Weak Typing||Weak Typing|
Additional notes (I didn't include them in the table due to its irrelevance in some cases):
- Python is supported on enormous amount of platform, PHP - on slightly less, V8 - only on Linux/Windows/MacOSX.
- Sometimes compiling V8 can be tricky depending on target platform.
- PHP is highly redundant and don't have thorough naming conventions for its functions (just take a look to its string functions).
- People matter - for example, if you don't have PHP experts in your team, it can be risky to use it for development due to its pitfalls.
I someone want to share ideas and other criteria you're welcome!