« first day (227 days earlier)      last day (4704 days later) » 
01:00 - 17:0017:00 - 23:00

rlc
1:16 AM
good evening
does anybody here know about an architecture that implements a replace-add instruction as described by Gotlieb in 1983?
 
1:32 AM
@rlc I'm certainly not aware of one. His later papers mostly seem to talk about fetch and add/fetch and increment/fetch and decrement, which seems to give at least a general indication that he's more or less abandoned the idea (though it's not clear whether he decided other ideas were better, or just gave up and wrote about how to use primitives provided by real hardware).
 
 
1 hour later…
2:41 AM
Twitter, if this matches please filter the twit out of my feed, because it probably wasn't meant for me but for their girlfriend: (@ .* w/ [0-9]+ others) http://4sq\.com
 
rlc
3:13 AM
@wilhelmtell huh?
 
 
2 hours later…
5:36 AM
@Xeo And now it's closed again :)
room topic changed to Lounge<C++>: Let me be your rubber duck
 
6:28 AM
What does "= delete" mean here? unique_ptr(const unique_ptr& _Right) = delete; (From: msdn.microsoft.com/en-us/library/ee410601.aspx)
 
6:56 AM
@StackedCrooked: C++0x stuff. The ctor is deleted, not present.
In C++03 all you could do was to make the ctor private and declared but unimplemented. In C++0x you can specify that you do not want it to be generated at all using the = delete.
 
7:24 AM
@wilx Thanks.
 
8:02 AM
anybody how I update my GCC in ubuntu?
I have version 4.4.3 but I want to upgrade to the latest version?
 
just look for gcc-4.5 in the package manager thingo?
it should be listed there
if you want 4.6 you might have to go hunting for ppas. And if you want the latest latest, I guess you'll have to build it from source :)
 
@rlc You can build whatever you want on machine with Load-Link/Store-Conditional like MIPS, but I know of none which provided that directly.
 
8:19 AM
Morning.
 
sbi
8:41 AM
@FredOverflow Are you talking of this? Because it's open now.
 
9:20 AM
I posted an answer to this question: stackoverflow.com/questions/6160677/… -- and another user: "Employed Russian" posted an answer as well. Now I have a question about his answer but I don't have a way to comment on his answer because I don't have enough rep points.
But does anyone know why he would state this: "the question is why you want to minimize use of dynamic libraries. The most common reason is usually mistaken belief that "mostly static" binaries are more portable, and will run on more systems. On Linux this is the opposite of true."
?
 
@McKayCPP it's a problem that will go away in two upvotes. So I don't consider this a big problem.
There now you need 1 more upvote and this problem goes away.
 
@ÓlafurWaage @Thanks :)
Also, anyone have any idea when OS X might get a newer gcc than 4.2.x? I'd really like to use the COUNTER macro available in 4.3+
 
Can't you compile it from source?
 
9:38 AM
Sadly not due to some code policies beyond my control.... sorry, I mean to say officially supported from Apple. But then again, I know better than to ask when anything from Apple is coming out -- as they release out of the blue when ever they feel like it....
 
@McKayCPP Apple probably won't support any other gcc version: they stopped all involvement they had and started developing clang,
 
Afaik, the change that triggered it was that gcc switched to the gpl3 license
So Apple decided to start working towards a switch to clang instead
 
Ah, yes. Good point. Too bad our project crashes the clang compiler :)
 
@McKayCPP ah, oof. Report the bug then? ;)
 
cant repro the bug with a simple program, and cant release the code either. doesn't help much to say: "Hey, clang crashes on this really ugly template code I cant show you"
 
9:44 AM
looked at something like delta.tigris.org to help produce a smaller test case?
otherwise, I guess you'll just have to keep an eye on new clang versions and hope for the best :)
 
@jalf No, I haven't -- but that looks very interesting. And yes, this was probably 5 months ago and it may very well be fixed now.
 
Using the delta script is awesome.
Even fun!
 
