« first day (429 days earlier)      last day (4524 days later) » 

Xeo
9:00 PM
I ♥ Touhou.
 
Does anyone have any good resource on JIT-compilers?
 
Wikipedia?
 
@Xeo What is that? You're gonna get seizures if you watch those things too much
 
Xeo
@ManofOneWay The only thing I'm getting from Touhou and it's music are orgasms.
 
That's nasty
 
Xeo
9:06 PM
Seriously, the soundtracks are plain awesome.
 
@Xeo I prefer the Ronald McDonald version
 
Xeo
Bah, hell no.
 
:P
 
@ManofOneWay LLVM?
 
@Xeo How much original touhou music has vocals?
 
Xeo
9:15 PM
@Pubby None.
 
is it the remixes that have it then?
 
Xeo
Yep
Also called arranges
Like this one:
 
do you listen to vip/wap?
 
Xeo
Argh, damn connection, Y U SO SLOW?
What?
 
Xeo
9:20 PM
I'll take a look at it after the song I linked :)
 
Intense.
Anyone like Keygen Jukebox?
I guess not. :(
 
Xeo
@Pubby Those are nice playlists!
 
@DeadMG It contains a JIT for java byte code also right?
 
@Xeo Yeah, they're great. There's quite a bit of touhou in them too.
 
no? why would it?
well, maybe it does, but I doubt it
you'd have to do your own translation from JVM bytecode to LLVM IR
 
Xeo
9:26 PM
@Pubby wap list -> Elfen Lied
Damn, that brings back memories.
I don't get it. Websites are generally loaded very fast, but streaming based content (like the videos on Youtube) are loaded extremely slow
 
@Maxpm I (now) like keygen jukebox
 
@Pubby Yay!
 
Hi.
Anyone know of a good library to encode WebM videos?
I tried Google's library, but the encoded file won't play even in their own browser
Think I'm missing a header or something, but there doesn't seem to be much documentation on the format.
 
@IDWMaster I've used gstreamer in the past for video stuff in general. There seem to be webm and vp8 plugins available.
 
Elfen Lied was one of the first shows I've ever seen
possibly my 3rd show I think
 
9:40 PM
@StackedCrooked OK. Thanks!
 
The very first anime I saw was Princess Mononoke. I don't remember exactly which ones I saw after that, but among them were Evangelion, Ah my goddess, and Crest of the Stars. This was around 2001 I think.
 
Xeo
@Mysticial Like I said, read the manga.
 
Also Cowboy Bebop and Trigun.
 
No x64 bit support for GStreamer on Windows?
 
I've read about the Elfen Lied manga, I heard it's extremely different from the Anime
 
Xeo
9:42 PM
@Mysticial Not really. It's just that the anime only covers the first half of the manga.
And the second half is mindblowing
Or organblowing if you want
 
Am I right in guessing that the first half is the happy half?
 
There's a second half? Doesn't Lucy lose both her horns and her powers?
 
Anything with 64-bit Windows support?
 
Xeo
The first anime I saw was some weird half-hentai thing when I was 7 I believe. It was on some channel late at night. /shrug The first real anime I saw was pokemon. Fuck yeah, 6:30 am week day and watching pokemon before going to school.
 
Steam Christmas sale is on!
 
Xeo
9:44 PM
@Mysticial Uh, no
 
@Xeo That's how it is in the Anime...
 
@Xeo Sounds like good times.
 
Xeo
@StackedCrooked It was. The kids today just don't know how bad they have it with Naruto and all that crap. Pokemon, Digimon and DBZ. Those are the ones they should be watchin. :)
 
Of course, Steam store is barely working ATM.
Like usual.
 
Xeo
9:47 PM
@StackedCrooked Oh, yeah, and Hellsing. Hellsing was awesome.
 
I saw Hellsing. It was awesome indeed.
 
Xeo
@Mysticial I think the anime end differed a bit from the manga section, but I'd need to reread it to be sure.
 
The remake is a little of the top though.
 
Xeo
Which I'll surely do, after rereading Midori no Hibi
@StackedCrooked I haven't watched Hellsing Ultimate yet
 
@Xeo I stopped watching after a while but it probably deserves a retry. It's just very ...bold.
 
9:50 PM
1
Q: C++ Factory Pattern with Heterogenous Constructor Constraint

Salman HaqI'm implementing a C++ program that can programmatically instantiate objects given an input file which provides the class names and arguments to pass to the constructors. The classes are derived from a common base class but their constructor signature varies. They are declared as follows: clas...

 
@Xeo Hellsing Ultimate is like the orignal Hellsing on meth.
 
Xeo
Heh
 
For lack of better terminology.
@Xeo I saw the anime of that :)
 
Xeo
Heh. I really like the author.
He wrote many great and funny romance manga
 
Apparently, one person is going to win entire Steam catalogue on January 2nd.
 
Xeo
9:59 PM
Wtf?
 
And my free starter gift was a coupon for Valve games. Too bad I already have them all.
 
lol
 
I have a feeling I'll never win anything on Steam.
It is suck.
 
well, since there are millions of users
they'd have to give a lot of games away to make the chance of winning reasonable
 
RNG hates me.
 
10:03 PM
I hate you
:P
 
Xeo
@DeadMG Hello RNG!
 
a quick question to you guys, in visual studio, how do i check how much memory my program occupies at that time?
 
@coolbartek: taskmanager / perfmon?
 
First, you run Process Explorer.
Then you forget about Visual Studio.
 
anything inside VS?
alright
 
10:04 PM
@coolbartek: why
 
task manager? you get a big downvote for that
 
thanks :)
 
you can probably integrate the .NET memory profiler into it :0
But i haven't seen it done before
 
i think procexp is easier :)
thanks guys
 
Also, you can now craft games on Steam.
 
10:05 PM
@DeadMG: fine. I don't care. Task manager sucks, but is a hell of a lot faster and ubitquitous
 
That's how contagious hats are.
Task Manager is also basically useless.
 
Yes, hats.
 
lol
your mother
 
:(
 
10:19 PM
damn
I wish unique_ptr had a better operator= design
 
Xeo
What's your problem with it?
 
well, I want to make a data structure which is a simple tree using inheritance
but it's annoying me because when you insert a unique_ptr<Derived> into, say, an unordered_map<string, unique_ptr<Base>> you only get back a unique_ptr<Base>&
so it's irritating to have to make intermediate variables or cast when I need neither o those things
 
@MaxPM Do the keygen chiptunes have actual names? I heard flimbo and comic bakery remixes but they're listed under the name of the program
 
I actually had to use new directly, and I feel dirty
 
Xeo
@DeadMG Ehm... what else would you expect?
 
10:23 PM
well, the LHS unique_ptr must now really contain a type of the RHS unique_ptr
so it would make my life easier if it would return that type
but I guess that would make too much sense
 
Xeo
You could argue about shared_ptr the same way
 
eh, not really
you can just copy the shared_ptr into the tree
not so for unique_ptr
 
Xeo
Ah. Now I see your problem.
 
yeah
because you can't just do auto ptr = make_unique<...>(...); map[string] = ptr; ptr->shit;
 
But make_unique is a bit of a red herring. It doesn't really do anything.
make_shared is non-trivial, by contrast.
 
10:28 PM
it doesn't really matter how you came by the original unique_ptr
 
Xeo
auto ptr = make_unique<...>(...);
auto& ref = *ptr;
map[string] = std::move(ptr);
ref.shit();
 
now I have a completely worthless ptr variable that has no need to exist and I definitely can't use it for anything
 
Xeo
but I guess that counts as "intermediate variable", eh?
You know, if you plan on using that ptr, why the heck don't you insert it into your map at the very end?
 
T & r = * new T(...); map[string] = std::unique_ptr<T>(&r);
 
what if shit throws an exception?
 
10:30 PM
throw storm?
 
Everything goes down the drain.
 
I guess that actually, it would be stronger not to insert
since I'd guarantee that I didn't change the arguments
if shit threw, then I'd have modified my map but not completed the operation
 
Xeo
auto ptr = make_unique<...>(...);
ptr->shit();
map[string] = std::move(ptr);
 
not that it's very likely that shit will throw anything, ever
but you've gotta be prepared for such things
 
Xeo
Like I said, insert at the very end when you don't plan on using the pointer any further.
 
10:36 PM
Steam math, making perfect sense since 2005.
 
lol
wow, that's quite some games you're buying there for three hundred thousand Euros
 
I'm just browsing through the packs.
 
£254.08 Individual price:
£576.66 Package price:
£49.99 Cost to you:
£204.09 You save:
 
Dooooooownvote.
Finally, something legit to downvote.
 
10:38 PM
actually
it's not UB in C
 
And maybe he won't remove it this time.
 
not anymore
 
Xeo
You know, with those special christmas sales, I'm really thinking of getting some stuff on steam, like Terraria
 
@DeadMG Question is tagged C++, though.
 
I believe that C++11 may have inherited the new C wording
but in any case, it's the OP's fault for tagging both C and C++, and not the answerer's fault
 
10:41 PM
@DeadMG So the OP gets a downvote?
 
yep
 
C++11 allows union punning?
 
C changed theirs to invoke implementation-defined behaviour, I believe
and C++11 may well have inherited the change
 
@Pubby Nope.
@DeadMG C++11 says that a union has at most one active member
... and that it behaves like it was of that type alone
I'm actually not 100% sure how you relate this to "cast-through-union", but I think we agreed last time that it was universally UB
In any case it hardly matters, since you can easily just create a char-pointer and be done with it!
 
Xeo
hm, one sec
 
10:51 PM
is it just me or is meta being trolled pretty well :)
 
