News for hackers. Stuff that matters.
Re:Opera 12.15 source code by abc_lisper on Tuesday January 17, 2017 @01:36PM (#13419883)
Don't know if you are joking, I remember in 2006, Opera was 3.5 MB download, and 5MB including mail client.

I haven't used Opera recently, but AFAIK it was the smallest browser, by far.

Re:Opera 12.15 source code by zymhan on Tuesday January 17, 2017 @01:49PM (#13419996)
Their point is that the compiled version of Chrome is barely half as big as all of Opera's source code. Meaning Chrome is very big.
Re:Opera 12.15 source code by abc_lisper on Tuesday January 17, 2017 @02:32PM (#13420374)
Hmm. I am not following. Binaries are typically much larger than source code(because libraries etc). Am I wrong here?
Re:Opera 12.15 source code by ezdiy on Tuesday January 17, 2017 @06:14PM (#13422421)
The answer is - it's sorta comparing apples and oranges - libraries, or general C++ inlining cruft can inflate the binary size a lot indeed.

A much fairer comparison is to compare source side by side. Chromium source is about 4x larger than operas, when not counting any 3rd party dependencies.

Or even better, compile times. Chromium build (or firefox) is half a day job on mid-range laptop (especially with 4/8G memory).

Opera builds in about 20 minutes. I was also pleasently surprised the codebase is not particularly bitrotten, and both VS2015 and modern gcc could cope with it.

Re:Opera 12.15 source code by gsnedders on Tuesday January 17, 2017 @06:40PM (#13422613)
Opera used a relatively small subset of C++ for compatibility with some diabolical compilers for embedded devices, so in a sense it's less surprising that modern compilers had no problem: there's very little complex going on.
Re:Opera 12.15 source code by zymhan on Wednesday January 18, 2017 @07:18AM (#13425818)
My (non-expert) understanding is that, in general, the source code is going to be much more verbose than the machine-code output of a compiler.

Considering that source code is written in a human-readable language and syntax, and machine code only needs to contain enough information for a CPU to decode, it would seem to follow that the source code should be a less efficient method for describing the program.

Re:Opera 12.15 source code by vmateixeira on Tuesday January 17, 2017 @05:01PM (#13421807)
Exactly the opposite.