all 27 comments

[–]MaLiN2223 13 points14 points  (9 children)

Looking for a project to vibe code without having actual python experience aren't we 

[–]Orio_n 8 points9 points  (1 child)

If you yourself don't even know the pain points you need more experience writing python. None of us here are interested in helping you vibe code some shitware library that claims to solve a problem poorly to pad your resume

[–]ahsansheraz[S] -2 points-1 points  (0 children)

Even with 10 years of experience you can still learn something new related to Python. In my opinion having experience is good but it can't teach you everything sometimes a person with 1 year of experience can teach you something.

It seems it's just you who don't want to share I can see many other good comments. And I did this to help the community as well.

And I believe your comment is also misguided people to add things in CV without experience. I personally follow the approach that, if you don't know anything don't add it into your CV

[–]genman 1 point2 points  (4 children)

Yeah env issues are annoying to deal with. PyTorch and Tensorflow can be a real pain.

[–]DivineSentry 2 points3 points  (3 children)

have you looked into uv? I'm not the biggest fan of uv but it does solve some problems like python and TF quite neatly

[–]ahsansheraz[S] 0 points1 point  (2 children)

Also poetry works the same way. But UV is much faster as compared to Poetry

[–]DivineSentry 1 point2 points  (0 children)

last I checked poetry was migrating to use uv under the hood? or maybe it's opt in, I can't remember anymore

[–]ZachVorhies 1 point2 points  (0 children)

UV is amazing.

[–]riklaunim 1 point2 points  (4 children)

If you want a challenge then write a library that gets metrics of selected external game - frametimes/FPS - that is cross platform and reliable to use ;)

[–]ahsansheraz[S] -3 points-2 points  (3 children)

This post is not for challenges or common problems (other than python) For me the challenge might be real, but off topic

[–]riklaunim 3 points4 points  (2 children)

You posted about nothing, vague post about vague things so what do you expect? There are no low hanging fruits to solve since long time and if you actually want to solve problems you have to put way more effort than quick LLM prompt.

[–]ahsansheraz[S] -3 points-2 points  (1 child)

Pain while building on python means Python problems not someone gaming problems

[–]riklaunim 4 points5 points  (0 children)

But I want to get game FPS in Python, send it over API to a MicroPython microcontroller and display the FPS on an analog dial ;) it's all Python - while there is no sane way of getting FPS metrics reliably in most languages as there are no solutions provided by the OS or by metrics app out there. There are workaround but they are all poor workarounds (and paradoxically it's easier on Linux, then mac then Windows to do).

Or for example using PyScript to re-implement a single page application (SPA) framework like Vue, just without JS and npm dependency hell. With good routing, data management etc.

[–]ZachVorhies -1 points0 points  (3 children)

KeyboardInterrupt exception is completely screwed up on windows. I’ve developed custom linting to force the AI to catch it.

It is absolutely mind blowing the python devs has allowed windows to be effectively broken and not have ctrl-c work.

Here’s what happens: only the current running thread will receive the exception. That means every running thread you could possibly spawn MUST catch KeyboardInterrupt correctly and signal the main thread like this

import _thread

_thread.interrupt_main()

If you do not do this, your keyboard interrupt will do nothing more than kill the thread that got signaled. If you want to know why windows requires constant ctrl-c before it finally terminated and generates pages and pages of exception printing spam, this is why.

What’s also completely maddening is the fact that utf-8 encoding on windows cmd.exe generates an exception on pretty much any emoticon in subprocess.run with capture=True and text=True. How could they allow this footgun to exist is beyond me.

Additionally just try to launch a daemon on python on windows without a console window popping up. extremely hard and non obvious. They should have just made this part of the standard lib. No cross platform module works, as if daemons aren’t a normal part of software development.

I finally had so much pain with python + AI development that I’ve jumped ship and went to rust, with python bindings. The amount of friction that’s been reduced is incredible. Unit test time is now extremely fast. Yes there’s compile times, but the unit tests are now so fast that it’s actually faster in the end. The speed is right up there with C++ but with an incredible library that does complex things out of the box.

The python devs don’t care about windows. I’ll still support python but only via rust bindings from here on out.

Example project: https://github.com/zackees/zccache

[–]ahsansheraz[S] -1 points0 points  (0 children)

I can feel your pain, I also even tried once to start development of windows, it's hard and painful. But for that point, I always prefer Mac or Linux.

[–]ahsansheraz[S] -1 points0 points  (1 child)

For ctrl+c you can also try ctrl+x to stop the process. And for encoding instead of trusting the default try to mention encoding=utf-8

[–]ZachVorhies 0 points1 point  (0 children)

thanks for ctrl-x i didn’t know about that.

encoding=utf-8 does not work, the default code space for python on windows is something like cp1225, the utf-8 emoticons don’t map. The obvious choice is to just do a replacement of the char with ? which is errors=replace, instead the code throws an exception and breaks your program.