Adam Azarchs

Results 106 comments of Adam Azarchs

> Wondering if there's docs for when plain foo.pyc should also be read [pep-3147](https://peps.python.org/pep-3147/) has a handy flow-chart: ![pep-3147](https://peps.python.org/_images/pep-3147-1.png) > This is an interesting idea, but I'm not sure how...

~That's not quite true. I _think_ it'll still `foo.pyc` from the same directory as `foo.py` if there isn't a `__pycache__/` and it isn't able to create one, which would normally...

No, you're right, I missed that bit. So if `.py` is present, `.pyc` must be in `__pycache__`, and otherwise it can't be. That does certainly make it more difficult to...

There's basically three use cases for `pyc`-only. 1. The bad one is if you're trying to keep your source code secret from a casual investigator. It won't do a great...

I don't think we'd want the attribute to be boolean; as discussed [above](https://github.com/bazelbuild/rules_python/issues/1761#issuecomment-1945364055) I think there's probably 4 modes of interest: 1. No compilation (`.py`-only) 2. `.py`+`__pycache__/*.pyc` with `CHECKED_HASH` mode....

The best way to solve the compile-time decision problem on recent-ish `gcc` versions would be to use the `target` attribute ([see gcc documtionation](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#Common-Function-Attributes)) on functions. This causes the compiler to...

As stated before, CPU dispatch is tricky to get right in a platform-independent way. OpenCV is a much larger project with more resources to maintain the build apparatus for doing...

If your PR adds a new dependency which triggers an issue, the annotation could be on the line in your `Cargo.toml` which adds the dependency. This isn't super helpful for...

This tool is for patching ELF binaries. It can maybe help make something built for one GNU-linux operating distribution to work on another, but android is a very different platform...