« first day (620 days earlier)      last day (4346 days later) » 

10:01 PM
@Mysticial Also, I was just checking out your y-cruncher, that's some nice work! The computation time is tremendeous, must be a hard time keeping the HW operational on such stretches. And given the equipment involved, really nice.
I'd personally roll over and die waiting. Prefer realtime GI solvers, much more exciting.
 
@DomagojPandža Yeah, that's my hobby project. Don't have much time to work on it anymore though.
 
444 upvotes screenies
 
@chris I'm trying not to pay attention to that. Having plenty of trouble concentrating on work right now... lol
 
@DomagojPandža longest running program I ever had where a goal was speed was 8.5 hours. To sort a billion unsigned integers. I made a "minor" change and brought that down to 15 minutes. A complete rewrite got me down to 6.5 minutes.
 
@MooingDuck That's a lot of ram?
 
10:05 PM
@Mysticial was using a cluster of 8 computers, each with 2GB of RAM. Lots of swap space though.
 
ah
 
And I thought 12GB would get me through anything.
 
32 GB of pure physical RAM on my machine. :Đ
 
@Mysticial does the "swap" comment clarify how a minor modification might make the difference between 15 minutes and 8+ hours? :D
 
Why would you want to sort them? If you have that many, it seems like sorting is the wrong answer.
@DomagojPandža Have you written any? I worked on one at my last company.
 
10:07 PM
@DanHulme homework assignment to teach us mpi on said cluster. We also had to "clean" an image and do matrix multiplication.
 
@MooingDuck Whenever you touch OS swap space/VM it's gonna be slow no matter what.
Manually managing swap is a pain in the ass.
 
My God. It works.
 
@DanHulme Yup, it's part of my Miri renderer, soon going public. My own solution, I call it shallow bounce radiosity with a geometry simplifier generated out of a more complex scene to improve performance. Also worked on using shaded fragments as sources of light.
Usually, it's a preprocess, can be done in realtime, but preferably offline.
 
@Mysticial we later determined the "primary" machine was attempting to hold the 4GB of data in memory 5 times over at the same time. In 2GB of RAM.
 
@MooingDuck nice
lol
 
10:11 PM
One of the hardest things was dumping the "sure thing" and turning to probability. But stochastic solutions really grew onto me with time.
 
Anyways, I'm gonna go get dinner. Trying my best to calm the excitement - not working very well...
 
why is dinner exciting?
 
Because food, that's why!
Now, I need to beat/improve upon SSS somehow. Jimenez did some great work, but it is far from perfect.
Needs to be far more scalable.
 
Hello there.
 
@ScarletAmaranth hi
 
10:16 PM
One last final exam tommorow (technically, today in 6 hours) and I'm FREE as a BIRD.
 
@DomagojPandža not bad :( <-- Obama not bad face, not sad face
 
@DomagojPandža That's one of the two songs I know from them :) The other being being the obvious "Sweet home Alabama"
 
@ScarletAmaranth TIL Lynyrd Skynard did Sweet home Alabama
 
@thecoshman I HOPE they did o_O
 
10:22 PM
@ScarletAmaranth they better have ¬_¬
 
One of the solos that gave the most trouble when I was trying to take it down.
 
@DomagojPandža Which one exactly ?
 
Free bird, the long ending solo. The only other I tried to take down with such length was Tunnel of Love by Dire Straits
worth every second, fun to play, even after all these years
 
crap damn it, getting 'undefined reference' errors... sucks ass
@DomagojPandža Free bird is a guitar solo with a small song intro :P
 
It just wins :D
 
10:26 PM
Tomalak's gone but his legacy lives on!
 
Hah, I love the title. I hate seeing STL.
 
@DomagojPandža The last one I learned was the one from "One" by Metallica. It's actually easy.
 
I forgot how much I love Dire Straits.
 
@DomagojPandža Love over gold, the instrumental part
Have you heard it?
 
Oh, yes. I know almost every one of their songs. Even the new ones that were produced just by Mark Knopfler, he indeed was the heart and soul of the band.
 
10:32 PM
damn
I did not really have to go and read all 200 Gordon Frohman strips in a row just now
 
hi, I have a doubt.
How can I convert an unsigned char* to a string in c++ ?
 
Ell
@scarletamaranth good luck :) shouldn't you be sleeping if its in 6 hoursk
 
@Ell I had 3 free weeks, was going to sleep at 5am waking up at like 1pm, so, no sleep for me today.
 
@DeadMG You can help me write an instruction generator instead
 
nah
got more libraries and shit to specificate
 
10:38 PM
Hi
 
