« first day (1393 days earlier)      last day (3572 days later) » 

12:01 AM
I think CMake fucked up
> -- Looking for include file pthread.h
-- Looking for include file pthread.h - not found
-- Found Threads: TRUE
 
@chris so...
who was right there?
in the end I mean
 
12:18 AM
lol Clang has C++1z status table.
 
What's after C++1z? C++2a?
 
I saw three wolwerines today, distance ~15m
 
Not in the zoo right? .... Just checking ...
 
In the wild
Hiking above timberline
 
Trivial Question: Is there a general guide line on whitespace in coding style? Do you put space between every word, between parenthesis and word?
Just curious and checking so that boss won't get mad of my code
 
12:27 AM
depends on your workplace
 
so it depends
I used to saw a guy putting whitespace between every operator and word in C
 
I do that.
I think a lot of people do.
 
Then I come to haskell and found the book teaches me not to do so ...
likewise no space between word and parenthesis, trivial though
 
ask your boss for the coding standard ... also utilize your common sense if you have any ...
 
I read an advice that I liked that says only put space between addition & subtraction
 
12:31 AM
sin ( x ) looks weird, sin(x) doesn't
 
a*b + c/d
 
@JohanLarsson I do that.
 
@milleniumbug yup
 
yeah that looks better
 
@JohanLarsson nah
@modeller Well. It depends, I guess?
Whitespace is significant in Haskell
 
12:31 AM
@milleniumbug reads better than parenthesises imo.
 
I see. got it
 
It's how it handles parsing function application
 
thx for tips
so there is no rule of thumb
 
12:47 AM
λ id(id(id(5)))
5
λ id(id(id(id)))id(id(id(id)))(id)5
5
@Rapptz etc.
 
hey guys any one have experience with mobiel apps?
 
@LucDanton I meant things like f a b + g c d
 
Yeah you didn’t say it was necessary.
 
Deadpool looks like fun.
 
#define stuff is the same as #define stuff 1 right?
 
1:10 AM
C++ :'(
It's killing meee
 
@Rapptz in that it defines the symbol stuff yes, although in the former stuff will mean nothing, whereas in the latter it means 1
 
user3079266
@bezzi lol, what happened?
 
tl;dr; maybe maybe not depends on the context
 
user3079266
@Rapptz as far as I know, it won't have any value, but #ifdef stuff /*do something*/ #endif will work
 
wth
error: invalid token at start of a preprocessor expression
    #if defined(TESTING) && (TESTING == 1)
                                     ^
 
user3079266
1:16 AM
@Rapptz umm, I never knew you could use such preprocessor commands
 
@Rapptz If that’s yours, try nested #ifs?
 
I was testing my hypothesis up there
 
user3079266
oh, I think it's the brackets that are causing the problem, could it be so?
 
nah I tried with or without
 
1:18 AM
it works
 
so what's up with my snippet?
 
either PEBKAC or your compiler is borked =/
 
user3079266
maybe preprocessor commands are not executed well inside functions on some compilers?
 
then everything known to man would be broken
 
user3079266
Have you tried running this code on other compilers?
 
1:20 AM
I think the preprocessor distinguishes between regular #define stuff and #define stuff 1 and maybe the former can't use operators.
@Mints97 the error I posted earlier was from clang, the coliru link is from gcc.
 
@Rapptz it seems youre correct
 
user3079266
@Rapptz I can't say anything about that, I've always used #ifdef instead of #if defined()
 
user3079266
and it worked all right with both
 
i removed 1 from my snippet and i got the same error
thats bullshit
 
@Rapptz Empty but non-nil? Certainly seems PHP-ish.
 
user3079266
should work in both cases, empty or not
 
user3079266
weird
 
user3079266
" #if defined (__vax__) || defined (__ns16000__)
would succeed if either of the names __vax__ or __ns16000__ is defined as a macro."
 
user3079266
#if defined BUFSIZE && BUFSIZE >= 1024
can generally be simplified to just #if BUFSIZE >= 1024, since if BUFSIZE is not defined, it will be interpreted as having the value zero.
 
Well. I guess that answers my question earlier.
 
user3079266
1:24 AM
it can even work with non-defined constants...
 
It seems #define stuff is fundamentally flawed lol
I'll remind myself not to use it anymore
 
Why do you need it to be one?
 
I wanted to see if I could simplify my complex expressions involving defined(stuff) with just stuff == 1 && ..
to save myself some typing
 
user3079266
From MSDN:

/* EXAMPLE.H - Example header file */
#if !defined( EXAMPLE_H )
#define EXAMPLE_H

class Example
{
...
};

#endif // !defined( EXAMPLE_H )
 
Not so much flawed as not what you need.
 
user3079266
1:26 AM
so basically this is most probably a compiler issue, since it IS supposed to work without a value
 
@Mints97 the defined(..) part works fine. It's the comparison part.
@LucDanton yeah I guess.
 
user3079266
@Rapptz well, whichever the case, this was enlightening, I'll remember to use nested if-s to avoid this trouble ;)
 
wtf... is Valve from the future? set(LibJpegTurbo_INCLUDE "${CMAKE_PREFIX_PATH}/libjpeg-turbo-2.1.3/include" PARENT_SCOPE)
On Sourceforge the last update is this year a few months back and it's at 1.3.1
although it could be a typo, as 2.1.3 is an "anagram" of 1.3.2 which would make more sense
 
1:45 AM
it occurs to me I've never seen what good code using error codes looks like
does it exist?
as I interact with more and more areas of code at work, I notice our coders are split between two general styles: functions return 0 for no error, and -1 for an error, and functions that log errors and return 0.
The Java code is in that second category btw.
except for the exceptions they use for flow control of course.
 
Plenty of reasonable code against Posix I would think. Can’t say anything springs to mind though.
 
I have low opinions of my coworker's code.
They're really nice people though, fun to work wtih
 
tool_trace_mode(vogl::vector<command_line_param_desc> *desc)
{
    VOGL_VERIFY(!"impl tool_trace_mode");
    return false;
}
damnit :( (the linux version works >.>)
well, theres an implementation at least... about 1k lines of it
 
i get an exception on this: virtual __CLR_OR_THIS_CALL ~basic_ifstream() _NOEXCEPT
{ // destroy the object
}
in fstream and I did research that it is a bug on the VS 2012
 
y u no get VS2013
 
1:57 AM
i need money
 
it's free
 
it is not free to upgrade
 
VS2013 express is free wtf
 
vs express is
 
i wonder if my the dream spark account is not expired...
 
2:06 AM
is there any reason why VS2013 express does not satisfy your needs?
unless you are working in a big team or do some really complicated stuff, I don't see why VS2013 express is not enough ...
 
@chmod711telkitty I don't know. I don't see why the big rush to convert.
 
that bug might be gone + new features
so unless you use addons, i dont see why you would stick with 2012
 
could be. But, it could be this issue I found here: daniweb.com/software-development/cpp/threads/204295/…
ah shit never mind.
better switch to VS 2013
I'm only opening and closing the file.
So yeah. Its a bug.
 
Next release of GCC aims to be GCC 5.0 apparently.
 
I thought it was 4.10.0?
 
2:12 AM
Good morning.
 
@Rapptz Atm it is. On the official page it’s listed as 5.0 though. So it could be tentative, or an error (lol decimal).
Anyway, anyone has a not-so-recent 4.10 build?
 
@LucDanton As long as the features justify the version bump, I'm okay with it.
 
Verified (Expires 2014-08-31)
yes!!!
getting the professional version for VS 2013
 
looks like it is going to be 5.0
@MarkGarcia It's confirmed to be ABI breaking actually.
Wakely said in 4.10 they're going to change std::string to be C++11 compatible
 
o.o they hadn't done that already?
 
2:14 AM
nope
 
@Rapptz Including their standard library?
 
I assume it’s going to be the final jump towards C++11. I don’t even remember if the support is still listed as experimental, or when that change happened.
 
I hope they fix their shared std::string implementation.
 
they are, I just said that :v
 
Xeo
holy crap it's 4am
 
2:16 AM
Oh, haha. Sorry.
 
Xeo
past, even
 
> GCC supports the original ISO C++ standard (1998) and contains experimental support for the second ISO C++ standard (2011).
From the 4.9.1 manual.
 
@Xeo why are you still awake? D:
 
maybe the manual hasn't been updated?
 
Xeo
@Borgleader gaaaaames
 
2:17 AM
@Xeo which ones?
 
wow, no 64bit VS 2013?
 
Xeo
Terraria, MC, SpeedRunner, VNs
 
Yeah that can happen too. Keep in mind that the library is part of the Standard though, hard to call the implementation anything but experimental at this point. Similarly C11 support is described as ‘substantial’.
 
How modest of them.
 
@cyberspace009 the IDE itself is and has always been 32 bit yes.
doesnt stop you from compiling your own code as a 64 bit
 
2:19 AM
Anyone mind reading this short draft of a defect-report and see if it's understandable? It's related to template argument deduction and some rather.. unintuitive behavior (as described in the post)
 
MSVC is 32-bit.
 
no biggie. Just wondering why.
 
tbh not being 64bit is the least of their problems right now
 
Xeo
@FilipRoséen-refp ugh special casing
 
@cyberspace009 For MSVC, in GoingNative, IIRC they don't really need it, though STL remarked to kill 32-bit.
 
2:20 AM
 
@Xeo special casing?
 
Welp, let’s spelunk to std::tuple_size.
 
I'm just going to sit here and wait for it to download.
 
There’s actually nothing exotic about the implementation. So I can’t just file the bug, I have to go deeper @_@
 
Xeo
@LucDanton I'd say front-end, since access to a nested member of an incomplete class still falls under SFINAE
looks like a regression
 
2:23 AM
bool isNaN() const                                           { return map(std::isnan).reduce(Or); }
bool isNaN() const                                           { for (const auto& e : data) if (std::isnan(e)) return true; return false; }
^ yup, I like this map reduce zip whatever stuff. :D
 
any isNan
 
Xeo
boost::any_of(r, std::isnan)
 
pff, nobody uses boost anymore~ :p
 
@Xeo what did you mean by "special casing" earlier?
 
@melak47 Which is why I used Haskell!
 
2:25 AM
@melak47 std::any_of(std::begin(data), std::end(data), std::isnan)
 
(It’s isNaN though.)
 
@Rapptz meh :p
 
Xeo
> and we are in a context of
feels like special-casing
 
@Xeo explicit template argument specification is already a special case in many regards, but sure; that's true
@Xeo but having template<class... Ts> void f (Z<Ts...>) and f(0) instantiate f<> void f(Z<>) might be a bit.. unintuitive
 
2:29 AM
@Xeo that's not right, is it? instantiation of an incomplete type is not in the immediate context
 
@FilipRoséen-refp If you switch the query to not involve a non-function type then SFINAE kicks in, so there’s something going on regardless.
 
Xeo
trying to access ::type of tuple_size in query is right there in the immediate context
 
@Xeo yes, but instantiation of tuple_size<void()> isn't
 
Xeo
uh what
 
we must still be able to instantiate the type since we try to look inside it
 
Xeo
2:31 AM
it's trying to access a member. the member is not there (due to the class not being complete)
it's the same as if the class was empty
 
Completing tuple_size changes nothing btw
Also the diagnostic points to the T const specialization.
 
@Xeo can you really have an incomplete type in such context? if so; TIL
 
Xeo
@LucDanton does throwing out voidify change the output on trunk?
 
What should I use instead?
 
Xeo
nothing, just directly try to access tuple_size::type
 
2:35 AM
That won’t select the right query spec though
 
Xeo
right, but we're concerned with wether it will still error
 
Same thing.
Alright, let’s get minimal-er.
 
Xeo
actually
do you need the T const specialisation?
 
Yup.
 
Xeo
k
 
2:37 AM
Also I remembered to add queries that involve non-function types, and work fine.
 
Xeo
what about this?
just trying to reduce the boilerplate
 
I wish something like this worked:
template<typename T>
void f() {}

using gi = f<int>;
I guess I'll use functors
 
Xeo
auto gi = []f<int>; // teehee
(ignore me)
 
@Xeo not anything else about the DR, do you feel the point comes across? (disregarding the potential resolution)
 
@Xeo Bugs out, same reason.
 
2:39 AM
since they solve a lot of the shortcomings in C++ functions..
the more time passes the more I like functors than regular functions
 
Xeo
@LucDanton Well, I think you can't get more minimal than that, then
 
But function-style SFINAE is fugly
 
whatcha mean
 
@Mysticial In case anybody cares, I've highlighted the one that looks like it must be me.
 
@Rapptz typename = /* gunk */ inside template<…>
 
2:43 AM
I do that for free functions too
 
@LoïcFaure-Lacroix Largely accepts--around a dozen to fifteen on an average day the last time I checked.
 
@LucDanton How do you do your SFINAE?
 
@Xeo I’m getting errors from f<int const>(0) too though.
 
Xeo
@LucDanton hm
 
@Rapptz Traits + EnableIf
 
2:46 AM
I do that too.
 
Making sure the traits are total.
 
I think I'm missing how functors make it ugly though.
Got an example?
 
Come again?
 
7 mins ago, by Luc Danton
But function-style SFINAE is fugly
I guess I misread this.
 
I prefer to perform SFINAE in class template specializations.
 
Xeo
2:49 AM
Hm, I think I should sleep.
it's almost 5am and I've been yawning almost constantly
 
You should.
 
@Xeo then sleep.
 
Xeo
but it's a free weekeeeeeend
 
are you doing anything fun now?
 
Xeo
33 mins ago, by Xeo
@Borgleader gaaaaames
oh well, I'll just crash and get back to it when I wake up
 
2:50 AM
play some horror games.
 
Xeo
yeahno
 
sweet
now if they could just release Half Life 3, that'd be great
 
Anyone with a recent GCC 4.9 for my final testcase? I think 4.9.1 is latest, Coliru has 4.9.0.
 
sadly this site only has 4.10 and 4.9: melpon.org/wandbox/permlink/xTI1a3ALjW62GZzt
 
3:03 AM
Eh that’s okay. Someone will bisect or whatever.
k this bug-hunt was annoying enough
you know what that means
 
3:29 AM
do i uninstall MCVS 2012 if im going to install 2013?
because 7 gb is a lot of space.
 
@cyberspace009 7 GB lol, VS is ~15 GB
 
i guess i should then
 
id keep 2012 for a few weeks just in case
unless you absolutely cant install 2013 without first removing 2012
 
im going to check that now.
 
@Borgleader Had no reason to go back.
Not to say that 2013 is that great though.
 
3:34 AM
@MarkGarcia Its more of safeguard in case idk, his 2013 installation ends up borked
call me overly cautious, but if he's in no rush to remove it, theres no harm in keeping it around for a week or two
 
I hope this will fix that compiler bug
 
Switching fixed one I ran into when using Eigen (something about incorrect alignment)
> the math checks out: Source 1 + Source 2 = Half-Life 3.
bahahaha
 
You don't need to uninstall an older VS to install the new one. They work side-by-side.
 
@Mysticial sweet.
 
If you have multiple versions installed, the newer IDE will let you choose which compiler to use.
Likewise the Intel compiler also integrates into VS and you can select it in the compiler dropdown menu.
 
3:43 AM
it seemed to be more of a space issue though
13 mins ago, by cyberspace009
because 7 gb is a lot of space.
 
@Borgleader I just got to delete some stuff.
that aptana ide i have is useless.
 
Basically, I have a machine with 2 versions of VS and 2 versions of ICC. VS lets me pick from like 5 different compilers. (the 5th being the Win XP compatibility)
 
I have 2010, 2012, 2013, 2 CTPs (2012 & 2013), and clang-vs
that gives me about a dozen to choose from xD
 
All I care right now if this VS 2013 will fix the compiler bug. It is hindering my progress in this project.
 
I'm mad that GCC doesn't have an intrinsic that I want.
 
3:54 AM
add support for it ;)
 
^ Is this a well-known song in US?
Just curious.
You only need to listen for 10 seconds.
 
@StackedCrooked Not that I know of. I listen to chiptune everyday.
 
It's an old song.
1987
 
This one is is from 1980 and I've heard it tons of times.
 
4:09 AM
> Thank you for reviewing 20 low quality posts today; come back in 19 hours to continue reviewing.
:(
 
Good job boy.
 
@StackedCrooked Doesn't sound familiar to me at all.
 
I still think 20 reviews is way too low.
 
I've asked this before, but I didn't get an answer. Is there a way to output all boost libs to the same folder, e.g. boost\bin instead of boost\bin.v2\libs\$(LibName)\build\$(Compiler)\$(Target)\$(Linking)\$(Threading‌​) ?
 
@JerryCoffin Ok. This is her biggest hit..
If you haven't heard that one, then my world view will undergo drastic changes. (It's not a particularly good song though.)
 
4:15 AM
@Borgleader That'll make CMake cry.
 
I found --build-dir but I'm afraid it might just keep the same structure, but use another directory as output (instead of boost\bin.v2\libs)
@MarkGarcia Why? All the libs have unique names =/
libboost_atomic-vc120-mt-gd-1_55.lib
 
@Borgleader CMake's so dumb.
 
@StackedCrooked I think I've heard that before -- but only when I was in Europe. I'm pretty sure there must never have been a contract to distribute it in the US.
 
I see.
It's been overplayed here. I can't hear it anymore.
@JerryCoffin She's also this person. (Not a super performance but it won Eurosong!)
 
@StackedCrooked I think over-playing anything that gets reasonably popular is pretty close to universal.
 
4:19 AM
Now that you say.
I recognize this pattern :)
 
5
A: Problem Linking Boost Filesystem Library in Microsoft Visual C++