meta is a bunch of trolls
 
Xeo
union {
  struct{ int x, y, z; } by_name;
  int as_array[3];
} member;

member.by_name.y = 1;
std::cout << member.as_array[1];
Does that count as UB?
 
@Mysticial I thought Meta served no real purpose...
@Xeo I think so, because as_array isn't active
 
I'm talking about now. Yes, they are trolls in general.
oh wait, there's already a meta post on it... lol
 
Xeo
6
Q: EEEEEK! What the Fruit is going on here?

amanaP lanaC A nalP A naM AThis page looks all messed up and the title bar has a (Prod) on it

 
10:53 PM
If you haven't had enough: without spending any compute [changed]
 
Xeo
fixed already
 
awww... that was pretty amusing
 
great something evil is going on
 
@KerrekSB Lol.
 
how can string::substr(12,18) called on string("commandline,parser,platform") ever return string("parser,platform")?
 
11:03 PM
it's beginning, length, not beginning, end
 
ah, yes
substr works on length
crap
stupid inconsistencies
funny that I realized the mistake just after posting it here
 
the std::string interface in general sucks donkey dick
it contains duplicates for indices and iterators virtually everywhere and about ten billion overloads too many
 
@DeadMG you can assign or append a character to a string, but you can not construct a string from a character (except as a sequence of 1 character); i think that's silly'
 
as I said, sucks donkey dick
 
0
Q: How do I implement this bubble sort differently?

