10 comments

  • BretonForearm17 minutes ago
    Going from &quot;SVG&#x2F;Canvas is wasteful&quot; to a tile based approach is a giant leap. Wouldn&#x27;t AI suggest delta encoding of polyline coordinates and discretization of deltas as small, maybe just 2-4 bit integers? Storing the X and Y delta vectors separately, rather than interleaved, could lead to a further increase to the compression ratio.<p>What was asked of Claude? The article is very sparse on this.
  • userbinator8 minutes ago
    32x32 4bpp 16-color icon is 512 bytes. There definitely were programs that had a recognisable world map for an icon in those days, so the answer is yes.
  • AaronAPU1 hour ago
    Is there a good known algorithm which performs general purpose compression where the target is a given turing complete instruction set? Rather than relying on a fixed general purpose decoder and the associated compressed data.<p>I’m asking here instead of asking an LLM because that’s what humans used to do and it was pleasant.
    • wizzwizz41 hour ago
      A perfect implementation would be a Kolmogorov oracle. <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Kolmogorov_complexity#Halting_problem" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Kolmogorov_complexity#Halting_...</a> suggests this is equivalent to a halting oracle. So, it depends what you mean by &quot;good&quot;.
    • convolvatron1 hour ago
      that sounds pretty related to Kolgomorov complexity, which is uncomputable in general. <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Kolmogorov_complexity" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Kolmogorov_complexity</a><p>I too would be interested in approximations or heuristics if anyone has any
  • simonw57 minutes ago
    I didn&#x27;t know you could do this with fetch() and a data: URI:<p><pre><code> fetch(&#x27;data:;base64,1ZpLsgIxCEXnrM...==&#x27;).then( r =&gt; r.body.pipeThrough(new DecompressionStream(&#x27;deflate-raw&#x27;)) ).then( s =&gt; new Response(s).text() ).then( t =&gt; b.innerHTML = &#x27;&lt;pre style=font-size:.65vw&gt;&#x27; + t )</code></pre>
  • gus_massa2 days ago
    Why is there a lake in Africa near Congo&#x2F;Gabon istead of one near Uganda?<p>Also, can this be done with png? Most consecutive lines are very similar, so I&#x27;d expect the algebraic pass to be very useful.
  • ksymph1 hour ago
    Since the map just has two states - land or water - I wonder if there&#x27;s a way to represent the same information more efficiently bits rather than bytes.
    • H8crilA38 minutes ago
      Any decent compressor will take care of this - and much more.
  • throwrioawfo29 minutes ago
    What&#x27;s the point in doing things like this if you just get Claude to do it?
  • iweczek3 days ago
    Experimenting with drawing a world map and micro-optimization.
  • Analemma_1 hour ago
    Presumably you could precompute some parametric function (probably a Fourier sum) which draws a reasonably close map of the world, and get that into 500 bytes with a math-focused programming environment (R, Julia, etc.)? I might try throwing Fable at this and seeing what I can get.
    • Analemma_39 minutes ago
      Well, here&#x27;s what Fable came up with in 499 bytes of R in about half an hour: <a href="https:&#x2F;&#x2F;pastebin.com&#x2F;sBsiGD9t" rel="nofollow">https:&#x2F;&#x2F;pastebin.com&#x2F;sBsiGD9t</a>, result: <a href="https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;W3eDdIC" rel="nofollow">https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;W3eDdIC</a>. Probably with sitting down and tweaking you could do even better, but I think this is a decent first start.
  • effnorwood1 hour ago
    heck yea! 499 tera. no problem.