You are not logged in.

#1 2008-11-26 18:16:06

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Web development for C or C++ hackers?

I was wondering if there is some kind of web framework like django for C and C++ programmers.

I already know quite well those two languages and I know how long it takes learn a language WELL (overall if complex and liberal as C++),
so I was wondering if I could start web development with those languages.

Or it is better I start studying Python?

Advices? Ideas?
thanks

Offline

#2 2008-11-26 19:57:49

WhiteMagic
Member
Registered: 2007-03-01
Posts: 85

Re: Web development for C or C++ hackers?

The one web thingy for C++ I came across was Wt. I have never used it so can't say anything about it and to be honest to me using C++ for webstuff sounds scary but why not :-)

Offline

#3 2008-11-26 20:11:02

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: Web development for C or C++ hackers?

WhiteMagic wrote:

to be honest to me using C++ for webstuff sounds scary but why not :-)

It doesn't feel natural to me either...


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#4 2008-11-28 13:47:03

dav7
Member
From: Australia
Registered: 2008-02-08
Posts: 674

Re: Web development for C or C++ hackers?

The author of http://nonoba.com/ said the backend is C++-based when I asked him how it worked once. So there are things like that out there.

-dav7

Last edited by dav7 (2008-11-28 13:47:26)


Windows was made for looking at success from a distance through a wall of oversimplicity. Linux removes the wall, so you can just walk up to success and make it your own.
--
Reinventing the wheel is fun. You get to redefine pi.

Offline

#5 2008-11-28 14:34:32

bluewind
Administrator
From: Austria
Registered: 2008-07-13
Posts: 172
Website

Re: Web development for C or C++ hackers?

Offline

#6 2008-12-07 13:42:05

gnud
Member
Registered: 2005-11-27
Posts: 182

Re: Web development for C or C++ hackers?

I'm not sure it's "scary". It's certainly more work to do properly smile

You basically have 4 options:
A) Use CGI. Simple, because your app is spawned once per request. So, there is no real need to do advanced resource management. OTOH, it's kinda slow - because a new process is spawned for each request. Wikipedia is your friend - http://en.wikipedia.org/wiki/Common_Gateway_Interface

B) Use FCGI. More complex. Your app stays resident and communicates with the web server via a socket (UNIX or TCP/IP). Read introduction, and find a nice C++ lib, at http://cryp.to/publications/fastcgi/

C) Write a "native" web server module -- the howto will differ wildly between servers.

D) Write your own web server with the app baked in. Ouch.

Offline

#7 2008-12-07 14:12:37

catwell
Member
From: Bretagne, France
Registered: 2008-02-20
Posts: 207
Website

Re: Web development for C or C++ hackers?

You really don't want to use C. Try Perl, it accepts a syntax very close to that of C and is much more adapted to web apps.

Offline

Board footer

Powered by FluxBB