« first day (991 days earlier)      last day (3952 days later) » 

user142019
11:00 AM
Arrgggggggggggg I can't find that question back.
 
0
A: #include inside function body doesn't work (CDT/Eclipse C++)

STLDeveloperC++ include files must be included at the top of the module, not intermingled with the module's code. Move your #include "foo.h" statment above your void main()... statement and try again.

that doesn't sound right
 
@jalf oh wait, not in all cases :(
 
@Telkitty猫咪咪 I do.
I have 65.25 GB of free space for all my pron documents.
 
JBL
@thecoshman Never seen this kind of code, but naively, does it just change like.... nothing? It's preprocessor directive anyway...
 
Although I'm not sure how much longer I get to keep all them GB.
 
11:02 AM
I lost count of how much space I have on Dropbox. I only use a few megs and have over 100GB.
 
why the heck is it syncing the same files on both accounts
omg ... wtf
 
@Navin seebs.net/c/c_tcn4e.html (Somewhat out of date, but things haven't improved I'm afraid)
 
> A good answer to this question could fill a book by itself. While no book is perfect, Schildt's books, in the opinion of many gurus, seem to positively aim to mislead learners and encourage bad habits. Schildt's beautifully clear writing style only makes things worse by causing many "satisfied" learners to recommend his books to other learners.
 
I wish Dropbox has more advanced synchronization options. Even the SyncToy thing Microsoft published has more sync options.
 
default to auto sync
 
11:07 AM
@Insilico that looks good.. except their html page desing
 
Xeo
@R.MartinhoFernandes How'd you get that much oO
 
actually there is no design
 
@Xeo You can pay for more space but there are actually a bunch of ways to get extra space for free
 
Xeo
@Insilico I know the referral one, but that one only goes up to 16gig, no?
 
@Xeo Right. But there are a bunch of other ways that gets you more (albeit for a limited time in some circumstances)
 
11:12 AM
@Xeo Accidentally?
It just kept piling up, for all I know.
I never asked for this burden!
 
Samsung has this thing where if you connect any of their Android devices to your Dropbox account you get 48 GB for a year or something.
 
@Insilico Oh, yeah, that too.
 
I bought a Galaxy Tab 2 because it was on sale (I don't care much for tablets, TBH) and decided to link the Dropbox app on it to my account not knowing that it comes with free 48 GB for a year.
I haven't used anywhere near 65.25 GB though.
I got another 15 GB from this Space Race thing they did earlier
 
user142019
lol
 
user142019
People flagging in a "Room for X and Y".
 
11:16 AM
@Insilico I think I got more from that.
@Insilico Two years, actually.
 
@R.MartinhoFernandes Oh yeah, that's right.
 
Space race thing is for 2 years, too.
 
I might go and shell out the $99 per year thing for 100 GB depending on what I plan to use the thing for in the next few years.
That's not likely though.
 
so
@CatPlusPlus ohnoes I kinda got used to the fact it's infinite
welp, fuck it, I won't need that much space after I am done with my uni anyway
 
Okay how the hell am I supposed to be able to validate spam/offensive flags if I don't even understand what the message is saying.
 
11:23 AM
@Insilico go into the room and tell them to fuck off and stop flaggin?
 
SecureZeroMemory(&this->entityData, sizeof(this->entityData));
wtf.
(entityData is apparently a C++ standard library object. lol)
 
It's probably a std::vector or something.
 
11:28 AM
gosh fuckers using pointers
 
Yeah I'm not willing to look through the OP's code to find that out.
 
random-2d-game, huh?
oh god DirectX closes tab
 
Xeo
@BartekBanachewicz Oh no~ It's like a victorian horror creature~
 
@Insilico It seems to be a struct containing a string, most probably a std::string.
 
Is Java n C# the biggest threat to C++ or the modern C++ is a thread for C# n Java... as far as i can see companies are scared to develop in C++ because it's hard.. because of that job market for C++ developers will reduce isn't it..?
 
11:30 AM
@Xeo I am not going to touch anything related to Dx. The sooner it's dead the better.
 
But of course the OP decided his code would be more readable without the std:: prefix. Sigh...
 
Xeo
@BartekBanachewicz Oh gawd, you suck.
 
@Navin your assumptions are pulled out of ass.
 
@Navin Java and C# have different target audiences than C++, so neither is a threat or thread :) to the other.
 
@Xeo why now exactly?
 
Xeo
11:31 AM
"Kill the things I don't use / like for whatever reason!"
 
@BartekBanachewicz What's the alternative? OpenGL? Holy hell OpenGL API interfaces are even worse than Windows API interfaces.
 
@Xeo it's not "whatever" reason
 
@Navin If you want to make sure you get a job, there are two ways: learn what everybody else is learning, or learn what nobody else is learning.
 
@Insilico at least they are compatible with the language they are written in (hint: DirectX is not)
 
@Navin No one is threatening anything.
 
11:32 AM
C# is threatening C++ with async/await :)
 
Xeo
std::thread csharp(&nuke_from_orbit);
 
@BartekBanachewicz Isn't the DirectX API COM?
 
Xeo
@FredOverflow Heh
 
@R.MartinhoFernandes I am not sure what it is, but it's certainly not C++.
 
@BartekBanachewicz Uh, OpenGL explicitly relies on UB in several places (a few extension specs actually called it out, basically going "oh, this is UB in C, but it's safe in practice, so no biggy"
 
11:33 AM
@BartekBanachewicz Isn't OpenGL language-agnostic?
 
@Xeo A threat in a thread, that's awesome!
 
user784668
lol GCC
 
@R.MartinhoFernandes I think we were talking about particular API realization. It is, of course.
 
@FredOverflow well C++ is best for socket level programming but my company is planning to go java because of the time constraint and error handling
 
@BartekBanachewicz how exactly isn't it C++?
 
11:34 AM
C# is the 3d C++ --> ++ when looking from the front, but from a different angle, it looks like #
 
@jalf That's a flaw of particular implementation
 
@BartekBanachewicz COM is language-agnostic too.
 
@jalf it doesn't compile under C++ compilers.
 
@fre
 
11:35 AM
@BartekBanachewicz so... you're saying that "directx is incompatible with the language it's written in" because it doesn't conform to ISO C++. But opengl is fine because we can just disregard the C implementation when it doesn't conform to ISO C?
 
#ifndef LOGGER_H
#define LOGGER_H

#include <string>

using namespace std;   // SRSLY?
 
@R.MartinhoFernandes Well then, the available DirectX API isn't C++
 
Double standards much?
 
@FredOverflow so what nobody else is learning? its not about getting a job.. it's about the demand ..
 
@BartekBanachewicz No, you mean the interface designed to work on the MS compiler doesn't work on others. Big deal.
 
11:35 AM
@jalf OpenGL is an open standard. DirectX is a closed implementation
 
I do "using namespace std"
 
@Telkitty猫咪咪 :D
 
@R.MartinhoFernandes the code doesn't compile. If that's not a big deal I don't know what is.
 
Xeo
@Fanael Removing the static_cast or adding extra parens works
 
@BartekBanachewicz What code?
 
user784668
11:35 AM
@BartekBanachewicz Moving the goalposts.
 
@R.MartinhoFernandes Dx headers.
 
@BartekBanachewicz Cool. Please show me aC-conformant OpenGL implementatino then?
 
@BartekBanachewicz The code you write is merely C++.
 
@Navin Learn what you think is fun. You'll probably be dust in 50 years. Don't waste your time with something you don't like.
 
user784668
@Xeo Ya. Still, a bug is a bug.
 
11:36 AM
@BartekBanachewicz You mean the DX headers designed for the MS compiler.
 
Xeo
@Fanael Sure
 
@BartekBanachewicz really... just... grow up. This garbage was cool back in 1998 if you were 14 years old at the time. You're better than that lopsided garbage fanboyism
 
@Navin What makes you think that "C++ is best for socket level programming"?
 
yea, whatever.
You're all right, sure.
 
11:37 AM
fuck this thread.
 
^ I have no idea if the steps listed in that article works.
 
Xeo
std::this_thread::fuck
 
user784668
@BartekBanachewicz I can use DirectX from under GCC and Clang, where's your god now?
 
@Fanael pics or didn't happen
 
1
Q: g++ windows using DirectX?

NektariosIs it possible to compile code using g++ on Windows and to use DirectX? Are there major speed differences from using the Visual Studio compiler? Since DirectX is already a compiled library I assume there's no difference. Does any kind of licensing prevent this?

 
11:37 AM
Laughing at people getting invested in their tools.
 
So OpenGL is better because while its implementations are as broken as the DX implementation, *it doesn't matter since "it's an open standard"
 
@Insilico okay, that's new.
 
Meaning, presumably, that if I have a problem with the fact that the C API requires reliance on UB, then I am free to... use the Python API? Define my own C API?
 
@BartekBanachewicz COM is not a language. MS's C++ compiler has some language extensions related to it, and MS ships headers that use them. That does not mean you cannot have headers that don't use them (hint: you can; COM is language-agnostic)
 
11:38 AM
I stand corrected.
 
user784668
@BartekBanachewicz Download rubenvb's GCC, and then TIASFY.
 
@jalf pretty much.
anyway, I don't care
use DirectX if you want
really.
 
On which planet does that make sense? How would that possibly translate into a real-world advantage for any developer anywhere?
@BartekBanachewicz uh... teh last 10 minutes of discussion proves otherwise
See previous note about stuff that was cool when you were 14. Losing an argument and going "anyway, I don't care" is on that list
 
@FredOverflow C++ sockets read write is faster because it directly communicate with OS java its round trip JVM (probably written in C++) and then only OS level... not only that c++ server in linux is better than a java server on top of JVM in linux
 
user784668
@jalf he's still 14, if you use the right base
 
user784668
11:40 AM
@Navin what?
 
@Fanael My search-engine-fu fails at looking up what TIASFY means.
 
@jalf but I really don't. I mean, if you think Dx fits you, cool, use it.
 
user784668
@Insilico try it and see for yourself
 
I am not going to because cross platform, and I suspect Dx will be dead rather soon.
@Navin what.
 
11:41 AM
@Navin Have you ever heard about just-in-time compilers? Java has been JITting code for about a decade now.
 
@Fanael I did. That's how I know my search-engine-fu has failed.
 
Xeo
@Insilico ...
 
user784668
@Insilico Uh, that's what TIASFY means.
 
@Navin If you're working with sockets, you're going to be I/O bound anyway. So the language performance part is moot.
 
11:42 AM
@Navin The 20th century called. They want their direct communication with the OS back.
 
Xeo
That's the same "what does stfu mean" - "shut the fuck up" - "geez, sorry for asking a question!"
 
or "what does 'I don't know' mean"
 
WOW. Reading comprehension fail on my part.
You know the English language has quotation marks for a reason.
 
Xeo
@BartekBanachewicz "idk"
 
11:42 AM
Dec 13 '11 at 3:57, by R. Martinho Fernandes
@IntermediateHacker Go Fuck Yourself.
Like this.
 
@Xeo or that yeah.
 
I almost got flag-suspended for that one.
 
Xeo
@R.MartinhoFernandes I remember that one
 
@R.MartinhoFernandes lol
> Because C# doesn't support code inlining
 
user784668
@FredOverflow That's right, WTF.
 
11:45 AM
hm my goto commit at work got no negative code reviews
 
I guess by "doesn't support inlining" the OP meant "there's no inline keyword".
 
I guess that means it's ok.
 
user784668
@BartekBanachewicz it's a trap
 
@BartekBanachewicz Your what
@Insilico lol
Oh found it.
 
@R.MartinhoFernandes goto end to avoid unfreed stuff in a function
 
11:46 AM
@R.MartinhoFernandes It's the third post on that same page.
 
@Insilico Why on earth would ((a = 100) == a) be faster than int a = 100;? This is ridiculous :)
 
I feel kinda guilty. Should've used exceptions.
 
@BartekBanachewicz Dude, what about RAII
 
@R.MartinhoFernandes it's unwrapped OGL
 
user784668
@BartekBanachewicz Dude, what about RAII
 
11:46 AM
@Fanael I can't wrap it.
 
What is unwrapped OGL?
 
@FredOverflow direct C API access
 
Oh, that's a gamedev.net board.
 
And you can't do RAII because you are writing plain C code?
 
Xeo
Ermergerd, something happened in the Asylum today!
 
11:47 AM
use at_scope_exit then %)
 
Xeo
Sadly nothing really crazy
 
user784668
@BartekBanachewicz You use it, thereby already wrapping it in a way.
 
@Xeo Yeah, but normal.
 
@FredOverflow prettu much, yes.
@Fanael yeah, but that's one simple testcase.
 
@Xeo The Asylum?
 
11:48 AM
Well, goto is fine in C code.
 
@Insilico Didn't we explain this to you before?
 
That use is idiomatic.
 
Or am I confusing with someone else.
 
But I still feel guilty.
 
C is not file by itself
 
11:48 AM
@R.MartinhoFernandes You probably did and I'm just being an idiot.
 
@stdasylum, Outside the Asylum
Pearls of wisdom from the C++ standard proposals forum. If some tweet doesn't make sense out of context, it probably didn't make sense in context either.
21 tweets, 12 followers, following 0 users
I need an avatar.
 
I definitely don't remember that. You probably talked about it during my several-month-long SO hiatus a few weeks ago.
 
Xeo
@Insilico That thing's only 2 weeks old
> If some tweet doesn't make sense out of context, it probably didn't make sense in context either.
<3
 
We have been refering to the forum as "Asylum" for a long time, though.
 
@Xeo I actually just graduated from uni about two weeks ago. The days surrounding that has been full of crazy.
 
11:51 AM
@R.MartinhoFernandes so tell me except for gaming development and memory management what does C++ can provide more than Java.. ? and why on earth people need to struggle this 100's of exception thrown by C++ when a sexy language is their.. i am not being rude, just curious ..
 
@Insilico Oh. Congratulations.
 
std::true std::false ... haha
 
Thanks. :-)
 