ScottFerruccio's answer contains most of the insight. However, Pukku made me realize my mistake. I am posting my own answer to give a full explanation. As Ferruccio explained, Filesystem relies on two libraries. For me, these are: libboost_system-vc90-mt-gd-1_37.lib libboost_filesystem-vc90-mt-g...

 
Oh, wait, have you hear of Eurosong?
 
apparently what I'm looking for is stage
 
crossing my fingers
 
@Borgleader Are you a performer?
 
4:21 AM
@StackedCrooked Hmm...must have been quite young at the time (and by 1980 must already have been a bit older than many pop singers).
 
@StackedCrooked Yes, I perform miraculous puns for everyone to laugh at ;)
 
@StackedCrooked No, but I live under a rock, with no access to a radio, television, or any other electronics.
 
Teaching a newblet OOP is frustrating ...
 
@JerryCoffin Good old analog Internet eh?
 
...
not sure you are joking, there was analog TV and there was digital internet
 
4:25 AM
@JerryCoffin I saw "Saturday Night Live" for the first time one week ago.
Even though the term sounded familiar I had no idea it was comedy.
 
fuck
its my shitty code not the compiler.
hmmmm, I wonder....
 
@cyberspace009 You are the 99% :P
 
@StackedCrooked lol
 
@StackedCrooked Not merely analog, but non-electronic. Fortunately, my ISP supports RFC 6214, so at least I get IPv6.
 
4:31 AM
I expected you to post rfc1149 for some reason..
 
@StackedCrooked You haven't missed much. It hasn't been good comedy in decades.
@StackedCrooked Nothing but the latest and greatest for me!
 
hehe
> Implementations SHOULD NOT even try to use stateless address auto-
configuration [RFC4862].
I never found the IP over avian carriers very funny. But IPv6 version is more entertaining.
Maybe because I spent the last couple of months implementing parts of IPv6.
So it's all very familiar.
 
@StackedCrooked ...at least in its normal form.
 
no one comes to my open house ~_~ ... although this is not the first time or the first property to which this has happened
 
@chmod711telkitty Offer free beer. The house will get trashed, and the people who come won't be the ones you want--but somebody will most certainly come!
 
4:43 AM
I am thinking more along the line of further reducing the rent for the first 6 months...
also need to sugar coating the advertisement more ...
 
Sounds like excessively conventional thinking to me. From what I recall of your run-ins with the neighbor lady, you need to look for some of the (probably many) people who she's pissed off, and offer them a chance to live next door in a house she resents even existing, so they can piss her off every day without even trying.
 
@JerryCoffin don't worry, the construction project will sufficiently pissing her off ... she said she wanted to build a secondary dwelling, I look at her irregularly shaped piece of land I was laughing my butt off inside "haha, good luck with it!"
 
@chmod711telkitty Yes, but you're missing the point. You need to take advantage of it. The right renter will probably pay a premium for the privilege of being the one to make her life miserable.
 
template <class Elem> void sort(Array<Elem> store)
    {int num_elems = store.GetSize();
      for (int i = 0; i < num_elems-1; i++)
          for (int j = i+1; j < num_elems; j++)
              if (store[j-1] > store[j])
                  {Elem temp = store[j];
                    store[j] = store[j-1];
                    store[j-1] = temp;}}
That style..
 
4:53 AM
@StackedCrooked s/t s/t lack of s/
 
It's like code with gravity.
 
@StackedCrooked Wow, like heavy, man!
 
It also weighs people down.
 
Well, I think I'm off to bed. Good night all.
 
Good night.
 
4:59 AM
night
 
5:13 AM
I'm not going to sleep until I solve this problem....
 
@cyberspace009 Reminds me of this verse
> The next morning some Jews formed a conspiracy and bound themselves with an oath not to eat or drink until they had killed Paul.
They didn't get to kill him. So I wonder if they died from starvation.
 
@StackedCrooked I see your point. Sleep is important.
 
lol that's not my point
It's 7 am here and haven't slept yet.
 
I can collapse or make my code worse.
@StackedCrooked 7am. How?
coffee
 
Europe?
Monitor brightness too I think.
 
5:22 AM
"4 loaded Doritos for $1.99!?! Sweet deal."
more like shitting water out of my ass if I hate that crap.
 
5:41 AM
@StackedCrooked I had this mildly interesting thought for a while: 1 to 3 is 1 2 3.
 
@MarkGarcia lol, took me a while
 
It’s certainly mild.
 
TIL the word poppycock.
 

« first day (1393 days earlier)      last day (3572 days later) »