this post was submitted on 13 Aug 2024
128 points (97.8% liked)

Ask Lemmy

26280 readers
1436 users here now

A Fediverse community for open-ended, thought provoking questions


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either [email protected] or [email protected]. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email [email protected]. For other questions check our partnered communities list, or use the search function.


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 47 points 1 month ago* (last edited 1 month ago) (1 children)

Browsers are literally the best attempt at the everything app.

There's already been a lot of good answers on this. But a goody oldie article on making a browser is covered in Matt Brubeck's 2014 article, Let's Build A Browser Engine.

If you want to see one of the most minimal source code for a terminal based browser that is still in use today, I recommend downloading the source code for the Links Browser. Note that this site is very old and doesn't even use https. But the source code can still be had here.

Browser software is super interesting, but there's a lot even for a bare minimum setup like Links, so that's more or less why most people don't develop new ones from scratch anymore. Though there are a few exceptions like Servo, and Surf but they are pretty buggy tbh. Hope that helps and sparks your interest.

EDIT: Also of interest is Tali Garsiel's article, How Browsers Work. This is probably one of the best in depth articles on the subject.

[–] [email protected] 3 points 1 month ago* (last edited 1 month ago) (1 children)

Surf is just a wrapper around WebKit, which is developed by Apple and used in Safari. Surf isn't a from-scratch browser implementation.

[–] [email protected] 1 points 1 month ago

Oh, I honestly didn't remember that, and just put that in as an afterthought. Should have double checked myself. Thanks for the clarification.

Well anyways. I love this subject enough to admit when I'm wrong. And also, in researching the subject more, I found that there is the Ladybird Browser which is apparently not based on Chromium nor Firefox. I have not played around with it, but it's nice to see people still putting in effort to make a new browser engine.

I also found this article where the author makes a browser based off of Matt Brubeck's aforementioned article. Very interesting stuff.