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.

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

I just woke up from a dream where I had to explain to someone that their long run (>200m).of RS-232 through multiple floors of an office building and across the machine shop was what let to damaged electronics, due to a significant ground level difference between the endpoints.

0
0
1
0
1
2
0
1
0
3
0
0
0
0
0
1

Here's a API design challenge I'm working on: adding async support to (CLI argument parser) without breaking the existing sync API.

The tricky part is combinators—when you compose parsers with object() or or(), the combined parser should automatically become async if any child parser is async, but stay sync if all children are sync. This “mode propagation” needs to work at both type level and runtime.

I've prototyped two approaches and documented findings. If you've tackled similar dual-mode API designs, I'd love to hear how you approached it.

https://github.com/dahlia/optique/issues/52

2
0

Designing a dual-mode sync/async API in TypeScript is tricky. For Optique (CLI parser), I want to add async support while keeping the existing sync API intact. Exploring type-level mode propagation so combinators automatically become async when any child is async.

Support both sync and async mo...

0
0
0
2
1

좀 뒤늦게 QED iff 29권을 읽었고요. 그동안의 삿된 커플링 망언을 사죄합니다. 두 사람의 관계는 사실상 데데킨트의 절단(=에피소드 사이사이에서 사귄다 땅땅)이라는 망발을 일삼곤 했던 저의 섣부른 처신을 깊이 반성합니다. 이렇게 이어지는 신뢰관계의 필연이 없이는 성립되지 않는, 계산이 난해함에도 존재할 수밖에 없는 정답과 같은 것이 이곳에 있었기에... 이 관계에는 여기서 비로소 이름이 붙어야 마땅한 것. 어딘가 숨겨져 있을 거라는 추측은 터무니없는 것이었습니다. 이 방정식에는 명백한 정수해가 존재하며 그것은 79권째에 있다.

0
0
3