Speaking of clang, why do I have an uneasy feeling that apple will turn evil and, throw some Intel Trusted Execution proprietary code in there and make it the only way to run on macs in the future? Maybe I'm just being paranoid...
 
Apple is already evil, they cannot turn any more evil or they would wrap into good.
 
@wilx And that would be bad.
 
9:54 AM
@wilx Okay, 'turn evil' was poor wording. But I think my scenario would be even more evil than the current state of affairs -- and definitely not wrapping full circle into the good side of things.
 
:)
 
@wilx Evil overflows into good?
They are so evil that they become good again :D
 
@StackedCrooked: Sort of, except overflow is by definition not a wrap.
And wrapping is not overflow.
 
10:14 AM
Getting close to 25k
Great coffee in my hand. This will be a good day.
 
@McKayCPP Apple doesn't control LLVM or clang. It's an open source project which Apple contributes to
They can dump evil code into the versions they make available/support on mac, of course, but I don't see how they could poison the clang project as a whole
apart from that, putting that kind of code into the compiler seems like an odd strategy
Not least because simply by targeting a mac, you get an executable that only runs on macs. Apple doesn't need to inject fishy code into the compiler for that. And, likewise,whatever clang does during compilation, it only affects your mac build. If you take the same source code and compile it for windows or linux, what are they going to do to about it?
 
@jalf I meant a fork -- and wouldn't that be the logical place to put some sort of pay to play system? If not where?
 
And what prevents you from building from trusted source?
 
@McKayCPP Well, putting it into the executable itself doesn't really work. Look at the last decade's countless DRM fiascos
They could build something like that into the OS itself, but ultimately, it seems an odd thing to worry about. It's pretty clear that Apple chooses the direction of their platform. And if they want to do something crazy like that, they'll do it, with or without clang, given that they control the OS and the hardware
 
Honestly its a complex issue that I'm naive about on many levels -- but it seems apple is hell bent on moving towards a DRM'd OS X w/ their iOS leading the way.
@jalf Yes, but I see clang being a very integral part of that strategy. Apple is putting quite a bit of effort into it -- and not because they're feeling altruistic.
 
10:28 AM
@McKayCPP no, because they know they need to have a solid compiler if they want people to develop software for their platform
that's not altruism, it's an investment :)
for political reason, they've ruled GCC out, and then the only sane thing is to make sure the alternative gets up to speed ASAP
 
briefly, what is that political reason? Why not stick w/ gcc?
 
GPLv3.
 
yep
and once again, from Apple's point of view, the compiler is pretty much the worst place they could try to enforce such a strategy. There are, and will always be, multiple compilers targeting a platform. Consider apps written in interpreted languages, or using compilers for different languages. And consider that whatever the compiler does, it is limited to messing around with the resulting executable, which is easy for the developer to manipulate and analyze
 
@jalf (But they did try to limit those in iOS)
 
if they want to change how software is bought/distributed/used on their OS, then doing it in the OS and in the hardware makes far more sense. Clang is irrelevant
@MartinhoFernandes true, but only through policy. They can't enforce it at a machine level, which is what @McKayCPP worries about
they can say "we won't allow you to sell software that behaves like this or is developed like that", but they don't need to poison Clang to do that.
 
10:51 AM
All very interesting issues that I was not aware of. I just thought Apple was a bit behind in gcc updates... @jaif: thanks for the clarification re: clang. I just saw it as a link in the tool chain that apple could exploit. But, I guess when they control every link in the chain from hardware on up it doesn't necessarily make sense to poison clang.
 
@jalf I'm not sure it was only political reasons (but I'm willing to believe that GPLv3 was what triggered the decision).
 
sbi
What could have been the problem with GPLv3? What's so special about it?
 
Xeo
11:06 AM
Mornin'
 
@Xeo, I'm just back from lunch ;-)
 
Xeo
Well yeah, it's not really morning here too, but I just woke up. :)
 
1am here :)
 
@McKayCPP, 1pm here :)
 
Xeo
@AProgrammer Where are you from?
 
