« first day (1011 days earlier)      last day (3940 days later) » 

5:00 PM
Yes, I cleaned and rebuilt.
 
@StackedCrooked ikr; I get that all the time with vim emulation layers
Also, plugins.
 
Let me remove the preprocessor define and see what happens.
 
@StackedCrooked Sounds about right. The only thing that could be worse would be a perfect emulation of VIM.
 
@ThePhD I am not even surprised.
 
@ThePhD inb4 kaboom
 
user784668
5:00 PM
error: unknown attribute '__externally_visible__' ignored [-Werror,-Wattributes]
 
@JerryCoffin You sound like DeadMG.
 
user784668
Clang, why do you define __GNUC__ if you're not compatible with GCC?
 
user784668
What 4.2?
 
@StackedCrooked No -- he could cite at least a dozen things that were worse (starting with his digestion).
 
Xeo
5:01 PM
GCC
 
Ahh fuck it's taking forever to recompile because it's rebuilding the whole goddamn engine. ._.
 
@JerryCoffin lol, that's mean!
 
@StackedCrooked ...but true.
 
@ThePhD Wait, it's not done yet?
How do you know it's working?
 
5:02 PM
@ThePhD I got a warning just like melak.
 
@JerryCoffin Now you sound like him again :)
 
user784668
@R.MartinhoFernandes this attribute was introduced in 4.1.0
 
@R.MartinhoFernandes I rebuilt it the last time and then reported back.
Also, it finished with no warnings or errors.
Throws up hands. I give up.
I don't know what to expect from this compiler anymore.
But at least it's working.
 
@StackedCrooked Damn. Next somebody's going to be demanding virgin sacrifices from me.
 
5:03 PM
@Fanael: It is compatible with GCC 4.2.x.
 
@JerryCoffin Ok, now you are Jerry again.
 
@Fanael: Clang also defines own __clang (IIRC) symbol.
 
@Fanael Oh well.
 
Now I can get back to focusing on reflection~
 
Sigh.
Kid needs array with runtime size => cue answers with new
1
Q: C++ Error in array of pointers

user2320928I have a piece of code: int CPUs = GetNumCPUs(); FILE *newFile[CPUs]; I got an error. It marks 'CPUs' on the second line and says: "expression must have a constant value". I have tried to use const but it is not working.

 
5:05 PM
how trivial would it be to scrape a website with boost asio? Or should I be looking at a different library?
 
I thought we were past this on SO :(
 
Eternal September?
 
@MooingDuck Asio has no HTML anything.
 
Xeo
@MooingDuck Define "scrape"
 
@StackedCrooked Maybe next I should work on my Cat impersonation (as if "work" and "cat impersonation" made any sense together -- or even "cat impersonation" made sense, though "imcatation" would probably have left you puzzled).
 
5:06 PM
@Xeo There's no such thing...
 
Xeo
Wait, HTML
I should read more carefully
 
@JerryCoffin I never considered those things.
 
user784668
@R.MartinhoFernandes so a bug, should I report?
 
But you are right.
 
@MooingDuck Not terribly difficult, but cURL would probably be easier -- and wget easier still.
 
5:07 PM
@R.MartinhoFernandes does it need html? Can't I just send a request thingy and it replies with the html?
 
@MooingDuck That's not what scrape usually means.
 
@R.MartinhoFernandes Mine had the new to explain why it was wrong, but proceeded to suggest vector. But i deleted it cuz no way i was going to get an accept out of that, too many competing answers
 
It usually involves some sort of extraction of data from the HTML for easier machine consumption later.
 
@StackedCrooked ...and who would I sound like if I said "of course"? :-)
 
@R.MartinhoFernandes I assumed I would have to code that part, I didn't think a library would help with that
 
5:08 PM
@JerryCoffin Animal impersonation however, seems to be an accepted term.
@JerryCoffin DeadMG
But slightly off.
 
@Borgleader There's even "You should dynamically create the array with new[]" (emphasis mine)...
I just go and mark them all as "not useful".
 
@StackedCrooked I was thinking that sounded closer to Lightness, but not really quite right for either.
 
