Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Why browsers are bloated

Name: Anonymous 2014-07-27 0:20

https://github.com/WebKit/webkit/blob/master/Source/WebCore/platform/Scrollbar.cpp
https://github.com/WebKit/webkit/blob/master/Source/WebCore/platform/win/ScrollbarThemeWin.cpp
Let's reinvent the fucking scrollbar, which every goddamn platform with a UI already has, and make it behave subtly different from the native one!

Right-click a native scrollbar in some other app:
- Scroll Here
- Top
- Bottom
- Page Up
- Page Down
- Scroll Up
- Scroll Down

Right-click a scrollbar in Chrome:
- Back
- Forward
- Reload
- Save As...
...

Right-click a scrollbar in Firefox and Opera:
Absolutely fucking nothing happens!

What the fuck!? How did these terminally retarded idiots get involved in creating one of the most important pieces of software to the average user?

Name: Anonymous 2014-10-04 18:27

check 'em

Name: Anonymous 2014-10-07 1:02

>>201
Nice base 200 dubs >>201-san.

Name: Anonymous 2014-10-10 21:38

>>191
Inactive tabs (or minimised windows for that matter) shouldn't need any repainting.

Right. What I was talking about is throttling the JavaScript timer frequency for inactive tabs, ala
https://bugzilla.mozilla.org/show_bug.cgi?id=633421
https://code.google.com/p/chromium/issues/detail?id=66078

I'm sure you'll implement something like this when you write a JS engine for your browser.

>>189
Where can I tweak this parameter? Please expand on this, I'm interested.
dom.min_background_timeout_value

Name: Anonymous 2014-10-10 23:01

>>203
If I ever write a browser, I'm not reimplementing the biggest shits in the broapping world known as JS and HTML.

Name: Anonymous 2014-10-10 23:30

>>204
JS
World's most widely deployed functional programming language son

Name: Anonymous 2014-10-11 10:07

>>205
I never said it wasn't.

Herpes is probably the most widespread STD. So what? It's still a fucking STD.

Name: Anonymous 2014-10-11 10:12

>>206
If I was G-d I would implement it.

Name: Cudder !MhMRSATORI 2014-10-11 12:45

So much work, so little time...

>>192,193
Flicking the mouse wheel just causes a series of scroll events that are indistinguishable from scrolling in a short burst. The smooth wheels generate scroll events the same way. Inertial scrolling requires detecting when the user has taken the finger away from the device so it can continue to scroll, and stop scrolling once the finger touches down again.

>>203
A setting buried in the horribly obscure about:config interface that only takes effect for background tabs, globally, is not quite the same thing as an easily accessible (probably via some menu item) control to modulate the current tab/window's background AND foreground update frequency.

So the question remains, is there a unique DOM event that would fire solely for this throttling, to warn the web app of the slowdown?

Amusing to see the "BUT MUH ANIMATIONS!!!" developers are complaining as usual...

On the subject of Firefox settings accessibility, it would be great if they added the possibility of adding any about:config item as a menu item, like Opera's Quick Preferences but far more flexible.

Name: Cudder !MhMRSATORI 2014-10-11 13:03

>>203,204
If this project ever gets that far I'll definitely be writing one. A browser that doesn't handle at least most of HTML5 and JS won't be so interesting even if it's much less bloated, because most people will just see it as something like a theoretical exercise. A browser that can work with most websites out there now, including the JS-heavy stuff, on par with other major browsers like FF and Chrome, but also much smaller and more flexible, will get noticed. I've mentioned this before in >>120, this is not about finding better protocols and web standards but about better implementations of them.

Name: Anonymous 2014-10-19 8:35

