Lurker News

Comments (165) 50 threads

losvedir12 replies#
Author here. Amusingly, I wanted to link to the HN discussion on the page, but couldn't figure out how to... I don't think it's possible! Something I hadn't considered until just now with a content addressable web is there are no cycles in the links.

Edit: Another amusing anecdote. I've been following this on log2viz (the heroku realtime performance monitoring tool), and was aghast to see high response times and memory usage. Then I realized I was actually looking at the dashboard for one of my rails apps! Phoenix is sitting pretty at about 35MB memory usage, and a median response time of 5ms, so far.

maxerickson2 replies#
Are you able to adjust the url of the HN submission? I don't feel like creating one just to check, but that makes it easy to link the discussion, create the discussion before the page.
losvedir2 replies#
No, but that would be the way to do it, for sure. There's a link to "edit" my submission, but the form it takes me to only allows updating the title. It displays the URL as ordinary text, rather than a text input.
brlewis#
I guess you'll need a fixed URL that redirects to the HN submission.
dang#
We'll change the URL for you if you like.
im3w1l#
It seems ID's are assigned sequentially, so by timing your submission you should be able to get a predictable url.
bencoder1 reply#
An idea to make this(and the editable content suggestion in another comment) possible could be to add something to the protocol to define "previous versions" sha hashes. If you want to edit a page then create a new page which includes the sha hash of the previous versions. If you get a request for the content of a sha hash of an old version, you could suggest your sha hash as an updated version.
kreeben1 reply#
Or just send a new piece of content with the same ID and hope that it will win. But seriously, just a new created date. Same ID.
nanofortnight7 replies#
ID is a hash of the content so that's not possible unless you find a hash collision (highly unlikely with sha256).

Continue this thread — 7 replies

Filligree#
This is a problem that Freenet solved a long time ago. It means you need public-key cryptography rather than hashes for security, but they support updating pages--and, of course, any and all leaf content can still use hashes for better cacheability.
sktrdie3 replies#
Do you know about WebRTC and Webtorrent? You can do this even without a relay server. Just browser-to-browser.
SomeCallMeTim3 replies#
It's worth noting that WebRTC still requires a server of SOME sort -- typically you want a "signaling" server, and you need at least a STUN server to pierce firewalls, though the latter can be found for free.

And some corporate networks are too restrictive to be pierced by STUN, which means you need a TURN server, which is a relay server.
But yes, 98% of the time, WebRTC can go directly browser to browser. As long as neither browser is Internet Explorer. Sigh.

cmdrfred#
I never knew about STUN, this solves so many problems I've had. Thanks.
amelius#
> As long as neither browser is Internet Explorer. Sigh.

If all popular torrent sites moved to in-browser downloads over WebRTC, virtually everybody would move away from IE :)

amelius1 reply#
Is it even possible to open a socket from a browser to another browser directly? I was under the impression that was restricted for security reasons (websites becoming botnets and such).
cmdrfred#
I think you are correct, this appears to require a sever side element, I assume you don't have any real proof of deletion with something like this.
mvanvoorden1 reply#
I once solved a similar problem by creating a link at tinyurl and then updating that link to point to whatever the name of my uploaded file had become :)
e12e#
Well, the site already uses DNS as an escape hatch for getting a pointer to content, so setting up a http-redirector might be a good idea...
Achshar3 replies#
Ok I am at a loss here. Why can't you link this discussion on that page?
pdenya#
Changing the contents changes the hash and the hash is used in the url
netcraft#
the hash is a hash of the content itself, so the link is immutable - if you changed the content the link wouldn't be pointing to the same thing anymore.
DSMan195276#
The web-pages are recognized by their hash, so you can't change them after you setup the page. The problem is that you would have to supply HN with the link to the page, and then go back and edit the page to include the link to the new HN article. Since you can't go back and edit the page, you can't include the link.
tel#
You'd have to be able to generate some pretty fantastically unique hash collisions!

Continue this thread — 5 more replies

rhythmvs4 replies#
Interesting to watch Gmail reading along…

Send the link with the hash using your gmail account, stay tuned at the corresponding page on http://ephemeralp2p.durazo.us, watch “Currently viewing” pop to "2" immediately after you sent the mail. Obviously, the Google borg is slurping up each and every address on the Web it is fed.

knodi123#
more insidious theories aside, this is probably at least used to drive the "warning, this looks like a phishing attack" which gets inserted inline in some emails.
zuck93 replies#
They can't be doing this. What if just opening the link does a destructive action, like unsubscribing or posting a comment on your website?
oh_sigh1 reply#
Then said link is in violation of web standards that have existed for literally decades. I believe I've heard stories about google bots deleting entire forums, because the forums performed destructive actions via GET calls to specific URLs.

If what you said makes sense to you, ask yourself how google can crawl any URL at all, considering communicating anything to any server could trigger a destructive action.

ryanbrunner7 replies#
I'm curious how one-click unsubscribes continue to function, then. Wouldn't those need to be GET requests (due to being a link)?

Continue this thread — 7 replies

superuser22 replies#
Idempotency of HTTP GET requests is not a theoretical concern.
ipsum23 replies#
Idempotence has nothing to do with it. POSTs are also Idempotent.

Continue this thread — 3 replies

dragonwriter#
> Idempotency of HTTP GET requests is not a theoretical concern.

That's true, but the relevant feature here is safety, not idempotence. (Though a safe method is also idempotent, not all idempotent methods are safe.)

dragonwriter1 reply#
> What if just opening the link does a destructive action, like unsubscribing or posting a comment on your website?

Then whoever created the link that does that is doing web wrong and needs to stop.
GET is, by definition, a safe method. (See RFC 7231, Sec. 4.2.1; RFC 2616, Sec. 9.1.1.) Doing destructive actions via a safe method is plain wrong.

vincentkriek1 reply#
Being wrong is very different from not existing. As long as a spec is a guideline there are people doing it wrong, I guarantee you that.

There are links that do that and if google were to follow every linkt people would notice very fast.

Continue this thread — 1 reply

oh_sigh#
Of course they are - they are probably checking the URL for phishing content or malware.
cmdrfred1 reply#
Someone didn't see yesterdays playing card/get request debate.
colinbartlett1 reply#
Hard to imagine this could be much of a debate. If it's not idempotent you can't use GET. Period.

Continue this thread — 1 reply

addandsubtract6 replies#
Don't all dynamic pages only exist if someone is looking at it?

I think a better title would be "This page only exists AS LONG AS someone is looking at it"
Either way, cool demo!

Continue this thread — 6 replies

dheera#
I once implemented a crude but serverless P2P in JavaScript by using pulse-width-modulating information inside bandwidth usage; anyone on the same Wi-Fi frequency would then be able to stream some arbitrary fixed-bitrate content and observe the drops in their bandwidth throughput to pick up the modulated information. But it was hellishly slow (a couple of bytes a second at best, a couple of bits at worst), and didn't work as soon as there were 3 devices on the frequency.

Would be interested to explore other ways to make pure-JS mesh networking happen. I've thought of using the JavaScript image pinging trick to "port scan" the entire subnet for peers, and communicate by "mildly DDoSing" each other with pings, but haven't actually tried yet.
Another potential method to pure-JS P2P is by using the microphone and speaker and building a mesh network at inaudible frequencies but this requires microphone permissions and won't work beyond the same room, and would be only several hundred bytes per second at best.

Load more comments