Page 2 of 2

Re: Web Serving on My OS

Posted: Thu Jan 28, 2016 7:39 am
by BrightLight
Cool OS! But trying to download it from your site gives a 403 Forbidden error. ;)

Re: Web Serving on My OS

Posted: Thu Jan 28, 2016 8:35 am
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.

Re: Web Serving on My OS

Posted: Thu Jan 28, 2016 9:17 am
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.

Re: Web Serving on My OS

Posted: Thu Jan 28, 2016 10:54 am
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....

Re: Web Serving on My OS

Posted: Thu Jan 28, 2016 11:55 am
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?".

Re: Web Serving on My OS

Posted: Thu Jan 28, 2016 2:22 pm
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.

Re: Web Serving on My OS

Posted: Thu Jan 28, 2016 4:10 pm
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.

Re: Web Serving on My OS

Posted: Thu Jan 28, 2016 4:20 pm
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.

Re: Web Serving on My OS

Posted: Fri Jan 29, 2016 4:02 am
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 ;-) .

Re: Web Serving on My OS

Posted: Fri Jan 29, 2016 4:14 am
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