HeadlinesBriefing favicon HeadlinesBriefing.com

Fortransky: Bluesky Client Built Entirely in Fortran

Hacker News •
×

A developer has created Fortransky, a terminal-only Bluesky client written entirely in Fortran, complete with a Rust-native firehose decoder for AT Protocol's relay-raw stream. The project demonstrates that even legacy languages can handle modern social media protocols, using Fortran for the TUI, C libcurl bridge, and Python for stream handling.

Fortransky employs a hybrid architecture where Fortran manages the interface, Rust decodes binary CBOR streams, and Python handles WebSocket connections. The client supports two modes: Jetstream for JSON-native WebSocket connections and relay-raw for binary AT Protocol streams. Users authenticate with app passwords and can browse timelines, post content, and interact with notifications through a command-driven interface.

This unconventional implementation proves Fortran's viability for contemporary applications beyond scientific computing. The project's architecture—with Fortran's iso_c_binding interfacing with C and Rust libraries—offers a practical example of cross-language integration. While the JSON parser is hand-rolled and handle resolution isn't implemented yet, Fortransky successfully demonstrates that even seemingly obsolete languages can power modern social media clients when combined with appropriate tooling.