June 25, 2012
On Monday, 25 June 2012 at 10:17:27 UTC, P. Lefevre wrote:
> For those interested in web development, GWAN is a VERY fast web server (Linux only) which allow development of dynamic pages in C, C++, Objective-C, Objective-C++, and D (since january this year) !
>
> see http://gwan.ch/
>
> NB: the perf benchmark on this site seems incredible, but try yourself ...
> I did it and I'm convinced.

Penguins can't fly. Ergo, GWAN makes false claims. QED.

This logic shit is easy. :P


June 25, 2012
On 25-Jun-12 14:17, P. Lefevre wrote:
> For those interested in web development, GWAN is a VERY fast web server
> (Linux only) which allow development of dynamic pages in C, C++,
> Objective-C, Objective-C++, and D (since january this year) !
>
> see http://gwan.ch/
>
> NB: the perf benchmark on this site seems incredible, but try yourself ...
> I did it and I'm convinced.
>

Damn, I had to test it. My shitty vbox gives me about 13k RPS on ~ 10Kb script generated files. I've never had more then ~5k with Lighty on static files. Pure awesomeness.

-- 
Dmitry Olshansky


June 26, 2012
On Monday, 25 June 2012 at 18:31:53 UTC, Bernard Helyer wrote:
> Penguins can't fly. Ergo, GWAN makes false claims. QED.
>
> This logic shit is easy. :P

???
Do you mean Windows is faster than Linux ?
Or are you speaking about Freebsd/NetBsd/SunOs, ...

The choice made by gwan are the same than those of Vibe
- 1 thread/core
- aync IO + a blocking api (thanks to Fiber for Vibe)
- dynamic page in a low level language ( C vs D )

the MAIN difference:
- Vibe is a library ! If you develop a site with it you must reompile in case of change.
- Gwan C applets are automatically recompiled on-the-fly in case of change
  NB: this could be done in Vibe ... may-be easier than the load-balancer approach.

By the way, I like the approach of Yeoseod benchmark: create a script to install, run and analyse tests on an EC2 instance. Thus easily reproductible by (almost) everyone !

May be someone should update this test
- add NGinx, Gwan, Vibe, ...
- use also a micro instance
- transfert small file (1K), big file (1MB), dynamic page (hello world), real stuff ex: gwan loan page (CPU intensive, thus obviously good for C and D)

I think this test could become THE comparison test such as http://shootout.alioth.debian.org/ is THE comparison test for languages...

Unfortunately, I haven't access to an EC2 instance :-(

June 26, 2012
On 06/26/2012 02:55 PM, P. Lefevre wrote:
> On Monday, 25 June 2012 at 18:31:53 UTC, Bernard Helyer wrote:
>> Penguins can't fly. Ergo, GWAN makes false claims. QED.
>>
>> This logic shit is easy. :P
>
> ???
> Do you mean Windows is faster than Linux ?
> Or are you speaking about Freebsd/NetBsd/SunOs, ...
> ...

No, he remarks that penguins can't fly. Literally.
June 26, 2012
xbuf_ncat is a C function, you can't give it a D string just like that - you must use std.string.toStringz() ...

On Monday, 25 June 2012 at 13:42:39 UTC, Andrea Fontana wrote:
> Using C plain api it's not a good way to use D power IMHO :)
>
> xbuf_ncat(get_reply(argv), "Hello World (D)", "Hello World (C)".sizeof - 1);
>
> Probably this example doesn't work properly.
> On my machine writeln("1234".sizeof);  gives "16" because of UTF-8.
> So "1234".sizeof - 1 is 15.
>
> AFAIK D strings are not null-terminated (are they?) and i guess that line of code won't work.
>
> Encapsulate code with classes/template/etc would be a good idea.
>
> On Monday, 25 June 2012 at 13:29:59 UTC, Eric R. Schulz (ers35) wrote:
>> G-WAN exports a C API and D supports calling C functions.
>>
>> In what way could G-WAN better support D?
>>
>> Perhaps reading the G-WAN manual would help to explain: http://gwan.ch/archives/gwan_linux.pdf
>>
>>> Maybe they should give a better support for D language...


June 26, 2012
On Monday, 25 June 2012 at 10:17:27 UTC, P. Lefevre wrote:
> For those interested in web development, GWAN is a VERY fast web server (Linux only) which allow development of dynamic pages in C, C++, Objective-C, Objective-C++, and D (since january this year) !
>
> see http://gwan.ch/
>
> NB: the perf benchmark on this site seems incredible, but try yourself ...
> I did it and I'm convinced.