not wonder it is called asylum
 
Xeo
@Insilico Ohey, gratz
> Java
> sexy language
 
11:51 AM
@Telkitty猫咪咪 Hmm, I actually haven't tweeted that one.
 
Xeo
@R.MartinhoFernandes The tribool thing?
 
@Navin You don't throw exceptions in Java?
 
@Navin what? what? what?
 
not as much as C++
 
Xeo
lol
 
11:52 AM
@Navin C++ code nowadays actually do very little manual memory management, unless you're writing system software (which you really shouldn't anyway)
 
@Navin Why do you throw more exceptions in C++?
 
Xeo
@Insilico s/memory/manual memory/
 
@Navin you seem to be living in totally different world
 
(Also, you appear to not know basic C++, because many of the good things about C++ are basic concepts in the language)
 
@Navin What code do you deal with that throws hundreds of exceptions?
 
11:54 AM
Ignorance
by a N00b
 
user784668
@Insilico crap code?
 
@Insilico Someone has to.
 
Forget about the language for a moment. Code in any language throwing hundreds of exceptions (if the language supports it) is crap code.
 
@MartinJames I feel your pain everyday you say something like that
 
@Xeo Oh wait, I did. First tweet.
 
11:54 AM
Any language can be used to write crap code
 
@Insilico it can be also just big.
 