@JerryCoffin Yeah, that's a nice observation. I think so as well.
 
@StackedCrooked Yet again, English proves to be fundamentally insane.
 
Saying something like "of course I'm right" is a way to lighten the mood. Not really dead's style.
 
5:13 PM
I need to get the boost libraries for VC11 :/
 
@JerryCoffin That's not even an extreme example imo.
I recently thought about how the word "hardly" can not be used as an adverb for "hard".
I.e. it's hardly raining.
 
uhhh what do i use for mod(long,double)
fmod doesn't seem to work well
 
@Borgleader Unfortunately, you recommended a vector<FILE>, which (unfortunately) is wrong -- you only ever deal in pointers, not actual FILE objects.
 
wait nvm stupid casting i think
 
@StackedCrooked Not to mention the fact that "hardly raining" is essentially the opposite of "raining hard".
 
Xeo
5:15 PM
Meh, I need to go buy stuff, but I'm feeling lazy :|
 
@JerryCoffin Yeah, I noticed that after I deleted my answer.
 
@JerryCoffin Indeed.
 
Xeo
Not to speak of the rain
 
Thx guys :) I used FILE **newFile = new FILE*[CPUs]; Now it is working :) — user2320928 2 mins ago
FFS
@Xeo Sadly, "It was raining" is not an excuse that stomachs tend to accept.
 
> Mitch: "I didn't lose a leg in Vietnam to serve hotdogs to teenagers". Teenager: "You have both your legs" Mitch: "Like I said... I did not lose a leg in Vietnam."
 
5:17 PM
Can I just download "libboost_*-vc110-mt-1_54.lib" somewhere off the net? :(
 
@R.MartinhoFernandes I think we need to ask/beg/plead on meta for the ability to stamp answers tagged C++ as "Lounge approved" or "Lounge Condemned".
 
@JerryCoffin we could just use the comments and upvotes, which is what meta will tell you
 
We should rename to Chamber of C++ so that it has the official sound. :)
 
@JerryCoffin Friday.
@wilx "High Chamber of C++"
 
@R.MartinhoFernandes Indeed.
 
5:19 PM
Let's not be scarce on pomposity.
 
@MooingDuck That only reflects individual opinions though. As much as we disagree on nearly everything, our actually agreeing to something like that should carry (quite a bit of) extra weight and is worth noting.
 
@JerryCoffin And and formal punishments for those who are stupid. And rites and chants.
 
@JerryCoffin when we agree those comments should have lots of upvotes, and get pretty colors
 
@wilx But that's only the informal name. The formal one must be at least fifteenfold longer and include "And" somewhere in it.
 
5:22 PM
T_____________T fmod isn't working on a long i give up
 
(You know, like "The United Kingdom of Great Britain and Northern Ireland")
 
@EiyrioüvonKauyf fmod doesn't take a long, it takes doubles
 
:)
 
i'm doing fmod(long, double)
sighg
*sigh
 
It would be nice if conversations which are not the one that you are currently taking part in would be grayed out.
 
5:23 PM
@EiyrioüvonKauyf include the right header?
is boostpro completely gone now?
 
@EiyrioüvonKauyf That should be fine (though the long will be converted to double before the call).
@StackedCrooked Or at least each conversation given a unique color.
 
Something like that.
 
@JerryCoffin (oops nevermind)
 
It would probably be doable to implement with user scripts.
 
@EiyrioüvonKauyf what are you trying to do? Why do you think you need fmod in the first place?
 
5:25 PM
@JerryCoffin doesn't work
this makes me mad
T_T
 
@EiyrioüvonKauyf works fine, after conversion
 
uhh basically timespec.tv_nsec += fmod(number, 1e9)
 
@EiyrioüvonKauyf In that case you probably haven't included the correct header.
 
@EiyrioüvonKauyf use number%10000000000 instead?
 
#include <cmath>
 
5:26 PM
How does it not work? Does the compiler give an error message, or do you get a wrong answer, or what?
 
wrong answer
 
52
Q: Find out who's going to buy the croissants

