« first day (784 days earlier)      last day (4164 days later) » 

user142019
Wat. Is clang implementing modules?
 
Xeo
I dunno if he just lacks common sense or is such a pedantic person that he's unparalleled even in the C++ space.
 
@Zoidberg'-- Yep.
 
user142019
AWESOME
 
@Zoidberg'-- No, it's bad.
 
user142019
8:01 PM
It cannot be badder than #include, can it?
 
Xeo
@Zoidberg'-- Doug Gregor is implementing a module map thingy in clang, IIRC, as an implementation experience.
 
@Zoidberg'-- Depends on what you consider to be bad.
 
Xeo
@DeadMG Why?
@Zoidberg'-- *worse
 
the Clang guys are wasting a shitload of time that they could be spending having a not sucky API or Windows support or fixing bugs or whatnot
 
user142019
@Xeo it was on purpose :P
 
8:03 PM
and in exchange, we're getting a half-arsed modules implementation for which there is no specification and will likely be totally incompatible with the end result
 
Xeo
@DeadMG Wat? No specification?
 
@Xeo If the Modules spec was done, it would be in C++14.
 
Xeo
@DeadMG Where "the Clang guys" == "Doug Gregor only", IIRC.
 
they won't even be proposing their TS until 2015, I think it was, or 2014.
 
user142019
When C++ gets modules, this is what’s going to happen to me, along with a few heart attacks and followed by a chronic erection.
 
8:05 PM
So you'll be dead?
 
user142019
I hope not.
 
user142019
I want extern "Haskell".
 
Increase in body temperature, minimum of 2 MIs and then a rush of blood for over 6 hours on your penis sounds like it can kill you.
 
user142019
Ah well, I can at least actually enjoy writing C++ for six hours.
 
I discovered that Firefox now suddenly opens a PDF in Adobe Acrobat in-browser viewer. While the options say (or said) "always ask". The Adobe malware attractor is not listed as an extension, nor as a plug-in, apparently it can't be turned off! I changed the option from "always ask" to using Sumatra. That worked, but really, shouldn't Firefox respect the "always ask" option?
 
8:13 PM
@DeadMG Given that Doug Gregor (among many others on the Clang team) works for Apple, I doubt they consider Windows a high priority.
 
@MooingDuck Well, seems enough people care that we will have to get a translation agency to do it :/
 
user142019
Microsoft could abandon their own shitty compiler and improve Windows support in clang instead. clang has a permissive license so they can make their derived version closed-source if they want.
 
@Zoidberg'-- hush!
 
user142019
Is there a C++ implementation in Haskell?
 
@Zoidberg'-- First they'd need to port Windows and Office and half a zillion other things to Clang. Somehow I don't see that happening.
@Zoidberg'-- Seems a little hard to imagine that there would be, anyway.
 
user142019
8:17 PM
Hmm, there is a C parser in Haskell.
 
user142019
Anyway, time to work on Zoidlang.
 
@Xeo I don't like my answer in the linked question :/
 
@Zoidberg'-- No, because nobody sane writes C++ implementations.
It's a horrible language to use, and 1000 times worse to implement.
 
Xeo
That Dan Nissenbaum guy is getting on my nerves ... I think I'll just ignore his questions from now on.
 
Ahahahaahaha MSVC broke __LINE__
 
8:28 PM
@Xeo I'm evil.
7
A: using C++11 attributes

R. Martinho FernandesAttributes (a new C++11 feature) are just a standardized syntax for compiler extensions. To do what you want you would need a compiler with the proper extensions. So far, I don't think any compiler even implements attribute syntax, much less any specific attributes for Python bindings. Because t...

 
lol
 
damnit, silly CMake didn't make VS build any libraries
I can't link a .exe to my program
 
> I am trying to pass a member function within a class to a function that takes a member function class pointer.
Is it bad that I had to re-read that twice to get it
 
I did not get it.
 
-2
Q: post and pre increment operator,different results in compilers,c++

user1888385In visual studio and in gcc compiler i give the following code: int b=1; int c= (b++) + (++b) + (++b) + (++b); and the result is: visual studio 2012: 16. gcc/codeblocks IDE : 11. First of all i think that this would be 13. Is it true? Because i got confused i decided to print the statements ...

 
user1182183
8:36 PM
why does `GetPlayerPosPositionData = {4*sizeof(cell),playerid,0,sizeof(cell),2*sizeof(cell)};` produce an error, I hate it to do:

GetPlayerPosPositionData[0] = 4*sizeof(cell);
GetPlayerPosPositionData[1] = playerid;
GetPlayerPosPositionData[2] = 0;
GetPlayerPosPositionData[3] = sizeof(cell);
GetPlayerPosPositionData[4] = 2*sizeof(cell);
 
I still think this is a poor question because it does not show any research effort. The author did not check one of the several lists of new C++11 features that can be found linked in both the [c++] and [c++11] tags. — R. Martinho Fernandes 11 secs ago
 
Xeo
@R.MartinhoFernandes Not to mention, on Google.
"C++11 attributes" in Google should show plenty of results.
 
user1182183
and I managed to "hack" that C amx stuff.
 
user1182183
I feel so great ; o
 
If the answer is on the tag wiki, -1, close as too localized (for lack of close as RTFM)
 
user142019
8:40 PM
@R.MartinhoFernandes clang supports [[noreturn]], at least on my machine (and it gives a warning if a function appears to be able to return).
 
user142019
So there is at least one compiler that implements the syntax (at least partially). :P
 
@Zoidberg'-- The answer is outdated now. I won't update it without a total rewrite because I don't like it. It is half-wrong.
 
user142019
Oh. Didn’t notice that.
 
Hmm, shops closed tomorrow. I should go buy foodstuffs for the meals before they close today.
 
