首页
26 条评论
richdougherty超过 7 年前
For those you are wondering, this is a webserver that serves an HTML page in a single TCP packet. I guess ≤ 1500 bytes to avoid fragmentation - shows as 1.1KB in Chrome's network view. The HTML contains embedded JavaScript that runs a simple demo with animated ASCII and playing a LOUD changing audio tone.<p>You can visit the demonstration website here: <a href="http://packet.city/" rel="nofollow">http://packet.city/</a><p>You can see a screenshot of the demo here: <a href="http://www.p01.org/128b_raytraced_checkboard/" rel="nofollow">http://www.p01.org/128b_raytraced_checkboard/</a>
评论 #15282778 未加载
评论 #15281188 未加载
评论 #15281596 未加载
评论 #15286363 未加载
评论 #15281368 未加载
评论 #15283674 未加载
zengid超过 7 年前
Pro-tip: If you are doing additive synthesis and want to stack sine-waves in a harmonic series, please scale each successive n harmonic to an amplitude of 1/n. It creates a much more tolerable experience.
评论 #15281751 未加载
评论 #15281899 未加载
TCM超过 7 年前
Hi, this website is really loud and if you are using Headphones I would mute it or turn them down a bunch. It also will autoplay the sound.
评论 #15281643 未加载
davidmurdoch超过 7 年前
Interesting to see DEFLATE over GZIP here, as it is something I used to recommend maybe 7 or so years ago. I collected results for several years and began seeing more browsers dropping support for raw deflate (or switching to zlib deflate).<p>I accidentally let my hosting account expire years ago and lost the server code and db for it, but managed to pull the HTML from the way back machine. I've backed up the results here: <a href="https://davidmurdoch.com/compression-tests-results/" rel="nofollow">https://davidmurdoch.com/compression-tests-results/</a>. It's all pretty outdated now, but rather fun to look at.<p>Anyone know if this is using raw DEFLATE or ZLIB (HTTP 1.1 DEFLATE)?
joosters超过 7 年前
Response headers:<p><pre><code> HTTP/1.1 200 k
Content-Length: 1163
content-encoding: deflate
</code></pre>
I guess the '200 k' instead of '200 OK' saves an extra byte! :)<p>However, since they don't do any HTTP keep-alives (the connection sends a HTTP response and closes before you even send it anything), couldn't they save some space by dropping the Content-Length? It's an optional header.
评论 #15286175 未加载
robocat超过 7 年前
<a href="http://packet.city/" rel="nofollow">http://packet.city/</a><p>summary: A demo scene page that is smaller than a single IP frame and uses some flags to avoid other round trips.<p>view-source:<a href="http://packet.city/" rel="nofollow">http://packet.city/</a><p>The page itself and view-source only work on some browsers. Use wireshark etc to see what it actually does.
评论 #15282659 未加载
nqzero超过 7 年前
>the greatest website to ever fit in a single TCP packet<p>a blank page would be an improvement - that was seizure inducing
评论 #15281412 未加载
teh_klev超过 7 年前
CAUTION: This is just about popped my speakers and my eardrums, this is pretty obnoxious behaviour regardless of the technical cleverness going on.
davrosthedalek超过 7 年前
Does the high pitched sound make my Amazon Echo order something?
评论 #15281280 未加载
nfriedly超过 7 年前
They spend nearly 75% of the page weight on that party parrot image - if they dropped that, the rest of the page could probably be a lot more impressive (and less screechy!)
评论 #15292702 未加载
wmf超过 7 年前
Also ultraloud. Turn down the volume before clicking.
kozak超过 7 年前
Looks like the browser spends most of the loading time resolving DNS.
评论 #15285795 未加载
评论 #15286037 未加载
tibbon超过 7 年前
My cat had opinions about the sound this website makes.
mkj超过 7 年前
Nice work. I guess it'd just as quick if it sent up to ~4kB - that's the normal TCP initial window? <a href="https://tools.ietf.org/html/rfc3390" rel="nofollow">https://tools.ietf.org/html/rfc3390</a>
评论 #15281477 未加载
Geee超过 7 年前
How is it that loud? It's not tolerable even on minimum settings on my iMac.
评论 #15283530 未加载
评论 #15283042 未加载
kitotik超过 7 年前
Desktop Safari: Can't find variable: AudioContext<p>No room for vendor specific prefixes :|
convery超过 7 年前
Now I'm curious, could one minimize this further? As in, making Chrome accept UDP to get rid of SYN/ACK etc.
remar超过 7 年前
Been years since I went through Beej's socket programming tutorial but I still recognize his code ;)
drvdevd超过 7 年前
Nice. I was just reviewing some TCP fundamentals with my friend for his class, specifically sliding windows and window control, etc.<p>It's as if they took what we were just reading in a compsci textbook for class and directly monetized it.
jest7325超过 7 年前
It might be fast but does it handle load? Did you try to benchmark it with a service like <a href="https://ddostest.me" rel="nofollow">https://ddostest.me</a>
rosstex超过 7 年前
Is there a breakdown of the expanded HTML/JS?
quickthrower2超过 7 年前
Any direct link? Do I need to build this mofo?