r/programming • • Oct 03 '19

CyberWeb: Building A Web Browser From Scratch in C on Windows 2000

https://www.youtube.com/watch?v=5RhW4njFimw
38 Upvotes

13 comments sorted by

5

u/fruitoftheloom23 Oct 03 '19

Really neat idea

2

u/[deleted] Oct 04 '19

thank you!

3

u/EDward_Mth Oct 03 '19

Good job !!

3

u/[deleted] Oct 04 '19

thanks!!

3

u/beefhash Oct 04 '19

Wait, you're going from reinventing Notepad to a web browser with a custom rendering engine?

Mad respect. Looking forward to where this goes.

4

u/[deleted] Oct 04 '19

That's the plan! I feel pretty strongly about trying to make "hard" programming projects seem doable. There's a lot of web apps and mobile apps out there, but we don't see enough experimentation in things like browsers, operating systems, image and audio editors, etc.

Small spoiler for the next video: one way to make the entire process seem more comprehensible is to look at some simple HTML code, open MS Paint and try to draw the way the page should look, step by step. Then imagine turning each step into a small chunk of code. That makes it drastically clearer what you need to calculate and keep track of.

2

u/beefhash Oct 05 '19

I just noticed on your GitHub repository for CuberyWeb: You link to https://winprog.org/ there, but the website (in true 90s fashion) doesn't support HTTPS, so you should link to http://winprog.org/ instead.

Also, from a *NIX background: I agree, the BSD sockets API is all kinds of ill-conceived. Fortunately, getaddrinfo(3) nowadays lets you ignore a lot of the nasty parts by just passing its outputs to socket(2)/connect(2).

(It would have been rather hilarious to use a period-appropriate VCS like CVS, SVN, maybe BitKeeper if you're really adventurous, but I guess a pain to deal with and publish.)

2

u/[deleted] Oct 07 '19

lol yeah. CVS is what I was using around that time. Bad memories of randomly corrupted repositories.

Thanks for the tip about winprog.org! I'll fix that soon.

2

u/beefhash Oct 08 '19

Bad memories of randomly corrupted repositories.

It's apparently started sucking less since those dark days. OpenBSD seems to see a decent amount of success using it as their main version control system for the entire OS, for well over a decade now.

3

u/beefhash Oct 05 '19

I also appreciate the dedication to using old tooling. Backwards compatibility is still king in user friendliness. Glad to see people doing it for the lulz alone and proving that you don't immediately fall over and die if you don't have the latest version of $tool.

3

u/allidto Oct 04 '19

Very inspiring love it.

0

u/Dragasss Oct 04 '19

Why not in autocad scripting language

0

u/[deleted] Oct 04 '19

[deleted]

3

u/[deleted] Oct 04 '19

Thanks, I appreciate you watching the video! I'll definitely at least get to the initial render goal. No promises after that, but you can count on more videos until the goal is done.

Ideally, I'd like to add tables and some basic CSS support. It would be nice to use the code for some personal projects later on, and both of those things would make it more useful for the kinds of things I want to do. If I extend it after the goal is hit, I'll keep making videos about it.