frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Mounting tar archives as a filesystem in WebAssembly

https://jeroen.github.io/notes/webassembly-tar/
37•datajeroen•3h ago

Comments

sillysaurusx•2h ago
Only peripherally relevant, but also see Ratarmount: https://github.com/mxmlnkn/ratarmount

It lets you mount .tar files as a read only filesystem.

It’s cool because you basically get random access to the tarball without paying any decompression costs. (It builds an index saying exactly where so-and-so is for every file.)

Ecco•1h ago
How about using a format that has actually been designed to be a compressed read-only filesystem? Something like a SquashFS or cramfs disk image?
stingraycharles•1h ago
Sometimes (read: very often) you can’t choose the format. Obviously if squashfs is available that is a better solution.
johannes1234321•11m ago
When looking at established file formats, I'd start with zip for that usecase over tarballs. zip has compression and ability to access any file. A tarfule you have to uncompress first.

SquashFS or cramps or such have less tooling, which makes the usage for generating, inspecting, ... more complex.

phiresky•55m ago
I'm a bit disappointed that this only solves the "find index of file in tar" problem, but not at all the "partially read a tar.gz" file problem. So really you're still reading the whole file into memory, so why not just extract the files properly while you are doing that? Takes the same amount of time (O(n)) and less memory.

The gzip-random-access problem one is a lot more difficult because the gzip has internal state. But in any case, solutions exist! Apparently the internal state is only 32kB, so if you save this at 1MB offsets, you can reduce the amount of data you need to decompress for one file access to a constant. https://github.com/mxmlnkn/ratarmount does this, apparently using https://github.com/pauldmccarthy/indexed_gzip internally. zlib even has an example of this method in its own source tree: https://github.com/gcc-mirror/gcc/blob/master/zlib/examples/...

All depends on the use case of course. Seems like the author here has a pretty specific one - though I still don't see what the advantage of this is vs extracting in JS and adding all files individually to memfs. "Without any copying" doesn't really make sense because the only difference is copying ONE 1MB tar blob into a Uint8Array vs 1000 1kB file blobs

One very valid constraint the author makes is not being able to touch the source file. If you can do that, there's of course a thousand better solutions to all this - like using zip, which compresses each file individually and always has a central index at the end.

UK Biobank leak: Health details of 500 000 people are offered for sale

https://www.bmj.com/content/393/bmj.s781
141•dberhane•2h ago•51 comments

S. Korea police arrest man over AI image of runaway wolf that misled authorities

https://www.bbc.com/news/articles/c4gx1n0dl9no
161•giuliomagnifico•4h ago•94 comments

Spinel: Ruby AOT Native Compiler

https://github.com/matz/spinel
142•dluan•5h ago•34 comments

How to be anti-social – a guide to incoherent and isolating social experiences

https://nate.leaflet.pub/3mk4xkaxobc2p
102•calcifer•3h ago•78 comments

Mounting tar archives as a filesystem in WebAssembly

https://jeroen.github.io/notes/webassembly-tar/
38•datajeroen•3h ago•6 comments

DeepSeek v4

https://api-docs.deepseek.com/
1282•impact_sy•10h ago•909 comments

Show HN: How LLMs Work – Interactive visual guide based on Karpathy's lecture

https://ynarwal.github.io/how-llms-work/
136•ynarwal__•6h ago•31 comments

US special forces soldier arrested after allegedly winning $400k on Maduro raid

https://www.cnn.com/2026/04/23/politics/us-special-forces-soldier-arrested-maduro-raid-trade
383•nkrisc•15h ago•423 comments

Why I Write (1946)

https://www.orwellfoundation.com/the-orwell-foundation/orwell/essays-and-other-works/why-i-write/
210•RyanShook•11h ago•51 comments

An update on recent Claude Code quality reports

https://www.anthropic.com/engineering/april-23-postmortem
801•mfiguiere•19h ago•615 comments

Bitwarden CLI compromised in ongoing Checkmarx supply chain campaign

https://socket.dev/blog/bitwarden-cli-compromised
803•tosh•23h ago•383 comments

GPT-5.5

https://openai.com/index/introducing-gpt-5-5/
1432•rd•19h ago•951 comments

Aspartame is not that bad?

https://dynomight.net/aspartame/
63•pHequals7•1h ago•67 comments

8087 Emulation on 8086 Systems

https://www.os2museum.com/wp/learn-something-old-every-day-part-xx-8087-emulation-on-8086-systems/
8•ingve•2h ago•1 comments

Show HN: Gova – The declarative GUI framework for Go

https://github.com/NV404/gova
72•aliezsid•7h ago•14 comments

Hear your agent suffer through your code

https://github.com/AndrewVos/endless-toil
50•AndrewVos•2h ago•14 comments

The operating cost of adult and gambling startups

https://orchidfiles.com/stigma-is-a-tax-on-every-operational-decision/
48•theorchid•1h ago•47 comments

MeshCore development team splits over trademark dispute and AI-generated code

https://blog.meshcore.io/2026/04/23/the-split
240•wielebny•20h ago•127 comments

Meta tells staff it will cut 10% of jobs

https://www.bloomberg.com/news/articles/2026-04-23/meta-tells-staff-it-will-cut-10-of-jobs-in-pus...
679•Vaslo•18h ago•658 comments

Familiarity is the enemy: On why Enterprise systems have failed for 60 years

https://felixbarbalet.com/familiarity-is-the-enemy/
70•adityaathalye•8h ago•35 comments

Using the internet like it's 1999

https://joshblais.com/blog/using-the-internet-like-its-1999/
185•joshuablais•17h ago•129 comments

Show HN: Tolaria – Open-source macOS app to manage Markdown knowledge bases

https://github.com/refactoringhq/tolaria
238•lucaronin•15h ago•100 comments

UK Biobank health data keeps ending up on GitHub

https://biobank.rocher.lc
167•Cynddl•23h ago•41 comments

Habitual coffee intake shapes the microbiome, modifies physiology and cognition

https://www.nature.com/articles/s41467-026-71264-8
210•scubakid•9h ago•145 comments

TorchTPU: Running PyTorch Natively on TPUs at Google Scale

https://developers.googleblog.com/torchtpu-running-pytorch-natively-on-tpus-at-google-scale/
159•mji•16h ago•14 comments

My phone replaced a brass plug

https://drobinin.com/posts/my-phone-replaced-a-brass-plug/
162•valzevul•21h ago•40 comments

Alberta startup sells no-tech tractors for half price

https://wheelfront.com/this-alberta-startup-sells-no-tech-tractors-for-half-price/
2229•Kaibeezy•1d ago•750 comments

Show HN: Agent Vault – Open-source credential proxy and vault for agents

https://github.com/Infisical/agent-vault
121•dangtony98•1d ago•41 comments

A programmable watch you can actually wear

https://www.hackster.io/news/a-diy-watch-you-can-actually-wear-8f91c2dac682
201•sarusso•3d ago•96 comments

Show HN: Honker – Postgres NOTIFY/LISTEN Semantics for SQLite

https://github.com/russellromney/honker
277•russellthehippo•1d ago•69 comments