I'm split on that one because while it does make things faster with same type aliasing, using raw pointers is not idiomatic modern C++ in the first place.
Cfish for Windows possible ?
Moderator: Ras
-
- Posts: 2696
- Joined: Tue Aug 30, 2016 8:19 pm
- Full name: Rasmus Althoff
Re: Cfish for Windows possible ?
Rasmus Althoff
https://www.ct800.net
https://www.ct800.net
-
- Posts: 1062
- Joined: Tue Apr 28, 2020 10:03 pm
- Full name: Daniel Infuehr
Re: Cfish for Windows possible ?
Yes Sopel that is 100% correct. The C++ additions are very good for code readability and maintainability and performance.Sopel wrote: ↑Sun Dec 05, 2021 1:07 amMaybe you should do that? I think the C++ additions are very good for code readability and maintainability. Do you not see that?dangi12012 wrote: ↑Sat Dec 04, 2021 11:38 pm
Same goes for you. Go and write a letter to the standard comittee how your 5 line project compiles down to the same assembly and how you think they invented all the features for no reason.
Apparently some people here think that these additions somehow make C++ slower than C which is 100% wrong.
Worlds-fastest-Bitboard-Chess-Movegenerator
Daniel Inführ - Software Developer
Daniel Inführ - Software Developer
-
- Posts: 544
- Joined: Sun Sep 06, 2020 4:40 am
- Full name: Connor McMonigle
Re: Cfish for Windows possible ?
Where did anyone claim that these additions make C++ slower?dangi12012 wrote: ↑Sun Dec 05, 2021 1:21 amYes Sopel that is 100% correct. The C++ additions are very good for code readability and maintainability and performance.Sopel wrote: ↑Sun Dec 05, 2021 1:07 amMaybe you should do that? I think the C++ additions are very good for code readability and maintainability. Do you not see that?dangi12012 wrote: ↑Sat Dec 04, 2021 11:38 pm
Same goes for you. Go and write a letter to the standard comittee how your 5 line project compiles down to the same assembly and how you think they invented all the features for no reason.
Apparently some people here think that these additions somehow make C++ slower than C which is 100% wrong.
-
- Posts: 1062
- Joined: Tue Apr 28, 2020 10:03 pm
- Full name: Daniel Infuehr
Re: Cfish for Windows possible ?
connor_mcmonigle:connor_mcmonigle wrote: ↑Sun Dec 05, 2021 1:22 amWhere did anyone claim that these additions make C++ slower?dangi12012 wrote: ↑Sun Dec 05, 2021 1:21 amYes Sopel that is 100% correct. The C++ additions are very good for code readability and maintainability and performance.Sopel wrote: ↑Sun Dec 05, 2021 1:07 amMaybe you should do that? I think the C++ additions are very good for code readability and maintainability. Do you not see that?dangi12012 wrote: ↑Sat Dec 04, 2021 11:38 pm
Same goes for you. Go and write a letter to the standard comittee how your 5 line project compiles down to the same assembly and how you think they invented all the features for no reason.
Apparently some people here think that these additions somehow make C++ slower than C which is 100% wrong.
Why is CFish faster than C++ Stockfish?
Worlds-fastest-Bitboard-Chess-Movegenerator
Daniel Inführ - Software Developer
Daniel Inführ - Software Developer
-
- Posts: 544
- Joined: Sun Sep 06, 2020 4:40 am
- Full name: Connor McMonigle
Re: Cfish for Windows possible ?
Because Ronald is a clever man.dangi12012 wrote: ↑Sun Dec 05, 2021 1:25 amconnor_mcmonigle:connor_mcmonigle wrote: ↑Sun Dec 05, 2021 1:22 amWhere did anyone claim that these additions make C++ slower?dangi12012 wrote: ↑Sun Dec 05, 2021 1:21 amYes Sopel that is 100% correct. The C++ additions are very good for code readability and maintainability and performance.Sopel wrote: ↑Sun Dec 05, 2021 1:07 amMaybe you should do that? I think the C++ additions are very good for code readability and maintainability. Do you not see that?dangi12012 wrote: ↑Sat Dec 04, 2021 11:38 pm
Same goes for you. Go and write a letter to the standard comittee how your 5 line project compiles down to the same assembly and how you think they invented all the features for no reason.
Apparently some people here think that these additions somehow make C++ slower than C which is 100% wrong.
Why is CFish faster than C++ Stockfish?
-
- Posts: 1062
- Joined: Tue Apr 28, 2020 10:03 pm
- Full name: Daniel Infuehr
Re: Cfish for Windows possible ?
First correct thing you commented today.connor_mcmonigle wrote: ↑Sun Dec 05, 2021 1:25 amBecause Ronald is a clever man.dangi12012 wrote: ↑Sun Dec 05, 2021 1:25 amconnor_mcmonigle:connor_mcmonigle wrote: ↑Sun Dec 05, 2021 1:22 amWhere did anyone claim that these additions make C++ slower?dangi12012 wrote: ↑Sun Dec 05, 2021 1:21 amYes Sopel that is 100% correct. The C++ additions are very good for code readability and maintainability and performance.Sopel wrote: ↑Sun Dec 05, 2021 1:07 amMaybe you should do that? I think the C++ additions are very good for code readability and maintainability. Do you not see that?dangi12012 wrote: ↑Sat Dec 04, 2021 11:38 pm
Same goes for you. Go and write a letter to the standard comittee how your 5 line project compiles down to the same assembly and how you think they invented all the features for no reason.
Apparently some people here think that these additions somehow make C++ slower than C which is 100% wrong.
Why is CFish faster than C++ Stockfish?
Worlds-fastest-Bitboard-Chess-Movegenerator
Daniel Inführ - Software Developer
Daniel Inführ - Software Developer
-
- Posts: 391
- Joined: Tue Oct 08, 2019 11:39 pm
- Full name: Tomasz Sobczyk
Re: Cfish for Windows possible ?
I'm still waiting for your stance on the "restrict" keyword.
dangi12012 wrote:No one wants to touch anything you have posted. That proves you now have negative reputations since everyone knows already you are a forum troll.
Maybe you copied your stockfish commits from someone else too?
I will look into that.
-
- Posts: 544
- Joined: Sun Sep 06, 2020 4:40 am
- Full name: Connor McMonigle
Re: Cfish for Windows possible ?
You've wrongly claimed that there was no version of GCC targeting Windows APIs natively. You've wrongly claimed that pass by reference outperforms pass by pointer. You've wrongly claimed that C compilers can't do constant propagation for constant arrays. You've wrongly claimed that move generators are O(n) (where n must always be less than or equal 64? lol) and that you've discovered a new O(1) algorithm betraying a fundamental misunderstanding of complexity analysis.
Meanwhile, I've claimed that modern C++ features aren't practically relevant to chess engine performance (subjective) and that move generators are all inherently O(1) (which is trivially true as the set of inputs on which move generators are defined has finite cardinality).
dangi: 0/4
connor: 2/2
:/
-
- Posts: 391
- Joined: Tue Oct 08, 2019 11:39 pm
- Full name: Tomasz Sobczyk
Re: Cfish for Windows possible ?
In his mind it'sconnor_mcmonigle wrote: ↑Sun Dec 05, 2021 2:09 amYou've wrongly claimed that there was no version of GCC targeting Windows APIs natively. You've wrongly claimed that pass by reference outperforms pass by pointer. You've wrongly claimed that C compilers can't do constant propagation for constant arrays. You've wrongly claimed that move generators are O(n) (where n must always be less than or equal 64? lol) and that you've discovered a new O(1) algorithm betraying a fundamental misunderstanding of complexity analysis.
Meanwhile, I've claimed that modern C++ features aren't practically relevant to chess engine performance (subjective) and that move generators are all inherently O(1) (which is trivially true as the set of inputs on which move generators are defined has finite cardinality).
dangi: 0/4
connor: 2/2
:/
dangi: 4/4
connor: 0/2
you can't change that
:/
dangi12012 wrote:No one wants to touch anything you have posted. That proves you now have negative reputations since everyone knows already you are a forum troll.
Maybe you copied your stockfish commits from someone else too?
I will look into that.
-
- Posts: 1062
- Joined: Tue Apr 28, 2020 10:03 pm
- Full name: Daniel Infuehr
Re: Cfish for Windows possible ?
Nope I claimed that Cygwin does not target the winapi directly which is correct. I claimed pass by reference has performance implications which is correct. Please look it up. C++ didnt invent this for fun. You are not informed at all....connor_mcmonigle wrote: ↑Sun Dec 05, 2021 2:09 amYou've wrongly claimed that there was no version of GCC targeting Windows APIs natively. You've wrongly claimed that pass by reference outperforms pass by pointer. You've wrongly claimed that C compilers can't do constant propagation for constant arrays. You've wrongly claimed that move generators are O(n) (where n must always be less than or equal 64? lol) and that you've discovered a new O(1) algorithm betraying a fundamental misunderstanding of complexity analysis.
Meanwhile, I've claimed that modern C++ features aren't practically relevant to chess engine performance (subjective) and that move generators are all inherently O(1) (which is trivially true as the set of inputs on which move generators are defined has finite cardinality).
:/
At no point I claimed that C compilers cannot do constant folding (WTF?)???
You cannot twist my comments like that. I would like a moderator to delete your comment this is beyond ridiculous trolling. Willfully misinterpreting correct statements. You just pretend I said the opposite to fit your agenda...
You are the one who is claiming that sorting algorithms are O(1) when sorting a limited set. Totally wrong. Your comments are the equivalent of a child throwing a tantrum in the supermarket because you are embarassed that you do not know what N means in the O notation. You even called it "Oh" notation.... because you didnt even know how to spell it correctly 1 hour ago.
Sorry but I wont respond to your troll attempts anymore. Not here or in other threads. I will however defend myself if you make up stuff.
Worlds-fastest-Bitboard-Chess-Movegenerator
Daniel Inführ - Software Developer
Daniel Inführ - Software Developer