that's a silly argument
 
@not-TonyTheLion Not brainfuck.
 
Xeo
@R.MartinhoFernandes Ah, I did remember something like that.
 
I could write crap Haskell code
 
user784668
11:55 AM
@not-TonyTheLion HQ9+
 
@Fanael oh come on.
 
> 9 - print the lyrics to 99 bottles of beer
lol
 
well in a way, H+H+ is bad
 
11:56 AM
should be HH++ (sorted)
 
@R.MartinhoFernandes what i meant is memory un handled exceptions, etc..
 
WTF there's a Firefox OS.
 
@Navin no, you have no idea what you meant
 
@BartekBanachewicz why>?
 
@Insilico gratz, slowpoke
 
11:56 AM
@Navin I can write unhandled exception in C# too
 
@Navin Only people that don't know C++ have to deal with hundreds of memory access failures.
2
 
@Navin because all of your posts seem to exhibit a total ignorance
 
user142019
@R.MartinhoFernandes All brainfuck code is crap code.
 
@rightfold no! (I <3 bf)
 
11:57 AM
@BartekBanachewicz I ask because there's apparently an actual phone that's going on sale with it loaded on it.
 
user142019
@BartekBanachewicz I love my boyfriend too.
 
@rightfold I think you can craft some quite beautiful things.
 
