A short follow-up demonstrating a finger protocol client written in the Hare programming language. The post showcases the language's new net::dial module, inspired by Go's net.Dial and Plan 9's dial function, which supports TCP connections, service name resolution via /etc/services, and automatic SRV record lookups. The client parses a user@host argument, dials the finger server on port 79, sends the username, and pipes the response to stdout — all in roughly 30 lines of code. The post also highlights extensibility differences from Go, such as allowing third-party libraries to define new protocol handlers.

3m read timeFrom drewdevault.com
Post cover image

Sort: