Web Serving on My OS

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
User avatar
BrightLight
Member
Member
Posts: 901
Joined: Sat Dec 27, 2014 9:11 am
Location: Maadi, Cairo, Egypt
Contact:

Re: Web Serving on My OS

Post by BrightLight »

Cool OS! But trying to download it from your site gives a 403 Forbidden error. ;)
You know your OS is advanced when you stop using the Intel programming guide as a reference.
onlyonemac
Member
Member
Posts: 1146
Joined: Sat Mar 01, 2014 2:59 pm

Re: Web Serving on My OS

Post by onlyonemac »

Muazzam wrote:
SpyderTL wrote:
Muazzam wrote:Printing hello world, the hard way!
I think you just summed up OS Development. :)
At least for me, network programming is harder than OS development. It (including a server and a browser) is a high-priority for my OS nonetheless.
I'm still thinking about how I'm going to implement networking... it's not high on my priority list, but I want to make sure that I get it right when I do it... I'll probably start with client-side stuff though (like a web browser, email client, etc.) rather than server stuff.
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing
User avatar
iansjack
Member
Member
Posts: 4685
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Web Serving on My OS

Post by iansjack »

You have to start with a range of NIC drivers and a TCP/IP stack. That's the difficult part; everything else is fairly routine programming.
User avatar
SpyderTL
Member
Member
Posts: 1074
Joined: Sun Sep 19, 2010 10:05 pm

Re: Web Serving on My OS

Post by SpyderTL »

iansjack wrote:You have to start with a range of NIC drivers and a TCP/IP stack. That's the difficult part; everything else is fairly routine programming.
When you put it that way, I'm kinda wondering why it took me like 6 months to get my first hello world response on a single VirtIO virtual network card. :)

EDIT: Make that 18 months... Man how time flies when you are reading specifications....
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott
User avatar
iansjack
Member
Member
Posts: 4685
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Web Serving on My OS

Post by iansjack »

I'm guessing it's because you were doing the difficult part.

If it takes you 6 (or 18) months to program a simple web server or client on an existing OS, such as Linux, I can only answer what my Mathematics professor said when asked a question (which we all thought was pretty difficult): "Mr ______, have you ever thought of taking up plumbing for a living?".
User avatar
Kazinsal
Member
Member
Posts: 559
Joined: Wed Jul 13, 2011 7:38 pm
Libera.chat IRC: Kazinsal
Location: Vancouver
Contact:

Re: Web Serving on My OS

Post by Kazinsal »

I started writing a network stack on the bus during my commute. It seemed like a better use of time than sitting there bored.

I didn't have it running on my OS. Just a bunch of vtys and vim, and me typing out a whole lot of C. At best I'd see how it handles various captured and artificial input with userspace testing -- capture a real world packet in Wireshark, feed it into a test program for the stack, capture the output, toss it back into Wireshark, see if it looks right compared to a real world response.
apamment
Member
Member
Posts: 28
Joined: Thu Aug 20, 2015 9:02 pm
Contact:

Re: Web Serving on My OS

Post by apamment »

omarrx024 wrote:Cool OS! But trying to download it from your site gives a 403 Forbidden error. ;)
Thanks for letting me know, had the permissions on the file wrong (oops) Should work now.
User avatar
BrightLight
Member
Member
Posts: 901
Joined: Sat Dec 27, 2014 9:11 am
Location: Maadi, Cairo, Egypt
Contact:

Re: Web Serving on My OS

Post by BrightLight »

apamment wrote:Thanks for letting me know, had the permissions on the file wrong (oops) Should work now.
I'll try it now.
You know your OS is advanced when you stop using the Intel programming guide as a reference.
onlyonemac
Member
Member
Posts: 1146
Joined: Sat Mar 01, 2014 2:59 pm

Re: Web Serving on My OS

Post by onlyonemac »

apamment wrote:
omarrx024 wrote:Cool OS! But trying to download it from your site gives a 403 Forbidden error. ;)
Thanks for letting me know, had the permissions on the file wrong (oops) Should work now.
Maybe you should host it on your own OS rather ;-) .
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing
apamment
Member
Member
Posts: 28
Joined: Thu Aug 20, 2015 9:02 pm
Contact:

Re: Web Serving on My OS

Post by apamment »

onlyonemac wrote:Maybe you should host it on your own OS rather ;-) .
Haha, well given my OS doesn't have permissions at all, that might work :P
Post Reply