11:12 AM
I'm from Belgium but I live on the French Riviera.
 
oh la la! (trite but I don't know anything else to say :)
 
Xeo
@AProgrammer French... I don't know if I still like you now. ;)
 
@Xeo He's from Belgium
 
Xeo
Yes, but he lives in france. :P
I kind of have a grudge against the french language since highschool
 
@sbi I'm not sure how to understand the issues w/ gplv3 either -- but it appears that apple wants to protect their patents. See: stackoverflow.com/questions/3808648/…
 
11:16 AM
afternoon y'all :)
 
Here it is 1 am and I'm trying to pull an all nighter trying to get code to work before meeting in the morning and I'm in chat. Of course those 1000+ unresolved symbols don't help...
 
@Xeo I'm the kind of Belgian who learned French at home at age of 18 months.
 
@AProgrammer Isn't French the official language of Belgium?
 
@MartinhoFernandes Belgium has 3 official languages, Dutch, French and German.
 
56% Dutch, 38% French, 1% German speakers (as primary language)
 
11:22 AM
How does that work? Say, television and newspapers for example. Each network picks their dominant language? Each newspaper prints more than one version?
 
The Kingdom of Belgium has three official languages: Dutch, French, and German. A number of non-official, minority languages and dialects are spoken as well. Official languages Dutch Close to 60% of the country's population speaks Dutch as their primary (Belgian) language. Though the standard form of Dutch used in Belgium is almost identical to that spoken in the Netherlands and the different dialects spread across the border, it is often colloquially called "Flemish". Dutch is the official language of the Flemish Community and the Flemish Region (merged to Flanders) and, along with Fr...
woah... didn't expect that.
 
Oh, of course, each language is a localized phenomenon.
> Education in other languages is prohibited (except for foreign language subjects of course, and in higher education where English is increasingly used).
Exactly what does this mean?
What is the prohibited part?
 
I suppose that e.g. the math course can't be taught in Italian
 
Ok. That makes sense. But like, too much sense. As in, it's so freaking obvious, I would never expect to see it mentioned.
 
@MartinhoFernandes TV and newspapers have each their languages. Generally, Belgium is well on the track on splitting. There is a few things which still hold the country together, but there is a strong, mostly flemish, movement wanting to split. For instance, there is no central government for about one year due to disagreement on further splitting responsabilities.
 
11:27 AM
Is that split amicable?
 
Dutch is such a pretty language, don't you think?
 
@MartinhoFernandes I don't know precisely what they are hinting at with the prohibited part. Education is responsability of the communities (there are 3 based on the language) and thus mainly given in the language of the community. Nothing prevent you to go in one network or the other except practical problems. I've friends who switched between networks.
 
Wow, they have no central government. They are about to split. How come I didn't know this? Portuguese press sucks balls.
 
@MartinhoFernandes The splitting process started at least 50 years ago. I've been in France for too long to know how much time it will last before reaching conclusion.
 
sbi
@McKayCPP Thanks. That patent thing alone would explain this move.
 
11:37 AM
@sbi np. thank you for the vote that allowed me to comment.
I'm thinking about proposing some dev changes at work and I'd like some advice. The team currently programs in C++ and has no formal knowledge of C++0x/C++11. Does anyone here think its too early to start writing code w/ it?
 
@McKayCPP What are your targets?
If you target anything else than VC++, g++ and perhaps clang, it is probably premature.
 
nope, those are pretty much the targets. OS X, Linux, and Windows. Its a desktop app...
 
McKay, the new features of 0x are nice. :)
 
Yeah, they look to be. Unfortunately I never have time to evaluate them.
 
Xeo
auto and lambdas... <3
 
11:45 AM
VC2010 ships with auto and lamdas <3
 
My only fear is that some of the... ahem... slower members of the team may not catch up very quickly.
 
Xeo
if they don't understand auto, then something is wrong
3
for(auto it = cont.begin(), ite = cont.end(); it != ite; ++it)
 
