« first day (902 days earlier)      last day (4050 days later) » 

12:00 PM
I could write overloads for up to 8 arguments or so :)
 
@StackedCrooked You write void f(tuple<T&&...> t) { f(forward_first_half(t)) + f(forward_second_half(t)); }
Then add TMP as needed and it should work
Hmm "q. b." is not from Latin.
 
Ok, I'll see if I can figure it out. Thanks.
 
just found if (true) in codebase... best part is that it has else block
:D
 
what is "q. b."?
not sure it's from Earth
 
qota bene
quintessential bitches
 
12:04 PM
@NoSenseEtAl I have if(quick_check) {} else return quick_check; in my ogonek code somewhere.
I swear it makes sense.
 
0
A: Can pointers be of different sizes?

metalheadAlso think about a bool*. The compiler optimizes bools together within a byte so the pointer to a bool needs to have both the byte and the individual bit that you are addressing.

 
lol
 
@LightnessRacesinOrbit "as needed". I thought it was an abbreviation from Latin, but it seems it's just Portuguese.
 
hmmm
 
12:08 PM
Ah, wait I changed it.
 
@NoSenseEtAl it's a poor man's #if 0/#else/#endif substitute. Or a rich man's, depending on POV
 
Instead of empty braces I have an explicit continue there (it's the last statement in a loop).
 
just realized that the Wide compiler would go with something like Main() { i := int8(); } helper() { std.cout << Main.i; }.
this is ungood
 
Not sure if it really helps in the readability department.
 
@sehe nah it is notworkinghereanymorenothisproblem's man something :D
 
12:10 PM
@R.MartinhoFernandes so this is an example of where s/auto/boost::tribool/g might have been a good idea
 
@DeadMG plusungood
 
yes
fortunately, I fixski'd it
 
fixski? wat
 
that's polski for 'fixed'
 
I love the standard library. <3
 
12:11 PM
@sehe Nope. Code is generic, and quick_check may return a bool (e.g. nfd::quick_check) or a tribool (e.g. nfc::quick_check).
 
@R.MartinhoFernandes Ah. Now I see. I'm so happy I opted for "might" :)
 
user784668
hah, SO sucks
 
user784668
No. ⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠ — Fanael 43 secs ago
 
@DomagojPandža said no uni teacher ever
 
You suck. No bananas. :(
 
12:12 PM
welp
just implemented my first warning in Wide- variable shadowing.
 
user784668
@R.MartinhoFernandes I don't know the code point.
 
ahahaha
x.operator ()<int>(); // works
x.()<int>(); // not works
"not works" :)
 
@Fanael Word joiners, huh? I believe most people use ZWSPs.
 
user784668
@R.MartinhoFernandes But they break!
 
also epic comments are epic
try one thing... do this.. char *buff... and then printf("Data Read %s", buff);.. let me know if it works... I had solved my problem with this, not exactly but a little bit more... — Hiren Pandya 6 hours ago
yet again I wish I could downvote comments
 
12:18 PM
@HirenPandya that's a terribad comment. Please go away if you don't know what you're talking about — sehe 9 secs ago
^ and flagged as unconstructive
(will remove my comment in a bit)
 
user784668
@R.MartinhoFernandes Anyway, I believe most people use printables.
 
You know guys, I feel really weird. Each time I see C++03 code, I just can't help but think "This code is bad"
 
Why would you be terrified by that?
 
that's because unique_ptr is the best thing since sliced bread
 
@sehe corrected
 
12:22 PM
I agree. Plain old C++ is just painful in comparison now
 
It's hardly better than C. wait ok too much
 
Xeo
The type_info was generated by typeid() which, in opposite to dynamic_cast, only requires a type but not a object. I solved the problem however by giving each node a void* which points to a testtype i can do dynamic_cast on. Its quite some memory overhead but will do for now. — David Jensen 5 mins ago
 
IMO, rvalue references are the most important C++11 feature by a very long shot
4
 
@DeadMG and their consequences obviously (such as unique_ptr)
 
12:23 PM
Well, unique_ptr and move semantics. Everything to avoid unnecessary copies between stack frames, with no stars involved.
 
@DeadMG This.
 
I mean
 
user784668
Rvalue references are irrelevant, OISC is fine without them.
 
I can do without variadic templates, constexpr, using aliases, etc.
but I'd throw a fit if I had no more unique_ptr
 
12:24 PM
Starless programming is much more fabulous.
 
it's also much more pleasant and safe.
 
user784668
@DomagojPandža yo mama's a four-star programmer
 
@Fanael My mother is an anti-tech 18th century relic.
 
lol
my mother can't operate the TV control
 
user142019
my mother can't operate Vim
 
12:26 PM
What were you expecting? She's a bitch.
 
user142019
Dat pun.
 
I think that Daisy probably could operate the TV control if she wanted to
 
user142019
Man.
 
@Zoidberg Eh? It's easy. You just shake it on, rub it in and rinse off.
 
@DeadMG With her teeth.
 
user142019
12:27 PM
Somebody here is drinking espresso and it instantly smells like I'm in an office.
 
@DeadMG Nah. They are certainly the coolest thing, but in terms of real usability, auto, for, variadics, template aliases top it for me. I'm just glad it's not either 'rvalue refs' or the other good bits: together it jells pretty well
 
I really want method deletion support in MSVC. Some code really shouldn't be default inited, it's not fun when I have to hide it around with hacks.
 
@DomagojPandža yea I mean how hard it is possibly to implement :/
 
user142019
@BartekBanachewicz With MSVC's probable code-base, almost impossible.
 
@DomagojPandža Merely declaring another ctor should be enough.
 
user784668
12:29 PM
@BartekBanachewicz Very. It's C++.
 
user142019
Microsoft you cock, y u no open-source compiler.
 
However, when C++11 would have just added move semantics without the other goods I mention, I would have certainly felt that C++ had become an (even) worse language - yes it's cool to have control, but adding control without convenience seems to be what got C++ it's reputation as a language for non-humans.
 
user784668
@Zoidberg show me a good open source compiler
 
is there a known algorithm which translates arbitrary code (e.g. llvm IR) into a finite state machine (loop&switch)?
 
@Fanael ...
 
12:30 PM
@DeadMG Are you insulting your own mother?
 
user142019
@Fanael D's compiler has a very easy-to-understand code-base.
 
@sehe IYAM, unique_ptr is the most convenience.
@TonyTheLion Yep.
 
@DeadMG and strongly tied to move semantics :)
 
