this post was submitted on 14 Mar 2024
16 points (90.0% liked)

Python

6343 readers
4 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

πŸ“… Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
πŸ’“ Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS
 

korn shell wrapper that outputs python code: you write shell > out comes the snake

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 8 points 8 months ago (4 children)
[–] [email protected] 5 points 8 months ago (3 children)

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()?

[–] [email protected] 1 points 7 months ago (1 children)

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?

[–] [email protected] 1 points 7 months ago

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.

load more comments (1 replies)
load more comments (1 replies)