well, yeah.. auto is one thing. but its amazing some of the things they don't understand.
 
Xeo
looks far better than Container<T>::iterator it = ....
 
cough...reference counting...cough....
 
11:46 AM
Theres not much catch up, cept the typename<typename<anothertypename>> not needing the last space
 
Xeo
Sucks, use shared_ptr. :) // I mean hand-made refcounting
 
My god man, i dont have any formal traning and i know what reference counting is :)
:))
 
I'd worry more about the over enthusiastic types that'd try to e.g. stuff rvalue references every place they find
 
@LucDanton that'd be me :)
 
Xeo
@LucDanton Heh, I find it amusing some people put them in classes without pointers
 
11:47 AM
yea, and that whole rvalue ref's will bind to lvalues ... wich .. can be bad
 
Xeo
move ctor and assignment op, that is
 
@johnathon They can't do that
 
Luc danton, under the hood theay can , and DO
Thats why the Standards comitee submited a notice ...
And vc2010 shipped with that *bug(
 
rvalue refs v1 are bygones
 
okay, another not necessarily c++ related question, but I'd also like to propose moving from svn to a dvcs like mercurial or git any advice or pointers to websites that would help me make my case?
 
11:50 AM
Avoid Git then. IMHO. :)
Flame on.
Go with Bazaar or Mercurial.
 
@luc danton rvalu refs v2 are bygones too, there now in chuckles v2.1
 
git too obtuse?
 
Too complicated.
 
I like git. It sucks.
 
@wilx: okay then, between mercurial or bazaar, which is more windows friendly?
 
11:52 AM
Go with hg.
 
@MartinhoFernandes Is that like saying "Primus Sucks!"
 
dunno, both work fine on windows, afaik
 
Both have TortoiseSVN like stuff. Read up about both, pick one that seems better in the supported workflows respect.
 
I'm really happy with bzr, but I don't see much reason to avoid hg either
 
TortoiseSVN <3
 
11:54 AM
imo check which tools you need it to integrate with. It may be that this rules out one of the options :)
 
I kinda like bzr Explorer so lean to bzr as well.
But both are IMHO very similar in capabilities.
 
@wilx I mainly use bzr from the command line. First VCS I've encountered where I find that completely natural and intuitive tbh
 
yeah, I'm gonna be more of a command line user myself. But to sell it to the rest of the team it's gotta be windows friendly.
 
@McKayCPP install both, and play around with them for a couple of days, imo
 
I'm pretty sick of svn barfing on large checkouts though.
 
11:56 AM
that's a small price to pay if it avoids trouble further down the road
afaik, both have svn-import plugins so you can carry over your existing codebase pretty easily
I think bzr deserves to be more popular than it is, but you should definitely go for the more pragmatic option, and go with what best fits your teams needs
 
sbi
12 mins ago, by McKay.CPP
My only fear is that some of the... ahem... slower members of the team may not catch up very quickly.
@McKayCPP There's no need to fear that. You can be sure that this will happen. I never bothered with those, though. I just tried to drag the other 80% with me. Usually by giving a C++ seminar.
 
afaik, bzr has the smoothest learning curve when coming from svn. It directly supports a svn-like centralized workflow, and it doesn't arbitrarily rename commands away from the svn-like "standard" names and meanings, like git does
 
At the very least it's perfectly Okay to write C++03 with a C++0x compiler (imo)
 
The only problem I have had with Bazaar so far was that it barfed out of memory errors on huge TeXLive SVN repository when I tried to make a mirror with it.
 
but again, take the time to learn how both work, and try them out with your own code base
@wilx a huge repo, or huge files?
 
12:00 PM
@Luc Danton yes, indeed.
 
afaik, both hg and bzr choke on large files
 
@sbi Yeah, we'll, problem is the best I can hope for is %40-%60 in my case.
 
@McKayCPP Which side is the 60%?
 
although, iirc, last I tested it, bzr can handle somewhat larger files than hg out of the box (and if you run it on a 64-bit python installation, the problem should go away entirely)
 
