HackerTrans
トップ新着トレンドコメント過去質問紹介求人

wlswo

no profile record

投稿

Xray – A minimal screenshot tool for developers (Rust/Tauri)

github.com
1 ポイント·投稿者 wlswo·5 か月前·4 コメント

Show HN: Xray – A minimal screenshot tool for developers (Rust/Tauri)

3 ポイント·投稿者 wlswo·5 か月前·1 コメント

コメント

wlswo
·5 か月前·議論
thx
wlswo
·5 か月前·議論
Implementation Details: We currently use a hybrid polling approach rather than a pure event-driven one.

Mechanism: The Rust backend runs a high-priority background loop using AXUIElementCopyElementAtPosition to track the element under the cursor.

Optimization: To minimize overhead, the polling frequency is throttled and only ramps up when the overlay is active. We use CoreGraphics to first detect mouse movement delta before triggering the heavier Accessibility API calls.
wlswo
·5 か月前·議論
Efficiency is not the same as meaning. If you only valued the output, you’ve already lost
wlswo
·5 か月前·議論
so sick
wlswo
·5 か月前·議論
Interesting approach. It’s essentially a Just-in-Time documentation layer