# fec - Forward error correction for SDR, space, and satellite applications

Original title: Show HN: SIMD Viterbi Decoder in Rust

> Hacker News story 49176212 · language: en · submitted 2026-08-04
> Web version: https://zeli.app/story/49176212
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 63 · by [brian-armstrong](<https://news.ycombinator.com/user?id=brian-armstrong>) · 💬 11
[original](<https://github.com/brian-armstrong/fec>) · [HN discussion](<https://news.ycombinator.com/item?id=49176212>)

## Summary

fec is a Rust crate that implements two essential error-correcting codes for software-defined radio and spacecraft links: convolutional codes with a Viterbi decoder (hard and soft decision) and Reed-Solomon codes over GF(2⁸). It supports a wide range of rates and orders, including the common rate-1/2 k=7 and CCSDS (255,223) codes. With the optional `simd` feature on nightly Rust, the Viterbi decoder accelerates on SSE/AVX2/AVX512, making it more performant than C libraries like libcorrect and libfec. The crate is bit-compatible with libfec, and a shim crate provides a drop-in C ABI. Ideal for developers working on SDR, satellite communications, or any system requiring robust error correction.

## Key quote

> With the `simd` feature enabled (requires nightly), this crate is more performant than either libcorrect or libfec on x86.

## HN discussion (11 comments)

### [nickcw](<https://news.ycombinator.com/item?id=49180683>)

> I was looking at the reed Solomon implementation. I've done a few of those in the past! I note that you are using logs for multiplication. I always used to use a 64kb table for direct lookup, though maybe that isn't faster on modern processors?
>
> Next LDPC codes?

### [eminence32](<https://news.ycombinator.com/item?id=49178431>)

> Could this library be used decode signals from a GOES satellite downlink?  goestools uses libcorrect for this and building a rust version might be fun.
>
> [1] https://github.com/pietern/goestools

### [ChadNauseam](<https://news.ycombinator.com/item?id=49177425>)

> I thought this might have something to do with sentencepiece's unigram (which uses viterbi). But they seem to be totally different domains. What an amazing algorithm, to show up in so many different places.

---

## Cite

- Page: https://zeli.app/story/49176212
- Date: 2026-08-04
- Source: github.com (https://github.com/brian-armstrong/fec)
- Hacker News: https://news.ycombinator.com/item?id=49176212

## Other languages

- zh: https://zeli.app/zh/story/49176212 · markdown: https://zeli.app/zh/story/49176212.md
- ja: https://zeli.app/ja/story/49176212 · markdown: https://zeli.app/ja/story/49176212.md
- ko: https://zeli.app/ko/story/49176212 · markdown: https://zeli.app/ko/story/49176212.md
- de: https://zeli.app/de/story/49176212 · markdown: https://zeli.app/de/story/49176212.md
- es: https://zeli.app/es/story/49176212 · markdown: https://zeli.app/es/story/49176212.md