@wilx How huge was the repo that it failed on? I'm weary of svn for exactly the same issue.
 
12:01 PM
but tbh both are going to be somewhat wonky for individual files above a few hundred MB
 
@MartinhoFernandes There's 5 on the team (including me) 2.5 competent (including me).
 
@McKay.CPP describe competent
 
@jalf: It was over 2G.
 
@McKay.CPP and out of curiosity, for the MS side are you using MFC ?
 
@wilx the file, or the repository?
 
12:03 PM
@johnathon Oh god, where to begin? Um...for this team at least able to write templates....
 
I'm talking about individual large files stored in the repo
not the repo size as a whole
 
@johnathon no, no MFC
 
On Windows.
 
@McKay.CPP template meta programming, something i need to look into myself
 
@jalf: Hmm, I think it was the repository that was big.
But I have tried to make Subversion repository mirror in Bzr, so I guess it might have had something to do with that.
Tens of thousands of revisions, IIRC.
 
12:06 PM
@johnathon No, not template meta-programming. Simple template code to eliminate hundreds of lines of cut'n'paste for different types is beyond the scope of some of them.
 
@McKay.CPP pure virtual base classes? Just, courious, as how ya got around the 4.5 screen pages long switch
@McKay.CPP ah... i can do that np :)
 
@johnathon Are you referring to one of my questions?
 
@McKayCPP Yay, I'm competent.
 
@McKay.CPP no ... just chatting. i'll shut up now
 
@johnathon You're fine. I just wasn't sure what you were speaking of.
 
12:09 PM
@McKay.CPP being able to write simple template functions/classes to get around having to re write /copy paste hundreds of lines of code
 
@MartinhoFernandes I was just put on the spot to define 'competence' for my team in relation to proposing moving to c++0x. There are many other levels of incompetence present beyond the inability to grok templates. Its very frustrating trying to write semi-advanced (but clean!) c++ code for a project and some of the members of the team can't / dont want to understand it.
 
@McKay.CPP sorry, it was more of a joke ...
 
@johnathon ah, sorry, maybe its a bit of a sore point for me because it puts way more of the burden on me. I really wish the boss would fire 'em and hire some better coders -- but I don't see that happening.
 
@McKay.CPP understandable, the joke was really on the word competence. IMHO there's teenagers that can code circles around me. And again, IMHO theres a graduate student at ITT in cali that cant keep up with me.. do its one of those vauge realms that comes under close personal scrutiny.
 
@johnathon But, back to c++0x, is there a timeline that v2.1 would be expected to be working on the 3 of llvm, gcc, and VS?
@johnathon Entirely agreed. I'm the only one on the team without a degree -- everyone else has at least a Masters in CS.
 
12:20 PM
@McKay.CPP vc11 will have the fix for the rval, as far as llvn and gcc im clueless, the MS stuff i got from STL himself
 
What's the change from 2 to 2.1?
 
@Luc Danton, long... long explanation, but in essence aka really shortened version is that when the compiler went to look at a variable and decide which overload to take , the rval , say for a string litterial that was passed into the function several classes up , would get changed into a std::string , and effecitively could be passed by copy or by ref.. it should take the by ref, but becuase it WILL bind to the lval and take the wrong overload
 
sbi
@McKayCPP When I started to introduce TMP stuff into a huge code base ten years ago, my cow-workers were not amused. In a meeting the boss asked me what I think the advantages of TMP are. I said the main advantage would be that this catches more errors at compile-time. (What fails to compile can never crash at a customer's.) I was then ordered to hold a seminar, explaining templates from the bottom up all the way to TMP. I did that, and two or three others now maintain that code.
(I have left the company since.)
 
@Luc Danton wich , was both a security and performance hit
 
@johnathon a string literal is not an rvalue; should I assume e.g. an integer literal?
 
12:24 PM
@Luc Danton check out STL's blog on msdn
@Luc Danton, he maintains ms's STL .. Stephon T lavavaj
 
How did sbi above paste my whole quote into his reponse? All I see is the "reply to this message" in the arrow drop-down on a message.
 
sbi
@McKayCPP Read the newbie hints, linked from the right-hand pane.
 
@johnathon There doesn't seem to be a blog specific to STL; should I look inside the Visual C++ blog?
 
@Luc Danton he's been doing video series on the STL , like, he goes into the whole move to v2.1 in like the 5th video on the advanced STL , if you want i could give you a link
 
I'd rather have something to read
 
12:34 PM
sorry, shoulda sandboxed that....
 
@Luc Danton i don't have the committees technical report .
 
@LucDanton afaik yeah, there is just the VC++ team blog
 
I believe the n3030 paper from 2010 is the v2 paper
Actually I'm not sure about that
 
He goes into great detail about it
 
12:45 PM
I just completed part 2 of that (algorithms), pretty good stuff.
 
12:59 PM
hi all
IS there some one who knows about this header file include file: 'SDKDDKVer.h':
@jalf hi
 
@Miss sdkddkver.h ?
 
@johnathon yes
i am making program for loading the image from camera and i got that errror.. that 'SDKDDKVer.h' header file can't fine
 
@Miss & @Olafu yea thats what i thougth , i was gl'n to make shure :))
 
It says it can't find it?
 
1:03 PM
yes .. compiler says that i can't this header
 
@Miss you have the latest sdk installed?
@Miss and you have the compiler using that sdk's includes/ libs?
 
hmm @johnathon well i am not sure for that..
 
@Miss thats where i'd check first. sdkddkver.h comes with the SDK
 
ahh i see @johnathon ...
i have Microsoft sliverlight 3SDK
 
@Miss yea, windows sdk and sliverlight sdk are totally different
 
1:06 PM
@johnathon hmm i see then which SDK you are talking about ..
 
@Miss what ever the latest version is, belive it's for win7 now
 
@johnathon .. thanks alot .. for right direction..:))))
 
@Miss nop
@Miss no problem ;)
 
2:03 PM
@johnathon: are you there?
 
@Miss yes
 
@johnathon: as you know that i am making program for loading the picture from camera using VS 2010 with Open CV 21.0
and i followed that above link ...
whatelse the spell is ....
 
@Miss Forgive me for asking this, but are you new to programming in C?
 
ahh yes thats a main problem.. anyways i will find out solution .. do't worry
 
@Miss you might want to start with a language primier, but as far as the instructions on the page
@Miss, what development environment are you using?
 
2:10 PM
MFC c++
 
@Miss if your using the MFC then you should not have to include any windows headers
@Miss, MFC is a class library , not a development enviroment
 
5 mins ago, by Miss
@johnathon: as you know that i am making program for loading the picture from camera using VS 2010 with Open CV 21.0
 
@Miss , and ty martino, go to project properties , expand C++, and in the compiler sub section you can add teh include paths, and in the linker sub section you'll have to add the lib paths, that installer wont work for vs 2010, as it uses a per project property sheet to determine what directories to search for headers/libs
 
hmm i am little confused with instuctions of that above link site ..
may be i did mistake in linking..
but any way i will handle it ..
 
Xeo
ASDFGHARGH! I hate hungarian notation...
 
2:17 PM
@Miss you have the OpenCVS installed?
@Xeo m_szComment = "dont we all"
 
@johnathon: no
 
@Miss the link to it is at the very top of that blog page, lil blue V
@Miss you have to have that installed to use OpenCVS
@Xeo out of curiosity, do ya know where hungarian notation comes from?
 
heheh do you meant by Open CV
yes i have Open CV 2.1.0
 
@Miss yes, i dont use it
 
@johnathon Hungary?
 
2:21 PM
but yes i have and i am using that
 
@Martinho nah, hungarin programer that worked for Microsoft...
@Miss then , what's your compiler error?
 
ahh its make me linker error for highguid.lib ..
but its already i linked .. but even then it make me linker error
bad bad bad ... i guess i did wrong linking..
 