Ell
hi
 
foo obj(foo()) ; // Is this too considered an example for Most Vexing Parse ?
 
why wouldn't it be?
 
foo(); // Definitely calls constructor.
 
no it doesn't
the information that foo is a type does not exist at parse time
 
.... right, which is utterly irrelevant
 
Oops, I mean to say individually calling
 
foo() is a signature of a function just as much as int() or anything else
 
Individually writing foo() calls constructor. But not in foo obj(foo()); In latter it considers foo() as function signature. Right ?
 
just like how the MVP works in every other situation...
 
10:46 PM
@DeadMG talking about me?
 
Thanks, learnt something new today :)
 
@CheersandhthAlf No, why do you ask?
 
i'm the only MVP here, I think
 
Because @CheersandhthAlf considers MVP
Most Valued Professional
 
ok, i'm also a most vexing person
 
10:48 PM
most vexing p... arse :)
 
oh
 
i don't understand why a web designer creates a big single-color image just to serve as background
then on top of that he places a transparent png, which scales with the window size
so that the stuff placed on top of the bottom of the image, relocates upward as one changes the window size
it's so dumb
so unnecessary
here:
i'm tasked with putting info into the pages, helping the festival
grrr!
@SyncMaster std::string( s, s + lengthOfS )
IIRC
 
@Mahesh Also, welcome to C++11, syntax for uniform initialization says hello.
@SyncMaster Why would you do that?
 
@DomagojPandža Thanks. I will try it.
 
what exactly does copying an allocator even mean?
 
10:58 PM
@DeadMG i never done that stuff, but as I recall Microsoft's implementation of std::string etc. supports copying a string across a DLL boundary
 
@DomagojPandža I have an unsigned char* returned from SHA1 (Open SSL). I want to use this char* as a string to perform operations on it.
But am unable to do it
 
Some things, especially containers like to carry their allocators with them.
 
Like, unsigned char ibuf[] = "yXfscEV"; string s1(ibuf); throws error
 
A SHA1 hash is a bunch of bytes, not characters.
 
precisely, that's why it is an unsigned char array.
 
11:01 PM
@DomagojPandža Right. But if I have an object pool allocator, what does it mean to copy it?
probably nothing of particular use.
 
@DeadMG Make another pool? Share the same pool?
 
make another pool, me thinks
 
std::string defines overloads only for more sensible things like const char* (string literals etc.). You can reinterpret_cast it, but I would recommend against it since it makes no sense to std::stringify a sha1 sequences of bytes.
 
sharing the pool would mean that you couldn't free it as a single job lot later
also it would mean that you could not allocate from two supposedly separate instances concurrently
 
If you have standard characters inside, you could "safely" reinterpet cast it since all the necessary characters fall into the proper range.
But you really shouldn't be doing that.
@DeadMG Same here, sharing a pool makes less sense.
 
11:04 PM
Ok, sleepies for me.
 
@RMartinhoFernandes goodnight
 
Night!
 
coz I want to convert the sha1 message digest to an hexadecimal string; if I have this in a string I can use if for further operations
 
you know
 
-1
Q: Composition for more than one other class

user1487087Is there any way to use composition to let a class use the members of more than one other class? Thank you in advance.

And SO strikes again.
 
11:06 PM
it also occurs to me that there may be no way to prevent reallocation when you assign
in the general case
so for any arbitrary allocator X, you'd have to reallocate every time you copy, even if some allocators don't need that behaviour
 
user1174868
I found The C++ Programming Language book by Stroustrap for like $4, but it is from 1997, worth getting or not?
 
Get TD&E from Bjarne.
 
@DeadMG I hope you got typedefs/usings, because this looks verbose as fuck.
 
If you want to learn actual C++, find a C++11 preaching book.
 
@EtiennedeMartel Of course I got.
I just prefer to use the full qualified names for short programs
 
user1174868
11:15 PM
@DomagojPandža What ios c++11|
 
user1174868
I am very new to programming
 
@Jordan The new version of the C++ standard, released in 2011.
Supersedes the previous version, C++03.
 
user1174868
Oh, the book guide here doesn't reccomend that for beginners
 
It's the future. But you should get into more basic stuff first if you're new.
Old C++ was C+++. Now it is C+++++++++++. You should start with +++++++++C.
 
@DomagojPandža It's not the future any more, it's NOW!
 
11:17 PM
Peeps, good night :)
 
user1174868
I am just trying to not spend too much money on a book I guess, I mean a book for beginners can be older right? I don't think the fundamentals of c++ have changed much in the past 20 years right?
 
lol
 
@Jordan Oh, you couldn't be any more wrong.
C++11 almost feels like a new language.
 
user1174868
Well just as a reference point of how little all the c++ meta matters to my school, we still use namespace std so I don't even recognize code without it
 
C++11 is so fresh, we decided to write the best game on the planet with it.
 
11:20 PM
@DomagojPandža Yeah, about that, GCC 4.7 is gonna bite us in the ass on OS X.
You need clang if you want access to the shiny 64 bits Objective-C runtime.
 
Yeah, OS X is Clang's bitch. But at the same time, Clang is OS X's bitch.
 
Mutual bitch.
So, I guess we'll need to setup the build script to use clang on OS X, and GCC everywhere else.
That means having to look at the features GCC 4.7 supports and clang 3.1 doesn't.
 
sbi
Remember in Back To The Future, where Doc sets the DeLorean to a future date? That date is TODAY! http://twitpic.com/a1748s
(Not here, where we already have the 28th, but that is a Merkin movie...)
 
It's still the 27th here.
 
sbi
@EtiennedeMartel I already said so.
 
11:24 PM
@sbi So?
 
sbi
So .. there *is* a 'chicken' badge after all. http://cooking.stackexchange.com/badges/82/chicken
@tinkertim sadly, there's not a bacon badge...
 
@EtiennedeMartel I need them move semantics, rvalue refs, autos, uniform initialization, trail. return type, decltype. And I is happy, more or less.
 
sbi
@EtiennedeMartel So? What?
 
Also, I like to use autos and trail. ret. types for everything, makes the code so pretty and consistent.
Fuck, C++11 makes me wet.
6
 
sbi
@DomagojPandža Don't worry. today is Wet-me-day, so that fits.
 
11:28 PM
Holy crap, it's already Turd-sday
 
@sbi Hmm. This might be 'shopped.
 
sbi
@EtiennedeMartel Almost anything might be, today.
 
@sbi I mean, wasn't it in 2015?
 
sbi
Even your avatar might be shopped!
 
@sbi Yes, it is. It's cropped compared to the original version.
 
sbi
11:32 PM
@EtiennedeMartel No, it was in the 80s!
(Note that I was east of the Iron Curtain back then. I haven't seen this, so I wouldn't know.)
 
user1174868
So would this be a bad book to buy? abebooks.com/servlet/…
 
sbi
@EtiennedeMartel Well, I am surely glad I didn't retweet this then. :)
@Jordan That 3rd edition is a very good book to learn C++98 from. One of the best, actually.
 
user1174868
Is it bad to learn c++98? lol
 
sbi
@Jordan After that 3rd edition, Barbara Moo (of Koenig/Moo's Accelerated C++) joined the team, and they produced a much better 4th edition, which I believe teaches you C++03. (ICBWT!) The current edition, however, is the 5th, and it teaches C++11. C++11 is the latest standard, with major additions since the original standard in 1998, which will, IMO, dramatically change the way C++ code is written. You do not want to miss that train to save a few bucks.
 
11:41 PM
@Jordan Yes.
C++98 and C++03 are fairly similar, although 98 contains some defects and such. But C++11 is a big game changer, and anyone who wants to claim to know C++ must know C++11.
 
user1174868
It is $50 though which is kind of a lot considering I don't even need this book for any of my classes
 
user1174868
I will probably have to learn c++03 anyways
 
sbi
@Jordan Do you want to learn C++?
 
user1174868
I think so
 
user1174868
I am trying to go to school for csci
 
sbi
11:44 PM
@Jordan Then it's either the steep learning curve of Accelerated C++ plus a second book to complement it, or C++ Primer, or one of Stroustrup's books. Of all those, only the 5th edition of the C++ Primer even claims to cover C++11.
@Jordan Whatever that means.
 
user1174868
So how much does this book actually cover? Because my last book only covered like 5 topics, like loops, conditional statements, arrays and a few other thigns
 
sbi
@Jordan C++ Primer has always been one hell of a brick. It's been past 1k pages since, I think, the 3rd edition, and the fifth, if it indeed covers C++11, must have grown considerably. It might be that Stroustrup's The C++ Programming Language covers as much ground as the C++ Primer, but I am not sure of that, and I don't know any (good) C++ book that covers more.
(The other very good C++ intro is Accelerated C++, coming at 250 pages — which is why I said that, if you learn from that, you will need another book to finish your education. They cannot even skim over nearly everything in 250 pages.)
 
user1174868
I will probably get the new primer when I get some more money
 
time for brekkie
 

« first day (620 days earlier)      last day (4346 days later) »