Better HN
topnewbestaskshowjobs
Log inSign up

fjasdfas

7 karma · joined May 13, 2025 (1y ago) · 4 submissions

Submissions

comment 1y ago · link · parent

So are there downsides to just always setting slots=True on all of my python data types?

comment 1y ago · link · parent

You can do multiple processes with SO_REUSEPORT.

free-threaded makes sense if you need shared state.

comment 1y ago · link · parent

`:=` was new to me: https://peps.python.org/pep-0572/

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

comment 1y ago · link · parent

gleam:

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