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-03-26 17:33

>>879,880
Samefag

Name: Anonymous 2016-03-26 20:07

>>878
Someone had to write the browser you use to shitpost. Hardly conjuring spirits, as this thread has shown. If that isn't programming though, what is it?

Name: Anonymous 2016-03-26 20:15

>>882
It counjures the spirits that fetch information from an international network and display them on a monitor. Turning a dead stone into a scrying window that can show anything on Earth is a feat Mediaeval magicians could only dream of.

Name: Anonymous 2016-03-26 20:55

>>882
It's hardly complicated to send a post request to a server.

Name: Cudder !cXCudderUE 2016-03-27 23:27

>>880
Looking at CSS tokeniser+parser. I've set aside box generation and rendering for now since there's no use in doing that without having a way of actually consuming CSS.

There's an odd '||' operator which I can't find anywhere else in the spec:

http://stackoverflow.com/questions/30702971/how-is-the-operator-used-in-css

https://lists.w3.org/Archives/Public/www-style/2013Apr/0059.html

So it's completely fucking useless unless you're a circlejerking academic steeped in that LL/LR/etc. bullshit, and I've carefully read every single word of the CSS3 selectors spec without finding a single mention of it. It only has ~=, |=, ^=, $=, and *=. THANK YOU W3C FOR MAKING STUPID IMPLEMENTATIONS MORE INEFFICIENT! :facepalm:

Name: Anonymous 2016-03-30 0:25

>>881
autist

Name: Anonymous 2016-03-30 0:27

>>885
No one cares unless you're posting code

Name: Anonymous 2016-03-30 0:31

check 'em

Name: Anonymous 2016-03-30 3:43

>>887
and then we laugh

Name: Anonymous 2016-03-30 10:17

Hi! I'm new to progride.org. So this Cudder is the local uber-haxor assclown?

Name: Cudder !cXCudderUE 2016-03-30 10:41

>>887
Here you go, a part of the CSS tokeniser.

mov eax, [esi]
cmp eax 2d2d213ch
jz emit_cdo
cmp ax, word 2d2dh
jnz not_cdc
cmp [esi+2], byte 3eh
jz emit_cdc
not_cdc:
cmp ax, 2a2fh
jz do_comment
cmp ah, 3dh
jnz not_matchop
cmp al, 24h
jz matchop
...
not_matchop:

Name: Anonymous 2016-03-30 11:13

Name: Anonymous 2016-03-30 13:28

>>890
*Cudder is all talk and no action*

Name: Anonymous 2016-03-30 14:07

>>891
[esi]
LOLOLOL wtf is this 32-bit shit? GTFO

Name: Anonymous 2016-03-30 16:07

>>891
What a ridiculous sample. Truly Cudder is all talk and no action.

Name: Anonymous 2016-03-30 16:07

>>895
Can't have too many registers! That makes amd64 bloated or something!

Name: Anonymous 2016-03-30 17:48

>>894
>he fell 4 the b8

Name: Anonymous 2016-03-31 19:02

>>899
Nice dubs

Name: Anonymous 2016-03-31 19:02

>>898
Thanks

Checkem

Name: Anonymous 2016-03-31 19:02

>>901
Thanks

Checkem

Name: Anonymous 2016-03-31 19:03

>>900
Nice dubs

Name: Anonymous 2016-03-31 20:56

>>898-901
ARE YOU OK?

Name: Anonymous 2016-04-01 0:33

>>902
Negro, ¿tú eres sueco?

Name: Anonymous 2016-04-01 10:23

Why is firefucks so bloated? Recently they removed the tab groups however they added the "web developer" tools including a "WebIDE" even though firebug exists for a long time.
Remember the mozilla suite? Wasn't the reason they dropped it due to the bloat? In that case, why did they do the same with firefox?
What do I need firefox hello and firefox pocket for?

Name: Cudder !cXCudderUE 2016-04-01 10:38

>>892
http://c2.com/cgi/wiki?DesignForPerformance

I already got bitten by a stupid design decision in >>133. Also consider that other browsers already have a lot of (complex) optimisations because of how old they are, so if I want to compete I can't not optimise. These optimisations I'm doing actually simplify the code, so there's another benefit -- I take less time writing it and reading it in the future.

