<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Random Dev zzzzz</title>
    <description>The latest articles on DEV Community by Random Dev zzzzz (@mars-alien-uranium).</description>
    <link>https://dev.to/mars-alien-uranium</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4180957%2Faa3770a9-e120-439a-91cd-007c1e56d3ee.png</url>
      <title>DEV Community: Random Dev zzzzz</title>
      <link>https://dev.to/mars-alien-uranium</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mars-alien-uranium"/>
    <language>en</language>
    <item>
      <title>vlac: A lossless audio codec for voice, written in Rust</title>
      <dc:creator>Random Dev zzzzz</dc:creator>
      <pubDate>Wed, 21 Oct 2026 10:44:34 +0000</pubDate>
      <link>https://dev.to/mars-alien-uranium/vlac-a-lossless-audio-codec-for-voice-written-in-rust-1afm</link>
      <guid>https://dev.to/mars-alien-uranium/vlac-a-lossless-audio-codec-for-voice-written-in-rust-1afm</guid>
      <description>&lt;h1&gt;
  
  
  vlac: A lossless audio codec for voice, written in Rust
&lt;/h1&gt;

&lt;p&gt;I built &lt;code&gt;vlac&lt;/code&gt;, a lossless audio codec designed specifically for 16kHz mono voice audio. It uses an Order-4 LPC predictor and Zstandard with trained dictionaries.&lt;/p&gt;

&lt;p&gt;It's written in Rust for memory safety.&lt;/p&gt;

&lt;h3&gt;
  
  
  How it works
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Predict the next sample using the previous three.&lt;/li&gt;
&lt;li&gt;ZigZag encode the residuals.&lt;/li&gt;
&lt;li&gt;Split the residuals into High and Low bytes (so Zstandard can compress the zero-padded High bytes efficiently).&lt;/li&gt;
&lt;li&gt;Compress with Zstandard.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Benchmarks
&lt;/h3&gt;

&lt;p&gt;On a 10.75-second voice memo (337 KB WAV):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Original WAV: 337 KB&lt;/li&gt;
&lt;li&gt;FLAC (ffmpeg default): 151 KB&lt;/li&gt;
&lt;li&gt;vlac: 163 KB&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;vlac currently produces files 8% larger than FLAC on general voice audio. However, it is 100% bit-perfect (verified via MD5 hash on the raw PCM data) and compiles to WebAssembly. The architecture allows for domain-specific dictionary training, which FLAC cannot do.&lt;/p&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/pngz-dev/vlac.git" rel="noopener noreferrer"&gt;https://github.com/pngz-dev/vlac.git&lt;/a&gt;&lt;/p&gt;

</description>
      <category>rust</category>
      <category>opensource</category>
      <category>showdev</category>
      <category>programming</category>
    </item>
    <item>
      <title>pngz - alternative to png</title>
      <dc:creator>Random Dev zzzzz</dc:creator>
      <pubDate>Tue, 13 Oct 2026 04:27:43 +0000</pubDate>
      <link>https://dev.to/mars-alien-uranium/pngz-alternative-to-png-1a4g</link>
      <guid>https://dev.to/mars-alien-uranium/pngz-alternative-to-png-1a4g</guid>
      <description>&lt;p&gt;I made a image format, it's called .pngz, it inherits png kind of filtering, with zstandard compression. it has also a feature to train our images on dictionary, plus a optimize button. &lt;/p&gt;

&lt;p&gt;Check it out: &lt;a href="https://github.com/pngz-dev/pngz.git" rel="noopener noreferrer"&gt;https://github.com/pngz-dev/pngz.git&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>javascript</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
