Hacker Newsnew | past | comments | ask | show | jobs | submit | tweakimp's commentslogin

Use black as format on save and you will never have a problem with that. https://github.com/psf/black

Sure, black's pretty good and definitely better than nothing.

Just wanted to provide an easy counterpoint to the logical fallacy by IceDane.


When it was announced it was not generally available for everyone to try out. There was a waitlist phase.

Be careful with that, numpy arrays can be slower than Python tuples for some operations. The creation is always slower and the overhead has to be worth it.


Yeah. Many seem to forget it. For one-off computation tasks, NumPy, PyTorch, JAX have non-trivial overhead, and might even be slower than vanilla Python. Only when repetition, loops, etc. come into the picture, which is recurring in many people’s workflow - JAX or NumPy is worth it.


yes of course, in my field the arrays are large and we're doing nontrivial work per element.


MY favourite is ChatJippiddy


Do you watch primagen by instance?

A fellow Primagen viewer spotted.


The Primeagen :).


Or just "gippity" for short.


And right in this moment Trump is talking about how Canada should be grateful for all the American freebies :D


Classic sour entitled old person behavior, thinking the crumbs they're deigning to offer are praiseworthy gold as they beg for human attention. It's unfortunate that we can't just not pick up the phone, as all the other sour entitled people voted to have this fool run our country into the ground.


Can you also add why and for who you recommend it?


Pop!_OS is a solid desktop tailoring of Ubuntu for the hardware.

I would not recommend Pop for server situations, as the desktop trim might be unneeded.


I like it because it's based on Ubuntu, so there's almost always a working guide/solution targeting it. It also ships with Nvidia drivers which saves a lot of headaches for some users. To me the game-changer is the fact that it supports tiling window management with minimal configuration.

It also looks and feels pretty sleek.


I think also many dont have the time or ressources to care. If you live a precarious life, you are happy if you can pay for food and your home.


As an American, I think we make this excuse too often. People have opposed and overthrown their governments more effectively under much harsher circumstances.


It's probably because it was harsher that they did so.


Why is y+2x optimal at (0,3) with a value of 3? Isnt it (3,0) with a value of 6?


Good catch! Especially since I ended up drawing y - x = C but didn't update the legend. I updated it!


Haha, I started reading this, got interrupted, came back and got confused by the graph. Then came to the comments, saw your comment, reloaded the post and voila!

Thank you for a lovely post!


you're right, it should be (3,0) with optimal obj value of 6.


In the near future we will use lazy imports :) https://peps.python.org/pep-0810/


This can't come soon enough. Python is great for CLIs until you build something complex and a simple --help takes seconds. It's not something easily worked around without making your code very ugly.


It's not that hard to handle --help and --version separately before importing anything.


You could, but it doesn't really seem all that useful? I mean, when are you ever going to run this in a hot loop?


Can you give a Python example of a use case for this?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: