« first day (1479 days earlier)      last day (3471 days later) » 

6:00 AM
drinking doesn't make people stupid, stupid people are born stupid. no, it's 5pm for me & I have not been drinking
 
the what the heck did you mean by that?
 
meaning people don't sleep face down because they can't breath easily that way ...
 
^ this is how you sleep face down and not be dead
You can also sleep on the side
 
yeah ... women always sleep in their pushup bras ...
 
That's not a pushup bra...
 
6:05 AM
you would know, kiddo
 
It seems you are the one who does not know.
 
you guys should fight in pushup bras
 
I accept.
 
user1646075
On very close examination, I see evidence of a strapless pushup. Points, kitty.
 
@aclarke very close examination eh
 
user1646075
6:07 AM
@chmod711telkitty certainly if it's in a pool of your own vomit, you'd be dead
 
user1646075
or someone else's for that matter. Somehow, that seems even less dignified.
 
I wonder if some of my online enemies still have pictures of me in pushup bras stored on their hard drives, in which the case I would be really flattered ...
 
user1646075
@StackedCrooked I looked at the pixels
 
user1646075
@chmod711telkitty I believe it's available on memegenerator.org
 
some of them had those pictures for 6-7 years
 
user1646075
6:08 AM
@chmod711telkitty in their /b/ directory.
 
user1646075
oh wait, now I'm gonna get flagged
 
lol
 
now think about it, it could even be 10 years ... I took those pictures when I was really young & now I am really old .. not really really, just sort .. kind of really @_@
 
user1646075
@MarkGarcia s/ke/ck/
 
user1646075
6:12 AM
@chmod711telkitty I gotta admit, I've never felt older than I do today.
 
@aclarke That's now invalid. :P
 
user1646075
@MarkGarcia haha all i see is boxes. Jokes on you!
 
Yes, but I doubt if it's on me. ;)
 
user1646075
丂o ᄊム刀リ 尺乇イム尺d丂, 丂o キ乇w ズノレレキレムg丂
 
I felt old for a long time, I don't care any more. Your grandma is old, fat & very very aggressive!
 
6:15 AM
@aclarke so few killings?
 
user1646075
@chmod711telkitty my grandma is dead. Dead!
 
user1646075
killflags
 
@aclarke I can only read retard.
 
user1646075
@MarkGarcia durp
 
6:15 AM
@MarkGarcia it's "retards" ;)
 
user1646075
A rephrasing of "so many assholes, so few bullets"
 
@Jefffrey But then my sentence would validly read like I'm reading retards.
:)
 
user1646075
Ki ọpọlọpọ awọn kẹtẹkẹtẹ ihò, ki diẹ awako.
 
Can anyone please tell me why this code segfaults: codepad.org/fiEs6UkM
 
user1646075
@SpeedCoder Not enough cowbell.
 
6:20 AM
@aclarke what's a cowbell?
 
Oct 16 at 4:00, by Mark Garcia
s/Segmentation/It's your/
:P
Oh wait you won't probably get it.
 
good point
i diden't got it
 
user1646075
 
user1646075
Where Fever = Segfault, Prescription = Debugging, Cowbell = RTFM
 
well, I suppose I am learning way more than c++ here
 
user1646075
6:23 AM
unlikely to learn C++ here, we're all noobs. The experienced guys left in disgust
 
@MarkGarcia lol
@aclarke Substring "Cowbell" not found
 
user1646075
@Jefffrey Well, the code he posted rings a bell...
 
