Heterogeneity interpreter integration: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
* Entry point
* Entry point
** Run the script from web browser: timeout<ref>[https://stackoverflow.com/questions/5798707/browser-timeouts Browser Timeouts - Stack Overflow]</ref>/crash
** Run the script from web browser: timeout<ref>[https://stackoverflow.com/questions/5798707/browser-timeouts Browser Timeouts - Stack Overflow]</ref>/crash
** Run the script from command line: length limit<ref>[https://support.microsoft.com/en-us/help/830473/command-prompt-cmd--exe-command-line-string-limitation Command prompt (Cmd. exe) command-line string limitation] when error message 'The command line is too long.' met on windows.</ref>
** Run the script from command line: length limit e.g. 8191 characters on {{Win}} <ref>[https://support.microsoft.com/en-us/help/830473/command-prompt-cmd--exe-command-line-string-limitation Command prompt (Cmd. exe) command-line string limitation] when error message 'The command line is too long.' met on windows.</ref> & 262144 on {{Mac}} high Sierra<ref>[https://serverfault.com/questions/69430/what-is-the-maximum-length-of-a-command-line-in-mac-os-x mac osx - What is the maximum length of a command line in Mac OS X? - Server Fault]</ref>
 
* Interpreter level
* Interpreter level
** First interpreter timeout/crash: e.g. First interpreter (.PHP) is timeout but second interpreter (.PY) is still running.
** First interpreter timeout/crash: e.g. First interpreter (.PHP) is timeout but second interpreter (.PY) is still running.
** Second interpreter timeout/crash
** Second interpreter timeout/crash
* System level
* System level
** e.g. memory error caused by second interpreter
** e.g. memory error caused by second interpreter
* API level
* API level


References
== References ==
<references />
 
== Related articles ==
* [https://stackoverflow.com/questions/34957283/how-to-properly-call-python-3-script-from-php How to properly call Python 3 script from PHP? - Stack Overflow]
* [https://stackoverflow.com/questions/34957283/how-to-properly-call-python-3-script-from-php How to properly call Python 3 script from PHP? - Stack Overflow]
* [https://www.r-bloggers.com/integrating-php-and-r/ Integrating PHP and R | R-bloggers] {{access | date = 2017-12-18}}
* [https://www.r-bloggers.com/integrating-php-and-r/ Integrating PHP and R | R-bloggers] {{access | date = 2017-12-18}}
* [http://php.net/manual/en/function.set-time-limit.php PHP: set_time_limit - Manual]
* [http://php.net/manual/en/function.set-time-limit.php PHP: set_time_limit - Manual]
Related articles
* [https://stackoverflow.com/questions/27863484/run-python-script-from-php-save-process-pid-and-dont-wait-it-to-finish Run Python script from php, save process pid, and don't wait it to finish - Stack Overflow] ''un-verified''
* [https://stackoverflow.com/questions/27863484/run-python-script-from-php-save-process-pid-and-dont-wait-it-to-finish Run Python script from php, save process pid, and don't wait it to finish - Stack Overflow] ''un-verified''


[[Category:Programming]] [[Category:PHP]] [[Category:Python]]
[[Category:Programming]] [[Category:PHP]] [[Category:Python]]

Revision as of 14:48, 12 January 2018

Considerations of multi-languages Interpreter integration

Input / Output

  • ill-formed input and output

Unexpected conditions / errors

  • Entry point
    • Run the script from web browser: timeout[1]/crash
    • Run the script from command line: length limit e.g. 8191 characters on Win Os windows.png [2] & 262144 on macOS icon_os_mac.png high Sierra[3]
  • Interpreter level
    • First interpreter timeout/crash: e.g. First interpreter (.PHP) is timeout but second interpreter (.PY) is still running.
    • Second interpreter timeout/crash
  • System level
    • e.g. memory error caused by second interpreter
  • API level

References

Related articles