« first day (869 days earlier)      last day (4081 days later) » 

3:00 AM
@R.MartinhoFernandes It's a wiki you know.
Also it's inconsistent
@R.MartinhoFernandes See here
 
@Rapptz I won't do such massive changes.
 
Be lazy, make a script to make the changes for you ;)
 
There I fixed it for you.
 
Lol
 
?_?
 
3:03 AM
In the end, I installed glew
 
@Rapptz There are zillions to fix!
 
That forced gl to be installed as well.
You'd think mesa would install gl, but apparently not...
 
Do you think it'll be better to have both?
One in the signature and another in the exception tab?
 
you need the mesa dev variant
 
libmesa-dev or something ?
 
3:05 AM
@Rapptz For these simple ones, where it's just noexcept, yes.
But sometimes it can be complicated as heck. Something like noexcept(skgdfhgshshksjlkhjkahjrltkhjktrjheth) might be too noisy.
 
Wow. MesaGL only goes up to OpenGL 3.1
Neato.
 
the noexcept in the exception tab is literally {{noexcept}} lol, they have a template for it.
 
Welp.
I can build kyro
Sort of, get some errors about vector not existing.
But that's okay!
 
that's a pretty big bug there
Assuming std::vector
 
Yeah, std::vector
 
3:13 AM
Ack, I give up. I need the bear's wisdom to figure this out... I'm too stupid to understand boost::spirit on my own. fml
 
How odd.
Right now I'm thinking of IPA to sound.
Isn't that what you guys were talking about a few days ago?
 
Yeah.
I was wondering about it.
 
Ooofff...
I'll try to wrap my head around fixing this later...
 
@Rapptz I found a web service that does it, but it sucks and only supports the English consonants and vowels.
 
English is all that matters etc etc
 
3:20 AM
Actually, I'm not sure it supports all English phonemes.
I have seen it fail pretty badly at simple stuff.
 
try Borborygmus
 
What is that?
 
the rumbling your stomach makes when it is hungry
Borborygmus (pronounced ; plural borborygmi) is a rumbling or gurgling noise that occurs from the movements of fluid and gas in the intestines. This process occurs in some animals, including humans. The sound occurs when gases in the body flow through the small intestine. As waves of muscle contractions move foods and gases through the digestive system, the food is pushed against the intestinal wall, which induces the noise. The process of these contractions is also known as peristalsis, which is the ultimate cause of borborygmus. Etymology Borborygmus is related to the 16th-century French...
 
lmao
the dictionary.com one is accurate
 
3:23 AM
It seems to treat /g/ as /t/
@Rapptz Yeah, but that cannot render arbitrary phonemes; only the pre-stored stuff. Or not?
 
I'm not sure how it does it actually. I always thought it did something with IPA.
 
Trying to use stoiand getting the error: ‘stoi’ is not a member of ‘std’ I am including #iostream and #string any ideas?
 
That sure is a lot of pre-stored words though..
@Phorce Oh right.
MinGW?
 
Nope
I'm compiling gcc on mac
 
then your gcc is too old
 
