Live data from Hacker News

CacheP2P – Distributed caching platform

cachep2p.com

41–50 of 63 posts

Re: CacheP2P – Distributed caching platform

#41
post #32

Earlier quoted context omitted.

I dont think bittorrent is particularly suited for small file caching and thats how a lot of video is served these days (think about how adaptive rate streaming works, a video is split into thousands of small files containing a few seconds of video at certain bitrates).

I believe that bittorrent works by splitting a single file into thousands of small files, so this may, in fact, be ideal?

Ops point, I think, was that you couldn't switch rates mid-stream.

Re: CacheP2P – Distributed caching platform

#43

I'm getting this error on your API page: cachep2p.min.js:9 Uncaught Error: Cannot add duplicate torrent 3cd9bdf4916f422aa77cdd1b952c14202e0eafca I'm also getting these on FF: ICE failed, see about:webrtc for more details(unknown) TypeError: asm.js type error: expecting argument type declaration for 'e' of the form 'arg = arg|0' or 'arg = +arg' or 'arg = fround(arg)'

I'm getting the first error on Chrome, the page loads, but i can see that error on the console.

Re: CacheP2P – Distributed caching platform

#47
post #24

This project, and lots of others, would really benefit from a standardized crypto Javascript API in browsers so there is an opportunity for using better hashing algorithms than are realistic to implement in Javascript. Im not saying its realistic to engineer sha1 collisions to serve up malicious content on a platform like this, but its getting closer every year.

https://www.w3.org/TR/WebCryptoAPI/ ?

Re: CacheP2P – Distributed caching platform

#48
post #24

This project, and lots of others, would really benefit from a standardized crypto Javascript API in browsers so there is an opportunity for using better hashing algorithms than are realistic to implement in Javascript. Im not saying its realistic to engineer sha1 collisions to serve up malicious content on a platform like this, but its getting closer every year.

For fun a few months ago, I implemented BLAKE in JS. It's a state of the art hash function developed by djb.

It was cool seeing how hashing works under the hood. I used UInt32Array for speed. It is still nowhere near native speed, but fast enough for many applications.

https://www.npmjs.com/package/blakejs

Post reply on HN