>>894,896
You don't need 64 bits if most of them are going to be zero. 64-bit pointers with around half their bits 0 make me want to facepalm every time I see them. Besides, amd64 is a fucking mess of RISC-ism and 8 registers is enough for a lot of things if you use them well. Compilers are just retardedly stupid at register allocation. (Just look at the dismal performance of MIPS with 32 registers... More is not better, except in synthetic microbenchmarks.)

What do I need firefox hello and firefox pocket for?
You don't, Mozilla does. You are the product.

Name: Anonymous 2016-04-01 15:00

>>905
YOUR C2 MEME IS THE MOST EPICESTEST WIN XDDDDDDDDDDDDDDD

Name: Anonymous 2016-04-01 15:21

would everyone please stop taking the Cudder bait

Name: Anonymous 2016-04-01 18:47

>>905
32-bit is not going to last forever. I would be suprised if the next version of Windows even targets it, and a few versions after that, it won't even be supported any more.

Name: Anonymous 2016-04-01 19:44

>>908
Linux already stopped supporting i368.

Name: Anonymous 2016-04-01 20:38

>>909
They never even started.

Name: Anonymous 2016-04-01 22:47

>>910
Check 'em

Name: Anonymous 2016-04-01 23:43

Jews did >>911

Name: Cudder !cXCudderUE 2016-04-02 16:34

>>908
You probably interact with 4-bit CPUs daily and don't know about it. Same for 8 and 16-bit.

32-bit binaries run fine on 64-bit Windows. No need to bloat things up if you don't have a requirement to use huge amounts of memory.

Name: Anonymous 2016-04-02 20:50

>>913
Isn't one major point of """avoiding bloat""" to run faster? 32-bit shit is slower in tons of <4GB cases due to limited number of registers.

Name: Cudder !cXCudderUE 2016-04-03 14:42

>>914
Only if you have a stupid compiler and/or programmer.

Microbenchmarks that are heavy on 64-bit arithmetics will obviously look better in 64-bit mode, but that's very unrepresentative of real code, particularly code that a browser might execute (lots of branches and 32-bit maths, plus memory addressing, all of which don't benefit at all from 64-bit mode and may be even worse because of the lower code density.)

http://www.digitalcitizen.life/google-chrome-64-bit-it-better-32-bit-version
(Ignore the marketing blurb, 32-bit is as fast if not faster and the one thing they didn't show is memory usage --> around 50% more for 64-bit.)

Also, the 64-bit extension being poorly done, means even if there were things that would be better 64 bits at a time, there's no equivalent instruction to express what could be done in 32-bit mode. Where's the "cmp r64, imm64" for example? There's only "cmp r64, r/m64". Either you waste another register to hold the immediate and an instruction to put it there, or suck up an extra memory access. Bastards.

Name: Anonymous 2016-04-03 15:17

You don't want to release the code until it passes acid2, but what about a binary release? I'm really excited about your efficient browser, but you aren't giving us anything for now and I'm afraid it'll take a lot of time until you can get it to pass acid2 (or am I wrong?).

Name: Cudder !cXCudderUE 2016-04-03 17:13

>>916
There will be a binary release.

Another little CSS syntax stupidity: guess where "UNICODE-RANGE" token is actually used. Then look at all the problems with it:

http://www-style.w3.narkive.com/MnRnzeaj/selector-parsing-it-s-easy-to-hit-unexpected-unicode-range-tokens

https://lists.w3.org/Archives/Public/www-style/2003Nov/0123.html

...defining a whole new token, complete with conflicts, for what amounts to a single property value in an at-rule for embedded fonts? DO NOT WANT.

Name: Anonymous 2016-04-03 18:56

All words and action none!

Name: Anonymous 2016-04-03 19:03

>>917
A binary release before the code release?
The code release is when it passes acid2.
When's the binary release?

Name: Anonymous 2016-04-03 19:20

Could you show us how much of your browser is C and how much is Assembly?
cat *.s | wc -l && cat *.c *.h | wc -l

Newer Posts