Congrats Evert.
Answer is yes and yes (btw. there are not that many ways to do snprintf using varargs
Could anyone make me a Windows compile...?
Moderators: hgm, Rebel, chrisw
-
- Posts: 2568
- Joined: Fri Nov 26, 2010 2:00 pm
- Location: Czech Republic
- Full name: Martin Sedlak
-
- Posts: 2568
- Joined: Fri Nov 26, 2010 2:00 pm
- Location: Czech Republic
- Full name: Martin Sedlak
Re: Could anyone make me a Windows compile...?
Ok sent you a PM with new win compiles.
-
- Posts: 2929
- Joined: Sat Jan 22, 2011 12:42 am
- Location: NL
Re: Could anyone make me a Windows compile...?
Just uploaded them to my website. Thanks!
The tweaks to the source are fine and committed. I should really switch off C99 here to avoid the issue.
The tweaks to the source are fine and committed. I should really switch off C99 here to avoid the issue.
-
- Posts: 2568
- Joined: Fri Nov 26, 2010 2:00 pm
- Location: Czech Republic
- Full name: Martin Sedlak
Re: Could anyone make me a Windows compile...?
Unfortunately it's not C99 at fault but Microsoft compiler not supporting it...
I really don't think it would be that hard for them but they probably focus on C++ (they still don't support full 11 iirc).
I really don't think it would be that hard for them but they probably focus on C++ (they still don't support full 11 iirc).
-
- Posts: 2929
- Joined: Sat Jan 22, 2011 12:42 am
- Location: NL
Re: Could anyone make me a Windows compile...?
Well, I'd love to hate them for it too, but I think their compiler is technically a C++ compiler rather than a C compiler so it gets a pass from me on those grounds. Of course a C++ compiler doesn't really have to support the older C standard (C90?) either.mar wrote:Unfortunately it's not C99 at fault but Microsoft compiler not supporting it...
I really don't think it would be that hard for them but they probably focus on C++ (they still don't support full 11 iirc).
Is there a compiler that has full C++11 support? I thought GCC was also somewhat incomplete in that regard.
-
- Posts: 2568
- Joined: Fri Nov 26, 2010 2:00 pm
- Location: Czech Republic
- Full name: Martin Sedlak
Re: Could anyone make me a Windows compile...?
Well I don't hate them for that, just saying that supporting C99 would probably not be a big deal and as you said it's most likely not a priority for them. It sure would be nice to have C99 support (and POSIX , most likely not going to happen.
I guess clang has full C++11 support, not sure about gcc but I have the feeling that it has fulll support as well.
From what I understood msc had problems with constexpr which required significant amount of work for them (I think 2013 still doesn't support it but next version should).
I guess clang has full C++11 support, not sure about gcc but I have the feeling that it has fulll support as well.
From what I understood msc had problems with constexpr which required significant amount of work for them (I think 2013 still doesn't support it but next version should).
-
- Posts: 2568
- Joined: Fri Nov 26, 2010 2:00 pm
- Location: Czech Republic
- Full name: Martin Sedlak
Re: Could anyone make me a Windows compile...?
Oh... something seems wrong with the windows binaries.
Running analysis from console it's using 1-3% CPU but it ought to use around 13%...
Running under a GUI it goes up to 7-8% but still only half of what I'd expect,
hitting only some 55knps
I admit I only verified bench count this time...
I'll look into it once I'm back from work.
Running analysis from console it's using 1-3% CPU but it ought to use around 13%...
Running under a GUI it goes up to 7-8% but still only half of what I'd expect,
hitting only some 55knps
I admit I only verified bench count this time...
I'll look into it once I'm back from work.
-
- Posts: 2568
- Joined: Fri Nov 26, 2010 2:00 pm
- Location: Czech Republic
- Full name: Martin Sedlak
Re: Could anyone make me a Windows compile...?
hmm....
Sjaak spends 54% time in GetConsoleMode and 18% in PeekNamedPipe...
I guess the win version needs to improve input polling a bit
Sjaak spends 54% time in GetConsoleMode and 18% in PeekNamedPipe...
I guess the win version needs to improve input polling a bit
-
- Posts: 411
- Joined: Thu Dec 30, 2010 4:48 am
Re: Could anyone make me a Windows compile...?
From what i understand since 4.8.1 all but 1 proposal that made C++11 has been implemented in gcc but the implementations are still labelled experimental. source: https://gcc.gnu.org/projects/cxx0x.htmlmar wrote:Well I don't hate them for that, just saying that supporting C99 would probably not be a big deal and as you said it's most likely not a priority for them. It sure would be nice to have C99 support (and POSIX :), most likely not going to happen.
I guess clang has full C++11 support, not sure about gcc but I have the feeling that it has fulll support as well.
From what I understood msc had problems with constexpr which required significant amount of work for them (I think 2013 still doesn't support it but next version should).
-
- Posts: 2568
- Joined: Fri Nov 26, 2010 2:00 pm
- Location: Czech Republic
- Full name: Martin Sedlak
Re: Could anyone make me a Windows compile...?
Ok the fix is rather simple. A typo I guess:
keyboard_input_waiting:
now I get the expected 13%. however when run manually from the console it's still using only a fraction of CPU time.
EDIT: +100 elo for Sjaak on Windows now in blitz I guess
keyboard_input_waiting:
Code: Select all
if (virgin) {
virgin = false; // instead of virgin = true
EDIT: +100 elo for Sjaak on Windows now in blitz I guess