Heykuki News

TopNewBestAskShowJobs
TopNewBestAskShowJobs
Show HN: Rust chat client (with GUI) and server on Mac and FreeBSD using WebSockets
6 points
zkirill
10 years ago
I'm learning Rust and put this together from sample code over a few days. Rust is incredibly fun (I normally work with Go and Swift). My goal is to see if I can put the client on a development board running xBSD and use a touchscreen for input.

Client https://github.com/zkirill/thor

Server https://github.com/zkirill/odin

You need Rust 1.7.0 and Cargo 0.9.0 to compile. The package for FreeBSD doesn't currently go that high so you need to use a port (instructions at https://gist.github.com/zkirill/4fb42b4ba4b7cc58c4f0)

Packages of interest:

* IO (epoll, kqueue) used by the server to handle many WebSocket connections on the same thread. See bottom of the MIO README for performance comparisons to other implementations: https://github.com/carllerche/mio

* WebSocket server dependent MIO: https://github.com/housleyjk/ws-rs

* WebSocket client: https://github.com/cyderize/rust-websocket

* GUI (connects to X or Wayland): https://github.com/PistonDevelopers/conrod

2 comments