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.
Python Steering Commitee rejected shorthands for same name arguments
https://tomaszs2.medium.com/python-just-rejected-argument-shorthands-6f7e9afbbc3d
#python
I have been beating my head on trying to get Flask-SocketIO to work with an existing #flask app and accept connections from a third-party origin.
I get 400 errors because the socket closes before a connection can be made. I've disabled CORS (local-only network) and have double checked that every library is compatible. Serving a websocket route from the app works, but it will not other hosts.
Anyone with experience able to take a look at a repo or offer insight?
Hi y'all, this has become a bit more important now. I learned this week that my current contract will not be renewed for funding reasons. Please see the quoted post for more info! RE: #FediHire #GetFediHired #OpenStreetMap #Python #Rust #JavaScript #CSharp #C #GIS #DistributedSystems #Networking
Dear Fediverse, I am about to step up into my first role as a tech lead (*context in follow-up post) and would like to ask some questions to help me prepare & improve:
Groups:
Questions:
❗ Please add your colour to your reply & poll.
Lastly, if you have other advice for someone who wishes to be the best possible tech lead of their teams.
#programming #engineering #tech #techlead #management #leadership #python
🔵 Technical: | 4 |
🟠 Product: | 1 |
🟣 Business: | 0 |
Closes in 2:24:32
Performance of the Python 3.14 tail-call interpreter
Link: https://blog.nelhage.com/post/cpython-tail-call/
Discussion: https://news.ycombinator.com/item?id=43317592
In python 3 you can't modify a dictionary if you are iterating over it, e.g. using the keys. Because the "keys" method is now a view and updates when the dictionary changes.
So instead of:
for k in d.keys(): ...
you should do:
for k in list(d.keys()): ...
and then you can modify the dictionary if you want (e.g. del d[k] to remove an entry).
A new year a renewed #introduction
I am Dude, associated with the movie but there the comparison ends.
An updated #Introduction for 2025:
I’m a dad, #cat whisperer, #computer nerd, occasional #gamer, and #movie lover. I’m a #quality minded #professional and I make my own #homebrew beer. #freebsd. Enthousiast I love #fitness #walking #programming in #python and #3Dprinting. Busy with #homeassistant and more.
Ik spreek voornamelijk Nederlands, Engels een beetje Duits.
The features of Python's help() function
Link: https://www.pythonmorsels.com/help-features/
Discussion: https://news.ycombinator.com/item?id=43266546
A Map of Python
Link: https://fi-le.net/pypi/
Discussion: https://news.ycombinator.com/item?id=43218343
Show HN: Robyn – “Batman Inspired” Python Web Framework Built with Rust
Link: https://robyn.tech/
Discussion: https://news.ycombinator.com/item?id=43228333
Python as a second language empathy (2018)
Link: https://ballingt.com/python-second-language-empathy/
Discussion: https://news.ycombinator.com/item?id=43191696
Show HN: Probly – Spreadsheets, Python, and AI in the browser
Link: https://github.com/PragmaticMachineLearning/probly
Discussion: https://news.ycombinator.com/item?id=43194971
Show HN: Tach – Visualize and untangle your Python codebase
Link: https://github.com/gauge-sh/tach
Discussion: https://news.ycombinator.com/item?id=43174041
A possible future of Python in the browser
Link: https://lukasz.langa.pl/f37aa97a-9ea3-4aeb-b6a0-9daeea5a7505/
Discussion: https://news.ycombinator.com/item?id=43169773
Xonsh – A Python-powered shell
Link: https://xon.sh/
Discussion: https://news.ycombinator.com/item?id=43134563
Embedding Python in Elixir, It's Fine
Link: https://dashbit.co/blog/running-python-in-elixir-its-fine
Discussion: https://news.ycombinator.com/item?id=43171239
Rust, C++, and Python trends in jobs on Hacker News (February 2025)
Link: https://martin.wojtczyk.de/2025/02/20/rust-c-and-python-trends-in-jobs-on-hacker-news-february-2025/
Discussion: https://news.ycombinator.com/item?id=43111615
I really want to like #SolusLinux, as there's not a lot of good semi-rolling-release distros, but the fact that /usr/bin/python is symlinked to python2 gives me mega heebie-jeebies.
Guys, I don't mean to be rude. It's a wonderful distro made by wonderful people.
But PYTHON TWO? In 2025? That's a security jump-scare!
:blobFoxScared:
Introduction to CUDA Programming for Python Developers
Link: https://www.pyspur.dev/blog/introduction_cuda_programming
Discussion: https://news.ycombinator.com/item?id=43121059
In other news, I tried getting #Pelican set up on the new machine and I feel like there's some kind of race condition.
The "pelican-statistics" plugin is supposed to add a dict of stats to the `article` object. Sometimes when building the site, it works. Other times, the build fails with an error that the dictionary doesn't exist.
I need to do more digging, but I'm baffled right now.
A Tail Calling Interpreter for Python (already landed in CPython)
Link: https://blog.reverberate.org/2025/02/10/tail-call-updates.html
Discussion: https://news.ycombinator.com/item?id=43076088
Show HN: Scripton – Python IDE with Built-In Realtime Visualizations
Link: https://scripton.dev
Discussion: https://news.ycombinator.com/item?id=43090214
Show HN: Kreuzberg – Modern async Python library for document text extraction
Link: https://github.com/Goldziher/kreuzberg
Discussion: https://news.ycombinator.com/item?id=43057375
JesseSort: A novel sorting algorithm that is faster than Python's default sort.
Link: https://github.com/lewj85/jessesort
Discussion: https://news.ycombinator.com/item?id=43040869
#lispyGopherClimate @kentpitman #live #interview #computerScience #programming #lisp #commonLisp #python with some special announcements and releases.
#teco #emacs #conditions
https://archives.anonradio.net/202502120000_screwtape.mp3
#archive Thanks for the incredible interview and livechat everyone!
Interview 1 / ?
Please drop questions here beforehand or join us live in #lambdaMOO as always !
telnet lambda.moo.mud.org 8888
co guest
@join screwtape
#lispyGopherClimate #important #announcement
https://archives.anonradio.net/202502120000_screwtape.mp3 #archive
Possibly I didn't bang the drum enough.
@kentpitman is joining me #live for the show - 0UTC Wednesday, Tuesday evening in the Americas. I'll toot the link on mastodon a few hours before the show as always.
If you could join and ask questions live or beforehand here in this thread (if you join through the archive).
#lisp #commonLisp #python #computerScience #programming #podcast #climate
#boost visibility please
The ancient Babylonians had a way of calculating (really more like estimating) square roots.
There are a gazillion ways to do the initial "guess" Here we look for it's nearest-lower square, and then calculate the distance between them. Repeatedly.
--
def squareroute(s, tol=1e-10, max_it=100):
if s < 0:
raise ValueError("No negatives: {}".format(s))
s = float(s)
if s == 0:
return 0.0
g = 1.0
while g * g <= s:
g += 1.0
g -= 1.0
for _ in range(max_it):
new_g = (g + s / g) / 2.0
if abs(new_g - g) < tol:
return new_g
g = new_g
return g
zz = squareroute(50)
Challenge: Show off how you'd do the Babylonian Square Root algorithm, including in other languages.
Incidentally, you don't normally need 100 iterations. But as long as the tolerance is close, it'll stop way before then.
I did this in another comment in #commonlisp as well.