r/ipfs • u/[deleted] • Oct 28 '22
Why still use html and javascript?
Is there a reason why ipfs websites still primarily use html/css/js? why not try and adopt a newer markup language?
9
u/TheDailySpank Oct 28 '22
What other markup languages that work in a web browser are there?
-3
Oct 28 '22
Well that's my question, why does it have to be "web" if you're no longer using http why limit it?
7
u/joesb Oct 28 '22
You can do it and see how people adopt.
The thing with the web is that there is no centralize authority. You cannot force people to adopt your standard.
If you want to fight multiple wars at once, go ahead.
12
u/TheDailySpank Oct 28 '22 edited Oct 29 '22
It (the “web”) doesn’t have to be any specific document or file format. As others have said, all IPFS does is send files.
Much like a CD or DVD doesn’t care what (spoken) language is on it, they’re just methods of encoding and holding information on a small platter of metal attached to some plastic that allows you to move it from one place to another.
1
u/yaofur Nov 03 '22
You can easily setup a webapp with WebAssembly and Canvas, then render any user interface with it, frontend is crazy nowadays.
1
u/TheDailySpank Nov 03 '22
Kudos to those that can go from 0 to WebAssembly while skipping the more traditional ways.
16
u/namelesscreature0 Oct 28 '22
Any file can be stored on IPFS but browser may not render.
2
29
u/fingertoe11 Oct 28 '22
Feel free to do so.
IPFS deals with a different layer of the network. It just delivers files, it doesn't care what anyone does with them.
4
u/thinkmatt Oct 29 '22
Face it, html/css/js are here to stay. They'll be here 100 years from now, longer than C or C++ or any other compiled language that doesn't require being run by billions of clients, because they are easily replaced.
3
u/searchingfortao Oct 29 '22
There's a lot of people here being really shitty to you for asking what appears to be an honest question, so I'll try to give you a proper answer.
The problem is really with your use of the word "website". That word has some strong expectations around it, primarily that one would use a web browser like Firefox to navigate your site and link to others. That means you're limited by the abilities of a browser, which for better or worse, is HTML, CSS, and JavaScript. Many attempts have been made to convince browser makers to support other languages. All have failed.
Now, as you've likely noted, the limitation is in the browser rather than in IPFS, so there's nothing stopping you from developing an entirely custom application on top of it that doesn't use HTML, CSS, or JavaScript, but doing so would mean not just developing the resource/website, but also the means of navigation. That's... hard, but not impossible.
You could, for example develop a dead-drop communications tool, or a hide-and-go-seek game based on IPFS, but you'd also have to build some sort of interface (command line? GUI? Which operating systems?) for your users to access it. This is done all the time with companies building apps that use the web in interesting ways, but it's resource intensive and often leveraging a browser's cross platform abilities and common frameworks & standards is broadly sufficient to the task.
But it can be done, and if you have an idea that would benefit by not being bound by the restrictions of a browser, you should do it!
One simple example of this would be an Android app. You'd build everything in Java or Kotlin: no browser, no browser-based restrictions. You could also build some elaborate Python-based framework that follows voice commands and stores/references data in IPFS. Go nuts, and tell us about what you've built when you have something!
4
2
1
u/volkris Nov 01 '22
As others say, IPFS doesn't know or care what's in the data it manages. It doesn't know whether it's html or text in the same way your telephone call doesn't know if you're speaking English or Spanish. It just delivers the data.
But I want to go one step farther and point out that IPFS doesn't take a stance on any of it, so there's no asking IPFS why not try to adopt a different language--that's up to each and every individual developer to make up his own mind around.
This is part of IPFS being decentralized, I suppose. You use whatever language you want. It's none of IPFS developers' business.
1
0
6
u/throwaway43234235234 Oct 28 '22
Backwards compatibility. You wanna make something 99% of the world can't use?