TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Getting gestures: from Linux’ evdev to the browser

3 点作者 owulveryck超过 1 年前

1 comment

owulveryck超过 1 年前
Greetings HN community, I've written an article narrating my recent endeavor with goMarkableStream, a tool I crafted to bridge gesture inputs from a reMarkable tablet to a web browser for seamless interactive presentations. This exploration led me down a path where the Unix philosophy and the Go language became pivotal elements. Key highlights of the article: A deep dive into using WebSockets versus HTTP for conveying gestures from a device to a browser, highlighting the trade-offs and practical considerations. An illustration of Unix's enduring principle, "everything is a file," in action - capturing touch events in a Linux-based environment and the strategic choice of Go for its simplicity and robustness. The issues and thought to design a bespoke messaging system over HTTP, moving away from the intricate layers of third-party libraries, in favor of a more transparent, hands-on approach. I try to place some reflections on the journey of tackling complexity with simplicity, echoing Rob Pike’s wisdom: “a little copying is better than a little dependency.” hope you will enjoy the post