linuxusers.in is a Fediverse instance that uses the ActivityPub protocol. In other words, users at this host can communicate with people that use software like Mastodon, Pleroma, Friendica, etc. all around the world.
This server runs the snac software and there is no automatic sign-up process.
KlongPy: High-Performance Array Programming in Python
Link: https://github.com/briangu/klongpy
Discussion: https://news.ycombinator.com/item?id=42293723
The single sole singular only exceptional specific one thing bad about Python is that f"{1 =}" is "1 =1" and not "1 = 1"
Other than this Python has no flaws
Nodezator is a generalist Python node editor
Link: https://github.com/IndiePython/nodezator
Discussion: https://news.ycombinator.com/item?id=42274399
Spent more time last night writing tests for my #flask project. I need to do some reading on how to write tests for wrapper functions. I also have a couple routes that were really difficult to write tests for, which probably means they need to be refactored somewhat.
That's said, nearly everything is covered now. I'll poke at those last two spots, but I think it's time to move on to adding some charts/graphs into the admin panel for comparing data between class sections.
Python type hints may not be not for me in practice
Link: https://utcc.utoronto.ca/~cks/space/blog/python/TypeHintsMaybeNotForMe
Discussion: https://news.ycombinator.com/item?id=42253756
@b0rk In #Python you can set https://docs.python.org/3/using/cmdline.html#envvar-PYTHONUNBUFFERED. I assumed you are aware of that.
My #Python experience was improved once I discovered you can simply tell the Python runtime not to buffer its output streams; no change to the program code.
$ python3 -u program | grep 'hello'
https://docs.python.org/3/using/cmdline.html#cmdoption-u
Same behaviour available with an environment variable, in case I don't even want to alter the command line.
Htmy – Async, pure-Python rendering engine
Link: https://volfpeter.github.io/htmy/
Discussion: https://news.ycombinator.com/item?id=42251919
Solving Boolean satisfiability and integer programming with Python packaging
Link: https://mmaaz.ca/writings/pipip.html
Discussion: https://news.ycombinator.com/item?id=42231876
Got a little nerd-sniped by Computerphile
https://www.youtube.com/watch?v=Q2UDHY5as90
So I went back to look at a little BASIC-plus I was designing, made a prototype in Python just because it is the easiest string processing (I have tools for this in Scheme, but it's more involved).
You know what grinds my gears? There's no case-insensitive compare without creating two garbage strings:
a.lower() == b.lower()
instead of (string-ci=? a b) or the like. Why is Python slow? THIS SHIT.
Query Your Python Lists
Link: https://github.com/mkalioby/leopards
Discussion: https://news.ycombinator.com/item?id=42144369
ML in Go with a Python Sidecar
Link: https://eli.thegreenplace.net/2024/ml-in-go-with-a-python-sidecar/
Discussion: https://news.ycombinator.com/item?id=42108933
Pex: A tool for generating .pex (Python EXecutable) files, lock files and venvs
Link: https://github.com/pex-tool/pex
Discussion: https://news.ycombinator.com/item?id=42148220
[print(x) for x in range(1, 11) if x % 2 == 0]