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 2016-02-10 8:40

What's a "cudder"? I remember "cudder jobs" in the Jewish Guild in Skyrim, they were about planting dicks in people's anuses. So are /prog/ cudders the ones who post jewish material to make the government vote degenerate laws?

Name: Cudder !cXCudderUE 2016-02-10 12:04

>>759
You missed the first few hundred posts in this thread?

Name: Anonymous 2016-02-10 12:23

>>761
Read sicp you bastard!

Name: Anonymous 2016-02-10 19:53

>>758
That's even worse.
Well-reasoned, rational argument presented with excellent points, counterpoints and examples as always, Cűnther.

Name: Anonymous 2016-02-11 0:10

>>758
Even if that's true (which it isn't), it's probably fucking terrible Russian code that's hardcoded to everything at hand right now, and as soon as there's any change to HTML/CSS/JS for you to support, you'll have to start over because you don't know what the fuck you're doing.

Name: Anonymous 2016-02-11 20:33

>>765

Russian code
terrible
What've you been smoking? Russians are twice smarter than you.

Name: Anonymous 2016-02-11 21:59

Russians are masters at micro-optimizing useless shit at the expense of everything else, yielding unusable garbage that happens to run 1 brittle scenario quickly.

Name: Anonymous 2016-02-11 23:25

>>767
Is FV russian?

Name: Anonymous 2016-02-12 1:32

>>768
I hear that Russia sends furries to gulags, so probably not.

Name: Anonymous 2016-02-12 12:06

>>768
A couple of years ago he was a 14yo Russian kid living in Finland. Many things could've changed since then.

Name: Anonymous 2016-02-13 15:20

Scrollbars aren't even useful.

Name: Anonymous 2016-02-13 17:07

holy shit remember the get the trips that come soon here!

Name: Anonymous 2016-02-15 19:55

bump for trips

Name: Anonymous 2016-02-16 10:20

Fuck

Name: Anonymous 2016-02-16 10:20

your

Name: Anonymous 2016-02-16 10:20

trips,

Name: Anonymous 2016-02-16 10:21

nigger.

Name: Anonymous 2016-02-16 17:33

>>777
[commentator] son you can't just up and give yourself the alley-oop and slam dunk it yourself, shame on you.

[referee] I declare that the 777 get shall be given to poster of >>778 instead!

[poster] *raises hands, bows before cheering /prog/lidites

Name: Anonymous 2016-02-16 17:39

>>78
If you care about the fucking number on the post, go kill yourself. I shall amuse myself in foiling your number-grabbing attempts. Suck on my >>774-777!

Name: Anonymous 2016-02-16 17:39

>>779
See, I care so little about the numbers on posts that I can't even get them correct!

Name: Anonymous 2016-02-16 17:40

>>779
I'm going to rape you in your face.

Name: Anonymous 2016-02-16 18:04

>>781
lol, triggered over some shitty board number meta-faggotry. Eat your own walnut-sized brain.

Name: Anonymous 2016-02-16 18:31

Less of this.

Name: Anonymous 2016-02-17 2:45

>>778
it's /prog/lodyte, you illiterate proglodyte

Name: Anonymous 2016-02-17 10:11

>>782
You're a retard. You say board number meta-faggottry is shitty, but at the same time you do much worse shit posting here.

Name: Cudder !cXCudderUE 2016-02-18 11:36

>>764
Ever seen how fucking bloated statically linked executables are?

Name: Cudder !cXCudderUE 2016-02-18 11:37

Figuring out how to do floats is the most difficult part of the CSS layout algorithm. I have the rest of the design almost complete.

Also, dreamliner GET.

Name: Anonymous 2016-02-18 12:05

>>787
Whom are you're le quoting? xD

Name: Anonymous 2016-02-18 15:26

>>788

Lol, can you believe it??

This guy... forgot to check his own dubs. LOL. What a nab.

Name: Anonymous 2016-02-18 17:23

>>786
If you eschew dependencies on bloated libraries in favour of writing your own ASM to do the same job? As lean as you can get them.

Name: Cudder !cXCudderUE 2016-02-19 12:03

>>790
Linking dynamically uses 12 bytes + length of name + 5 bytes per call (using jump table), or 6 bytes + length of name + 6 bytes per call (using calls into the IAT slots.)

Linking statically uses size of function + 5 bytes per call.

The library is already on the system so might as well use it if it doesn't make my binary bigger.

Name: Anonymous 2016-02-20 3:21

>>701
You might want to hold all colours as rgba, converting them first if they are represented differently in CSS source. Special values like none and inherit could use full transparency and store special meaning in the rgb part, i.e. color:none means full transparency and is equal rgba(0,0,0,0).

I don't know if you want to support CSS and styling completely, but you could consider ignoring some of the CSS attributes, like named fonts in font-family field, etc.

Another thing worth noting is that HTML actually supports only 2 (3) types of tags: block and inline (and inline-block). You could save space ignoring multiple tags and move their special attributes to CSS, as default values. Tables are equal to table blocks of row blocks of field inline-blocks with undefined content.

Name: Anonymous 2016-02-20 5:14

>>791
WHO THE FUCK CARES? The very nature of the HTML/CSS/ES specs demand a fuckton of state, especially if you're going to have decent dynamic response times, and you're quibbling over the number of bytes in a function call.

You have no goddamn idea what makes bloat and what doesn't. There's assburgery nitpicking, which can be somewhat amusing, but this is just being a fucking retard.

Name: Anonymous 2016-02-20 13:07

>>791
Surely if you're hand-optimising the rest of your program in ASM your bottleneck becomes the dynamic libraries that (a) are more often than not going to be written in C and "optimised" by some crappy compiler, and (b) going to have wildly variable performance characteristics on different systems, as they will use different compilers, different library implementations and different versions of libc.

The size of the functions alone (which is apparently your primary concern with static linking) should surely be a negligible cost when taking everything else into account.

Name: Anonymous 2016-02-20 23:56

>>793,794
You both don't seem to understand the purpose of cudder-sama's project.

Name: Anonymous 2016-02-21 9:40

>>795
Is it to spur discussion on a low-traffic BBS, or to waste everyone's time?

Name: Cudder !cXCudderUE 2016-02-21 12:06

>>792
Inherit is resolved at box-generation time. Opacity is stored with the foreground colour, since the background can be other than just a colour.

I'm essentially supporting all of CSS2.1.

You could save space ignoring multiple tags and move their special attributes to CSS, as default values.
Not sure what you mean by this.

Name: Anonymous 2016-02-22 1:04

A web browser is an application that retrieves documents over a network, and renders them on a computer screen.

To think of a web browser as more than that is insanity. Yet people insist on continuing to try to shoehorn other technologies in to a web browser, and users pay the price in usability while vendors pay the price in maintainability.

Name: Anonymous 2016-02-22 1:26

Firefox needs ~550MiB just for 5 tabs.

Name: Anonymous 2016-02-22 1:35

>>798
The web as a distributed application platform had evolved into this way. It is not insane to ask for reasonable extensions to a simple distributed platform. What I like about web technologies as a distributed application platform is that the development work is high level. I can develop applications very quickly because the low level mechanisms are highly abstracted allowing me to focus on business logic rather than OSI network/operating system logic.

>>799
That measure is meaningless without more context. You need to specify what exact pages you have loaded and what extensions and plugins you have loaded.

Newer Posts