@Miss, you'll have to open your project properties, click on the Project menu at the top, and the (should be) very last option on the menu that drops down be project properties
 
but i performed linking according to the above link'instructions
ahh i know and i have done that
ah ok anyways i will handle it
do't worry
 
2:26 PM
ahh @johnathon best link ... thankooooooooooooooz,,:))))
hm well i did not get any hint from that but i can post question .. yes yes
 
3:02 PM
@Miss Ironic
@Miss You do realize, you're in the chatroom for a Q&A site on which you can post questions??
 
@Xaade Last I heard, she had hit the limit on that.
 
@MartinhoFernandes There's a question limit?
 
@Xaade I think it's a question/answer rate or question/answer score rate, or something.
 
@Xaade They try to find out users with a pattern of bad questions and prevent further questions from those users.
 
Once you take too much, you need to give back something before you can take again.
 
3:08 PM
As long as they don't try to force me to ask questions...
I hate when they try to force me to vote on questions, I then usually search for a question to downvote as a revenge.
 
And now downvotes on questions are free.
 
@MartinhoFernandes, it doesn't make a difference for me, I don't care about reputation.
 
Even if you care, it's just one point. But free is a great incentive to many people.
 
3:25 PM
@MartinhoFernandes ZOMG flamebait
Absolutely great. NO wonder questions are getting neg bombed now.
Don't a lot of mods look at the neg bombs as reasons to close/delete.
People are going to care less about editing questions and skip straight to bombing them. Leaving good but poorly worded or conceived questions in the dust.
 
sbi
@MartinhoFernandes What?
 
Xeo
@MartinhoFernandes They were already for quite some time
 
Is this definition true. I don't understand auto and I don't want to learn wrong.
The auto keyword from C++98, where it did absolutely nothing, has been repurposed in C++0x for automatic type deduction. When used in a declaration, it says "make the type of this thing the same as the type of whatever initializes it".
 
@Xaade Yes
 
Good, that's far easier to understand than what I've gotten out of people so far.
Since the compiler can deduce type, I'm expecting this to be compile time checked, correct?
 
3:35 PM
The exact rules are the sames as T in template<typename T> f(T);
@Xaade Yes
 
Good good.
Very handy that is. Less worry about matching up type, or accidentally inducing a type conversion.
Should remove bad coding habits.
 
You can also use const and references in counjuntion with auto
for instance when I use the facilities from <chrono> I typically write auto const& now = std::chrono::system_clock::now;
 
int a = 5;
const auto i = a;

Does that mean i is const int?
 
Yes
 
interesting.
I will have a type army!!!
 
3:38 PM
You can also use it with the new for expression: for(auto& item: container) { ... }
 
auto i = new stack<int>;
Saves on refactoring.
auto i = new stack<double>;
 
3:53 PM
hi
 
what's up?
 
The network.
 
Sony's Playstation network?
 
told ya guys it would give him a gold badge. now it's not too far away anymore!
 
4:00 PM
How many time has it been closed and reopened?
 
have you guys seen Nvidias next-gen Tegra demo?
 
55
Q: Should downvotes on questions be "free"?

Jeff AtwoodAs I'm sure you all know, downvotes "cost" 1 reputation. That is, every time you downvote: -2 to post owner -1 to you This is done to make sure downvotes are cast only when you feel strongly that something is incorrect / wrong / dangerous / of low quality. We've been tweaking a few thing...

 
4:18 PM
well, the elephant in the room is that there IS a cost to that downvote. Your time.. and using up one of your valuable daily 30~40 votes - Jeff.
Jeff is good at noticing the white elephant. - Xaade.
 
every downvote has a downvote cost. which means that you cannot downvote arbitrarily many times a day
 
Whichever way you put it, he whitewashes over problems instead of addressing them.
If a user edits a question, do you have the opportunity to undo a locked-in vote?
 
0
A: Should downvotes on questions be "free"?

XaadeI see this as having the unintended side effect of encouraging users to pick the lazy option of downvoting instead of choosing the right option of editing to clarify or better phrase a valuable but poorly written question. In cases where a question has little quality in its own right, then encou...

 
Xeo
4:34 PM
Strange. Yesterday, I had a good idea for my database implementation, that is, to reserve the first bit of each table row.
Now I can't remember what I wanted to reserve it for. oO
 
Locks? Lazy-deletes?
 
sorry for asking a noob question, but what's the difference between GCC and g++?
 
@Jeff -1 I'll be checking to see if you improve the question, so I can get my rep back. Well, not really. The vote was free for me. – Xaade 2 mins ago edit
 
Xeo
gcc - c compiler
g++ c++ compiler
 
The GNU Compiler Collection (GCC) includes the GNU C++ compiler (g++), and the GNU C compiler (gcc).
 
Xeo
4:35 PM
g++ automatically links to stdc++ lib
 
oh I thought gcc was a C++ compiler, because lots of people talk about GCC when talking about compiling C++...
I must have understood that wrong then
 
Xeo
@TonyTheTiger GCC (upper case) = GNU Compiler Collection. gcc (lower case) = GNU C compiler
mind the case!
 
oh i see, well thanks for clarifying :)
 
@TonyTheTiger You're getting case numb. I blame VB.
 
It's a bit like clang and clang++
 
4:42 PM
@MartinhoFernandes yea well, wouldn't surprise, VB drives me crazy with it weird ways
I''m just playing around with GCC on the new linux distrib I installed
had never to this day compiled a real C++ program with GCC, only C programs in the past
lol
 
What do the cool kids use nowadays to build stuff? Is make still kicking?
 
As long as people have valid reasons for their preferences.
"Because it's better" is enough to make me want to slam their head into their keyboard.
 
Xeo
@MartinhoFernandes make on *nix, XCode on Mac, Visual Studio on Windows. If you know what you're doing. IMHO, anyways.
Actually was there ever an effort to make a VS-like IDE on *nix?
 
@Xeo and on Linux?
I use GCC on Linux
since today that :P
 
Xeo
@TonyTheTiger When I say *nix, I specifically mean both Unix and Linux distributions. :P
 
4:48 PM
@Xeo oh ok, wasn't sure you see
 
Xeo
Heh. This question made me think why there is no unary post-fix ? operator that evaluates to bool in C/C++.
@MartinhoFernandes Nono, it was something with the traversal of the table. It's a relational database
I think it might have been the following
When you have a relational database, you need to have the same length for all lines as to have a simple and extremely fast char* p = table_base + 100 * ROW_LENGTH to jump to the 100th entry in the table
 
@MartinhoFernandes There are lot of wanabee replacement, none which seems to really establish itself.
@Xeo You are comparing make with complete environment, that's strange from here.
 
Xeo
Now, that is limiting, and I was thinking of having a marker at the beginning to indicate if that table-row was wrapping to the next row aswell. This would make traversal slower but would allow to have "infinite" length rows, as I'd manually have to traverse for each row and check to reach the real destination
@AProgrammer It just happens to be like that. No good IDE on *nix, Visual Studio is de facto the best on Windows and XCode seems to be the Mac version of Visual Studio
Related:
109
Q: C++ IDE for Linux?

SvenI want to expand my programming horizons to Linux. A good, dependable basic toolset is important, and what is more basic than an IDE? I could find these SO topics: Lightweight IDE for linux and What tools do you use to develop C++ applications on Linux? I'm not looking for a lightweight IDE....

 
@Xeo, how do you do automatic build on several platforms without duplicating your projects desriptions.
That I use or not an IDE for editing and debugging is irrelevant to that question.
 
@Xeo: "Actually was there ever an effort to make a VS-like IDE on *nix?" MonoDevelop is pretty close, supports C# and C++ projects
 
Xeo
4:57 PM
@AProgrammer Mmm, yeah, I should treat "build" as the in the original meaning.
 
01:00 - 17:0017:00 - 23:00

« first day (227 days earlier)      last day (4704 days later) »