Florian MargaineAt our company, we have a rule: each one of us has to buy the croissants once in a while for everybody. Now we'd like to be a little more regular about this. And last friday, both of us bought the croissants, and some almost went to the bin because there were too many. Hopefully, I sacrificed ...

 
> demonstrate a minimal understanding of the problem being solved.
lolwut
 
(gdb) p fmod(10,3)
$3 = 0
(gdb) p fmod(10,3)
$4 = 0
literally i must be doing something stupid; this isn't possible
 
5:30 PM
@EiyrioüvonKauyf what output did you expect?
 
> Hopefully, I sacrificed myself.
what
 
@MooingDuck 1
10 mod 3 is 1
10.0 mod 3.0 should be close to 1
wtf is this ????
 
@EiyrioüvonKauyf ah, so you don't know what fmod does. That explains it
@EiyrioüvonKauyf 10 mod 3 is 1. 10 fmod 3 is ~0.0000001, which prints as zero.
 
@EiyrioüvonKauyf mod and fmod are very very different things
 
5:32 PM
....
 
@EiyrioüvonKauyf So it would appear.
 
@EiyrioüvonKauyf if you want modulo, simply use modulo
 
@MooingDuck Say what?
 
but but but :c
also how do i do decimal modulos
 
@KeithS "Consider" as used here is a weasel word - gee. Is that so? I had no idea. Thanks. I hadn't spotted the "rhetorical" markdown rendering (perhaps it is my browser that doesn't support it) — sehe 51 secs ago
 
5:33 PM
@EiyrioüvonKauyf with the % sign?
 
^ this was so much fun
 
@MooingDuck very funny
 
@EiyrioüvonKauyf think about it. what is 10.0000/ 3.0000? The answer is 3.3333. The remainder is 0.00001
@EiyrioüvonKauyf I was 100% serious
 
@MooingDuck Ok. Now try p ceil(3.8)
 
@MooingDuck wut. By that definition, it should always return zero.
 
5:34 PM
@MooingDuck That's not how the compiler sees things at all. ideone.com/em6DQf
 
@Mysticial no, it always returns a value very very close to zero, due to floating point error
 
@MooingDuck Then what's the point of fmod if it always returns 0 or a number very close to zero?
 
@JerryCoffin wait, that seems conclusive that I'm completely wrong
3
 
yes
also % is not defined for non integers
also T________T wtf
 
I should have taken the rep instead, of course:
 
5:36 PM
@EiyrioüvonKauyf anyway, convert both sides to integers
 