@Insilico okey.
 
user784668
@not-TonyTheLion KNOLP
 
@rightfold are you gay?
 
user142019
11:57 AM
@BartekBanachewicz No, you?
 
Sep 12 '12 at 5:54, by R. Martinho Fernandes
I'm quite fond of my Fibonacci generator +>++[-<<[->+>+<<]>>>+].
 
bf = boyfriend
 
@rightfold Neither.
 
Beautiful :)
 
user142019
@R.MartinhoFernandes Unreadable crap.
 
11:58 AM
@rightfold HERETIC
I will build an FPGA for brainfuck one day
 
@rightfold You should see it in action. It crawls along the memory tape generating the Fibonacci sequence along it.
 
@R.MartinhoFernandes Go put a picture of Bjarne with a crazy face (if such picture exists)
 
@R.MartinhoFernandes infinitely?
 
user142019
@R.MartinhoFernandes Visual Brainfuck renders a tape. I could try that.
 
@BartekBanachewicz Yes.
 
11:59 AM
zomg Visual Brainfuck
 
Xeo
@Insilico Also Bjarne is kind of crazy, that would never fit what the Asylum can throw at you.
Or rather, puke at you.
 
@Insilico OMG I KNOW EXACTLY THE RIGHT ONE
That starry thing Pubby found.
 
@BartekBanachewicz lol. A microcontroller core that can be programmed in only Brainfuck.
 
Xeo
@R.MartinhoFernandes Please not the glittery one
 
11:59 AM
oh come on dammit boot you piece of crap
@Insilico yesh!
 

« first day (991 days earlier)      last day (3952 days later) »