G-WAN, Another Free Web Server
mssmss writes "Has anyone used G-WAN — a free (as in beer), supposedly fast and scalable Web server? The downside is it supports only C scripts, which the author claims is a plus since most programmers know C anyway. There is currently only a Windows release and no clear answer in their FAQs whether there would be Linux/Solaris releases. As an interesting aside, releasing a Web server while at the same time fighting a losing battle (PDF) with a large bank over a piracy claim of $200 million (the bank is alleged to have done the piracy) is quite a feat."
Comment removed based on user account deletion
Where's the value/point in releasing another limited-utility webserver?
I see the point in having a few options for a particular category, so that you can choose between different optimizations for things like cost, performance, and compatibility. But why something of limited utility (only runs C scripts) compatibility (only runs on 'doze) AND cost? (not OSS, but it's free!)
I don't know. Even with a fairly "heavy" web server such as Apache, the performance increases by going with another "lighter" platform seldom represent more than a year or so of hardware advance.
So.... Why?
I have no problem with your religion until you decide it's reason to deprive others of the truth.
It looks like this chap has a grudge against Microsoft (he says his company was "eradicated from the market the usual way", apparently by Microsoft) so he wrote this webserver to hit them "where it hurts".
I don't know if spite is the best motivation to write excellent software.
If you're a zombie and you know it, bite your friend!
It ups the difficulty level, allowing you to more easily grind on your way towards Web Master III.
Why does the world need a non-free web server that only runs on Windows when there's already plenty of free (as in speech) ones out there (http://www.apache.org/, http://www.lighttpd.net/) that run everywhere?
i C your point
-1 Bad Pun
Table-ized A.I.
Absolutely. What makes me especially excited about trying G-WAN is that whenever it crashes I'll have the extra fun of figuring out whether the reason it crashed was because my own C code crashed, or because the code in his web server crashed. But wait, there's more! Adding to this really enjoyable programming problem will be the extra challenge that comes with the fact that his code is closed source, so if the crash occurs inside his code, I'll be able to get in there with a debugger and spend an afternoon figuring out what happened and whether there's any way to change the data my code gives to his code so that his code won't crash crash. I can see many really enjoyable weekends ahead of me in my parents' basement, with a bowl of nachos and a liter jug of root beer. Good times!
Find free books.
People claim Apache is slow, but why not using a reverse proxy like Varnish to "speed it up" and still keep the features. I really see no reason why I should use G-WAN or lighttpd.
Not everybody is serving easily-cacheable stuff. Reverse proxies are great for semi-static websites like news sites, but they are useless for social-networking, webmail and other interactive sites that need to render customized content for each particular user.
Anyway, nginx is my current favorite web server.
If you're going to be "scripting" in C on Windows you might as well go fully compiled with IIS (free with any Windows OS you'd be running on a server) and C# (Express version also free). Get MySQL with ODBC and you're all set.
I use PHP on Apache for flexibility. If I wanted to use C I'd compile it.
Work Safe Porn
So the guy wants to write a web server to scratch an itch or something. No big deal there. The question is WHY THE FUCK DID IT MAKE SLASHDOT?
Using C as a "scripting" language. CHECK
Using C as a "scripting" language on a WEB SERVER. CHECK
Writing a non free webserver for windows only with very limited features. CHECK
yep, he's passed the "i'm crazy as a loon" test.
If you mod me down, I will become more powerful than you can imagine....
His server returns 404 for errors:
http://www.gwan.com/csp_crash.html
That's going to make wirting for this thing really confusing.
That would be like saying "the fifth floor is in our building, not a public street address, so this warrant is useless". I bet that would be a useful bit of precedent to establish for lots of people who are served with search warrants. Given the router information mentioned in the article, and the settings of the laptop with an address in the address space, it's unsurprising that our plaintiff was upset that those machines did not get reported or searched properly.
... g-wan, g-wan, g-wan
G-wan, g-wan, g-wan, g-wan, g-wan
Mrs Doyle approves
Yes, your anecdotal evidence clearly suggests that scripting languages have a place as sub-standard languages to design a web-enabled application. Never mind all the professional Drupal developers. Or people that use Joomla. Yeah, platforms like those two are total wastes and it would have been infinitely wiser to write it as an Apache module.
I'm baffled that you point to using C as the root reason that your developers' code had less bugs. Speed I'll concede, but not bugs. Give your guys some credit. I'll bet them using C isn't why they write good code.
I asked him to explain why stable versions (some of these stable releases were several years old, too) of the software he was recommending contained over 100 bug fixes. He couldn't provide a suitable answer, and thus management gave him the boot. And so we're not using Drupal.
You are out of your mind. Bug fixes to a stable release is your metric of quality?
May I ask what OS you guys are using in your bug-free paradise? You know, the OS that doesn't need any bug fixes after release. That one. I'd like to go buy myself a copy because that sure sounds great.
Weaselmancer
rediculous.
Writing a website full of incomprehensible ranting about Microsoft and the computer industry, whilst claiming that releasing a[nother] free web server for their platform will "hit them where it hurts". CHECK
C scripts are not C, it's just a scripting language that looks like C. You can't actually import normal C libraries and if I recall (I've only used C scripts once) you can't do much in terms of memory operations. On top of that they are scripts, so if they screw up the parser will tell you where thing crashed. Please don't be so critical of something you don't understand, scripts with C like context are nothing new and there are a variety of advantages to using the same syntax between your actual code and your scripting language.
Also, the scripting languages you mentioned are either not easily embeddable or somewhat focused for certain purposes. You should realize simple scripting and embedded scripting can be very different things. Particularly scripting languages like Lua can prove to be quite incredible, offering extremely advanced features (like tables) while still remaining surprisingly quick. Depending on what you are doing Lua can actually allow less capable programmers to write surprisingly complex code to enhance your program - we used it about a half year ago and with our scripts you could get moving objects on the screen in 3 lines, interactivity in 7, and easily an entire interface in less than 100. There are also a variety of scripting languages for actual embedded (as in hardware) applications which focus on being fast and light, but are often equally light on advanced features. I'd like to see you get python running capably on an 8-bit MicroController, or php doing something useful on one....
> software he was recommending contained over 100 bug fixes
So, did you guys replace windows, exchange, office with other products? Wait a minute...
Oops, my bad. You were talking about Joomla and Drupal. Somehow I did a mental s/Joomla/windows/g;s/Drupal/Office/g' in my head - subconsciously, I might add. And the whole time I was like - "Those bastards! The SP[123] and the freggin updates.windows.com" and not letting me shut down my computer without applying patches every other day (or so it seems)... But you're right. I googled a bit for a list of all the bugs for Windows and Office and couldn't find it. Occams Razor: there are none! That's professional! The Drupal/Joomla punks have the bugs listed on their OWN website!! How amateur!!
Absolutely. What makes me especially excited about trying G-WAN is that whenever it crashes I'll have the extra fun of figuring out whether the reason it crashed was because my own C code crashed, or because the code in his web server crashed.
Finding where a program crashed is way easier than finding a logic error, and those can occur in any language. Actually, debugging crashes can lead to discovery of certain kinds of logic and/or runtime errors that would be difficult to find if your runtime environment is protecting you from ever seeing a crash (heaven forbid).
I'm as much a fan of high-level languages, nice runtime environments, and useful abstractions as anyone, but I also happen to think that C gets more flak than it deserves. I really think universities are doing their graduates a disservice by educating them in the safe, comfortable confines of Java if they don't also teach them C. In my own subjective experience, the most capable and successful programmers I know (in any environment) are also the ones who are very comfortable in environments without garbage collection and restricted memory access.
This author takes full ownership and responsibility for the unpopular opinions outlined above.
Finally a platform with built-in buffer overflow support!
Let the exploits games begin!
---
Web Servers Feed @ Feed Distiller
And after reading items on this timeline. I begin to question the author's sanity...
Finding where a program crashed is way easier than finding a logic error, and those can occur in any language. Actually, debugging crashes can lead to discovery of certain kinds of logic and/or runtime errors that would be difficult to find if your runtime environment is protecting you from ever seeing a crash (heaven forbid).
Except when your non-protected runtime doesn't crash and instead overwrites the stack, corrupts the malloc arena or writes to a dangling pointer causing corruption in a completely unrelated part of the program. Hours and hours of fun!
One of the most important thing that managed programming languages brought is the fact that other parts of the program can't corrupt the system enough to make things undebuggable and that an error in a module is self-contained enough that it can't trample other parts of the program due to a memory error.
I do agree though that C and other unmanaged languages should still be taught.
Jean-Francois Im's blog
I'm also a sysadmin at a social networking site with highly dynamic content. Unfortunately, Varnish won't help much because over 90% of the cumulative CPU time is ate up by the MySQL server.
The Web is like Usenet, but
the elephants are untrained.
Only very few people can do string processing in C. Actually I believe more people can do string processing in assembler than in C, as with assembler you see where the problems are whereas C makes you believe it has some kind of string support.
I can't tell if sane or not but it certainly sounds like he is putting much effort into some software.
So it would help to defuse the impression of insanity that most of the posters here are suggesting. He doesn't sound insane at least not for a French programmer who has left the country due to corruption apparently.
Personally I would suggest an online explanation in more detail of two points:
1) Would he offer source to a company/institution that will sign an NDA? I bet he would sell it to say Facebook if they wanted to compile their own.
It isn't a crime to do closed source software although to my mind not offering the source in any way is going to slow adoption.
2) I took the time to read the blog and pdfs. His legal problems seems to have started when he caught a bank using his software. See: groupama.pdf
This refers to software he makes (in Switzerland now), Remote Anything
Okay. First, the pdf shows they have installed packs of 65535 units of his software. This makes no sense at all and looks like a dumb programming bug. He doesn't show the evidence he has, or how he got the reports. I imagine he has a phone home routine in his program. This is maybe why it gets called a virus too I could imagine, if that is the app he is talking about. The $200M fine he is seeking is therefore either crazy, a lie, or else based on such strong evidence I can't imagine not mentioning it. I think he needs to explain what the evidence is, how he got it, and why the numbers suggest some binary math errors. He has four lines that look like "64 DS + 256 Masters + 65536 Slaves = 34 million euros" and this is totally crazy. He seems to be suggesting they are using 250,000 clients if I am correct. His own site says Fortune 500 companies often buy tens of thousands of licenses. He should explain the discrepancy.
I think if he does these two things then he could expand his market more. If he doesn't want to go open source fine but comparing it to open source projects then should include this caveat. Maybe he could get a university or famous security company to audit the code.
In response, I opened up a web browser, and found the changelogs for the most recent releases of the stable versions of PHP and Drupal. In front of management, I asked him to explain why stable versions (some of these stable releases were several years old, too) of the software he was recommending contained over 100 bug fixes.
That's crazy. I think that consultant dodged a bullet by avoiding having to work with you guys.
Yes, writing scripts in C is a great idea.
It's certainly not a new idea ...
Minimal webserver, written in C, supporting C scripts ...
libguestfs - tools for accessing and modifying virtual machine disk images
A while back I had written a minimal HTTP server to figure out I/O completion ports in Windows over a weekend. You can download it from (BSD license): http://arunsagar.com/Code/rani.cpp
Similar throughput specs as the OP's server, and the C++ code can be part of the server itself (great for debugging). Buggy and incomplete, but you can play, fix and extend as you wish.