I have no intention even to try something that is not open-source nowadays. It looks nice though, but I will never trust something that is not open-sourced...
June 26, 2012
On Tuesday, 26 June 2012 at 16:58:25 UTC, Dejan Lekic wrote:
> On Monday, 25 June 2012 at 10:17:27 UTC, P. Lefevre wrote:
>> For those interested in web development, GWAN is a VERY fast web server (Linux only) which allow development of dynamic pages in C, C++, Objective-C, Objective-C++, and D (since january this year) !
>>
>> see http://gwan.ch/
>>
>> NB: the perf benchmark on this site seems incredible, but try yourself ...
>> I did it and I'm convinced.
>
> I have no intention even to try something that is not open-source nowadays. It looks nice though, but I will never trust something that is not open-sourced...

I am posting anonymously to protect my identity.

You are right to be suspicious of G-Wan. Regardless of the merits of the software itself, its author is known for his aggressive propaganda of G-Wan, including attempts to cover up serious past security vulnerabilities.

Have a look here to get an understanding of how far this goes:

http://www.wikivs.com/index.php?title=G-WAN_vs_Nginx&action=history

More info:

http://weblambdazero.blogspot.com/2011/09/human-factor.html
June 26, 2012
On 27-Jun-12 00:24, Anonymous wrote:
> On Tuesday, 26 June 2012 at 16:58:25 UTC, Dejan Lekic wrote:
>> On Monday, 25 June 2012 at 10:17:27 UTC, P. Lefevre wrote:
>>> For those interested in web development, GWAN is a VERY fast web
>>> server (Linux only) which allow development of dynamic pages in C,
>>> C++, Objective-C, Objective-C++, and D (since january this year) !
>>>
>>> see http://gwan.ch/
>>>
>>> NB: the perf benchmark on this site seems incredible, but try
>>> yourself ...
>>> I did it and I'm convinced.
>>
>> I have no intention even to try something that is not open-source
>> nowadays. It looks nice though, but I will never trust something that
>> is not open-sourced...
>
> I am posting anonymously to protect my identity.
>

Have to say, that being anonymous *and* posting vague accusations with kind of strange proof links BTW all it talks about is "GWAN is not open-source and thus it's bullshit ...".
Then it lists some security bugs in old version of GWAN that was then hidden from downloads (and for obvious reasons if you ask me).

> You are right to be suspicious of G-Wan. Regardless of the merits of the
> software itself, its author is known for his aggressive propaganda of
> G-Wan, including attempts to cover up serious past security
> vulnerabilities.

Hm, yet I never heard about G-WAN at all until somebody brought it up in the NG.

> Have a look here to get an understanding of how far this goes:
>
> http://www.wikivs.com/index.php?title=G-WAN_vs_Nginx&action=history
>
> More info:
>
> http://weblambdazero.blogspot.com/2011/09/human-factor.html

This in fact it contains a bunch of accusations of it's own.
It's not like I should have posted all this (everybody knows better then to trust anonymous blindly etc.) but just could not resist.

-- 
Dmitry Olshansky


June 27, 2012
It's exactly what I was trying to point out. That example (that i found inside tarball!) is wrong... And using D as plain C-Wrapper it's not fun...

On Tuesday, 26 June 2012 at 16:49:11 UTC, Dejan Lekic wrote:
> xbuf_ncat is a C function, you can't give it a D string just like that - you must use std.string.toStringz() ...
>
> On Monday, 25 June 2012 at 13:42:39 UTC, Andrea Fontana wrote:
>> Using C plain api it's not a good way to use D power IMHO :)
>>
>> xbuf_ncat(get_reply(argv), "Hello World (D)", "Hello World (C)".sizeof - 1);
>>
>> Probably this example doesn't work properly.
>> On my machine writeln("1234".sizeof);  gives "16" because of UTF-8.
>> So "1234".sizeof - 1 is 15.
>>
>> AFAIK D strings are not null-terminated (are they?) and i guess that line of code won't work.
>>
>> Encapsulate code with classes/template/etc would be a good idea.
>>
>> On Monday, 25 June 2012 at 13:29:59 UTC, Eric R. Schulz (ers35) wrote:
>>> G-WAN exports a C API and D supports calling C functions.
>>>
>>> In what way could G-WAN better support D?
>>>
>>> Perhaps reading the G-WAN manual would help to explain: http://gwan.ch/archives/gwan_linux.pdf
>>>
>>>> Maybe they should give a better support for D language...


June 27, 2012
> accusations with kind of strange proof links BTW all it talks about is "GWAN is not open-source and thus it's bullshit ...".
> Then it lists some security bugs in old version of GWAN that

I do not know to whom you directed this at - but in my post I did not say anything like that. It is simply a personal policy - I do not trust closed-source programs, and tend to use a minimal set of them at work (typically in Windows environment). On Linux I exclusively use open-source applications. I do not want to participate in discussions about G-Wan's developers, and their way of dealing with the community and problems. G-Wan seems a nice product but I will never recommend it to anyone. Company I work for will certainly not use it, I can tell you that straight away. :)