@sehe Which is why rvalue refs is the most important feature in C++11.
 
user142019
12:31 PM
Even though they use .c for C++ source files. :puke:
 
user784668
@Zoidberg which one? DMD?
 
8 mins ago, by Bartek Banachewicz
@DeadMG and their consequences obviously (such as unique_ptr)
 
user142019
I think so, the one on GitHub linked from dlang.org.
 
@DeadMG you're going in circles. I already responded to that
 
user142019
DMD, yes.
 
user1357851
12:31 PM
mess with the best, die like the rest ... just have to say that
 
@BartekBanachewicz Wokay.
 
@sehe You're the one who went from discussing convenience back to rvalue refs.
I think that rvalue refs are the most important feature because not having unique_ptr is the most inconvenient and unsafe shit ever.
it's not circular at all
 
user784668
@Zoidberg only half open source then, the backend is visible, but the license disallows you from touching it. Unless something changed since the last time I checked.
 
user142019
Oh. :P
 
12:32 PM
@DeadMG Ok. Just a repeat then :)
 
user1357851
Anyone has seen this: it is hilarous
 
user1357851
 
The only problem with trules in C++03 was that the standard library (well any library whatsoever) didn't support the protocol.
 
@DeadMG Okay, I may be underestimating unique_ptr, but I feel you are underestimating auto, decltype, declval, noexcept(expr), range-for and variadics.
 
