rev

joined 1 year ago
[–] rev@ihax0r.com 6 points 1 year ago (2 children)

Feel like lemmy is more like usenet than a forum

[–] rev@ihax0r.com -3 points 1 year ago

starlink is pretty good.

[–] rev@ihax0r.com 1 points 1 year ago (1 children)

Like cython?

Its a whole lot of magic. I many times have to look at the generated c code because its doing something weird especially when generating c++

 

Meta is dedicating 3 engineers to get the nogil patches into cpython. There are some other companies stepping up as well. This is huge this is the closest we have ever been to solving the issue of the GIL.

[–] rev@ihax0r.com 5 points 1 year ago* (last edited 1 year ago)

IMHO programs don’t belong on pypi only libraries. Its a waste of namespace.

Explicit is better than implicit, read the zen of python(its short). Don’t be too magical. Don’t reach for a class if you have no state. Watch some jackdied talks from old pycons. You don’t need custom exceptions the stdlib has plenty. Also if its not documented don’t use it. Don’t use star imports.

Black just use it don’t fight it, don’t waste brain space with formatting rules. “You can have any formatter you want as long as its black”. Use default black settings. People who don’t are heretics :P

sys.path or PYTHONPATH is how imports are resolved. Much like shells looking for binaries. IMHO you should never adjust either. The current directory is always added to sys.path. but beyond that directories are packages. Use __init__.py when you want to provide a module for what happens when you import a package.

python3.11 -m venv .venv

This is how you should create your venv. After that activate it and use pip. You should setup a requirements.txt for your project, then you can use pip -r to configure your env. Global install of third-party libraries is always a bad idea in practice. Version constraints make that almost impossible these days.

[–] rev@ihax0r.com 3 points 1 year ago

I already live where I want to live. I would probably buy up all the open land in my county. Get my friends to move out and live on one of my properties. Fix up this 120 year old farm house. Install a pond and more water features to hold onto rain water. Probably run some electric fencing get solar power go off grid. Pretend to be a cattle rancher. Try to turn this homestead into my very own paradise. But i’ll probably employ a-lot of people create some jobs do more charity work.

[–] rev@ihax0r.com 3 points 1 year ago

Only using mct, butter, tallow these days

[–] rev@ihax0r.com 2 points 1 year ago

Yeah last several times I used the iso it was to img a thumb drive. I might have a cd burner around here somewhere