What is a potatoese?

Started by
35 comments, last by RoundPotato 9 years, 8 months ago


Advertisement
A browser doesn't have to necessarily be an Internet browser.

So, sure.

They call me the Tutorial Doctor.


 

Yes, you can write a web browser in C++, and yes, if you really want to, you can render content with DirectX. At a fundamental level, all a web browser does is make connections with website servers and communicate with them using the HTTP protocol. It displays the data it receives from the server using some rendering mechanism (could be DirectX or OpenGL, if you want).

You can probably find an officialish definition in wikipedia.

But my view of browsers is that you give it a 'file path' in the form of an URI (universal resource identifier) which may point to your local filesystem or some server connected to the internet.

The browser then fetches (the browser supports many ways of fetching) and displays (we have moved toward 'executing' the resoures instead, usually in a sandbox) this resource you pointed to (the browser supports many types of resources and their different versions)

Basically you have 100 different applications all smashed together to be never separated again into a single executable. Or not. Im not a web dev.

Still, you probably dont want to make one yourself unless you use some library to handle the actual web browser part for you.

o3o

Direct3D is for rendering graphics, the networking is done by other means (C++,PHP) etc.

HTLM, CSS, XML, JAVASCRIPT, and PHP are responsible for internet browsers like Chrome and Firefox.

But perhaps I don't understand the question.

They call me the Tutorial Doctor.




HTLM, CSS, XML, JAVASCRIPT, and PHP are responsible for internet browsers like Chrome and Firefox.

Other way around. Internet browsers are responsible for interpreting and executing HTML, CSS, XML and Javascript. PHP is a server side technology, your web browser doesn't know anything about PHP.

The parsing and executing of HTML/Javascript/etc can obviously be done in C++.


In the sense if I want to make a browser like firefox from scratch... you know what, I'll just ask it differently all together... Using what is Firefox and chrome made of? (just made of, NOT what it supports.)?

You can download the source for Firefox here. And here is an online directory of Firefox source code. You'll note it's largely written in C++.



Let me ask the remainder of the question, what rendering is used for Firefox? (thanks for the links, but I wouldn't spends hours or days looking at the source files just to be able to tell)

Firefox uses C++ GTK+ and OpenGL on Linux atleast

[size="1"]I don't suffer from insanity, I'm enjoying every minute of it.
The voices in my head may not be real, but they have some good ideas!

This topic is closed to new replies.

Advertisement