[ / / / / / / / / / / / / / ] [ dir / random / 93 / biohzrd / hkacade / hkpnd / tct / utd / uy / yebalnia ]

/prog/ - Programming

Programming

Name
Email
Subject
REC
STOP
Comment *
File
Password (Randomized for file and post deletion; you may also set your own.)
Archive
* = required field[▶Show post options & limits]
Confused? See the FAQ.
Options

Allowed file types:jpg, jpeg, gif, png, webp,webm, mp4, mov
Max filesize is16 MB.
Max image dimensions are15000 x15000.
You may upload5 per post.


File: 1451066758065.png (192.84 KB,3960x1500,66:25,IzendaWebLogos.png)

802dcb No.3764

Using localStorage, the forum's content can be stored offline in the browser, which'd then get synchronized between online users with Peer.js.

There'd need a signalling server to introduce users to each other, but the server-side database load would be absolutely zero. And client-side localStorage has a limit of 10MB per domain, but I think that can be worked with if it doesn't grow excessively big, or maybe it can be circumvented somehow.

You could just go to your regular php file manager and upload an index.html, then go to yourhost.com/forum/ and the forum would be there, wholely javascript without page loads.

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

802dcb No.3774

It can work!

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

802dcb No.3781

I had this idea because I wanted to make a browser-side BBCode parser. So users could edit it however they wanted easily.

So I needed an excuse…

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

802dcb No.4258

>>3764

I'd like to see you faggots make a peer to peer chan like this.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

802dcb No.4309

>>3764

Prepare to be exploited m80.

You're going to let the user keep his forum files locally and then upload them to your server temporarily? Gonna be rough keeping that from backfiring.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

802dcb No.4637

>>4309

This x 100

>>3764

OP I'd say that the best way to do something like this is to have the user keep an encrypted file container not with their own information but with bits and pieces of everyone else's info a-la bittorrent. However, JS would not be the language to code something like this in. You'd be better off with C, C++, or even Erlang since you're going to be doing distributed computing. Might also want to peek at Pony because it uses object capabilities and actors. Some very powerful stuff under the hood.

I had a similar idea to yours. Its doable but it will ultimately fail if you do it in Javascript. The other user is right. Allowing some dick to upload info to your server is asking for trouble. Information has to be securely stored, tamper proof, and safely transmitted.

In summation: a distributed/P2P system that requires the user to upload his information is a good idea if its done properly. The user must not be able to edit his own info except through a secure web interface. The data itself MUST be encrypted. Otherwise you need a way to sandbox each user's code.

Maybe check out Google's Caja? Its a variant of Ecmascript that uses capabilities.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



[Return][Go to top][Catalog][Nerve Center][Random][Post a Reply]
Delete Post [ ]
[]
[ / / / / / / / / / / / / / ] [ dir / random / 93 / biohzrd / hkacade / hkpnd / tct / utd / uy / yebalnia ]