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.

한국이 치안이 좋은 편이 아님 그냥 서구놈들 치안이 개판인 거였음 동네 편의점 가는데도 동네 치안 어떤지 내가 검색을 해봐야 하냐고 경찰이 많으면 안전한게 아니라 그만큼 치안 개판 나있는 동네라는 글을 내가 봐야하냐고 21세기 1분기가 지나갔는데 지금 tq

0
0
1
0

Well, after 14 years, my Write a Compiler course is having its final curtain call February 16-20. You can still get in on the action though dabeaz.com/compiler.html.

Honestly, it's hard for me to believe that taking a class like this out of a university setting would even work for as long as it did. I definitely had a blast teaching it! But, alas, all good things eventually come to an end. Time to rotate the crops.

0
0
0
0
0

read some quote that was like “it’s obvious that the natural endpoint of video games is full simulation,” and like, is it?

I feel like this betrays a very limited concept of what games could or should be

not everything needs to be a fully immersive world. not everything needs to be in three dimensions. hell, not everything needs to be graphical!

0
0
0
0
0
1
0
1
0
0
0
0
0
0
0
0
0
0
0

Whoever invented this method must be a genius. This was a portable calibrator for high-voltage partial discharge testing. Because of HV, it was battery powered and insulated from the mains. But sometimes the test signal needs to be phase-locked to the 50/60 Hz AC mains frequency, and the solution was:

"with a photocell that synchronizes the instrument with the ambient lighting of the laboratory."
:blobcatthinksmart:

Figure 6.11 Portable calibrator
[shows a simple 100 mm x 100 mm test instruments with some pushbuttons, an on/off switch, and a photodiode at the top]

5. It can be synchronized with the test voltage; this is usually performed with a photocell that synchronizes the instrument with the ambient lighting of the laboratory.
0
0
0
0
0
0
0
0

@whitequark✧✦Catherine✦✧ It does now: docs.kernel.org/filesystems/pr
"Starting with 6.11 kernel, /proc/PID/maps provides an alternative ioctl()-based API that gives ability to flexibly and efficiently query and filter individual VMAs. This interface is binary and is meant for more efficient and easy programmatic use. struct procmap_query, defined in linux/fs.h UAPI header, serves as an input/output argument to the PROCMAP_QUERY ioctl() command."

The /proc Filesystem — The Linux Kernel documentation

Description¶ rchar¶ I/O counter: chars read The number of bytes which this task has caused to be read from storage. This is simply the sum of bytes which this process passed to read() and pread(). It includes things like tty IO and it is unaffected by whether or not actual physical disk IO was required (the read might have been satisfied from pagecache). wchar¶ I/O counter: chars written The number of bytes which this task has caused, or shall cause to be written to disk. Similar caveats apply here as with rchar. syscr¶ I/O counter: read syscalls Attempt to count the number of read I/O operations, i.e. syscalls like read() and pread(). syscw¶ I/O counter: write syscalls Attempt to count the number of write I/O operations, i.e. syscalls like write() and pwrite(). read_bytes¶ I/O counter: bytes read Attempt to count the number of bytes which this process really did cause to be fetched from the storage layer. Done at the submit_bio() level, so it is accurate for block-backed filesystems. <please add status regarding NFS and CIFS at a later time> write_bytes¶ I/O counter: bytes written Attempt to count the number of bytes which this process caused to be sent to the storage layer. This is done at page-dirtying time. cancelled_write_bytes¶ The big inaccuracy here is truncate. If a process writes 1MB to a file and then deletes the file, it will in fact perform no writeout. But it will have been accounted as having caused 1MB of write. In other words: The number of bytes which this process caused to not happen, by truncating pagecache. A task can cause “negative” IO too. If this task truncates some dirty pagecache, some IO which another task has been accounted for (in its write_bytes) will not be happening. We _could_ just subtract that from the truncating task’s write_bytes, but there is information loss in doing that. Note At its current implementation state, this is a bit racy on 32-bit machines: if process A reads process B’s /proc/pid/io while process B is updating one of those 64-bit counters, process A could see an intermediate result. More information about this can be found within the taskstats documentation in Documentation/accounting.

docs.kernel.org

0
0
0
0
1
0
0
0
0
0
0
0

동상을 계속 세우는 힘멜에게 왜 그러냐 묻자
가장 큰 이유는 네가 미래에 홀로 고독하게 두지 않기 위함이려나. 옛날이야기 같은 게 아니야, 우리는 정말로 여기 있었다고.

May be an image of text
0
1
0
0
1
0