Turns out I totally misunderstood what fmod was for :(
 
10 % 3.2
hmmm?
 
user784668
@sehe looks wrong
 
@EiyrioüvonKauyf given my new understanding of fmod, yeah, those results aren't possible
 
5:36 PM
@MooingDuck no
if C++ can be the backend for god knows what math
it can do this
 
(gdb) p 7 % 4
$4 = 3
<whistle/>
 
user784668
@sehe question's about const Foo& foo = makeFoo();, not the references to temporaries passed to function and such
 
Jan 17 '12 at 18:52, by Stephen Canon
- the result of fmod(x,y) has the same sign as x, and magnitude less than y.
 
... boost::math::tools::fmod_workaround( lollllllllll
it makes me feel happy that other people have gotten annoyed by this
 
god, Minicraft code is so terrible
 
5:38 PM
@ScottW return A-(A/B)*B effectively
 
@EiyrioüvonKauyf SSCCE time.
 
@EiyrioüvonKauyf So what broke your fmod?
 
it's amazing how much progress I've made in 3 months again
 
user784668
@BartekBanachewicz so why did you write it?
 
@Fanael because I didn't know better at that time
Now with "all that I know" from last 3 months it's gonna be better.
 
5:39 PM
@MooingDuck For an integral (A/B)
 
like, with proper error handling for one
@ScottW hm, wow.
 
@R.MartinhoFernandes I didn't know about that part
 
user784668
@BartekBanachewicz lol
 
@Fanael what's so funny about it?
 
@ScottW Prout.
 
5:41 PM
@Mysticial do mod(10,2.4) ~ i expect a double > 0.
.4 in this case
 
fmod(10,3) actually fails to compile for me.
> error C2668: 'fmod' : ambiguous call to overloaded function
 
use fmod(10.0,3.0)
 
@Mysticial not-C++11-y enough.
 
or manually force doubles
 
C++11 has a template overload that promotes everything to doubles or long doubles as needed.
 
5:44 PM
i'm not using C++11 lol
gcc 4.4 :'D
 
cout << fmod(10.,3.) << endl; will print 1.
 
@EiyrioüvonKauyf then you suck
 
ok now do fmod(10,2.4)
 
@EiyrioüvonKauyf -std=c++0x
 
@BartekBanachewicz no it's because the lead is using old libraries from some other place
that may break with C++0x
 
5:44 PM
:V
 
@EiyrioüvonKauyf have you tried?
 
and you know what happens when you're the intern
yeah
 
@EiyrioüvonKauyf 0.4, as expected.
 
user784668
@EiyrioüvonKauyf so tell the lead to become thallium
 
5:46 PM
funny
 
damn, this code is really getting better
 
@EiyrioüvonKauyf Sure.
 
just changin old engine wrappers to GLDR shortens the code by the factor 2-4x
 
@BartekBanachewicz who wrote it?!
 
@sehe me from 3 months ago.
 
5:47 PM
:)
 
@BartekBanachewicz That guy is an asshole.
 
@R.MartinhoFernandes I think I've improved my social aspects too :S
a tiny bit.
 
hmph
 
A: "Whoever wrote this code was clearly incompetent. It needs to be thrown away."
B: "But you wrote that code!"
A: "Upon further examination, we've found that this code is as good as could be done with the available tools. We all need better computers."
 
Does static_cast<T>(u) invoke an explicit T(U const&) ctor?
 
5:51 PM
ideone.com/7nrMYP @JerryCoffin
 
Or is there an asymmetry in explicit ctors/explicit operators?
 
user784668
@R.MartinhoFernandes TIAS?
 
user784668
@R.MartinhoFernandes An expression e can be explicitly converted to a type T using a static_cast of the form static_cast<T>(e) if the declaration T t(e); is well-formed, for some invented temporary variable t (8.5).
 
user784668
That's 5.2.9/4.
 
@EiyrioüvonKauyf ideone.com/LQ6FhT long meh = 1e12; isn't what you think it is. fmod is correct there.
 
5:56 PM
awww fridge
so what could it be -.-"
 
@EiyrioüvonKauyf long long meh = 1e12;
 
maybe because 3 different types are being unhappy hmm
 
@EiyrioüvonKauyf ideone.com/NP6gEy
 
@EiyrioüvonKauyf did you look at what I posted?
 
yesyes
i'm wondering why mine comes out to 0 in my prog
 
user784668
5:57 PM
@EiyrioüvonKauyf undefined behavior
 
could type overflows happen and no one tells me aobut it?
 
user784668
@MooingDuck everything is correct there, UB
 
no one e.g. gcc
 
@EiyrioüvonKauyf bad karma
 
@EiyrioüvonKauyf yes, undefined behavior is often silent
 
5:57 PM
@EiyrioüvonKauyf "buffer overflows"?
 
:)
 
user784668
4.9/1: "A prvalue of a floating point type can be converted to a prvalue of an integer type. The conversion truncates; that is, the fractional part is discarded. The behavior is undefined if the truncated value cannot be represented in the destination type."
 
It's ok. Just - slow down
 
implicit type overflows lol
 
5:58 PM
@EiyrioüvonKauyf oh, yeah those are always * silent
 
*always on most modern x86 blah blah blah
 
shit; would valgrind detect it?
 
@EiyrioüvonKauyf I don't know if valgrind detects that or not
 
@ScottW YOU CAN'T DO THAT I LOVE YOU q_q
 
5:59 PM
@MooingDuck Nearly always, anyway. Some compilers can/will warn you about something like char a = 12345;, where the overflow can be detected statically.
 
@ThePhD clearly you must show him how much
 
user784668
@MooingDuck -ftrapv
 

« first day (1011 days earlier)      last day (3940 days later) »