unique_ptr is not that fundamental.
 
BOOST_MOVE?
 
@sehe I haven't looked at it, but yeah, it probably uses trules (I see no other possible implementation)
 
@R.MartinhoFernandes I never think of Vim as female
 
user142019
Ohlol.
 
12:36 PM
@sehe The lack of those features would be annoying. It wouldn't cause horrible performance, infinite overloads for forwarding functions, and various double deletes/free bugs, not to mention non-copyability being almost a death sentence for a type's usability.
 
user784668
@Zoidberg Another lol: the front end is dual-licensed, one of the licenses being… GPL 1.
 
FTR, I consider type inference like auto and decltype to be just a little bit behind rvalue refs in terms of importance.
 
@DeadMG "It wouldn't cause horrible performance" - well, it does cause horrible compile-time performance, and I'm willing to bet it would cause bad performance indirectly, just by making static polymorphism so much more painful than with them.
 
decltype(return) for Merlin's pants!
 
@DeadMG unique_ptr doesn't help for forwarding.
 
12:37 PM
@DeadMG I do agree with the "non-copyable" paralysis thing. That's move semantics for me. Performance be damned, usable non-copyables, yay
 
@R.MartinhoFernandes Really? I thought that I was totally ignorant of unique_ptr and rvalue references and subsequently believed that unique_ptr solved the forwarding problem.
 
@R.MartinhoFernandes what are trules?
 
user1357851
true rules
 
drip drip
That's the sarcasm reaching the ground
 
And forwarding is done with universal references, which happen to have the same syntax as rvalue references.
 
user142019
12:39 PM
IMO the most important part of move semantics is the semantics, not performance.
 
user142019
Better performance is a nice side-effect.
 
@Zoidberg I agree, but I'm not gonna bitch about better performance.
 
lol. that's a nice way to rephrase.
 
@bamboon Transfer capsules. It's a way to implement moves without abusing the copy ctor like auto_ptr.
AFAIK it's what Boost.Move does.
 
user1357851
why not just copy the most used & acceptable part of boost and make it a part of standard C++14 library then
 
12:41 PM
@R.MartinhoFernandes aha ok, sounds like Dragon-Ball.
 
damn
I have so much to do with Wide.
 
user784668
@Telkitty The most used? Boost.Config would be useless in the standard.
 
Boost should be just bundled with compilers
 
user1357851
not
 
user1357851
then everyone has to specify a namesapce when using certain functions
 
12:44 PM
What
 
Xeo
what
 
user784668
what
 
Standardising only kills new features for N years
 
Oh gawd please make it stop.
 
what
 
12:45 PM
:)
@Telkitty Newsflash: that's how C++ has worked for over a decade.
 
user142019
what
 
why are you still responding to telkittyh now I have to click show posts again :/
 
I've either asked a really dumb question that no one wants to answer or no one understands my question or no one has an answer?
1
Q: C++ alignment - strict and weak

Tony The LionI'm reading N3485 C++ Standard Draft and in the section on alignment, it states the following: 3.11 Alignment [basic.align] 1 ... An alignment is an implementation-defined integer value representing the number of bytes between successive addresses at which a given object can be allocate...

 
hehe I know the feeling :)
Also, prepare to get battered by Lightness! You're being awfully passively aggressive (I think he prefers overt aggression)
 
user1357851
Well until now, I have been exclusively putting "using namespace std;" at the top of each class I need std for. But if boost is a part of a compiler, I might not able to do that
 
user784668
12:47 PM
@R.MartinhoFernandes eww mingw-rt and w32api
 
@Telkitty You suck.
 
@sehe robot got it covered ^
 
user1357851
@R.MartinhoFernandes no, I am lazy ...
 
@Telkitty First, you suck for using using namespace std;, and second you suck for not considering maybe, I don't know, using namespace boost;.
@Telkitty That's what I said: you suck.
 
@R.MartinhoFernandes Just plonk him
 
