HackerTrans
TopNewTrendsCommentsPastAskShowJobs

wlswo

no profile record

Submissions

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

github.com
1 points·by wlswo·5 maanden geleden·4 comments

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

3 points·by wlswo·5 maanden geleden·1 comments

comments

wlswo
·5 maanden geleden·discuss
thx
wlswo
·5 maanden geleden·discuss
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 maanden geleden·discuss
Efficiency is not the same as meaning. If you only valued the output, you’ve already lost
wlswo
·5 maanden geleden·discuss
so sick
wlswo
·5 maanden geleden·discuss
Interesting approach. It’s essentially a Just-in-Time documentation layer