Posts: 4,647
Threads: 1,494
Joined: Sep 2016
how many of
you have ever written a Python function in C, even if just for Python2? i am wanting to get some idea how hard this is to decide if it is worth pursuing.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,647
Threads: 1,494
Joined: Sep 2016
i suspect the C code will have to deal with the internals of how Python stores data and interfaces to function (if the C code needs to call a function that is in Python).
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,647
Threads: 1,494
Joined: Sep 2016
i was going to make one that called the kernel pivot_root() syscall. the os module doesn't have it.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,647
Threads: 1,494
Joined: Sep 2016
i think maybe i still need to make my own .pivot_root() so i can integrate the installation. it looks like butter may be difficult for end users of my script that needs to call .pivot_root().
my script will run early in the system init steps, terminate or kill all processes, set up virtual memory file space for the system files, copy the system files to that space, switch / to that space, unmount the original system files, and start init all over from the beginning there. in the case of cloud instances, it will also detach and delete the system volume that was a copy of the system image it all was started from.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,647
Threads: 1,494
Joined: Sep 2016
i would like to see simple examples. this means not some big script the somewhere deep in there it does what i want to learn. it should be something where the thing of interest is a substantial part if it. examples written to be examples are usually best.
does anyone know where i can find good examples that really work (even if it is something C is not needed for, such as making a new string which is the merge of all its arguments)?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.