by richdougherty on 9/19/17, 1:26 AM
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.
You can visit the demonstration website here: http://packet.city/
You can see a screenshot of the demo here: http://www.p01.org/128b_raytraced_checkboard/
by zengid on 9/19/17, 3:55 AM
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.
by TCM on 9/19/17, 2:39 AM
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.
by davidmurdoch on 9/19/17, 2:39 AM
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).
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: https://davidmurdoch.com/compression-tests-results/. It's all pretty outdated now, but rather fun to look at.
Anyone know if this is using raw DEFLATE or ZLIB (HTTP 1.1 DEFLATE)?
by joosters on 9/19/17, 1:20 PM
Response headers:
HTTP/1.1 200 k
Content-Length: 1163
content-encoding: deflate
I guess the '200 k' instead of '200 OK' saves an extra byte! :)
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.
by robocat on 9/19/17, 1:32 AM
http://packet.city/summary: A demo scene page that is smaller than a single IP frame and uses some flags to avoid other round trips.
view-source:http://packet.city/
The page itself and view-source only work on some browsers. Use wireshark etc to see what it actually does.
by nqzero on 9/19/17, 1:36 AM
>the greatest website to ever fit in a single TCP packet
a blank page would be an improvement - that was seizure inducing
by teh_klev on 9/19/17, 8:04 AM
CAUTION: This is just about popped my speakers and my eardrums, this is pretty obnoxious behaviour regardless of the technical cleverness going on.
by davrosthedalek on 9/19/17, 1:27 AM
Does the high pitched sound make my Amazon Echo order something?
by bpicolo on 9/19/17, 1:20 AM
This will upset any cat in the vicinity
by nfriedly on 9/19/17, 6:08 PM
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!)
by wmf on 9/19/17, 1:07 AM
Also ultraloud. Turn down the volume before clicking.
by kozak on 9/19/17, 6:34 AM
Looks like the browser spends most of the loading time resolving DNS.
by ricardobeat on 9/19/17, 1:09 AM
What is it? Nothing happens on mobile Safari.
by tibbon on 9/19/17, 2:59 PM
My cat had opinions about the sound this website makes.
by mkj on 9/19/17, 2:50 AM
by nathan_long on 9/19/17, 2:46 PM
All hail the rise of the Single Packet Web App.
by Geee on 9/19/17, 9:26 AM
How is it that loud? It's not tolerable even on minimum settings on my iMac.
by kitotik on 9/19/17, 4:20 AM
Desktop Safari: Can't find variable: AudioContext
No room for vendor specific prefixes :|
by wogna on 9/19/17, 10:14 AM
Why is the tcp socket set to busy poll for 1 microsecond?
by convery on 9/19/17, 3:22 PM
Now I'm curious, could one minimize this further? As in, making Chrome accept UDP to get rid of SYN/ACK etc.
by remar on 9/19/17, 1:48 AM
Been years since I went through Beej's socket programming tutorial but I still recognize his code ;)
by drvdevd on 9/19/17, 1:35 AM
Nice. I was just reviewing some TCP fundamentals with my friend for his class, specifically sliding windows and window control, etc.
It's as if they took what we were just reading in a compsci textbook for class and directly monetized it.
by jest7325 on 9/19/17, 3:16 PM
It might be fast but does it handle load? Did you try to benchmark it with a service like
https://ddostest.meby rosstex on 9/19/17, 1:38 AM
Is there a breakdown of the expanded HTML/JS?
by quickthrower2 on 9/19/17, 3:51 AM
Any direct link? Do I need to build this mofo?