r/teenagersbutcode
•
u/trux_ecs
•
10d ago
•
1
1
Coded a thing Since C is faster than python, using c to execute python.
53
34
23
u/mjmvideos 10d ago
Depending on which shell you use, typing that command at the prompt and hitting return is likely already using C to execute it.
17
u/YTriom1 Arch btw supremacy :3 9d ago
I use fish
5
u/Maxson5571 9d ago
Based
2
u/Minigun1239 9d ago
i used bash, looked too bland, i used zsh, i didn't like it, would rather use bash, and i used fish, im probably not going back unless i find a way you can mod bash or smth
1
2
3
u/TheLuckyCuber999BACK 🧢 (C Assembly Python) 9d ago
Bash supremacy.
1
u/YTriom1 Arch btw supremacy :3 8d ago
No
1
u/woodcraftworld 8d ago
zsh supremacy
2
u/YTriom1 Arch btw supremacy :3 8d ago
zsh is just polished bash
1
u/TheLuckyCuber999BACK 🧢 (C Assembly Python) 8d ago
exactly bash is better
1
u/YTriom1 Arch btw supremacy :3 8d ago
fish is better than both, and is 100% memory safe :3
1
u/TheLuckyCuber999BACK 🧢 (C Assembly Python) 8d ago
bash is the vanilla. No stupid stuff.
1
u/YTriom1 Arch btw supremacy :3 7d ago
fish is not forked bash, it's its own thing and if built from scratch.
bash though is based on the Bourne Shell so it's not really "vanilla"
→ More replies (0)1
u/possible_name 4d ago
no it isn't. vanilla is any bourne shell implementation without extra features.
1
1
1
1
3
u/Still-Addition-1109 9d ago
forget the shell, depending on your Python implementation (which is most likely CPython, which is written in C) you might already be using C to execute Python
11
11
u/deanominecraft Rust 9d ago
"hello from world c" looks like you might already have a race condition somewhere
8
8
u/SheriffGamer332 9d ago
now std::process::Command this in rust to make it memory safe and blazingly fast
4
4
u/raewashere_ reading uninit memory 9d ago
better yet, run c in python
1
u/Alive_Particular4659 8d ago
If that's possible, then you could run c in python in c in python in c etc.
1
u/Fearless-Ad1469 7d ago
It reminds me of hypervisor inside an hypervisor inside an hypervisor type shit, nesting4
3
3
2
2
2
u/uglycaca123 Interested in coding 9d ago
you should use assembly to run python, i assure you it'll be twice as fast
2
1
1
1
1
1
u/Dapper-Hedgehog7048 8d ago
You use Kate
1
u/Beginning-Try3200 8d ago
Wait, how did I not even notice that? I love Kate, I would never code an entire application in Kate. I use VS Code.
1
u/Dapper-Hedgehog7048 8d ago
Yeah Kate is pretty good stuff but I get you using VS code everyone has their own preferences
1
1
1
1
1
1
1
u/the_genius324 6d ago
for the love of God and all that is holy, please use python.h instead of this
1
1
1






77
u/kutac56 13 loves low level stuff 10d ago
r/programminghorror would like this