What is Hackers' Pub?

Hackers' Pub is a place for software engineers to share their knowledge and experience with each other. It's also an ActivityPub-enabled social network, so you can follow your favorite hackers in the fediverse and get their latest posts in your feed.

1
0
1
1
2
0
0
0
1
0
0
0
0
0
0
1
1
0
1
0
0
1
0

늑수설 최신 회차가 나왔습니다! The latest episode of STWA has been released! 《狼のケモノ、ソルミ》の最新エピソードが出ました!

RE: https://bsky.app/profile/did:plc:hneloew3za25iqabarp6m2ay/post/3mdog3kdhdc2m

0
0
1
3
1
0
0
0

Python subprocess/psutil: 15년 묵은 Busy-loop 폴링을 끝내고 진정한 이벤트 기반 대기로 전환
------------------------------
요약:
* Python의
subprocess 모듈과 psutil 라이브러리는 지난 15년 동안 프로세스 종료 대기(wait()) 시 sleepwaitpid를 반복하는 비효율적인 'Busy-loop 폴링' 방식을 사용해왔음.
* 이 방식은 불필요한 CPU Wake-up, 배터리 소모, 프로세스 종료 감지 지연(Latency) 문제를 야기하며, 다수의 프로세…
------------------------------
https://news.hada.io/topic?id=26263&utm_source=googlechat&utm_medium=bot&utm_campaign=1834

0
0
0
0
2

NULLはゼロだし整数として代入できちゃうよねえって最近のgccは気づいてくれるのすごいな!!

$ cat x.c
<stddef.h>
long x = NULL;
$ gcc -c x.c
x.c:2:10: warning: initialization of ‘long int’ from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
2 | long x = NULL;
| ^~~~

0
0
0
1
1

Organizing works! This is a win for public pressure, and a message about the moral clarity Canadians want from politics right now.

Now we need legislation to ban all Canadian companies from contracting with ICE or otherwise supporting Trump's kidnapping and deportation machine. And Parliament must pass Jenny Kwan's bill to close the U.S. arms export loophole – so that no Canadian armoured vehicles, weapons, or equipment end up in the hands of ICE to brutalize people.

ctvnews.ca/vancouver/article/b

0
0
0
1
1
0
0
0
0
0
2
1
0
2
0
0
0
0
1