Post AzINQRBxIeIhSUFZuy by pythno@mastodon.gamedev.place
(DIR) More posts by pythno@mastodon.gamedev.place
(DIR) Post #AzINQOXp8t0jFRSV5U by pythno@mastodon.gamedev.place
2025-10-16T14:45:37Z
0 likes, 0 repeats
OK fuck it. I rewrite the Python code in C. Python is just an abysmal piece of shit.I need fucking TYPES and not some fancy oneliners that let me initialize 2d-array. I rather type out a few lines and be able to debug it. Good Lord.
(DIR) Post #AzINQPkcemqIzQSEfw by sol_hsa@mastodon.gamedev.place
2025-10-16T14:54:02Z
0 likes, 0 repeats
@pythno I go as far as to say it's an abysmal piece of shit. It's a tool, and like any tool, it has its right and wrong uses.I mean, I made RLE compressor with regex in python because that was the only performant way of doing it. Obviously the wrong tool... but worked out that time.
(DIR) Post #AzINQQa1ZfxXYqVHnM by sol_hsa@mastodon.gamedev.place
2025-10-16T15:11:07Z
0 likes, 0 repeats
@pythno On the other hand I wrote a file transfer server with python and haven't had to listen to zillion requests to support osx or whatever, it just works.
(DIR) Post #AzINQRBxIeIhSUFZuy by pythno@mastodon.gamedev.place
2025-10-17T00:09:03Z
0 likes, 0 repeats
@sol_hsa For sure, Python is fine for certain tasks. I am curious if you wrote it just for yourself or collaborated on the code with others?
(DIR) Post #AzINQRowxfUbPQUihM by floooh@mastodon.gamedev.place
2025-10-17T07:07:38Z
0 likes, 0 repeats
@pythno @sol_hsa IMHO Python is great for cross-platform scripting (e.g. shell scripts that also need to work on Windows) - but not much else ;)This is also my gripe with the Python2 vs Python3 transition:Python2 was already perfect for quick'n'dirty scripting tasks, the binary-stream-vs-strings split in Python3 actually makes this stuff harder. E.g. Python3 tries hard to be a 'programming language' but it was created as a 'scripting language'
(DIR) Post #AzINQSD3W2m6cBlyGu by rfgee@blob.cat
2025-10-17T09:08:03.326557Z
0 likes, 0 repeats
@floooh @pythno @sol_hsa "shell scripts that also need to work on Windows" is exactly how I use python these days too. It's a bit more verbose but at least with subprocess.run(shell=False) I don't have to worry about unexpected inputs wiping out my $HOME. If it could happen to Valve, it _will_ happen to me.
(DIR) Post #AzINQZKP37oMh0GRCC by floooh@mastodon.gamedev.place
2025-10-17T07:09:39Z
0 likes, 0 repeats
@pythno @sol_hsa One thing I used to do in the past was glueing together small self-written C cmdline tools that need to do some heavy processing via Python scripts.For this type of stuff I'm now oogling either Deno (e.g. Typescript via V8 - much better performance compared to Python) or Zig as a sort of "like C but with a richer stdlib".
(DIR) Post #AzINQhDxgxPdBLJPGa by floooh@mastodon.gamedev.place
2025-10-17T07:11:59Z
0 likes, 0 repeats
@pythno @sol_hsa PS:> I rather type out a few lines and be able to debug it.VSCode has a pretty nice Python debugger extension btw :)
(DIR) Post #AzIUKDBHB8fJwhuX2G by sol_hsa@mastodon.gamedev.place
2025-10-17T10:16:22Z
1 likes, 0 repeats
@rfgee @floooh @pythno I had a .bat file that compiled my zx speccy project. I converted it to python for convenience. And then accidentally added recursive timestamp comparison to compile, in parallel, changed sources along with their dependencies.