©
Call C from python
Illustrates paths from C to python. UNDER CONSTRUCTION
2024.Nov.25 06:34:10
Vector size, times v. size < 30 million Size, times executed.
Language         Language (main or subsidiary).
Method     Sorting method (...sort).
Show values Show values.

Python calls a C module in various ways. The work problem is the sorting of a random vector of given size.

#Draws a graph accordingly.


Computation structure — A PHP file (this page: 'P-cfrompython.php') calls (via 'action=') an intermediate PHP file ('Cfrompython.php'), which (through $_POST) sends the problem data as command line arguments to a Python script. This last does the computing, and executes graphing via 'gnuplot' (system call), for the final (temporary) webpage. Keywords: PHP, command line arguments, Python script, C, Fortran.

References: Plate: C-from-python

• (Wikipedia) PHP (from Personal Home Page).

• Python Built-in Functions, print.

• CISTI'2024, 19.ª Conferencia Ibérica de Sistemas y Tecnologías de Información (19.th Iberian Conference on Information Systems and Technologies), Cáceres (Spain), 19–22 June 2024 (to be confirmed as of Jan'23).

• 1786-02-02: Binet, Jacques Philippe Marie (†1856-05-12, 70 yrs.).

 
 
Valid HTML 5! IST http://web.ist.utl.pt/~mcasquilho/compute/meeting/Cfrompython/P-cfrompython.php
Created: 2023-02-02 — Last modified: 2023-05-13