Is there real work being done on a non-bloated browser engine? (and that's feature complete)

Name: Cudder !MhMRSATORI 2014-10-20 6:41

>>210
real slow work. IRL is taking up too much time.

Name: Anonymous 2014-10-20 13:16

>>211
Would you mind sharing your work? Even Nikita has a github.

Name: Anonymous 2014-10-20 14:35

>>212
Github is the last bastion of bourgeois hipster chauvinist pseudo-intellectuals in cyberspace. If we could only nuke the site from orbit and take its inhabitants with it, the shackles of the Von Neumann era would disintegrate and we could finally move on with real, serious, honest-to-god programming.

Name: Anonymous 2014-10-20 14:52

>>212

IIRC Cudder had some imageboard with source code for some Anonix OS, which got merged with Temple OS afterwards.

Name: Anonymous 2014-10-21 1:54

>>213
Christ, it's just a git hosting site. Chill out bro.

Name: Cudder !MhMRSATORI 2014-10-27 6:05

>>212
Not yet... but you're free to beat me to releasing an ultra-tiny HTML5 compatible browser.

Name: Anonymous 2014-10-27 6:08

>>216
html5 technologies

Name: Anonymous 2014-11-01 8:14

>>216
Have you given any thought on how to implement CSS3 yet, Cudder?

At times I've entertained the thought of writing a fully-featured web browser for Plan 9, and what always stops me in my tracks is the CSS3 insanity. I can't conceive of how one could write a box layout engine that supports all those transformation/transition/gradient/box shadow effects without the code coming out looking more like a poor man's Macromedia Flash.

Name: Cudder !MhMRSATORI 2014-11-01 11:23

>>218
Yes, I'm leaning towards "not at all".

The animation stuff (http://www.w3.org/TR/css3-animations/ ) is conceptually easy as all it's doing is modifying properties periodically (and forcing a relayout/redraw), but it's still quite superfluous to the goals of this browser: display the useful content, minimise the eyecandy and extra fluff.

Transformations are also conceptually simple, but implementation is going to involve a lot of extra bitmaps to be rendered to and plenty of pixel-shoving, which would probably be better done on a GPU... again, not a really useful/important thing to have for just displaying documents.

code coming out looking more like a poor man's Macromedia Flash.
I'd rather write a low-bloat Flash-compatible plugin instead (and I actually have a piece of one written already, for a demo over a decade ago); SWF is a great format that Adobe really fucked up when they bought Macromedia.

Name: Cudder !MhMRSATORI 2014-11-01 11:58

Found this interesting chart of Chromium binary size... unfortunately it requires JS to work:
http://neugierig.org/software/chromium/bloat/

The HTML parser is 120.5KB, of which the tokeniser is over 40KB(!) and the tree construction is nearly 30KB. For some reason, there is an "HTMLToken.h" which is itself 2.8KB. The one I currently have is ~1KB tokeniser and 12KB tree construction.

Name: Anonymous 2014-11-01 14:27

let's make a new web browser in 4kb

Name: Anonymous 2014-11-01 16:18

>>219
Can you make a browser engine without all the CSS3 and HTML5 shit? Just something that can render text and pictures, place them on screen readably, and allows the user to control stuff like turning Javascript on/off and configuring proxies? No fucking gradients, graphic effects in CSS, videos, etc. Can you do that?

Name: Anonymous 2014-11-01 16:38

>>222
Can you?

Name: Anonymous 2014-11-01 16:46

>>222
How am I showing my epic three.js animations to my Reddit friends without web 3.0 technologies?!

Name: Anonymous 2014-11-01 19:27

>>222
How about pdf then?

Name: Anonymous 2014-11-01 19:33

>>223
No. I don't even know any assembly.

>>225
Not needed in a web browser. Download it and open in an actual PDF reader. Reading PDF in browsers sucks ass anyway, as it tries to download only a part of the pages and when you want to skip a lot of pages it makes you wait for them to download.

Name: Anonymous 2014-11-01 19:47

>>226
No. I don't even know any assembly.
You don't need assembly.

Name: Anonymous 2014-11-01 20:43

>>222

Most pages today use CSS3, so they will just not work.

Name: Cudder !MhMRSATORI 2014-11-02 15:54

>>221
http://web.archive.org/web/20070609230328/http://www.kakeeware.com/i_kb.php

Although that one is cheating a bit.

>>226
Agreed.

>>228
They just won't look the way the author intended, which is perfectly fine (a big NO THANK YOU to those idiots who think grey-on-black text is anything but completely unreadable...)

Name: Anonymous 2014-11-05 18:17

Cudder, why don't make your browser open-source so others can help with development, criticize, propose ideas, test for bugs, etc.?

pretty pls

Name: Anonymous 2014-11-05 19:10

>>226
You said to make a engine without anything that's used today. So I suggested to use pdf as replacement for html.

Name: Anonymous 2014-11-05 19:20

>>231
I don't know what TMZ's for pussies and housewives you go to, but most of useful sites I go to use just text, images and Javashit.

Name: Anonymous 2014-11-05 19:25

>>232
That's offtopic

Name: Check my straight flush 2014-11-05 20:30

>>233
Ottfopic.

Name: Cudder !MhMRSATORI 2014-11-08 4:44

>>230
It will be (public domain, in fact); there's just not much of any "source" at the moment besides a parser and a crude DOM viewer.

I'm also too busy at the moment so feel free to contribute... a tiny CSS parser and associated datastructures for keeping track of CSS rules would be the next step. Aim for CSS2.1 although there's a useful parsing spec for CSS3 which you can use.

Name: Anonymous 2014-11-09 18:08

http://www.phoronix.com/scan.php?page=news_item&px=MTgzNDA
It's faster because it is less bloated, even if you ignore the multithreading. Chrome's, Cudder's and netsurf's engine is even faster because they are even less bloated.

Name: Anonymous 2014-11-09 18:28

>>235
How the fuck is anyone supposed to contribute if they don't have the source to your code? Even if they did an independent CSS parser, there would be a huge impedance mismatch when you try to combine them later. You'd probably end up rewriting the whole thing anyway.

Stop being autistic and put a tarball up somewhere. You geezers never finish anything because you insist on perfecting it before you show anyone.

Name: Anonymous 2014-11-09 18:34

>>237
We should figure out a way to share code with each other without making it completely public (until an autist leaks it).

Name: Anonymous 2014-11-11 19:16

>>238
Setup some git repository and post the address here.

Name: Anonymous 2014-11-11 19:33


Newer Posts