Rendered at 23:53:54 GMT+0000 (Coordinated Universal Time) with Cloudflare Workers.
BretonForearm 15 minutes ago [-]
Going from "SVG/Canvas is wasteful" to a tile based approach is a giant leap. Wouldn'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.
What was asked of Claude? The article is very sparse on this.
userbinator 5 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.
AaronAPU 1 hours 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.
I’m asking here instead of asking an LLM because that’s what humans used to do and it was pleasant.
I too would be interested in approximations or heuristics if anyone has any
simonw 54 minutes ago [-]
I didn't know you could do this with fetch() and a data: URI:
fetch('data:;base64,1ZpLsgIxCEXnrM...==').then(
r => r.body.pipeThrough(new DecompressionStream('deflate-raw'))
).then(
s => new Response(s).text()
).then(
t => b.innerHTML = '<pre style=font-size:.65vw>' + t
)
gus_massa 2 days ago [-]
Why is there a lake in Africa near Congo/Gabon istead of one near Uganda?
Also, can this be done with png? Most consecutive lines are very similar, so I'd expect the algebraic pass to be very useful.
ksymph 1 hours ago [-]
Since the map just has two states - land or water - I wonder if there's a way to represent the same information more efficiently bits rather than bytes.
H8crilA 36 minutes ago [-]
Any decent compressor will take care of this - and much more.
throwrioawfo 26 minutes ago [-]
What's the point in doing things like this if you just get Claude to do it?
iweczek 3 days ago [-]
Experimenting with drawing a world map and micro-optimization.
Analemma_ 1 hours 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_ 37 minutes ago [-]
Well, here's what Fable came up with in 499 bytes of R in about half an hour: https://pastebin.com/sBsiGD9t, result: https://imgur.com/a/W3eDdIC. Probably with sitting down and tweaking you could do even better, but I think this is a decent first start.
What was asked of Claude? The article is very sparse on this.
I’m asking here instead of asking an LLM because that’s what humans used to do and it was pleasant.
I too would be interested in approximations or heuristics if anyone has any
Also, can this be done with png? Most consecutive lines are very similar, so I'd expect the algebraic pass to be very useful.