r/programming • • Jul 17 '22

Create decentralized applications with JavaScript, HTML and CSS

https://gridnet.org/wpp/index.php/2022/07/12/create-ui-dapps-right-now-developer-guide/
122 Upvotes

159 comments sorted by

View all comments

Show parent comments

0

u/rafalsk Jul 17 '22

Thank you so much for your comment.

I have put lots of effort to understand what you were getting at, to no avail for the most of it, let us go through every point that you've mentioned, together, shall we?

"Your 100% wrong."

I am sorry to be hearing that let us hope that we arrive at a common viewpoint through a constructive conversation, I can promise you my patience.

"The reality is that your replacing servers with "nodes" which are servers you basically have no control on."

The world around is is beautiful, I believe. Within of your brain there are billions of neurons firing each and every minute. Sometimes, when you connect many elements, the end result just might surpass your expectations.

The beauty of decentralization relies on the fact that you do not need control over particular nodes. Kindly read up on how Bitcoin manages to introduce a probabilistic work-around for the Byzantine Dilemma.

"You can put as many copies you want on those servers, you have no guarantee that you won't lose your data"

You never have a guarantee. You have no guarantee that Earth wouldn't be consumed by a block-hole an hour from now.

It all boils down to incentives. In GRIDNET OS, data storage is incentivized. The more you pay for storage the more likely you are not to loose your data, in case of private data. OR, in terms of public data - the better the content, the more people willing to download it, the more people paying for having parts of the files delivers, the more peers willing to host these files. It is called an open economy.

"So your redundancy on "free stuff" means nothing."

Could you please rephrase?

"And at the end of the day it's basically the same as torrents, "

it is not. We have crypto-incentivized storage and crypto-incentivized data exchange.

"Plus you still have the DNS service, ARP/IP service and so on which is 100% centralized, and sometime has to pay for."

You would be glad to know that we implement a system-intrinsic DNS service. What is more had you visited our main-website you would have discovered that nodes are accessible solely by IP addresses one may discover through a static Magnet URL. Now that eliminated the need for DNS entirely, as for getting in touch with nodes maintaining the network.

Our system intrinsic Web-browser UI dApp takes use of the in-house decentralized DNS service.

"Also, since you only serve HTML/CSS/JS you can put your stuff on some CDN"

JavaScript wraps the underlying decentralization aspects and makes all of the APIS easily accessible. It gives you access to the decentralized state-machine. Not to a centralized CDN or server. So you've missed the point.

"These days, you can pay for stuff like CloudFlare"

CloudFlare is a centralized company.

"And for your solution to work, everyone participating needs to dish out way way more money than they would need of they rent a server somewhere."

Kindly define everyone? You pay for full redundancy storage according to open market price conditions. Same for incentivized crypto-storage. You pay for what you use. It's as simple as that.

5

u/Annh1234 Jul 17 '22

Let me explain:

If you don't want your data "controlled" by any one company, upload your site to some CDN with other CDN companies as backups, and eventually falling back to your server/laptop/pc.

That way, you pay for the bandwidth used, your data is in N+1 places (thousand of servers), uptime is 99.9999% pretty much (one CDN goes down, another can take over, and they tend to use different backbones for the internet), and you can be sure your site won't go down because some kids' mom got mad and unplugged his basement PC.

------------------

Also, even if your data is copied to say 100% of the devices online, so it's hosting is 100% decentralized, the way you get this data is via your local ISP, which is controlled by your local government, and can be monitored controlled as they see fit.

Example: download some torrent movies, and you get letters from your ISP about doing illegal stuff.

In other words, you have no way to access this decentralized data without a centralized method.

------------------

If you REALLY want serverless, decentralized data storage, then play around with storing it in the network cables. Not really scalable, every tech provider will hate you/try to scrape you off the net, but that's the only way to "hide stuff" online and make sure only your software can access that data.

1

u/rafalsk Jul 18 '22

some CDN

do you know of a CDN which is not operated by a 'company'?

There is a tremendous difference between 'distributed' and 'decentralized'.

Bitcoin is decentralized. CDNs may be 'distributed' but under 'centralized' governance.

Torrent may be decentralized.

That way, you pay for the bandwidth used, your data is in N+1 places (thousand of servers), uptime is 99.9999% pretty much

GRIDNET OS offers such a decentralized CDN service.

In other words, you have no way to access this decentralized data without a centralized method.

Kindly do note that we do not promote any illegal activities, yet still, we employ Onion Routing together with an internal decentralized DNS service.

If you REALLY want serverless, decentralized data storage, then play around with storing it in the network cables.

There is no need for that.

2

u/Annh1234 Jul 18 '22

Ya... What you say makes no sense... Seems like you think everything with a company is bad.

When in reality, a company is just something so you can pay your taxes legally if you make more than a certain amount.

The difference between distributed and decentralized is in the implementation.

For example: You can have a master/slave MySQL setup that is distributed like normally, and you can set it up to take into consideration split brain occurences so it's decentralized.

That's is why I suggested multiple CDN networks so you get the picture.

Even Thor network works the same. Each node keeps a list of top x nodes it can connect to, and every now and they take votes on what nodes to use and what nodes to discard.

In other words, it centralizes the data so users get the same thing no matter what node they connect to.

1

u/rafalsk Jul 18 '22

Seems like you think everything with a company is bad.

I would strongly suggest, we stick to technology instead of philosophy as 'programming' is the very topic of this sub-reddit.

I am in no position to judge whether a company is good or bad.

Yet I know, that in times of decentralization, a company, in lots of scenarios might not be needed from a purely technological perspective (taxes and believes aside).

When in reality, a company is just something so you can pay your taxes

You are being ignorant on the fact that a CEO of a company such as Twitter/ Reddit/ YouTube/ Google might DOES affect what is being shown to the users of these services. These are facts and we know it. It is not about tax evasion at all.

It is about freedom of information, privacy and so on.

Decentralization allows for information to be free, and its exchange to be incentivized. Without the need for companies and their CEOs.

These are the facts.

CDNs have various forms. A torrent network might be considered a CDN, a CDN might be operated by a company like CloudFlare.

What is important is that the information should be free.

If a CDN is operator by a company, if a social portal i operated by a company then there are extremely high chances that 1) they are collecting data on you 2) that hey are selling your meta-data 3) that they would be pushing adverts down your throat 4) that they would choose to promote A over B and the list goes on an on.

Companies are incentivized.. in fact is is they sole responsibility to make PROFIT. If profit can be made then they would and SHOULD do it.

It's as simple as that.

In times of decentralization we can cope perfectly fine on our own.

We can keep our privacy to ourselves and we can have quality services without worrying whether good pappas concludes that we could be shown something.

1

u/rafalsk Jul 18 '22

While a distributed system might improve failure tolerance it would not ascertain freedom and unbiased information. For that one needs decentralization.

1

u/rafalsk Jul 18 '22

One needs decentralized consensus no matter how you connect the MySQL instances or Cloud flare CDNs, the CEO could modify content of your code,website etc hosted on these with one call.