News for hackers. Stuff that matters.
Re:Is anybody still using Windows 95? by drpixie on Wednesday September 09, 2020 @01:58AM (#24417694)
I'd like a browser that is just a nice browser. It should fit easily into a few 10s MB and start instantly. It wouldn't waste 100s of MB on implementing dangerous/pointless/wasteful javascript APIs, like battery state or physical screen APIs; it wouldn't support (literally) 4300 options; wouldn't save 200 MB of config data; and wouldn't load many MB of data just to start and display a blank page!
Re:Is anybody still using Windows 95? by userbinator on Wednesday September 09, 2020 @02:39AM (#24417953)
Dillo/NetSurf may be of interest to you. They fit the size requirement as well as the "lack of JS" requirement (i.e. no JS support at all). "appsites" will definitely not work in them, but the document-oriented web and things like HN are fine.
Re:Is anybody still using Windows 95? by bArray on Wednesday September 09, 2020 @07:31AM (#24419845)
I've used Dillo, but unfortunately most web pages are seriously malformed. Would be nice if it was possible to get some better CSS support.

I would like to see better JS support, but the scope of JS is simply insane for such a small browser. It's unfortunate much of the web is completely unusable without running JS. Perhaps it's possible to first run the page through a larger browser engine and then send the processed content to the small browser (such as Dillo), that would massively widen the scope of what it could display.

Re:Is anybody still using Windows 95? by anthk on Wednesday September 09, 2020 @12:25PM (#24422660)
Use dillo from HG, it has better CSS support.

>But the scope of JS is simply insane for such a small browser.

Edbrowse has JS support thanks to duktape.

Re:Is anybody still using Windows 95? by bArray on Wednesday September 09, 2020 @06:39PM (#24426724)
> Use dillo from HG, it has better CSS support.

Here? https://hg.dillo.org/dillo/

Seems to be still pretty old...

> Edbrowse has JS support thanks to duktape.

Huh, very interesting: https://duktape.org/

I initially assumed by ducktape you meant "barely held together"!

Re:Is anybody still using Windows 95? by tbodt on Wednesday September 09, 2020 @02:27AM (#24417877)
For the record, chrome on android is ~60MB, less than half the size of desktop chrome (~150MB). Android chrome supports the same set of javascript APIs. Clearly that isn't the whole picture.
Re:Is anybody still using Windows 95? by jan6 on Wednesday September 09, 2020 @02:49AM (#24418015)
I'm preeettty sure that's just because it's relying on the separate WebView app, using WebView is also how it's possible for people to make sub-megabyte android browsers, such as [Naked Browser](https://play.google.com/store/apps/details?id=com.fevdev.nak...) and [Via](https://play.google.com/store/apps/details?id=mark.via.gp&hl...)

*correction, according to https://developer.chrome.com/multidevice/webview/overview they are still separate, it references android L dev preview so not the latest source tho...

Re:Is anybody still using Windows 95? by tomgaga on Wednesday September 09, 2020 @10:42AM (#24421550)
Actually, you can select which Chrome to use for the Webview in Android developer settings if you have Installed multiple versions of Chrome. Chrome stands on its own.
Re:Is anybody still using Windows 95? by tbodt on Friday September 11, 2020 @02:57AM (#24439870)
I measured Trichrome, which is the separate APK where the actual rendering engine is stored.
Re:Is anybody still using Windows 95? by arghwhat on Wednesday September 09, 2020 @01:22PM (#24423330)
So Chrome for Android is 10MB larger than the entirety of Damn Small Linux, which includes a desktop environment with three web browsers (firefox, dillo and netrik).

While 60MB is still humongous, it does make sense that Google would at least care slightly on Android, as the majority of the Android market are low-to-mid-tier smartphones with reasonable performance instead of the "desktop-in-a-pocket" that are the current flagship phones.

But while they care slightly on Android, they don't care at all on desktops.

Remember kids: Large binaries are slow binaries.

Re:Is anybody still using Windows 95? by tbodt on Friday September 11, 2020 @02:58AM (#24439875)
Firefox on my mac is over 200MB. Is it smaller on Damn Small Linux?

And yes, there is clearly only an incentive to care on Android. The automated tooling to track Chrome binary size only works on the Android build.

Re:Is anybody still using Windows 95? by anthk on Thursday September 10, 2020 @11:03AM (#24432972)
>Large binaries are slow binaries.

False. Loop unrolling is always faster.

Re:Is anybody still using Windows 95? by arghwhat on Friday September 11, 2020 @09:23AM (#24442483)
> False. Loop unrolling is always faster.

Blatantly false, which is why heuristics decide when to unroll.

Large code trashes instruction caches, and cache misses are very expensive. More code, more misses.

For very small loops, the unroll can pay off, but these are often too small to have significant size detriment.

Re:Is anybody still using Windows 95? by JoeAltmaier on Thursday September 10, 2020 @11:04AM (#24432983)
Depends largely on the state of code caches, microcode and bus structure. Loop unrolling can be the worst thing you can do, on some architectures.

See, the hardware folks have listened in on the compiler people and their problems. They've done things like identify loops and rewritten them in microcode for optimization. If a short loop can fit entirely within the CPU code buffer, speed goes way up. Unroll the loop and blow the CPU code buffer, defeat the optimization and lose all that.

Re:Is anybody still using Windows 95? by stjohnswarts on Wednesday September 09, 2020 @03:12PM (#24424660)
what you want isn't possible with the web being like MTV and moving far beyond it's original intention. The best you can get is get one of the small browsers and live with broken pages. Some people do just that. I think you should be think in terms of relativity though. Think about how much a "10 MB" only browser took up in main memory back in the day.
Re:Is anybody still using Windows 95? by bArray on Wednesday September 09, 2020 @06:43PM (#24426751)
> I think you should be think in terms of relativity though.

> Think about how much a "10 MB" only browser took up in main

> memory back in the day.

This is exactly the point, software has swelled to use the resources available to it, so with each new iteration your machine gets faster but what it runs gets slower. It doesn't feel like this is something we should settle for.