Check out Bellard's QuickJS. Small, embeddable, easy-to-use, yet supports the full ES2020 spec. (Bellard is the guy who originally wrote ffmpeg, qemu, tinycc, tinygl and also a fully-featured PC emulator in Javascript...).PeterX {l Wrote}:So I feel like I wouldn't succeed in programming JS for whatever browser or a new, own browser.
Yes, sadly that's true. No wonder voices demanding something simpler than current HTML+CSS+JS triumvirate are getting louder day by day.PeterX {l Wrote}:My personal summary: JS is evil. It hinders the democratition und decentralization of the web. Because you need large monsters like Firefox or Chromium.
PeterX {l Wrote}:QuickJS is cool! I already knew MuJS, but QuickJS looks definitely better.
Julius {l Wrote}:And the entire argument about complexity is also nonsense. All of computing is highly complex, at most you can try to abstract it away and try to hide some of the complexity. And just think of the complexity that is the hardware that is required to run the software in the first place.
Complexity isn't the problem with browsers...
I think PeterX is right, actually both complexity and monopoly is a problem here. Just take a look at the sheer number of specifications for web. It takes months (!) to read them all; not to implement them, but just to read what has to implemented! That's a insane and unreasonable complexity. About the second part, I totally agree, and that's exactly why people hated IE and MS, and a perfectly valid reason to hate Google too.Julius {l Wrote}:Complexity isn't the problem with browsers... it is one company abusing their near monopoly on browser software to intentionally create a moving target so that other potential competitors feel like they have no chance to keep pace.
A simple, right-to-the-case specification for representing media (text, images, videos etc.) in a structured form. If you think about it, 99.999% of the web is nothing more than nicely structured text with some images, nothing else. JS is typically used for things like popup menus, expand boxes, loading fonts and such, which could be solved in a much much simpler way than requiring an entire scripting language (and now bytecode) interpreter. As a matter fact, an interpreted scripting isn't needed at all, it's just overused all the time because it's there.Julius {l Wrote}:What do you propose as the alternative?
Complexity isn't the problem with browsers... it is one company abusing their near monopoly on browser software to intentionally create a moving target so that other potential competitors feel like they have no chance to keep pace.
My point is, they could be. JS is heavily overused for literally everything just because it's already there.Julius {l Wrote}:The majority of the time people spend on "websites" these days are fully interactive webapps like Discord, Reddit, Twitter, Instagram etc, that have build in chat, real-time updates and all that. You can't do that without heavy use of Javascript or a dedicated app.
<div refresh="freq;url">...</div>
JS is heavily overused for literally everything just because it's already there.
bzt {l Wrote}:Anyway, all I'm saying, it could be done, it is possible.
You misunderstood. What I have suggested as an alternative, was never actually made nor implemented, so there's no way you could remember that.Julius {l Wrote}:Yes I remember websites 10 years ago
FYI, 10 years ago the infrastructure had smaller throughput and the servers were slower. I can assure you, today's XMLHttpRequest heavy websites produce a much higher load than the ones 10 years ago, you just don't notice because servers become stronger. Plus the server can always return "304 Not Modified" (RFC 7232) response to minimalize the net-traffic, regardless how the url was queried (http refresh, meta refresh, XMLHttpRequest. or with my suggested refresh attribute).Julius {l Wrote}:they were terribly slow and put heavy load on the server with their constant refreshing.
That's not entirely true. First, loading content from the server (XMLHttpRequest) is just a small part of Javascript, and second, modern pages do not use on demand loading, they are asking for data at regular intervals (true for Discord, FB, Twitter etc. just check out the "Developer Console" while you visit these pages). It is the server who answers with an empty response when there's nothing changed, but there is always a client initiated request first.Julius {l Wrote}:Advanced single-page Javascript websites were developed as a way to have complex websites but still be efficient with server resources and load content from the server only on demand.
That's funny, because the most complex part of any OS is the browser ;-) But yeah, I totally agree.Julius {l Wrote}:I am not saying that we need to rush implementing more and more features into browsers like Google is doing with Chrome, but overall I also don't think it is realistic to reduce the complexity of browsers (much). I would rather try to reduce the complexity elsewhere by slimming down the OS for example.
but overall I also don't think it is realistic to reduce the complexity of browsers (much)
Users browsing this forum: No registered users and 1 guest