Ell
8:58 PM
I started doing all my schoolwork in a bit latex document
but latex is so unwieldy and unnecessarily difficult
I think I might just use a hierrachial folder structure filled with word documents
 
I use Markdown for most stuffs.
Pandoc to PDFify it.
 
Ell
markdown
I might use html
 
Pandoc can make markdown to PDF? I thought it was only LaTeX
 
0
Q: Send to class char array defined in header

MacKeyThe issue that I am having is that I am trying to build a DLL. And I am using char instead of strings to store information. I have defined the following in the header file: class Test{ public: int qLenght; char firstName[]; char surName[]; }; I am having problems inputting codes f...

^ Normally I would say "just use std::string FFS", but the whole DLL thing had me thinking some more.
 
Why would a string prevent you from building a DLL?
 
9:08 PM
Yeah I don't understand either
 
@Rapptz Me neither. Which made me wonder if I'm missing something
 
@Rapptz I think it needs pdflatex installed anyway to do it.
 
Ell
I always make the mistake of downloading doxygen with latex support then it takes ages to download
 
Just looked at a couple DLLs I made for DLL injection, 3 of them have std::string
 
std::string is fine, unless you put it on the ABI/API.
 
Ell
9:10 PM
@Rapptz dll injection?
I want to learn to crack things.
 
twas the reason I learned C++.
 
Ell
but I remember cat saying it's no longer as simple as changing a conditional jump to an unconditional
although that's asm really isn't it
 
There's a lot of inline asm in dll injection
At least when I did it
 
Ell
yeah
 
Looking back at it, chances are this is what you guys would have considered coding C++ as "C with Classes"
 
9:13 PM
lol
 
@Rapptz Actually I wouldn't. "C with Classes" is much worse. :-)
 
Ok, time to look at those pull requests.
 
Here let me put up an example on pastebin
 
I can't believe people are still upvoting this: stackoverflow.com/questions/2933295/…
 
user1182183
omit frame pointers
 
user1182183
9:15 PM
if I enable that, will my program perform faster?
 
user1182183
(visual 2012/windows)
 
You probably won't notice it.
 
@Insilico "viewed 3661 times "
 
@GamErix The correct answer is "Measure it yourself".
 
user1182183
9:16 PM
but for example a calculation of 30 ms
 
@Insilico I was super tempted to downvote, actually
 
user1182183
could it be reduced?
 
suddenly realized raw new and delete
 
@DeadMG Hehe. I'll change that to std::vector or something later when I have the time to test it.
 
Hmm, @ThePhD's repo is 600k bigger. I wonder what happened there.
 
9:18 PM
@R.MartinhoFernandes What's this repo that you speak of?
 
Kid's been helping me downgrade ogonek to build on MSVC.
 
Xeo
lol, "downgrade" :D
If only it wasn't the truth.
 
Does ogonek use a lot of C++11 features?
 
Xeo
Heh, yes.
 
That might explain it.
Perhaps that 600k increase isn't all that surprising then. :-)
 
9:29 PM
@R.MartinhoFernandes It's one of the fixed UCD files.
 
The UCD is not on the repo.
 
it had to go from { } about 21 million times to some::long::type { etc {} etc {} }
 
Exactly for that reason.
 
oh
then I don't know why
 
Ell
I hate it when pen and paper is much quicker than digital format :/
5
 
9:30 PM
Like a math problem in LaTeX?
 
I had MSVC telling me that std::vector<std::string>::iterator::value_type was an unknown type. GCC and Clang compiled it just fine. Here's the SSCCE I eventually came up with, including MSVC's 150 lines of errors. Luckily I finally figured it out.
 
What was it?
Oh.
Missing <string>.
 
yeah. All 3 really need to alter their libraries to make that easier to notice
 
@Ell In particular on Android. How on Earth is it possible to completely botch copy-paste functionality on a design originating after the year 2000? Argh!
 
VS2012 just froze on me, cool.
 
9:38 PM
Visual Studio is so cool that it freezes.
14
 
How do I disable the update checker?
I don't care about your NuGet Package shit
@MooingDuck Compiles fine on VC11 o.o
 
@Rapptz oh, well VC10 in my case
@Rapptz it's incorrect according to the spec
though my clang seems to be in a bad state. It can't compile stdexcept or type_traits again.
 
@MooingDuck Not really incorrect, just not required to work. The standard allows any standard header to include any others as it wishes.
 
@JerryCoffin oh. Well anyway they should redesign the libraries to make it more clear when you missed a header. To never include others.
"error MSB6006: "mt.exe" exited with code 31." Everytime. Wonderful
 
@MooingDuck Kinda hard to never include others -- for example, you're now allowed to pass a string when opening an fstream. Pretty nearly requires fstream to know about string.
 
9:51 PM
Oh, I manually added the string header. I took it off and it failed to compile.
 
@JerryCoffin What if you put the string class definition in string_class_def.hpp, and the string class member function definitions in <string>. Wouldn't that compile without string as long as you never used that function, but if you tried to use that function complain about undefined functions unless you remembered <string>?
*wouldn't fstream compile without <string> being included as long as you...
no I dont think that works in the general case
 
@MooingDuck Oh, if you're willing to put enough effort into it, you can undoubtedly manage. The C library mandated that each header only define what was required (outside of names starting with double underscores and such, anyway), and they managed to do it. The rule was changed largely to reduce/eliminate the hoops they needed to jump through (though, in all honesty, I think it should have been left as it was).
 
If they use header guards, is it really that bad?
 
@Rapptz we're not talking about anything affected by header guards
 
I know what you're talking about. The inclusion of other headers inside other standard headers.
 

« first day (784 days earlier)      last day (4164 days later) »