12:48 PM
@TonyTheLion You will probably have to wait until Bananaman/Zoid have read the spec. A 'Spec Reading Weekend' seems to be coming up, so you may get an answer on Monday :)
 
@TonyTheLion tl;dr in my case
 
@TonyTheLion -1 linkdumping
 
I usually don't care much about alignment
 
@DeadMG oh thanks :)
 
user142019
:0
 
user142019
12:49 PM
@TonyTheLion -1 not enough jQuery
 
@Zoidberg I could try to add some, but it would stop making sense altogether then
 
Ell
I fully qualify everything, but with boost asio it's becoming a joke! boost::asio::ip::tcp::acceptor and std::placeholders::_1
 
user784668
0
Q: Java or C++: Offset of highest 1 bit in an integer

NotinlistLet's not consider 0 or negative values for the sake of simplicity. Known solution #1 return (int)(Math.log(x)/Math.log(2)); // pseudo code Problem: Numerically unstable. For x=4 input it may answer 2 or 1. Known solution #2 for(int i=0; ;++i) { x = x >> 1; if(x==0) return i...

 
user784668
close votes
 
12:51 PM
use the auto, Luke.
 
boost is overqualified
 
user784668
@TonyTheLion const volatile boost
 
user142019
@TonyTheLion <!-- $.post('http://stackoverflow.com/posts/15833683/vote/2'); -->
 
user142019
HTML comments FTW!
 
@Ell namespace tcp = boost::asio::ip::tcp;?
 
12:52 PM
@Zoidberg lol
 
user1357851
anyone else getting the 3d version of this site?
 
Xeo
@Ell local using ns::X; or namespace Y = ns::nns;
 
user142019
@Fanael not enough language extension and not enough qualification!
 
user142019
const volatile boost* restrict
 
Ell
@R.MartinhoFernandes yeah
I shall do that at some point
once I've figured out my design properly
 
12:53 PM
This is safe because you can control whether there is or there is not a tcp in your namespace.
 
user142019
I use using namespace std::placeholders; (as locally as possible) when I need it.
 
Because you are coding inside your namespace, right?
 
Ell
right :)
 
@Ell And being able to drop a local using namespace std::placeholders; is exactly the reason why placeholders are in a separate namespace :)
 
user142019
@DomagojPandža ancientness :v
 
user1357851
12:54 PM
3d view of this lounge: telkitty.com/pics/myTemp/3d.png
 
@R.MartinhoFernandes It's not a namespace.
 
@Zoidberg adding "-ess" is meh
 
user142019
@BartekBanachewicz the original was and not .
 
user142019
:v
 
@Ell I hate that expression, I think.
 
12:55 PM
@LucDanton Well, then namespace ip = boost::asio::ip; or using boost::asio::ip::tcp; :)
 
@Zoidberg note the lack of `-ess". The point is not to create a noun every time
 
user142019
@BartekBanachewicz it's not about "-ess".
 
user784668
@BartekBanachewicz lackess of "-ess"
 
Xeo
tomaless?
 
There are just bonus points for incorrect syntax.
 
12:56 PM
@R.MartinhoFernandes Latter is a declaration though.
 
@R.MartinhoFernandes Defense of The Ancients much?
 
user142019
In C++ land we play Defense of the Moderns.
 
Defense of Two Decades Ago.
 
Zoidberg is correct. ancientness is proper here.
 
user142019
12:58 PM
Defense of the DotA.
 
@BartekBanachewicz That is the point! Or half the point. The rest of the point is to celebrate my patent beauty.
 
@R.MartinhoFernandes One.
 
@LightnessRacesinOrbit "Zoidberg is correct"?
7
 
user784668
@LightnessRacesinOrbit I am correct. You're all prescriptivists.
 
@R.MartinhoFernandes Tell me about it ;(
 
user142019
 
@R.MartinhoFernandes IMPOSSIBRU
 

« first day (902 days earlier)      last day (4050 days later) »