These are chat archives for HelloZeroNet/ZeroNet

20th
May 2016
zeronetscript
@zeronetscript
May 20 2016 14:07
Hello
ZeroFrame API fileGet has 'required' option, if I fileGet a user data, does it mean "this user file synced complete, no such file" or "this user file may not synced" ?
zeronetscript
@zeronetscript
May 20 2016 15:48
after some throughts, I've found a way to write full dynamic website. you can treat user's data as "traditional http request", and run a glue code on your server, which listen all user's requests and pass them into any PHP/ASP/JAVA backend, then merge all "response" together and update/publish back to all users. now users get his response from merged response. This is longer than before, but is doable. this makes all traditional web site runnable with zeronet
Igor Artamonov
@splix
May 20 2016 15:49
but how do you run PHP/ASP/JAVA backend on zeronet?
zeronetscript
@zeronetscript
May 20 2016 15:50
your PHP/ASP/JAVA backend only runs on your 'master site' machine, it listen all user's data, then update your site and sign/publish
Igor Artamonov
@splix
May 20 2016 15:51
so if master id down, then zeronet frontend too. it’s same as traditinal web is working. just changes the way how frontend code is delivered to the browser
zeronetscript
@zeronetscript
May 20 2016 15:51
not really. if master's backend dead, site just stay the same as last update
Igor Artamonov
@splix
May 20 2016 15:53
ok, maybe it’s okay for some sites
zeronetscript
@zeronetscript
May 20 2016 15:54
of course sites should optimize for these usage, to hide the high latency
but I think MUD game should be OK
I'll try to port a MUD game in zeronet
and I have another thought for better site permission control
right now sites loads data from site's self data, makes it hard to transfer control permission. so I think the site can only specified which "authed" user's data should the site load from, then this user's data just appears on site(site can also load data from different user into different parts), site master only control these load relationship
OliverCole
@OliverCole
May 20 2016 16:01
What does that gain? Remember the 'authed user' is really just the site owner key pair
zeronetscript
@zeronetscript
May 20 2016 21:22
@OliverCole this makes site update done by others, but without transfer site privatekey
OliverCole
@OliverCole
May 20 2016 22:07
In a sense you already have that with multi user sites though - you just lock it down to a set of users, and have the page load their content.
zeronetscript
@zeronetscript
May 20 2016 22:51
this can be used more wild than that. as I said , we can run any PHP/JAVA/ASP on master site and makes any traditional website, so we can treat "load from user data" as "load balance"
for example, we can design a "web proxy" in ZeroNet, which have multi "proxy provider". site master control which provider should answer your browse request.
zeronetscript
@zeronetscript
May 20 2016 22:57
because all user's data broadcast to all visiter, provider use this map to tell whoes request should be answered, visitor use this map to tell which provider answered his request