News for hackers. Stuff that matters.
Re:Opossum: Cross-platform web browser written in Golang, op... by liotier on Monday February 20, 2023 @10:52AM (#34869257)
At this point in market concentration, any sufficiently brave or delusional soul that ventures into even the most rudimentary web browser development is a hero to me !
Re:Opossum: Cross-platform web browser written in Golang, op... by samwillis on Monday February 20, 2023 @11:36AM (#34869744)
I think what's been achieved in a little over a year with the Ladybird Browser from the SerenityOS project shows that it's quite possible to build a new browser from scratch.

https://awesomekling.github.io/Ladybird-a-new-cross-platform...

https://linus.dev/posts/ladybird-browser-year-in-review-2022...

Re:Opossum: Cross-platform web browser written in Golang, op... by IshKebab on Monday February 20, 2023 @06:29PM (#34874312)
It's definitely impressive, and it shows it is possible to build a new browser. I don't think it shows it is possible to build a new browser that ordinary people will use though. That requires implementing a gazillion niche features that Chrome supports, and compatibility with a gazillion broken websites.

Probably with web browsers the last 0.1% is 99.9% of the work.

Re:Opossum: Cross-platform web browser written in Golang, op... by bityard on Monday February 20, 2023 @08:18PM (#34875234)
A lot of us would be happy to have a browser that doesn't try to support the gazillion features of chrome and Firefox, if it instead gave us the ability to browse the web on our own terms instead of one company's vision of what the web should be.
Re:Opossum: Cross-platform web browser written in Golang, op... by paulryanrogers on Monday February 20, 2023 @10:10PM (#34875991)
I share the sentiment. Reality is often physical businesses now require visiting their website, sometimes even in person, and they just don't work unless the browser is Chromium based.

Literally today I had to upload a drivers license in person yet on my phone to rent a truck. Of course Firefox failed, and even Chrome glitched, yet Chrome could be made to work with it's alternate uploader.

Re:Opossum: Cross-platform web browser written in Golang, op... by cactusplant7374 on Monday February 20, 2023 @08:32PM (#34875340)
I've always associated advanced browser features with power users. Am I wrong?
Re:Opossum: Cross-platform web browser written in Golang, op... by Kamq on Monday February 20, 2023 @09:15PM (#34875646)
The features they're referencing are JS apis and exact CSS behavior.

Web apps are >5MB piles of text, and they have a way of using pieces of browser behavior that you wouldn't expect.

Re:Opossum: Cross-platform web browser written in Golang, op... by 0xb0565e487 on Monday February 20, 2023 @01:50PM (#34871353)
Beware of assumptions. You arrived at a funny conclusion here.

Did the author express that his intent was to capture browser marketshare? If not, he may not be delusional :)

Re:Opossum: Cross-platform web browser written in Golang, op... by 2h on Monday February 20, 2023 @02:17PM (#34871651)
> At this point in market concentration

as others mentioned, some people don't care about market share. the browsers I use day to day (Firefox, Chrome) are honestly pretty bloated and terrible, so I think others would agree that quality wise, users are starving for something better.

Re:Opossum: Cross-platform web browser written in Golang, op... by mtlmtlmtlmtl on Monday February 20, 2023 @03:08PM (#34872271)
I would say the browser ecosystem as a whole is thriving, there's all sorts of different needs, but most of them are based on the same couple web engines.

This looks like an implementation from scratch which is fantastic.

Re:Opossum: Cross-platform web browser written in Golang, op... by 1vuio0pswjnm7 on Monday February 20, 2023 @05:11PM (#34873643)
The word "rudimentary" is the important one here, IMHO. If the goal of a new browser is to match the "market leaders" feature-for-feature, then all bets are off, IMHO.

However, if one changes the starting assumptions, e.g., only seek some basic functionality instead of a carbon copy of the existing browsers (but controlled by some new entity), then the playing field becomes level enough to have meaningful competition.

Another assumption is that all browsers must be "all-purpose". But some could just as well be limited purpose. Arguably we already see an extreme case of this in "mobile apps" which target only one site. Alas, these tend to be non-transparent, not open-source nor easily modifiable and recompilable.

As a text-only browser user, along with non-browser TCP clients, each being vastly simpler than a so-called "modern" browser, I am able to consume a large amount of web content without ever touching Javascript or graphics. That amount has surprisingly increased over time. More and more web content today comes as structured plaintext (JSON) which is very easy to convert into any format one desires.

IMHO, Javascript is likely a black hole for any "rudimentary" browser project. The size of the interpreter and the memory demands, entire classes of security issues that are enabled by Javascript, the list of "gotchas" is long if not endless. If JS is a must-have, I hope it's worth it.

Re:Opossum: Cross-platform web browser written in Golang, op... by jchw on Monday February 20, 2023 @05:58PM (#34874057)
Even though Go is unlikely to be an ideal choice for a web browser, I had definitely wanted to venture into it just as a toy project. Unfortunately, it's obviously an enormous project, so I am absolutely nowhere on it.

That said, shameless plug: if anyone wants a reasonably complete but immature ECMA262 parser in Go, I did do that. You can see how (un)finished it is here, with the wasm build: https://cleansheets.io/parser/ - source here. https://github.com/jchv/cleansheets

The truth is, I'd like to still work on this and even see if it's plausible to build a decent JIT without going too far into the weeds (I wouldn't tolerate a requirement on Cgo personally) but given that I never even pushed up an interpreter (I had an AST-based interpreter, but it was so ugly that I scrapped it :) I doubt I'll get anywhere near Opossum. Oh well.

It'd still be fun to at least get some pages rendering. Probably no chance in hell I'd ever get over to milestones I'd actually like to (like booting GMail for example.)

Re:Opossum: Cross-platform web browser written in Golang, op... by frozenport on Monday February 20, 2023 @06:27PM (#34874296)
Or the devil because if they succeed we'll need to check rendering on yet another target!
Re:Opossum: Cross-platform web browser written in Golang, op... by userbinator on Monday February 20, 2023 @07:36PM (#34874901)
Amen to that --- and those who do will quickly lament the state of the "Modern Web"; fuckings to CloudFlare and the like for gatekeeping and calling everyone who doesn't use even slightly non-mainstream browsers or configurations (no JS? Filtering proxy?) a bot. A disappointingly large percentage of sites are behind such walls, and another large number of them are otherwise static content that requires JS to display.

But not giving up is the first step to success. I probably wouldn't use a browser in Go either, but as someone who has also been working on one of my own intermittently and knows how much opposition there is, I certainly encourage any attempts at increasing actual browser diversity.

Re:Opossum: Cross-platform web browser written in Golang, op... by HyperSane on Tuesday February 21, 2023 @01:23AM (#34877424)
A modern web browser is comparable to an operating system in complexity.
Re:Opossum: Cross-platform web browser written in Golang, op... by septune on Tuesday February 21, 2023 @05:28AM (#34879288)
Building a LLM from RFC, W3C specs and billions of websites to generate a web browser engine is no more scifi (but still has to be done)