MosheI'm looking to implement a bubble sort. I have the following code that I wrote, which uses a for loop inside of a while loop. How can I make this into a bubble sort that uses two for loops? Here's my code: do { switched = false; for (int i = 1; i < size; i++) { if (a[i] < ...

 
Xeo
11:08 PM
@DeadMG I think everyone agrees on that.
 
@Moshe you don't have a for loop inside a while loop, you have a for loop inside a do loop. try to train in general on translating a for loop to a while loop and vice versa. note that the for loop is formally defined in terms of an equivalent while loop, so translating in that direction should be easy!
 
@DeadMG Stop talking about yo momma already!
 
o_o
 
@DeadMG It was probably written in the pre-STL days. Then, it's already bloated interface was extended to become compatible with the STL.
 
anyone use xmp?
 
11:19 PM
Is this Qt4 book still up-to-date and relevant?
 
copyright 2k9 sounds recent enough to me
I know that Qt hasn't exactly updated itself for C++11
 
@KerrekSB Well, since Qt4 is still the active version...
@DeadMG It probably never will, considering their objective seems to be about recreating the Java class library in C++.
 
@EtiennedeMartel But now it's like 4.7 or so... and it's been at level 4 for decades
 
Isn't building an own JIT-compiler for a JVM a quite big project?
 
@ManofOneWay Building a Jitter for anything is big, I guess.
 
11:22 PM
@DeadMG That I don't mind so much. I'm happy to 11ify myself. Just wondering if the overall Qt-philosophy, if you will, is mature and established
I wish there were a std version of Qt, though :-)
more like Boost -- i.e. extending std, not replacing it.
 
well, just wait for me to finish and then you can :P
or, rather, you could help me write an actual std
 
@EtiennedeMartel What's up btw ? =) You have a lot of snow there?
 
@ManofOneWay Not that much. Maybe 6 inches.
It's a weird winter.
 
11:38 PM
It started snowing today here in Sweden
Last year it started in early November
@RMartinhoFernandes hey man
 
Yeah, we had a snowstorm maybe one month ago. Then it got warmer, all the snow melted, and now it's slowly coming back.
 
user406009
I just had a really cool idea. Perhaps you can implement coroutines in C++ in terms of lamda?
 
user406009
Has anyone tried doing this?
 
Hey there. @thecosh I think I figured out your problem! I'm editing my answer, but you'll have to check it yourself. I don't have the hardware to test this.
 
It's nice to have snow now though, during christmas time :)
 
11:41 PM
Hey, I want snow too!
 
You have sun, I don't
 
Xeo
@Kerrek: As a matter of fact, OP's code compiles fine for me using Clang 3.1, but not GCC 4.4.5
 
@RMartinhoFernandes No, you don't.
 
@ManofOneWay Actually, I can have snow too. I'm going back to my parents' house Thursday, and they live close to the mountains and it usually snows there.
 
Xeo
Maybe I should get around to building GCC 4.7 sometime soon
 
@Xeo It's quite plausible. I think it just depends on the compiler. Nobody promises you that you don't need the definition...
Maybe try with -O0 and -fno-inline...
 
Beware that GCC 4.7 exceptions are broken.
 
Xeo
@RMartinhoFernandes I have a debian vbox, I don't need no shitty mingw. :P
 
They're just uncatchable.
 
@RMartinhoFernandes Finally, exception handling made easy
 
Xeo
11:44 PM
@KerrekSB I don't have any optimisations enabled
And nope, still same for Clang
 
Who knows.. the OP must be doing something that causes the compiler to want the definition!
 
@RMartinhoFernandes Cool, it's nice to have snow during Christmas =)
 
Qt Designer is like Visual Basic Done Right, non?
 
Xeo
@KerrekSB No, not definition, address
 
@Xeo Same thing!
 
Xeo
11:46 PM
Hm
wait a sec
Ha
 
I mean, I agree that while you have the class definition visible, the compiler should already know all the constant values.
 
Xeo
When changing the static int consts to enum, GCC 4.4.5 links fine
 
Although the Qt Designer's "Vertical Layout" and "Horizontal Layout" have defeated me
I just cannot achieve anything I want
 
@RMartinhoFernandes Btw, next semester I will do a project for Oracle, the really cool thing is that they want me to do a JIT-compiler. The not so cool thing is that they want me to do it in Java. They want me to measure the performance. But I'll guess it will be fun anyway!
 
@ManofOneWay ... and that says everything we needed to know about Oracle...
 
11:48 PM
:D
 
Xeo
I still can't remember if a semicolon is needed after an enum definition
 
pretty sure it is
 
0
A: Error when trying to use VBO "array vertex_buffer_object must be disabled to call this method"

R. Martinho FernandesglVertexAttribPointer has two modes of operation. If there's no VBO bound, it takes a pointer to the data as the last argument. If there's a VBO bound the last argument is instead an integer offset into the buffer. In C, you have to cast this integer into a pointer anyway, but it is not treated a...

@thecoshman there, I changed my answer. The JOGL docs suck. That and the OpenGL API sucks too.
 
user406009
What happens when a goto or switch statement jumps past the construction of a class?
 
@EthanSteinberg UB
 
Xeo
11:57 PM
@KerrekSB I don't think so, only if the class is not trivially constructible
We had a question on that some days ago on SO
Lemme find it
 
user406009
@RMartin The OpenGL API does not suck too much when you use the newer functions in its native language C or C++
 
it fails to compile
 
@Xeo Yes yes... jumping past an initialization is UB
 
user406009
Hmm
 
I assume that the OP is in such a general situation
 
11:58 PM
@EthanSteinberg Yes, it does. glVertexAttribPointer is not old API (I mean, it is old, but it's still core) And don't tell me that passing an integer cast into a void pointer does not suck.
 
Xeo
9
A: How can a variable be used when its definition is bypassed?

aixYour code is fine. The variable lives wherever it would live had the goto not been there. Note that there are situations where you can't jump over a declaration: C++11 6.7 Declaration statement [stmt.dcl] 3 It is possible to transfer into a block, but not in a way that bypasses declarat...

Here we go. :)
 
5
Q: Why is it OK to jump into the scope of an object of scalar type w/o an initializer?

Eric ZWhen I'm reading the C++ standard, it seems that the following code is perfectly fine according to the standard. int main() { goto lol; { int x; lol: cout << x << endl; } } // OK [n3290: 6.7/3]: It is possible to transfer into a block, but not in a way th...

 
@RMartinhoFernandes how's the opengl working out?
 
Xeo
@Mysticial We're talking about class types here, not scalar type. :P
 
e.g. if you jump past int a = 5;, then a will be uninitialized. If you jump to a = 8; you're fine; if you jump to ++a; you're not.
 
11:59 PM
@Xeo ah... ok...
 
user406009
So that means this only works if you have almost no local variables.
 
Xeo
@KerrekSB Why not for ++a?
 
user406009
Since the whole design is based around gotoing' around.
 
@Xeo Because you're reading an uninitialized variable
 

« first day (429 days earlier)      last day (4524 days later) »