3:28 AM
This is how it renders my name: dl.dropbox.com/u/13779444/97a153e660aca20e0fe870728792a177.wav totally borked :(
 
or youre not using c++11 flag?
 
@Borgleader oh right that too
I never even think about it.
 
4.2.1
 
old
 
3:28 AM
Old as shit
 
arghh
any resources out there on how to update?
 
what platform you on?
nvm mac
 
mac
 
mac
 
Can't you use clang?
 
3:29 AM
yeah Clang is ezpz on mac :(
I think Clang is going to be a lot more popular later.
 
@R.MartinhoFernandes So your name is... Monty?
 
I just get multiple errors: "clang: warning: treating 'c-header' input as 'c++-header' when in C++ mode, this behavior is deprecated"
 
@Borgleader :(
 
when using clang++
 
[mɐɾtiɲŭ]
 
3:32 AM
Yeah I know what it's supposed to sound like, but the clip makes it sound like monty
 
That thing sucks.
 
I couldn't even hear it
 
0
Q: c++ std::vector and struct - slow

user2117427typedef struct PROP_STRUCT { unsigned int Var1; unsigned int Var2; // Set default value or else there will be problems // Don't care about Var2 PROP_STRUCT( ) : Var1( 0 ) { }; } Prop; typedef struct OWNER_STRUCT { std::vector< Prop > Props; // Set default value ...

^^ eww... typedef structs with constructors in C++?
 
Is "atoi" the same as "stoi"?
 
@Mysticial Gosh ew.
 
3:35 AM
return (0); wtf?
 
Also, is he initialising 150 millions of structs?
 
Arent struct variables default initialized anyway?
 
No.
Fundamental types suck.
 
@R.MartinhoFernandes Yes he is
 
@Borgleader Add the link.
 
3:38 AM
does maarkdown work in comments?
 
yes
[Download more RAM](http://www.downloadmoreram.com/). No seriously, this thing is allocating a lot of memory.
awww he deleted it
 
Yeah I know how to do links just never used markdown in comments
Sadface :(
 
If I update to gcc11 this could mean that a lot of my code may not work, right?
 
@Mysticial, Are you sure that was 1.2GB? Multiplying it by 5 gave me an exception and I should have had about 3GB of RAM left at that rate with what I was using before I ran it.
Oh wait, never mind. Single application.
 
110
Q: What breaking changes are introduced in C++11?

R. Martinho FernandesI know that at least one of the changes in C++11 that will cause some old code to stop compiling: the introduction of explicit operator bool() in the standard library, replacing old instances of operator void*(). Granted, the code that this will break is probably code that should not have been va...

 
3:56 AM
Does it say foo for you guys too?
 
Hey guys, why is this not allowed: "string something = (int) maxNum;" when I can have: "string something = "1";"?
 
"1" is a string literal
or something.
 
@Borgleader Yes.
 
@Phorce you do realize (int)maxNum and "1" arent the same type right?
 
(int) is not
 
3:58 AM
"1" is not a number. This is not PHP.
 
@Phorce ?_?
 
It's 4am in the morning.. Don't think my mind is in the right place
sorry
 
5 AM here :D
 
11 PM here.
 
@melak47 That's a long night -- you need to get to bed soon.
 
4:00 AM
11PM here too
ive been spiriting since like 2PM this morning >.>
 
I think my rewrite using sinatra is much cleaner than the mongrel based one (which was badly written independent of platform).
 
@JerryCoffin that's okay, I passed out and napped for a couple hours earlier :p
 
isn't this what you wanted?
 
11pm isn't the best time to answer questions. I confused myself while answering one, mainly because my answer was trying to prove that it was an impossibility.
 
4:03 AM
@Rapptz Yeah, I've solved that part! I just need to concatenate back into a string. I've got a list of files file-1, file-2, ........., file-10 and the next file that should be created is file-11 but string dir = directory_name + "-" + maxNum + ".txt"; doesn't work, obviously
 
I'm bored, can you give me an example of preferred output?
 
Java has to be the most unintuitive language I've ever used. Nothing I've expected to work so far has.
 
Was that aimed at me Rapptz?
Sorry
 
Yes
 
With a focus on swing, as that's what our dumb course uses.
 
4:07 AM
You can make it an SO question too if you want
 
So the list contains files "file1.txt, file2.txt" and the algorithm will find the largest value (2 in this example) and will create a file with the following format.. "directory/training/training-03.txt"
does that make sense?
I guess I need to upgrade to 11 at some point, then I could have used to_string(#)
 
The first time I used a JList, I was at the point of coding for enough time that I gave up trying to get over the initial understanding list models hump and just replaced all of the list data when I wanted to add/remove anything.
 
@Phorce You're using POSIX?
 
No, I don't believe so @Rapptz
 
When you posted your Directory class I saw opendir
Because I have this thing that sounds similar.
 
4:11 AM
@chris I find Tcl to be way more intuitive.
 
I find C# to be extremely intuitive myself.
 
@Rapptz That looks neat! Do you mind me borrowing some functionality from that? ;-)
 
nop, go ahead.
 
Don't even get me started on my first attempt at using JNI. I wanted it to use SAPI to speak something without the teacher having to set up JNA.
 
Thanks man
 
4:16 AM
Could you convert your question from binary to english. — Mike C. 2 mins ago
^^ brilliant
 
needs 1 more vtc
 
That K in their name confused me into thinking they had 31k rep.
 
lol
What the hell? Accidental post >.< — B1KMusic 42 secs ago
^^ err.... sure...
 
when you do ^^ is that a face, i.e. shorthand for ^_^ or is it pointing up?
 
pointing up
 
4:22 AM
this whole time I thought it was a face, since that's how I use ^^
 
Yes, I was typing up thoughts that I wasn't considering posting, but I accidentally clicked "Post". I thought I cancelled it, but apparently I just completely fucked myself, lol. — B1KMusic 1 min ago
 
Typing up some thoughts in the Post question box? Seems legit
 
this guy is definitely high
 
wtf
 
4:27 AM
@Borgleader not everyone has notepad
 
Finished! @Rapptz Thanks for your help again, going to go for a small break before the serious work starts
 
mhm np
 
lol, I just got 3 upvotes for dupe-voting a Java question to one of my own answers.
 
lol, link?
 
5
Q: Why is this a valid statement in Java

One Two ThreeI've come across an article on javacodegeeks, which includes the following piece of code as one of 'weirdness' of Java. After all these years working in Java, I thought I knew it pretty well, but after seeing this, I've got to admit I was wrong! int i = (byte) + (char) - (int) + (long) - 1; Sys...

 
4:39 AM
WTF, how can I get a deadlock if I have a recursive mutex on a single thread?
 
Upvotes flow like rain in .
 
I think I saw that same question for C or C++.
 
@R.MartinhoFernandes That's because your recursive call tries to access the lock before the parent releases it.
 
@Mysticial That's fine, it's a recursive mutex.
 
oh
misread
 
4:42 AM
Oh joy, another case of using char * to point to a string literal.
 
@R.MartinhoFernandes how do you know it's actually a deadlock?
 
terminate called after throwing an instance of 'std::system_error'
  what():  Resource deadlock avoided
 
oh
 
Well, that's uhh, explicit.
 
Try adding a print to every instance the lock is acquired?
 
4:47 AM
@chris Right now, somewhere Stevie Wonder is singing "Isn't it lovely..." :-)
 
locking
terminate called after throwing an instance of 'std::system_error'
  what():  Resource deadlock avoided
That's just wrong.
 
@R.MartinhoFernandes lol.
Person terminated
    what(): Cancer avoided
 
lol
 
Reminds me of all those drug ads.
They spend half the commercial listing side-effects.
 
4:49 AM
Forgot std::unique_lock acquires the mutex unless you pass std::defer_lock
 
Sure it'll solve my back-pain, but I might die from side-effects.
 
I'm never going to get the hang of all the new concurrency stuff at this rate.
 
@chris Actually it's quite simple
1) Don't share data
 
@Mysticial The ones that prevent mild headaches, and possible side effects include explosive diarrhea, blood spurting from your eyes, and slow, agonizing death?
2
 
2) If you have to share data, use a library built by experts
 
4:51 AM
@Insilico Which is exactly the way I approach it.
@JerryCoffin Yeah...
 
terminate called after throwing an instance of 'std::system_error'
  what():  Resource deadlock avoided
B: setting 17
Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7ffff6ffb700 (LWP 14983)]
0x00007ffff70312c5 in raise () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007ffff70312c5 in raise () from /usr/lib/libc.so.6
#1  0x00007ffff7032748 in abort () from /usr/lib/libc.so.6
#2  0x00007ffff7b38e9d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6
#3  0x00007ffff7b36f96 in ?? () from /usr/lib/libstdc++.so.6
Godammit.
 
lol
 
Oh, wrong thread.
 
@R.MartinhoFernandes Pun intended? lol.
 
K, now I'm getting a deadlock in a condition variable wait o_O
 
4:56 AM
@R.MartinhoFernandes "Error: success"?
 
@R.MartinhoFernandes I noticed you don't have -pthread in some of your SConstruct, but I glanced very quickly. Related?
 
Nah, I'm messing with something isolated.
Just trying to hack something as a POC.
 
POC = Piece of Crap?
 
Proof of Concept, but yeah, that too.
 
5:00 AM
@Mysticial I was thinking 'piece of code'.
 
Fuck it, I suck at this.
 
Is it stupid to abuse operator "" and boost.pp to get dice syntax working? Like 3d20.
 
5:16 AM
operator "" ?!
 
@melak47 user-defined literal.
 
Hiya folks! :D Good morning to all of you! :D
 
I've done some terrible, terrible things with that operator. All in fun, of course.
 
I just have one question, when creating a class, why have a .h file and a .cpp file separate ? It really annoys me, because the linking can get hideous.
 
@Pubby As in "3d20"_dice? I'm pretty sure I've seen worse uses of it anyway.
 
5:18 AM
@GamesBrainiac, I think there's a question on that here somewhere.
 
@JerryCoffin No, it's just 3d20 ie integer literal
 
Have fun doing it for each number of sides.
 
That's what boost.pp is for
 
@Pubby Maybe it's just late enough that I'm not thinking straight, but how's a d doing to fit into an integer literal?
 
@JerryCoffin d20
3_d20, probably
 
5:20 AM
operator "" d20(unsigned long long num) { /* ... */ }
 
Well, the only other thing is that d20 is technically reserved. Better if you stay safe and put in the underscore.
 
Great, now I switched from having a deadlock exception being thrown, to having a deadlock without exception.
 
@Pubby I guess that makes sense.
 
1
Q: Any disadvantage if only using cpp files without separate header files?

JabbaI have found some threads that explain why C++ separates .cpp and .h files (e.g. here). I'd be interested to know if it causes any problem if I don't separate them. I don't want to share the object files, so what's the benefit of the separation on a small project? If it just slows down the compil...

But still, I really don't think more compilation time is a big deal
 
You say that now.
 
5:22 AM
This one was linked to in there. Might be a bit better: stackoverflow.com/questions/1686204/…
 
I used to use a single main.cpp and hundreds of header files.
 
Fuck yeah, works.
I have a const_cast in there, but whatever.
 
It worked like a charm... until compilation times starting to approach upwards of a minute...
 
Lucky me, I haven't had to worry about compilation time yet. At least I know what to expect.
 
// ugh, I know what I'm doing :(
 
5:24 AM
So I learned my lesson and starting breaking up the code into multiple compilation units.
Then the linker times started to approach upwards of a minute... fuck...
Not cool... not cool at all...
 
@Mysticial, Just wait until we get modules <3
 
@chris I eventually separated out the bulk of the program into its own DLL.
That solved it...
This is y-cruncher btw...
 
Oh, y-cruncher. I didn't realize it was that big.
 
Only on final release builds is it all done together in a single module.
Which takes like 5 minutes on my machine.
 
@Mysticial lol That was funny! :P
 
5:27 AM
I like the freedom of being able to use whatever C++11 features I want and to start using new features right as they come out. I'm going to be sad when I'm stuck working somewhere with C++98 only (and knowing my luck, no boost).
Or worse, Java.
 
The mess is that I have to support multiple modes of compilation:
1. Single compilation unit.
2. Multiple compilation units. Statically linked.
3. Multiple compilation units. Dynamically linked.
 
@chris When you start to build in your own RAID and things like that, I'd expect the code to start expanding a bit.
 
When I'm developing the top-level code, I compile in mode 3.
When I'm messing with the low-level code, I compile in mode 2.
Release builds are done in mode 1.
 
I just found the solution to this problem : no operator matches "<<" And all you had to do was `#include <string>' Anyone know why?
 
Because you were missing it?
 
5:33 AM
No, I mean, why do you need to include string, when all you are doing is taking user input?
 
@GamesBrainiac You're taking user input with <<? That sounds somewhat...dubious.
 
In any case, can't operate on the data type without knowing the data type.
 
@JerryCoffin Oop,s I meant `>>'
Also, is there a better way to do this? As in taking input? From your experiences?
 
@GamesBrainiac So what type are you reading the input into?
@GamesBrainiac I tend to use std::getline a lot more when reading strings.
 
@GamesBrainiac, Because another header exposes part of std::string's interface.
 
5:35 AM
@JerryCoffin String.
 
@GamesBrainiac Yes, if you're going to read into a string, then you need to include <string>.
 
@JerryCoffin that sounds better. I will use it then, since you recommend it
 
I recommend line-oriented I/O, so std::getline. In particular extracting into an std::string is... interesting.
 
But let me as again, in GCC you do not need to use #include <string>
you can automatically take input from a string without problems
 
@GamesBrainiac, It all depends on the implementation.
 
5:36 AM
i see, visual c++ and gcc are a bit different it seems
 
Which is why it's a good idea to always include it yourself when you need it.
 
@LucDanton Or you can use >> to read lines. stackoverflow.com/a/1567703/179910
 
@ScottW, Add -std=c++11.
 
-std=c++11
 
5:38 AM
@GamesBrainiac It's actually pretty common that at least part of string works without including the correct header. VC++ used to do that too, but has recently tightened things up a bit so you nearly always need to include the header.
 
You need to have a version of GCC that supports C++ first
MinGW does not
@ScottW Nope
The link I sent you is the only one
 
Huh? My MinGW distro supports C++11 just fine.
 
Or you could use Visual C++
But even that does not have all the features
@chris It does not have all the features
I checked.
 
@GamesBrainiac What MinGW is that?
 
Nothing has all the features.
You mean <thread>?
 
5:40 AM
@GamesBrainiac Which is not what you said.
 
@JerryCoffin 4.7.2
@chris This one does. You can try it out for a spin
 
@GamesBrainiac In that case, MinGW supports C++11 just as well as about any other distribution of gcc.
 
I haven't heard anything about anyone having complete C++11 support yet. It's very highly unlikely.
 
@JerryCoffin Yes, I get that with -std=c++11, but it does not have all the features. But, this one to my knowledge does have full support
 
The threading I can live without so long as I can use it with MSVS.
 
5:42 AM
@GamesBrainiac I'm pretty sure there's no compiler that currently supports all of C++11.
 
@JerryCoffin Try this out and tell me.
 
Anyone have an idea when the November CTP is going to be finished?
Here's an easy enough test for it: inheriting constructors.
Those are newly supported in GCC 4.8.0.
 
@GamesBrainiac I know for a fact GCC 4.7.2 does not support all of C++11.
 
@R.MartinhoFernandes Which GCC do you have right now?
 
Several.
I use 4.7.2 for my hobby project.
 
5:45 AM
I'm eagerly awaiting 4.8.0.
 
I don't think 4.8.0 has been made available yet.
 
Yes, awaiting. It should be done sometime in March. There are versions you can get now, but I'd rather wait until it's finished.
GCC's list of C++11 features is growing nicely. <regex> would be kind of nice, though.
 
I had 80ish TODO items that I just recently cleaned up down to 50. A lot of the remaining ones are due to ref-qualifiers for member functions.
 
Anyone know when C++13 spec will be out?
 
5:49 AM
3013 probably
 
@GamesBrainiac No -- nobody does. But it's currently expected as c++14, not 13.
 
@JerryCoffin I heard it was 13, not 14. When did they change the year? :P
 
@GamesBrainiac I don't think 13 was ever expected. isocpp.org/std/status
 
@JerryCoffin I just read here on chat, that there would be a C++13. I didn't read anything official
 
typo from 14.
 
5:52 AM
But from the looks of things, C++14 does not promise too much change.
 
Stop challenging the world when you find out your assumptions are challenged.
Ah, I can't words. Time for vidya gaems.
 
0
Q: How to solve the bounded buffer producer-consumer using semaphores in c++ or c?

user2124668I need to code and implement a solution to the bounded- buffer producer-consumer problem using semaphores. I tried a couple of solutions and that of wikipedia. I need the code in c++ format or C.

 
@LucDanton Play Assassin's Creed 3?
 
^^ GIMME TEH CODEZ!!!
 
@Mysticial Thats just asking for code! :P
 
5:54 AM
By the way:
[[noreturn]] void f();
 
@chris is that lambda?
 
Doesn't like the [
 
@GamesBrainiac No.
 
No, it's the C++11 attribute syntax.
Not supported in your link, and nor are inheriting constructors.
 
@chris Recent enough GCC has attribute syntax but no noreturn attribute.
 
5:55 AM
@LucDanton Did you watch the vidya gaem awards?
 
@Pubby No.
 
@LucDanton lol, which attributes are supported?
 
@R.MartinhoFernandes I'm fairly sure 'none' is the answer.
 
@LucDanton, Yeah, this is supported in 4.8.0. I was proving my point.
 
@Mysticial I'd say absent some editing within 10 or 15 minutes, it's NaRQ.
 
5:58 AM
lol, "C++ format"
 
@R.MartinhoFernandes 'in C++ form' would work, sort of, so someone generous would pass that as an innocent mistake.
 

« first day (869 days earlier)      last day (4081 days later) »