HNHacker News
TopNewBestAskShowJobs

plonk

868 karma · joined April 13, 2022

submissionscomments
plonk··on GitHub Actions could be so much better
Just run the GitHub cache action on your build directory and then run make inside it?
plonk··on We Can't Compete with AI Girlfriends
Doesn't that sound a bit tautological? One not wanting to date people one isn't interested in?
plonk··on Custom Minecraft Classic client written from scratch in C
The very first version was just a creative-mode browser game without any health or fight mechanics, I think. (Never played it as I started in alpha)
plonk··on I mirrored all the code from PyPI to GitHub and analysed it
Yes please keep stacking compilers on top of compilers. I loved dealing with Qt builds in CMake. Can't wait for Python's stable and consistent packaging tools to handle not-Python code that compiles down to Python code.
plonk··on I mirrored all the code from PyPI to GitHub and analysed it
Is there something about Bazel's design choices that makes it so complicated? I felt like an idiot when I tried to build some old version of TensorFlow with some old non-default flag. I found even learning CMake easier.
plonk··on Frequent and infrequent users of social media respond differently to rewards
Travel did make me happier in the middle of a depression though. Doing it regularly is great for the mood.
plonk··on A Harvard professor became the world’s leading alien hunter
Is it plausible that the US military would use "UAP" as a cover for tests of new technology, and make up/classify new footage to keep the conspiracy theories alive? Completely paranoiac or possible? I've heard the theory a few times but am curious what people more knowledgeable than me think about it.
plonk··on Python Type Hints – *args and **kwargs (2021)
Those are better handled by typing.ParamSpec, it should keep track of the unwrapped function's arguments.
plonk··on Web scraping for me, but not for thee
What device can you buy today with integrated ad blocking enabled by default?

Ad blockers having paying partnerships can be a problem, but something like Ublock Origin does not.

plonk··on Bypassing Bitlocker using a cheap logic analyzer on a Lenovo laptop
Is there anything you could access from the keyboard or touchpad? Seems easy enough to only accept the inputs that the login screen needs and nothing else.
plonk··on Bypassing Bitlocker using a cheap logic analyzer on a Lenovo laptop
If you booted anything but the OS that set up BitLocker, wouldn't the TPM refuse to release the key?
plonk··on Asyncio, twisted, tornado, gevent walk into a bar
It’s a waste if you need coordination between the tasks though. Putting an async task aside and sending only dumb synchronous function calls that never wait is more efficient than blocking a thread while it waits on another.

asyncio with an executor is a good way to run complex tasks in parallel.

plonk··on Asyncio, twisted, tornado, gevent walk into a bar
My view: “concurrent” just means that there can be a point in time when two tasks/functions/coroutines/whatever have started but haven’t finished. “Parallel” means that they actually run at the same time, e.g. on different CPU cores. Concurrent is more general.
plonk··on Briefcase: Convert a Python project into a standalone native application
> So, if activate.ps1 (and the other scripts for other shells) were updated to dynamically identify their own location rather than hardcoding the path, they’d be fully portable? Seems to be a fairly simple update.

I don't think the maintainers have gotten a request to do that. Personally I use a more complicated launcher because I need to set things like environment variables in my deployments, but a venv is almost an out-of-the-box relocatable Python environment. It's when you need to protect/compile your code that things get messy.

>> Since venvs on Linux symlink to the system’s Python executable

>Hopefully, the executable with which they were created, not the system executable except where they happen to be the same.

When you call /usr/bin/pythonx.y -m venv ./myenv, ./myenv/bin/python will link to /usr/bin/pythonx.y. Since there aren't many reasons to use a Python version not installed by the package manager, I call these the "system's Python executables", but sure, it can also point to /opt if you installed Python there.

plonk··on Briefcase: Convert a Python project into a standalone native application
They are in the sense that anything one would want to do with a venv, they can do with trivial effort. You don't need the activate script, you can just set PATH, PYTHONHOME and/or PYTHONPATH and be done with it.
plonk··on Briefcase: Convert a Python project into a standalone native application
They are though, at least on Windows, I’ve moved them before. The whole Lib/ tree was independent of the venv’s path, it’s only the “activate” script that hard-codes a full path.

Since venvs on Linux symlink to the system’s Python executable, they should also work after moving.

plonk··on Senate votes to let people who’ve used marijuana work at intelligence agencies
Because cannabis can have effects up to a week after if I remember correctly. And it’s not very predictable. Alcohol is cleared out at a predictable rate and has no effect after a few hours, you’ll just be tired.
plonk··on Computer scientists discover limits of gradient descent (2021)
They both have a concept of neighbors but the deck of cards is simpler, it’s a good illustration, no?
plonk··on Computer scientists discover limits of gradient descent (2021)
That's different from complexity though. We actually understand why some algorithms have better complexity and results than others, while we mostly have no idea how intelligence works or even how to define it.
plonk··on Computer scientists discover limits of gradient descent (2021)
Don't a lot of these algorithms come from TCS researchers themselves? They may publish about complexity but if that gives some people a better understanding of algorithms and leads to better ones being invented, it's a win.
plonk··on Computer scientists discover limits of gradient descent (2021)
The paths are continuous, but if they move two neighbouring molecules away from each other, the final transformation won't be continuous, will it?
plonk··on How capacity planners credibly estimate application performance
Here’s more disrespect for your, my, and everybody else’s time. Though I was mostly joking. :)
plonk··on How capacity planners credibly estimate application performance
You don’t know how many times a minute I read HN.
plonk··on Important Coding Habits
Was your keyboard elevate, at an angle, or thick? With a flat keyboard and an ergonomic mouse I’ve never had pain.
plonk··on There’s a heatwave in the sea and scientists are worried
Yeah Latin works too.
plonk··on Meta Tells Managers Promotions Will Be Few and Far Between
The real value is what they managed to pay for the product plus the cost of their own work. You could know it down to the cent and still not benefit from cutting out the middleman.
plonk··on Cython 3.0 Released
The usual methods to control versions with a lockfile don’t work here because it’s a build dependency. You’d need to disable build isolation and install the right build tools in your environment before installing pyyaml but that can become a mess real quick.
plonk··on Cython 3.0 Released
The problem with SWIG bindings I’ve used is that they don’t have any type hints. They also don’t offer context managers to handle resources, so it’s a pain to use safely in Python.

From the user POV, the best bindings I’ve seen were wrappers with a Python API that calls C++ using Cython.

plonk··on Cython 3.0 Released
I think it doesn’t have a choice in downloading all versions if they use a setup.py config file. You have to get the sources to run it and get the package’s metadata.
plonk··on GitHub merge queue is generally available
My situation: small team with around 10 simultaneous projects at any one time, all depending on a framework that we use for tons of different things. Everyone is constantly modifying the same parts of the code because that’s where the features should be added. It’s way cleaner than when the projects were separated and didn’t share code.

In this case, we often have conflicts in private modules. (And everything is private since we don’t provide any libraries to anyone.)

← PreviousPage 3 of 13Next →