Dang, even VS express is 4GB+. :(
 
> class str_manager
lol
 
simplified version, : codepad.org/8tAeoWnI
@Jefffrey :(
 
6:26 AM
@SpeedCoder What's the purpose of that class?
 
user1646075
@SpeedCoder roun'd these 'ere parts, people jes plum don' like managers.
 
Just use a using string_tuple = std::tuple<std::string, std::string>
 
user1646075
and maybe a vector or 10
 
this is a simplified version, not the actual code (Instead of posting 200 lines)
 
> str_caller(unsigned int max, std::string a, std::string b, const char* b0, const char* b1, const char* b2, const char* b3)
what the actual fuck
> (str_manager*)calloc(max, sizeof(str_manager));
oh boi
calloc in C++
what could possibly go wrong
 
6:29 AM
I need some strong coffee.
 
i need more strong drugs right now
@SpeedCoder What is the purpose of str_manager and str_caller? Also please post the entire code anyway.
 
@Jefffrey AHA, it's because I am mixing a string and size of
 
that's absolutely horrible code
the fact that it crashes is a feature
what are you trying to do?
 
user1646075
... in words please. Simple spec.
 
I am actually learning
and trying some simple programs
anyway, I am not sure I get why the calloc crashes with sizeof(class with string)
 
6:33 AM
don't use calloc in C++
calloc is C stuff
 
user1646075
looks like a vector old chum. Go check out those beasties.
 
@Jefffrey thanks, but why my code crashes exactly?
 
I don't know
I refuse to debug C code
wait
doesn't calloc init all memory bits to 0?
 
yes
 
so what is str_manager_array[i]?
 
6:38 AM
not sure why this is wrong?
ultra simple version: codepad.org/VydeNVoL
 
I'm not sure what you expect from that calloc to be honest
 
yes, but it's not the same
 
what is not the same?
 
I am never reading the string
 
that's your problem
@SpeedCoder yes you are, when you decide to call operator= on it
 
user1646075
6:42 AM
@SpeedCoder it shows that a string doesn't like being all zero's, or not constructed properly, or .....
 
To be honest, this error is really weird
 
also an std::string object initialized with all 0 is not guaranteed to work AFAIK
it seems super implementation defined
 
@Jefffrey can you provide more info about this?
 
I'm claiming that there's no info regarding this
 
Actually, I was trying to post this as a question I can't post more than 1 in 90 minutes.
 
6:45 AM
listen, calloc is not C++
if you really have to use dynamic memory use new
even better use any other standard object
 
thanks, I understand my code is a mess, but I don't understand why it crashes
 
I know you kids are sexually attracted to pointers, but you'll eventually grow out of it
 
I edited my ultra down voted question: stackoverflow.com/questions/26708257
@Jefffrey hahah xD
Maybe I will end up with -100?
 
nah
@SpeedCoder you shouldn't use malloc/calloc when allocating memory for C++ objects. — vsoftco 18 secs ago
oh hey
sounds familiar
that's your answer
 
I actually asked for an explanation, I understand how to fix the error
 
6:50 AM
new allocates memory for your objects and calls the constructor
malloc doesn't know what a constructor is
 
@SpeedCoder malloc/calloc just allocate raw memory, but do not invoke any constructors. If you use Foo* foo = new Foo, then first operator new is allocating raw memory, then new operator is invoking the constructor in that allocated memory. — vsoftco 31 secs ago
this
 
yes, I saw that one
thanks guys, I learned my leasson
 
@SpeedCoder now delete your question while you can
so that you get your rep back
 
@Jefffrey thanks for the tip
 
np
 
user1646075
6:51 AM
@SpeedCoder ok, since calloc initializes your memory to all zeros, then alllll of the members think they are initialised and are all zero bytes, which happens to cause an explosion for string class. Assigning to them later is obviously falling foul of whatever is going on under the hood. Which we pretend to (or actually don't) understand
 
it's just as simple as using an object which was not inited by a constructor
why didn't I think of that
 
@aclarke so, it actually seems like the error is in the string class being confused?
 
Fighting bears :D
in the streets
 
user1646075
@SpeedCoder very confused. It's expecting there is a floor in the house, but when you step inside to deliver pizza, you fall into the pits of hell.
 
@SpeedCoder the error is that a valid std::string object is only constructed by calling std::string constructor; calloc has not concept of a constructor, therefore it doesn't call it;
 
6:54 AM
To be honest, I got somewhat what the error is but I don't understand exactly why and how. Also, my question was pretty interesting, it should't have gotten -5
 
sorry kid, it wasn't interesting
 
@Jefffrey first of of all, what string are we talking about, this: private: std::string a; ?
 
it's boring segfault caused by not other than C stuff
happens hourly here
 
@Jefffrey hahha, then why it takes you guys so long to find out what happens?
 
@SpeedCoder because we don't give a crap about C stuff
it's boring shit
 
6:56 AM
sure, but string wastes memory
 
lol
how so?
 
it takes min of 32 bytes
 
no it doesn't
 
@SpeedCoder you mean 32 bits?
 
no :/
 
6:57 AM
3 pointers.
 
8 bytes on my machine
 
Just encountered this in 2013 Pro. Thought I was doing something wrong; didn't expect to find out that it was a bug. Crazy. :/ — Fortyseven 1 hour ago
 
^ deserves a medal for best-preserved bug VS
 
@MarkGarcia 2?
or maybe 1 and an offset
 
6:58 AM
why then the guy in SO gets 32?
 
@SpeedCoder ludicrous in general. But yeah, it's not unheard of
@SpeedCoder gets*
 
> Some std::string implementations save very small strings directly on the stack in a statically sized char array instead of using dynamic heap storage.
 
@Jefffrey Depends on implementation. Lemme see...
 
@SpeedCoder Did you not even read the answer?
 
@MarkGarcia definitely
 
6:59 AM
@SpeedCoder why don't you read that answer?
 
@MarkGarcia 24 bytes on libc++!
 
The size string allocates is not really my concern. My point is, many (not all) C++ functions are slower than the C ones and that's a reason to use the C.
2
 
Lowest quality bait of the day.
 
@Rapptz Yes. Start, size, capacity.
 
> the C
 
7:01 AM
ones
 
But I forgot how to set the standard library of GCC/Clang. :(
 
user1646075
@SpeedCoder not really. You think strlen is fast?
 
@SpeedCoder how so?
 
cout vs printf
 
Protip: Don't take low quality bait
 
7:02 AM
@Rapptz I don't think he is baiting
 
He is.
 
@SpeedCoder what about it?
 
Come on now.
 
who is bating?
xD
 
user1646075
@Rapptz innocence.
 
7:03 AM
Are you that bored that you're going to answer to someone obviously baiting?
 
@Rapptz actually I am bored indeed
 
@SpeedCoder Example: strlen is fast, but if you call it many times on the same string then poof your perf disappears.
 
user1646075
Sometimes a cigar is just a cigar.
 
but I still don't think he is baiting
 
who?
 
7:04 AM
Even if he wasn't baiting, it doesn't matter because the statement in general is bait and you're all taking it.
 
@SpeedCoder what do you mean by "cout vs printf"?
 
user1646075
@Rapptz watch as the fish rips the fisherman into the raging torrent.
 
@Jefffrey cout vs printf
 
yeah, ok, he is trolling
 
user1646075
you mean << vs printf maybe
 
7:05 AM
yes
 
On a completely different topic.
 
user1646075
stats or it didn't happen
 
GitHub avatars aren't working anymore for me
Anyone else?
 
I actually wonder why those stuff are so slow
 
user1646075
@Rapptz how so?
 
7:05 AM
@Rapptz working here
 
They're just the default Octocat again
This has been happening for a while now lol
Sometimes it fixes itself.
 
user1646075
i'm seeing everyone. Don't suppose you use Ghostery to block adverts?
 
oh wait
 
Annoying
 
Can confirm.
 
7:06 AM
confirm too
@aclarke actually open a profile
 
lol
at least I get my own avatar on the top right
 
:(
 
user1646075
eww, I had to open Marks...
 
welps, not anymore
 
user1646075
7:08 AM
ohhhhhhhhhhhh github. /mutters self-curses...
 
@Rapptz It's a gravatar issue I think.
 
...
 
but they work fine in chat!
 
chat is special
 
@aclarke I do have a link to my Github account on my profile.
Chat is cache.
 
7:09 AM
SO is cached
 
user1646075
i just went straight to my home. Maybe someone modified the avatar code, and used calloc()
 
@aclarke lol
 
nice bait from the beginning btw
 
Bored.
 
calloc, N arguments constructor, string pointers, segfault
 
7:13 AM
I'm gonna go play games.
 
_manager was the cherry on top, really appreciated that one
 
Nice. I didn't (actively) know this
0
A: Why is the magic number in boost::hash_combine specified in hex

seheLiterals are literals and different representations of the same literal are... literally identical. However, expressions (literal or not) also have a type. Look at this simple test Live On Coliru 0x9e3779b9 has type unsigned int (32 bit) and 2654435769 has type long (64 bit) As you can see...

 
TIL long is 64-bits
 
nice piece of literary
@Rapptz on 64-bit platforms
 
yeah I figured
I never used it because I assumed it was 32-bits everywhere
 
7:16 AM
@Rapptz on many platforms
 
but how many?
@Rapptz Hey rapptz, what do you do for a living?
inb4 eat
I just realized I don't know much about you
 
That's on purpose.
 
Oh, ok.
 
@Jefffrey all 64 bit clang and gcc, for starters
 
Oh yeah, now I remember.
You are the one that studies medicine and plays with proramming languages as an hobby
 
7:23 AM
Yes.
 
@Rapptz You do send out hints on what you do, but my theory based on evidences so far is crazy
 
I'm sorry. My memory fails me every once in a while.
 
user1646075
@sehe Also decimal makes it harder to spell amusing words in your magics
 
@Jefffrey That is what I know of him.
 
@aclarke lack of imagination
 
7:24 AM
That's crazy.
 
user1646075
@Rapptz You study medicine and you have time for a hobby?
 
dun dun dun
The thick plottens. Might not be a hobby actually :)
 
I already graduated.
 
user1646075
@Rapptz Living the scrubs life?
 
I wish.
 
7:26 AM
AFAIK studying medicine basically means studying 14 hours a day, then spending 4 hours doing rave parties, and then 6 hours sleeping
 
@Jefffrey Right
 
@Jefffrey He knows the standard, so there's no reason why he can't do that.
 
@Rapptz so what went wrong?
 
<sub>we know some, so we can do some medicine too?</sub>
 
I never got a black best friend.
 
7:27 AM
lol
 
@Jefffrey Except for parties.
 
ok, you don't like talking about yourself, got it
I'm bored
wat do
 
Do you have a Nintendo 3DS?
 
no
 
Sucks.
 
7:29 AM
never had
had a gameboy once
that's it
 
Italian childhood must suck.
 
@Rapptz deliciously ambiguous
 
eh
 
Wait where's the ambiguity in "Sucks"?
 
I should play more in fact
 
7:30 AM
@Rapptz actually, apparently in the Mafia there is an unwritten code that men must not suck, even to please a woman. If they do, they do so very secretly
 
For the whole "all work no play makes jack a dull boy" thingy
 
When I'm bored I pick up a new hobby.
 
@Rapptz It's in your thickness!
Context. Context. Context.
 
user1646075
@sehe yeah, apparently eating pussy makes you gay.
 
Great logic
 
7:31 AM
@Jefffrey There are a lot of good games if you need recommendations on a console/handheld.
 
user1646075
@sehe Thanks, Sopranos.
 
People are switching to Android because Tim is gay? I hope they go back to using abacuses after they find out Alan Turing was gay too.
5
 
user1646075
@sehe people are switching? Are they gay?
 
Strawman argument.
 
7:33 AM
@aclarke I'm happy to inform you that I've not seen this series but I recently heard about this episode from one of the script writers being interviewed on the radio
@Rapptz Yeah. Abacuses might have been invented by transsexuals
@LucDanton lolwut :)
 
user1646075
@sehe it was a goodie. Old "Junior"'s girlfriend couldn't keep the secret from her best friend, then it got out, then she got a major smack-down and got kicked out. There were some great old-world insults said at Junior's expense from the other guys
 
Woot. Thanks. I'll know about everything televized without having to watch.
 
@sehe The opportunity was too good to miss.
 
user1646075
@sehe I’ve just eaten an abacus. I’ve always said, "It’s what’s inside that counts."
 
oh you
 
user1804599
8:13 AM
I have a cold.
 
user1804599
And it makes me feel warm.
 
user1804599
WHY IS IT CALLED COLD
 
user1804599
@sehe Average IQ of Apple users is increasing!
 
fucknuggets I've gotta learn to turn my heating on.
 
user1804599
Noo. I like frozen dogs.
 
8:18 AM
you feel warm, great! soon we will have a cooked lobster
hot dog + lobster = surf n turf
 
user1804599
I should learn how to use abaci.
 
On my own construction site 7:25am - 7:25pm ... with the exception of 3 hours buffet & rest time
 
@rightføld there's little evidence. I reckon it may be because they all share the median value
 
user1804599
lol
 
user1804599
8:35 AM
@SpeedCoder because they do I/O maybe.
 
user1804599
I wish I could write programs that didn't do any I/O, but they are useless. :(
 
user1804599
Well, return is useful.
 
@rightføld they can be used for generating heat
 
user1804599
Not if you have a very good optimiser!
 
@rightføld Unless if it generates AVX code.
 
user1804599
8:42 AM
(defn even? [n]
  (if (zero? n)
    true
    (recur (dec n))))
 
user1804599
lol, that function is so horrible
 
user1804599
It's O(n) and fails for negative inputs top kek.
 
user1804599
Love this, though: (def odd? (complement even?)).
 
@rightføld does this ever return false?
 
user1804599
No, that's even worse! :D
 
8:49 AM
the politically correct thing to say is that all numbers are even
 
user1804599
I'm a numberist.
 
user1804599
I think some numbers are more even than others.
 
some of them are even more even than those
 
@rightføld Hmm. What is that? Clojure?
 
user1804599
I always liked (def even? (comp zero? (partial bit-and 1))).
 
8:56 AM
Downloading the haskell platform always fails :c
 
user1804599
I always thought Python's philosophy was that readability is most important, but apparently conditional expressions are true_branch if condition else false_branch. :S
2
 
user1804599
What moron comes up with such horrible syntax?
 
Xeo
return blub if bla else foo;
 
lol
 
Xeo
only for that
so it "reads better"
 

« first day (1479 days earlier)      last day (3471 days later) »