HNHacker News
TopNewBestAskShowJobs

fjasdfas

7 karma · joined May 13, 2025

submissionscomments
fjasdfas··on Loading Pydantic models from JSON without running out of memory
So are there downsides to just always setting slots=True on all of my python data types?
fjasdfas··on The first year of free-threaded Python
You can do multiple processes with SO_REUSEPORT.

free-threaded makes sense if you need shared state.

fjasdfas··on Don't unwrap options: There are better ways (2024)
`:=` was new to me: https://peps.python.org/pep-0572/

It actually looks really natural in python, glad they added.

fjasdfas··on Don't unwrap options: There are better ways (2024)
gleam:

    fn get_user_name() -> Result(String, String) {
        use user <- result.map(option.to_result(get_user(), "No user"))
        user
    }