« first day (598 days earlier)      last day (4332 days later) » 

12:00 AM
@RadekdaknokSlupik no
 
Lazy puppy.
 
you pinged me, bitch, not the other way around
 
@sehe were you serious about the hostname? xD
 
nope
BANNED WIDTH FOR THE BANNED WAGON
 
Ell
I suppose. It just really sucks losing a friend and someone really close to you
 
12:04 AM
No
Use google
Find a cached version
 
@Cicada ? What is that a response to?
 
And then fap to pics on Google Images.
 
@sehe Message above me (Ell)
 
is a function pointer a valid non-type template parameter?
 
@Cicada Wokay. The humour approach might do it
@MooingDuck Yes (IIRC). Arrggg. Doubting myself now
 
12:06 AM
@MooingDuck y u always do obscure things in C++.
 
Ell
Oh haha a cached version of a friend :L I see
 
@sehe error: expected primary-expression before '>' token, but I'm not sure why
 
Rhetorical question
 
@Ell did he died
or something
 
Rhetorically.
 
12:06 AM
@MooingDuck Show the template declaration?
 
Ell
No I mean, letting go
 
@RadekdaknokSlupik so I don't have to pass the function parameter as a runtime type to a small inner loop
 
hippopotomonstrosesquipedaliophobicly
 
@Ell Oh that
 
Ell
Of her. We can never speak to eachother again or you know ... Feelings flooding back and whatnot
 
12:07 AM
Depends on people
I've moved over 12 times in 20 years
 
Ell
But she is my best friend as well which sucks :/
 
So I don't give a fuck about people, really
 
typedef std::pair<int /*result*/, std::pair<bool, bool>/*more_data*/>(*compare_func_type)(unicode_comparison_state st, codepoint_type lhs, codepoint_type rhs);
template<compare_func_type comp, class iterator1, class iterator2>
inline int compare(iterator1 lhs_begin, iterator1 lhs_end, iterator2 rhs_begin, iterator2 rhs_end)
caller:
compare<compare_compatable>(lhs.begin(), lhs.end(), rhs.begin(), rhs.end());
 
@MooingDuck micro-optimization at its finest!
 
Mooing Duck, you party pooper.
 
12:08 AM
@RadekdaknokSlupik this function will be called for each character in every string comparison.
 
it's meth!
it'm seth!
 
Methlab is real funny :)
brb
 
Methlab kills people.
 
Imma sleep.
 
Don't fall asleep now
that would be a waste of time
 
12:09 AM
eh, I guess I can change them to functionoids easy enough. I'll do that
 
@RadekdaknokSlupik Good night
 
Functionoids FROM OUTER SPACE.
 
user1174868
oh lawd
 
@Cicada good morning.
 
@Jordan lewd, FTFY
 
12:10 AM
I read Jewd.
 
Spell it. Properly
 
Spill it, like you do with time.
 
propelry
 
@RadekdaknokSlupik (also, wooo for being remembered for something!)
 
propellerly
 
12:11 AM
@mooingduck Wut?
I'm going to dream about this message getting a thousand stars.
 
@RadekdaknokSlupik dream on
woo! My code compiles! With gcc anyway. Now to work on clang/VC++, and then I'm off to write the unicode encodings. And then I'll instantiate these functions! Then linking.
 
user1174868
I don't think I know how to study, I am too stupid to figure things out on my own
 
user1174868
so if it in not explained explicity in the text of the book or somewhere else I will not get it
 
shrewd?
Lieut.?
 
user1174868
lute
 
12:16 AM
Loot
 
lewt ?
 
Lude (as in inter-)
@ScarletAmaranth That's unbeknownst to me
 
> unbeknownst
 
user1174868
I dislike pain
 
I approve of this
 
12:17 AM
You can't pronounce unbeknownst.
room topic changed to Lounge<C++>: We like pew pewing trolls into outer space. [c++] [c++11] [c++-faq]
 
      c:\program files\microsoft visual studio 10.0\vc\include\xutility(1223) : see reference to class template instantiation 'std::iterator_traits<_Iter>' being compiled
      with
      [
          _Iter=
      ]
 This is VC++10's error, I wonder if it's related to why clang won't compile my code.
 
This is the room of thousand topics, bitches.
 
The mysterious room!
 
Exclamation marks killed the mystery...
 
ah bag it, I have no idea what's wrong with my code. Maybe I'll get a newer version of clang
 
user1174868
12:23 AM
I am bringing money to class tomorrow, do you think the teacher will accept bribes in the form of my financial aid card?
 
@Jordan seems unlikely
 
I find it improbable
 
user1174868
So there is a chance
 
Are you that bad
 
you could also win the lottery
 
user1174868
12:26 AM
pretty much my only chance of passing the class is bribing the teacher
 
That you can't even take a test?
Or just a rich fuck
 
There is a chance that a squad of penguins driving a truck will run down your living room in 5 seconds, but it's very small.
 
user1174868
If I do not get an A in this class I will have to wait a year to transfer out of this crappy inner city school
 
user1174868
I am not rich, actually I am pretty poor
 
There's a chance that tomorrow aliens will crash into your house while riding meteor full of unicorns and waffles.
 
12:27 AM
there's also a chance that you'll spontaneously combust
 
Well I already know I'm going to brillantly fail two courses
I won't bribe teachers tho
Probably gonna write something funny on my paper
 
user1174868
yeah but you are probably at a good school
 
Like XKCD recommends
 
bwahahaha
 
user1174868
I need to get all As to get out of my shitty inner city school
 
12:28 AM
my university is a giant pile of shite, and that's a charitable characterization
 
I suck at schools. I'm good at programmings
 
user1174868
I suck at school, programming and math
 
I like writing programmings with the pointer.
 
lolwat
gtfo
 
user1174868
I go to a community college, I can't even get a degree from here
 
12:29 AM
Wait, what.
 
Well um.
 
well, technically, I could get a degree from here
but using it to get a job would be effectively lying to my employer
 
That you have a degree?
 
no, if I had one
 
Degrees are useless.
 
12:30 AM
if I miraculously did not fail my degree, and I used it to pretend that I was qualified for some job, then it would basically be lying
 
user1174868
Schools don't accept you unless your GPA is above 3.0, I need all As for that to happen
 
What's a GPA
 
Do they accept GPS?
 
GamePoyAdvance
So don't I
I play Wii on emu
is osom
 
user1174868
grade point average
 
user1174868
12:32 AM
basically you need above a B average for schools to consider you a person
 
Demmugah Punch ya!
 
I showed my fiance 9gag. And now anytime I whine about anything she yells "First world problems!" And she's right :/
 
@MooingDuck What a smart girl (and I mean it)
 
user1174868
ugh 9gag, why not reddit? But actually I hate reddit now too, the whole internet is going down hill
 
@MooingDuck Since you live in the first world, there's no problem you can have which is not a first world problem.
 
12:35 AM
Go to SA.
 
and since your fiance also lives in the first world, that applies equally to her
 
@DeadMG only technically, not colloquialy
 
user1174868
penny arcade is probably one of the last civil internet communities left
 
@Cicada witty kitty
 
Haha, civil internet communities.
 
12:37 AM
@Jordan Penny Arcade? Civil?
 
There's a new website
 
And oranges are orange.
 
Hahahaha.
 
@Jordan Go!
 
Werediggles gonna werediggle.
 
12:37 AM
I hurd it's called forchen
 
Ahahahahahahaha.
 
Or something
 
user1174868
For internet standards, yes
 
There are a lot of internet standards.
Nobody cares about them.
 
user1174868
dicks
 
12:37 AM
titties
 
user1174868
thats the internet
 
user1174868
and kittens
 
user1174868
I prefer telegrams
 
Oh gopher
Is it still supported?
 
12:40 AM
No.
Firefox got rid of it last, I think.
 
So, it's Chrome.
With stuff.
 
> inline fb notifications
wat
spyware included?
 
Always.
 
by the way
 
12:44 AM
Oh, Facebook.
 
I wanted you all to know that I'm a fkin genius
 
Games You May Like

Pot Farm
560,000 people play Pot Farm.
Play Now
 
> May
 
I... just... what.
 
Apr 12 at 14:33, by R. Martinho Fernandes
room topic changed to Lounge<C++>: No more polystyrene questions accepted. It's now polyvinyl chloride time. [c++] [c++11] [c++-faq]
 
12:45 AM
I had it on vinyl before it was cool.
 
user1174868
 
Oh I've been looking for that video for a while now
 
So, 3 times is a charm...
I'm off to bed
Aug 5 '11 at 14:49, by Johannes Schaub - litb
a bed vibrator is something that makes the bed vibrate
 
1:09 AM
@Cicada Wake you up before you go-go
 
daaamn
WTB: UNSICK
so many ideas, such an unhappy stomach
 
hahahah, you've got quite a shiny crystal ball there fine sir ;) — ScarletAmaranth Jan 15 at 20:57
 
You'll probably survive.
 
hmph
 
1:25 AM
Jan 5 at 1:32, by sehe
However, for practical purposes, perfect pitch can be a nuisance
 
user425495
1:38 AM
for some type T, if I declare T x in some function, x lives on the stack but certain members of T may live on the heap depending on the implementation of T? Is this correct?
 
no
 
@JustinShrake no, members are always parts of the object itself, thought they may reference other components on the heap.
 
T may have members which must be allocated on the stack which may refer to elements on the heap
 
@JustinShrake the data a vector holds is on the heap, but that data is not a member.
 
in terms of performance, then yes- T may indeed allocate off the heap or do pretty much anything it likes, for any type T
but semantically, an object must be contiguously stored wherever you allocate it
 
user425495
1:40 AM
so everything about T will be on the stack, but it may have pointers to data on the heap?
 
indeed
 
@JustinShrake right
 
nice ninja editing mooing duck :P
 
user425495
and if I do T * x = new T(); then T will be on the heap along with all of its members
 
@JustinShrake Indeed. However, you'd have to be a moron not to have that be a smart pointer and factory function of some description.
 
user425495
1:41 AM
I am a moron that's only been programming for a couple of months :)
 
user425495
just trying to get a deeper understanding of the language
 
heh
if you've only been programming for a couple months, then the onus is on whoever is teaching you to not teach you moron practices, as it were
 
user425495
bjarne stroustrup?
 
depends on how old the book is
he probably wouldn't be caught dead doing that now
 
user425495
I'm diving into 'The C++ Programing Language' after writing awful VBA code
 
1:45 AM
mmm, AFAIK, that's both old and not really intended as a tutorial
yeah, TDCPPBG&L has it listed as a reference
in any case, if you stick around here, you'll pick up good practices no matter who you're reading
since we are experts
 
user425495
I also have Accelerated C++, some scott meyers, and CLRS
 
Accelerated C++ and Effective C++ are both excellent books
 
user425495
was mainly just going through the reference and implementing exercises from CLRS/doing proofs on paper
 
user425495
didn't want to type latex answers up :)
 
CLRS?
 
multithreaded algorithms, valuable information these days
although personally, I'd recommend learning the language and then moving to implementing algorithms in it
 
user425495
I'm going to worry about design patterns (factory function?) once a get a more solid background
 
user425495
I know what a singleton is heh
 
please erase it from your brain with a panscrubber
better off not knowing
 
user425495
well thanks for helping me with the original question. I didn't feel that was ever explicitly made clear
 
1:51 AM
I'm baffled, there's a conversation that the rogue refuses to have with me in Diablo 3. Everything on the internet says after I do such and such quest, he should say it, but the next time I see Lydon, the conversation "A dark outlook" isn't there.
 
fuuuuuuu
left my SHA-2 solver solving, and it crashed right at the end :(
oh, I proved a contradiction...? how strange
 
ah, internet says you have to start act 4, and immediately TP before the first fight
that's just mean
 
2:15 AM
argh endianness I hate you
 
2:27 AM
Determine the type of each of these literal constants:
-10 (signed int)
-10u (?)
-10. (signed double)
-10e-2 (signed double)

What is the (?) and am I correct on the other three?
 
@DiscreteGenius rtfm
 
3:03 AM
@DiscreteGenius yes and unsigned
 
3:34 AM
dang
sha-2 solver y u no work
 
4:09 AM
super-fuck, should not have eaten breakfast
now I feel super-sick
 
4:21 AM
hello
experts
I need some career guidance in c++.//
 
@lakshmikant write in another language
 
fuuuu
stupid super-slow super-inefficient MSVC debug hash tables
 
@DeadMG also vectors, strings, everything =\
 
indeed
 
and you still say that vector is better than good old T arr[N] ?
or T*
 
4:56 AM
uh, of course I do
I'd rather a slow than broken program
not to mention that you can't even try to debug those things.
plus, std::vector and std::array do not really suffer from the same debugging performance problems
 
anj
Hello
any Qt buddy here, I have a doubt related QGraphicsView
 
anj
5:26 AM
I want to to fit a QGraphicsScene in a QGraficsView, with different dimensions, shuch taht it will shrink or expant according to size of view, and there should be no any scrollbar.
 
@Abyx RTFM? I am.
@MooingDuck How can a negative value be unsigned?
 
@DiscreteGenius By a cast.
 
@DeadMG I'm in the first chapter of this C++ intro book, I don't think they're throwing in type casting already.
 
well, you'd better believe it
I'm not exactly recalling how the Standard defines it, but there is most definitely casting and bits and representations and such going on
 
Seems like a self defeating concept to have a signed, unsigned integer.
 
5:31 AM
eh
 
people use it for all sorts of strange bit tricks, of which I know little except that they exist
 
In the first pages of a C++ book? Lol
 
although I am surprised that the suffix is legal directly, I've only really seen (unsigned)-10 kind of thing
 
Can you type cast an integer literal?
I guess I'm just new so I'm ignorant of all these cool tricks. Thanks man!
 
5:33 AM
an integer literal is an expression
and it can be cast like any other expression
@DiscreteGenius Usually referred to as "filthy pointless hacks" rather than "cool tricks"
 
Ah ha, filthy pointless hacks.
Got it
 
5:45 AM
Relying of SFINAE is funny. I can create a compiler error merely by creating a typedef.
 
I believe that -1u is an expression [un_minus [int_lit "1u"]], rather than single literal
 
I use std::array<uint8_t, uint16_t(-1)> as a container type that can contain any IP packet.
 
@StackedCrooked why not ~0u ?
 
@Abyx That's what was gonna be my next question :p
But how can I restrict it to 16-bit?
 
uint16_t(~0u), or just 0xFFFF, or MAX_UINT16
 
5:53 AM
@Abyx 0xFFFF is a good idea.
I guess std::array<uint8_t, 0xFFFF> would work.
Is anything with uint16_t(-1) btw?
I mean, is it garantueed to be the same as MAX_UINT16?
 
probably uint16_t(-1) will work on every popular platform
 
Probably?
 
@StackedCrooked numeric_limits?
 
@DeadMG That's even more verbose :D
I want the laziest correct solution.
 
I'm real sick right now
 
6:00 AM
You're a real sick fuck.
 
@Abyx pretty sure we have a SO question about that
 
yeah, I know
not that eating seven cookies and two things of ice cream for my daily nutrition isthe smart man's move
 
I believe nicotine reduces insulin levels in the blood. So it gives you a similar effect as sugar but without the calories.
 
@DeadMG If you hold on to that diet, you'll die of malnutrition or starvation before @Tony dies of sexual frustration :(
 
Or just nicotine gum.
I've tried nicotine gum as an alternative to coffee a few years ago. It works reasonably well after a while. However the first time I tried it I felt really sick.
 
6:06 AM
@FredOverflow lol
 
Didn't get addicted. Even after I used it for longer than a month.
 
@StackedCrooked The first time I tried beer, it tasted like vomit. But I got used to it after a while.
 
@Cicada WAKE UP WAKE UP EARTHQUAKE WAKE UP :)
 
@FredOverflow I never disliked the taste of beer.
 
The first time I encountered char* I was very confused. Then I started to like them over the years. Nowadays, they disgust the hell out of me.
Not every string is constant.
yes, except if you have a std::vector<std::string> which uses std::string* internally :)
 
6:12 AM
I think I should sneak -Wold-style-cast into our code base.
 
@FredOverflow Nah, it uses T*, which IMO is a much lesser sin.
 
Is it ok if a factory function returns T* or is it better to be zealous and return unique_ptr<T>?
 
not OK for T*.
remember the whole f(std::auto_ptr<T>(new T), std::auto_ptr<T>(new T)) thing?
 
6:16 AM
@FredOverflow Perhaps a specialization of std::vector<std::string> that flattens the storage would be cool :p
 
std::vector<char const**>*
 
@StackedCrooked No, it wouldn't. It would be impossible to maintain the appropriate iterator invalidation semantics.
 
@StackedCrooked that wouldn't have O(1) lookup. 3:
 
@DeadMG I don't remember such a thing.
 
@StackedCrooked It's a GotW.
everybody remembers it because it makes you say "What the fuck were the Standard writers doing when they allowed this to happen?"
 
6:17 AM
@DeadMG I guess. And vec[1].resize(N) wouldn't workk.
 
basically, the compiler is allowed to go from f(std::auto_ptr<T>(new T), std::auto_ptr<T>(new T)) to auto p1 = new T; auto p2 = new T; f(std::auto_ptr<T>(p1), std::auto_ptr<T>(p2)); which is exception unsafe.
 
I believe the documentation of boost::shared_ptr makes such a warning.
 
indeed it does
 
but there is nothing specific to shared_ptr w.r.t this problem
 
6:20 AM
Indeed.
 
hence, always use factory method which returns unique_ptr<T>.
0
Q: Endianness fun with SHA-2 algorithm

DeadMGI'm trying to write a SHA-2 implementation, but the result keeps coming back incorrect- I've tested on such things as the empty string. I implemented it in two steps, preprocessing and primary body. template<typename T> struct Output { std::array<T, 8> h; }; template<typename ...

 
@DeadMG I suspect that one will eventually require a bounty.
 
eh, I'm not so sure
I can't be the only person who's had fun trying to implement SHA-2 on a LE system
lol
@StackedCrooked I suspect I'll get 99999 comments asking why I templated my SHA-2 implementation.
 
that cat was already dead
it's just a stuffed cat
 
he's a nubbery
if you look at the pseudo on Wikipedia, then it quite clearly indicates that the required form is 16 unsigned 32bit values for the primary loop
 
6:38 AM
> I changed my mind, i don't want to be cremated anymore. --> Copter me!
^ lol
 
hot damn
between 80 bits of input, and 440 bits of input, there are only like, 6000 additional internal states
they ramp up fast :(
I wonder if I can cache them...
y'know, I probably can cache them
 
Yup given enough memory
 
@sehe Eh. The whole thing is 120k states- enough to make manipulating a bitch, but not enough to make manipulations impossible.
I bet that I could represent most, if not all, shared states only once and solve for them only once
 

« first day (598 days earlier)      last day (4332 days later) »