16
Write Shell Out Comes Python
(github.com)
Welcome to the Python community on the programming.dev Lemmy instance!
Past
November 2023
October 2023
July 2023
August 2023
September 2023
I guess there are many benefits if subprocesses (usually written in C) are replaced with functions (usually wrapping C code). That way, you could run an entire OS scripts via Python, with sensible performance improvements.
BUT
Does this tool replace shell commands with python functions? Or does it just call many times
subprocesses.run()
?I guess the answer at this point in time is: it allows you to define the function replacements that matter to you in pnk.lang. But if so, ksh is not a first choice for maintainable code.
So it boils down to: can it "transpile" (transpret rather) its own code?
Im 4 levels deep into the abstractions if we could somehow have time to discuss. I have a discord server and the link is at reddit if you search for subreddit pnk. Im not sure atm if its ok to post links to other places.
No replacing. Its a shortcut to printing Python code. I wrapped Python in Shell. Thats it. Makes tkinter gui dev a breeze for me. I can make apps faster than you and we can test it out. LOL as a fun experiment lets make a video of you and I typing the same app. You do it with your editor and I do it with pnk. So everyone can see exactly what I mean. I apologize I am not very good yet at expressing technical stuff with others. Been a lone wolf for a very long time. Just life.