HNHacker News
TopNewBestAskShowJobs

GalaxySnail

894 karma · joined September 9, 2022

submissionscomments
GalaxySnail··on Moving from GitHub to Codeberg, for lazy people
git-bug[1] looks promising, but I haven't tried it.

[1] https://github.com/git-bug/git-bug

GalaxySnail··on Python Type System Conformance Test Results
preview: <https://htmlpreview.github.io/?https://github.com/python/typ...>
GalaxySnail··on Gentoo goes Binary
> On Debian you can have `/bin/sh` be any POSIX shell, on Arch you're forced to have it be Bash.

AFAIK you can use any POSIX shell as `/bin/sh` on Arch Linux. By running `sudo ln -rsf /bin/dash /bin/sh`, dash works well.

GalaxySnail··on Terminal Emulators Battle Royale – Unicode Edition
It has. The full test results are on this page: <https://ucs-detect.readthedocs.io/results.html>.
GalaxySnail··on Using enums to represent state in Rust
IMO Python's equivalent of Rust's Enums would be `typing.Union` [1]. It is more ergonomic and type-safe, and mypy supports type narrowing [2] and exhaustiveness checking on it [3].

[1] https://docs.python.org/3/library/stdtypes.html#types-union

[2] https://mypy.readthedocs.io/en/stable/type_narrowing.html

[3] https://docs.python.org/3/library/typing.html#typing.assert_...

GalaxySnail··on So let’s talk about this Wayland thing
Unfortunately, this site is outdated.

> Last updated: 31 October 2022

GalaxySnail··on OpenSSL 3.1
Msys2 is distributing binary openssl (and many other packages):

https://packages.msys2.org/search?q=openssl

GalaxySnail··on The Basics of Arm64 Assembly
Termux [1] on Android may be good enough.

[1] https://termux.dev/

GalaxySnail··on Python’s Multiprocessing Performance Problem
Hopefully PEP 684 [1] which suggests a per-interpreter GIL will improve the situation.

[1] https://peps.python.org/pep-0684/

GalaxySnail··on Declarative GUI with constraints-based layout engine for Python
It's based on qtpy [1][2], which supports both Qt5 and Qt6 with pyqt5, pyqt6, pyside2 and pyside6.

[1] https://enaml.readthedocs.io/en/latest/get_started/installat... [2] https://github.com/spyder-ide/qtpy

GalaxySnail··on Python type hints are Turing complete
For FFI, there is a pure python mode in cython:

  https://cython.readthedocs.io/en/latest/src/tutorial/external.html