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

Why browsers are bloated [Part 2]

Name: Anonymous 2016-04-23 22:49

Cudder is all talk and no action!

Name: Anonymous 2017-01-09 7:34

>>111
it's funny that basic stuff like maintainability is considered 'enterprise' by optimization zealots. a web browser is a good example why even a minimalist one-man project needs to be maintainable: because web standards (HTML, JS and to a lesser extent HTTP) are changing and to stay useful, a browser needs to change with them.

Name: Anonymous 2017-01-09 7:35

also check dubs

Name: Anonymous 2017-01-09 8:04

Name: Cudder !cXCudderUE 2017-01-09 9:10

>>120
Is it needed for Acid2? If not, it's not in the immediate future.

Name: Anonymous 2017-01-09 12:38

>>124
what happens after Acid2? do you have plans for Acid3?

Name: Anonymous 2017-01-09 15:11

Guys, guys...
Let's just hope Cudder actually delivers for the first time and releases a browser that passes Acid2.
Let's not get ahead of ourselves.

Name: Anonymous 2017-01-09 15:58

cudder-kun, what is it written in?

Name: Anonymous 2017-01-09 22:14

Name: Anonymous 2017-01-10 0:05

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

Name: Cudder !cXCudderUE 2017-01-10 11:03

>>125
In the very distant future.

Name: Anonymous 2017-01-10 17:22

Name: Anonymous 2017-01-11 5:29

yall a bunch of fools, cdr'ing down Cudder's list.

Name: Anonymous 2017-01-11 7:29

>>132
check my cdrs
* (car >>133)
1

* (cdr >>133)
33

* (dubcheck >>133)
T

Name: Anonymous 2017-01-11 11:23

Name: Cudder !cXCudderUE 2017-01-16 12:30

I've discovered that all of the HTML5 character entity references (&xxxx;) are at least as long as the codepoints they represent in UTF-8, meaning that I can do the conversion in-place or on an allocation the exact same size as the original string...

...except for these two bastards which are one more byte longer:

≫⃒ U+226B U+20D2 ; E2 89 AB E2 83 92
≪⃒ U+226A U+20D2 ; E2 89 AA E2 83 92

Two out of 2000+! I'm not going to support those, because it's absolutely idiotic to have to redo and complexify the whole buffer allocation logic just to handle these 0.1% of them which is probably very rarely going to occur in real pages anyway.

What's even more idiotic, is that if someone paid some attention to implementation and made them just a single byte longer e.g. &nGGt; or &nLLt; , they would've fit in perfectly with the rest of them. But it might be too much to expect of the W3C.

"Plan Ahead"

Name: Anonymous 2017-01-16 12:42

Name: Anonymous 2017-01-16 15:22

>>135
what are those entities?
Will they break the browser?

Name: Anonymous 2017-01-16 16:36

>>137
Wtf man. Of course not.
http://www.w3schools.com/html/html_entities.asp
It's just that ≪ and ≫ won't be supported, all other 2000(+) entities will be.

HIBT? Can't you google simple shit like this yourself?

Name: Anonymous 2017-01-16 19:53

Mr. >>137, I'm the guy that posted >>138.
Sorry if I was a little rude, but you really have to think more and research more before posting.
I hope we're on good terms.
Have a nice one.

Name: Cudder !cXCudderUE 2017-01-17 12:04

>>137
They are probably almost never going to be used. They just won't be recognised.

Name: Anonymous 2017-01-17 19:25

Name: Anonymous 2017-01-27 16:52

Can't you just create a browser? I mean, most languages have sockets and also graphics.

Name: Anonymous 2017-01-27 17:07

>>142
Yes, I can.

Name: Anonymous 2017-01-27 20:53

Name: Anonymous 2017-01-28 9:44

>>143
Feel the empowerment taking hold of you. Yes, you can. You are no longer a subject to the caprices of others, but are taking matters into your own hands. Yes, you can!

Name: Anonymous 2017-01-28 10:04

>>142
Think of it: Can you build a house all by yourself?

Name: Anonymous 2017-01-28 10:21

>>142
Also, people asking:why can't I create an OS? Should ask themself: can you create a car from scratch?

Name: Anonymous 2017-01-28 13:23

>>147
It's certainly all possible in theory. The real question is whether the individual is willing to invest their life into making it happen.

Name: Anonymous 2017-01-28 16:52

Name: Anonymous 2017-01-28 17:53

>>147
Can you create a cdr from scratch?

Name: Anonymous 2017-01-28 18:18

>>148
Yes. The actual question is what kind of car it will be?
https://i.imgur.com/Vwdionk.jpg

Name: Anonymous 2017-01-28 18:21

>>151
From the address, I thought it'd be a Volkswagen Dionk.

Name: Anonymous 2017-01-28 19:06

I'm going to build a car fuelled by feces and redpills.

Name: Anonymous 2017-01-28 20:04

Name: Anonymous 2017-01-29 0:31

Name: Anonymous 2017-01-29 2:11

Name: Anonymous 2017-01-29 8:40

>>155
that's pretty cool tbh

Name: Anonymous 2017-01-29 9:26

Name: Cudder !cXCudderUE 2017-02-02 11:39

Upon closer examination, there's even more retardedness in the entities list --- some are defined more than once! What sort of fucked-up design-by-committee lead to this idiocy?

We start with some "only slightly retarded" duplication...
ast; U+0002A
midast; U+0002A


lbrack; U+0005B
lsqb; U+0005B


...move onto WTF-inducing "you're an idiot if you think this is even the slightest bit useful"...

lowbar; U+0005F
UnderBar; U+0005F


grave; U+00060
DiacriticalGrave; U+00060


nbsp; U+000A0
NonBreakingSpace; U+000A0


...and finish with "ARE YOU FUCKING INSANE!?!?"

die; U+000A8
Dot; U+000A8
DoubleDot; U+000A8
uml; U+000A8


ap; U+02248
approx; U+02248
asymp; U+02248
thickapprox; U+02248
thkap; U+02248
TildeTilde; U+02248


Bonus level:

NegativeMediumSpace; U+0200B
NegativeThickSpace; U+0200B
NegativeThinSpace; U+0200B
NegativeVeryThinSpace; U+0200B
ZeroWidthSpace; U+0200B

Completely different names, yet the exact same codepoint. :quintuple-facepalm:

See it yourself at https://www.w3.org/TR/html5/syntax.html (scroll to bottom, extract table, sort by codepoint.)

Now I know why there are 2K+ entities. Around half of them are duplicates with an extra ';' at the end (easily handled by the parsing code, but the brainless turds that wrote the spec did not even think...), the other 1/4 are useless duplicates, and what's left is possibly, maybe sometimes, actually useful. But supposedly to be "HTML5 compliant" you would need to parse them all, regardless of whether anyone will actually use them except in demo pages and the like (probably not). Fuck that bullshit.

"Why browsers are bloated".

Name: Anonymous 2017-02-02 11:49

>>159
Horrible!
I hope in the end you report all this bullshit so they update their spec.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List