« first day (172 days earlier)      last day (4794 days later) » 
00:00 - 18:0018:00 - 00:00

12:13 AM
Hey @GMan . I posted it on Super User and it got closed as off topic.
 
@JShoe Ah, sorry about that. Didn't know they didn't accept mobile devices. You should find a jailbreaking forum and ask there, then.
 
@JShoe: Or ask on the apple stck exchange site. apple.stackexchange.com/questions
 
12:35 AM
@Gman where'd the name Rachele come from?
 
Girlfriend's middle name.
 
well, with a name like that it might take fourteen years of hard labor before you get a working version of your language ;-)
 
:)
 
anyways, the language I'm working on is called Amber (as in Resinite)
the idea being that it's another precious stone like Ruby and Perl
 
nice
Who's brave enough to make Diamond?
 
12:42 AM
not me - too hard ;-)
 
Haha, I see what you did thar.
 
 
1 hour later…
2:11 AM
anybody still awake?
 
just got up from a short-lived nap
 
didn't mean to wake you :)
 
be more careful next time :(
 
cpx
I think we are all here. It says seen < 1 min ago.
 
hey, here's a hypothetical question for the programming language of your dreams: if a subroutine doesn't take any parameters, should it still be declared with an empty parameter list?
e.g. proc foo : Integer or proc foo() : Integer
 
2:24 AM
Er, misunderstood
My bad.
 
(I was thinking return type, when you quite clearly said parameter list. Sleep inertia!)
 
oh, return type would be the next question :)
I kinda like the idea of using ->
I was thinking of using :, but I'm already using that for "is-a"
proc foo -> Integer
proc foo() -> Integer
I kinda like the parentheses - I think it's clearer that it's a subroutine like that
 
yeah
 
it's not like the proc doesn't give it away though
so in Spirit, a procedure definition becomes:
`start_ = lit("proc") >> name_ >> '(' >> -parameter_list_ >> ')' >> -("->" >> name_) >> -lit("is") >> '{' >> declararation_seq_ >> '}'`
something like that :-)
 
2:34 AM
lol nice :)
man
come on UI designers. Stop giving new windows my immediate focus.
I'm typing something, why would I LOVE to take that to a band new window? Leave the focus where it is. Arg.
 
X Windows handles that better (depending on your desktop environment & settings): focus whatever's under the mouse
g'night folks
 
night
 
cpx
2:51 AM
night guys.
 
3:36 AM
@GMan I consider that to be a rather major security problem: at least once I was typing in login information to a website and someone IMed me and the IM window took focus while I was typing my password. I didn't happen to notice quickly enough and ended up having to reset a bunch of passwords.
 
@JamesMcNellis That's awful. :( Why do they do this?!
 
@GMan I do not know.
 
cpx
4:22 AM
What type is a 'reference' type? I've heard it known to be a compound data type.
 
4:35 AM
@JamesMcNellis For those who are really bothered by it, Microsoft has a PowerToy (or at least used for to XP, anyway) that gives X-like focus following the mouse cursor.
 
@cpx int& is a reference type.
 
cpx
5:11 AM
I was thinking if a pointer is a 'variable' type so a reference got to be some type or is it a type itself?
 
I'm not sure I understand your question.
 
@cpx Note that "reference type" means one thing in C++ and a completely different thing in C#/.NET/Java/other languages.
 
cpx
Would you call a 'reference' a variable type?
 
@cpx What is a "variable type"? In C++, you can have a variable that is a reference to some other object, and the type of that variable would be a reference type.
@JerryCoffin I prefer just cursing at my computer when such things occur. :-P
 
cpx
5:27 AM
@JamesMcNellis A variable type, something which holds a value.
 
sbi
@Tony I'm not missing the envelope at all. I've long since switched from the old envelope to the new status views, even while the old view was still available, and I actually like the way the new ones are now. Even in the original Eeeek! question, the first day the envelop was gone, I was the first to post an answer not wanting the envelope back. (I just named the features of the old status view that the new one was missing.) I'm not resisting the change.
I'm just terribly disappointed about the way Jeff dealt with critique.
 
Evening all.
 
Hi.
 
cpx
5:46 AM
I was checking out this answer as some people referring a reference as a 'reference variable'. stackoverflow.com/questions/2765999/…
 
6:36 AM
@cpx I Like this question. I commented on all the bad answers.
OK. That's unclear. The linke above has been flagged as spam. Fair enough. But the question is Valid or Invalid. Does that mean it is a valid post or the flag marking it as spam is valid? I am confused.
Ok. Tool tips answers the question :-)
 
@Martin Yeah, I found that very confusing too.
 
@cpx I think the best way to think of it is that you have variables that directly hold that data such as int i = 3 the value of i is that the data you want. Then you you have varaibles that point or refer to the data held by another variable, such as int* j = &i the value of j is just a memory address. often in a function will define a parameter like foo(int& k); this allows for the function foo to treat k like a 'normal' variable, but its the same data that is passed in
 
@GMan Hi GMan. I got my "StackExchange" T-Shirt this morning. So being the cool dork I will wear it tomorrow night at the meeting. Shoudl be fun :-)
 
@Martin Nice. :) I have nothing of the sort, I'll just be wearing jeans and a shirt. :)
 
@GMan: Surprised! You are in the like 20 users. They should have sent you one years ago.
 
6:51 AM
I was low on the list years ago. :)
 
@GMan Now we know thats not true. :-)
So you must just be too cool to ware a geeky T-Shirt.
 
Haha, I'd wear one if I had one.
 
7:47 AM
morning :)
 
Hello.
 
hello @sbi
thx for clarifying the envelope thing earlier
 
Humm my particle somehow lands outside the simulation domain and I think it's because of float inaccuracy.. :(
http://www.cfd-online.com/Forums/openfoam/86890-solidparticlefoam-reflection.html
Also I ask myself what some people thought when they implemented this.
 
@Nils are you good with math, since you do all this graphics stuff?
 
I would never say "I'm good at math", but I try my best..
 
7:59 AM
@Nils Cool :)
 
btw it took me a while to understand the formula and why it works regardless in which direction that the normal on the wall points
 
@Nils sure... prob take me even longer to get it then you
hahah
 
@Nils Floating point math is not inaccurate, it's just misunderstood.
 
@FredOverflow If I wrote that, I wouldn't be surprised. :P
 
You cannot get infinite precision in the real world, that's all there is to it.
 
sbi
8:03 AM
@GMan Count me in on that.
 
@JamesMcNellis Reference variables are a novum in C++0x, they don't exist yet in C++03 :)
 
@FredOverflow Well I'm trying to correctly implement an algorithm which tracks particles in a polyhedral mesh. Given a start position and a vector along which the particle travels, find out through which cells it travels and how much time it spends. The algorithm works cell-by-cell: Find out if the particle hits a face of the cell in which it resides and if so move the particle on the face of the cell and change the occupancy information to the other cell adjacent to the face.
 
sbi
@Tony Hi. Given the hostile reaction of Jeff and a few of his advocates, I'm not surprised at all you got this wrong. See this comment discussion, where I first pointed my finger at this pattern. (Unfortunately, Grace seemed to have been so ashamed at what she did, that she deleted the comments I was referring to.)
 
@thecoshman No, the value of a pointer variable is not merely a memory address, but a pointer (otherwise, you could not dereference it or perform pointer arithmetic).
 
I have trouble with the step move the particle on the face, since it should be in the next cell, but just right next to the face.. and I don't know how to implement this correctly using float..
well it's maybe a bit too complicated to explain in a text-chat
 
8:08 AM
@Nils I don't even know what a "polyhedral mesh" is... is it something like a soccer ball? :)
 
@FredOverflow A simple mesh in which each cell is defined by an arbitrary number of vertices (>=4)
 
@Nils That looks quite trippy :)
So yeah, basically like a soccer ball :)
 
yes, but doesn't have to approximate a sphere
humm I'm also not sure weather my code is correct, better get back to work :)
 
sbi
Oops. My rep on meta just went from 1,819 to 941. :( As alway, someone else already already asked for an explanation.
 
@FredOverflow That depends on which theory you work by. There may be a minimal division by witch time can be split. Thus leads to a actual minimal dicision of physical unit size. So there is a finite limit to the ability to measure things by (ie there are not infinite number of points between any two given points).
Though it is very small.
 
sbi
8:19 AM
Oh, and it seems the police is again active on meta: "comments will be cleared from any post if they become excessively argumentative. If you want to state a position, post an answer." meta.stackoverflow.com/q/86165/133368
 
@sbi I'm not sure Jeff's idea is such a good one.... I understand the problem of new users asking dumb questions, but I learned a lot from asking seemingly stupid questions, while still not being able to answer new questions. Although I do try to answer questions when I feel able to answer
 
What's an easy tool to put together a set of images to a video?
 
Oh no, people are asking questions on a Q&A site. How terrible!
 
@PiotrLegnica I thought the point was that you could ask questions and learn something, now it seems its becoming more about gaining rep rather then asking and learning
 
Jeff is a moron, is the conclusion I've been getting closer to over the last couple of months
2
 
8:35 AM
Sure, there are terrible questions that are barely answerable. But it's not a site's problem, but asker's. If they implement this thing, it won't improve quality that much, it'll just reduce quantity at best.
And make reputation pretty much useless, if people start creating new accounts every N questions.
 
@PiotrLegnica seems like he wants to make SO a site for the already more advanced user and not the new user that has come to ask a new question and learn something from the experts... I thought this would be the point of a Q&A site like SO
I think the ultimate question remains, what is a good question and what is bad question? I mean for a newbie a good question maybe what we consider just a question we've already answered a zillion times and for us a good question is probably something that a newbie has never even heard of and might come across later in his/her programming adventure
 
8:50 AM
Well, questions with no effort put in them are certainly bad (wall of code and 'why it doesn't work', the 'I can Google the exact question and the first result is an answer', etc.). Trivial doesn't imply bad.
 
sbi
@jalf He's just deleted a comment of mine where I said that, if the way to achieve "quality" is to turn this into a police-ruled dictatorship, I'd gladly abandon that kind of quality. I'm now very weary of this.
 
@sbi If he decides to implement this moronic, you need 100 rep to ask next 10 questions then I'm out
 
Coming up next — "only 5.99$ for 10 questions!"
 
sbi
@Tony I think we've all been approaching this wrong.
SO is a commercial enterprise, with lots of VC money in it, and those people will want their money back with lots of interest. So what SO wants is to earn money. Lots of money. And since the only revenue-generating feature on SE is advertisement, what Jeff really wants is to make the site attractive for advertisers. In this goal, we are just a means to an end.
@Tony If your goals stand in the way of earning revenue, you are expandable.
 
@sbi so be it then, he can loose all his good contributers that way and get a bunch of idiots instead, I don't care
now this is a question that doesn't deserve any answer
0
Q: does the following code checking the dealloaction type or anything else? Give me a description for following code...

ujthCheckMemoryLeak::AllocType CheckMemoryLeak::getDeallocationType(const Token *tok, const std::string &varname) const { if (Token::simpleMatch(tok, std::string("delete " + varname + " ;").c_str())) return New; if (Token::simpleMatch(tok, std::string("delete [ ] " + varname + " ...

 
sbi
8:57 AM
@PiotrLegnica I think you underestimate the problem. If there was a way stopping guys like this from reaping rep by fucking honest users, it would take a lot of downsides for me to not to want this feature.
 
cause the OP hasn't even tried it seems
@sbi yea that guy is plain stupid if you ask me, and has a knack for pissing people off
@sbi this is the problem when money comes into any equation, it stops being "fun" and starts being about money and control, which is really a sad story
esp for a site like this
maybe we should all go back to IRC, lol
 
@Tony wish I could vote to close
 
sbi
@Tony Well, money has always been in this equation. But now I feel like Jeff's sacrificing once fundamental principles of the site. Once, the goal was to make the Internet a better place, and money was just a means to do that. Now it seems the roles of these two have reversed.
 
@sbi yes and I think he might regret doing that some day
@thecoshman why can you not?
 
@Tony not enough rep
 
sbi
9:04 AM
@Tony Because he only has a fifth of your rep.
 
That or I fail at finding how to do it
 
@sbi oh I see...
 
sbi
@Tony People usually wish that, but I'm afraid I had to learn the world doesn't work that way.
 
dam those trolls! if people could be trusted then I could vote to close this question that really should be closed :(
 
@sbi money is a low level motivation to do anything if you ask me, if you've come to the point you only go to work to get your paycheck at the end of them month, then that's pretty sad, unfortunately that's all too common these days
so if money is the only reason for SO's existence, then that's not a game I want to play, I thought this place was about helping others and getting some help you need it. That''s what most of us are here for, there is some rotten apples as @sbi has pointed out, but I'm sure we can ignore those, no?
 
9:11 AM
@Tony it is where the roots are, but where there are people, there is potential earnings. Though it is some what of a paradox as people can be driven away when a company is earning from a free service, usually due to adverts. But it is something that a site should not fear if it is a quality site
I feel a lot better now. Didn't have milk this morning so only just having a coffe after being up a few hours... not addicted to coffe, honestly... just take a long while to wake up
 
@Tony According to my memories of Joel's blog posts SO's is born out of the frustration that comes when trying to look for help on a technical problem. You remember having to browse through crappy forums ...? StackOverflow attempted to provide a better solution. So money is definitely not the only reason for SO's existence.
 
Its fine making money from SO but it will be a sad day when decisions are made about it based on the monetary gain rather then what would be best for the community as a whole
 
@StackedCrooked it was definitely born out of that frustration, but it's purpose has to stay what it was intended for and not become a money motivated machine
@thecoshman some things seem to give an indication it is going in that direction
 
I wonder if it could work as a donation supported site... maybe allow people to buy rep? probably would need to limit how much rep can be brought for an account though
 
@thecoshman buy rep? that would only lead to abuse though, I guess, rep needs to be earned....
 
9:20 AM
@Tony well like I said, limit how much can be brought. may be let people donate some money to support the site, and as a reward for support they get rep
 
@Tony is there any indication that SO heading into that direction?
 
if I am not mistaken, the idea of rep is so that people can automatically be escalated to higher privileges through a system that deters people from just spamming the system to then be able to troll
 
@StackedCrooked things like this: meta.stackoverflow.com/questions/86165/…
@thecoshman that is one of the idea's yes
another is that you earn respect from the community by having contributed correct answers and good questions... unfortunately it's not completely abuse proof and this is prob leading to good users getting frustrated too...
 
so sure wouldn't being willing to donate money be a sign of not just being a troll? Though I accept that some people would be willing to spend some money just smash this site apart. So it would have be set so that an account that has not earned that much rep can't just buy some more and go mad
 
@sbi From the post: " we want to prevent people from asking dozens, hundreds, or thousands of mediocre questions". Why is this a problem? The normal (gaussian) distribution predicts that the majority of the questions will be mediocre. It's "normal".
 
9:26 AM
@StackedCrooked also how can you expect a new person in a field to ask anything but seemingly "dumb" questions, however normally you come to a site like this to learn something...
 
@Tony indeed.
 
and who decides what is mediocre and what is good and what is bad?
is asking about pointers and arrays from the standpoint of a new person to C++ a bad question? assuming the OP has researched and done his homework before asking
 
This site has mad a rod for its own back, it ranks well on Google, and so new people who are not well versed in programming are likely to come her and ask their questions. More experienced programmers know how to find the answers better and how to ask a question better when they do need to
 
@thecoshman totally agreed, it's something you learn along the way. I had to learn it too, and mostly the hard way, though I learnt a lot along the way
 
May the learning never end!
 
9:30 AM
@Tony my very first questions on comp.lang.c++.moderated were very "stupid" as well. like how come this doesn't compile? (I forgot to type the "std::" a few times)
 
@thecoshman yes, I'm all for learning! It's one of the reasons why I do my job, cause I can always keep learning!
@StackedCrooked indeed, so you learnt and you moved on and got better, that's the whole point.... unless I've completely overlooked something here
 
@StackedCrooked when a friend and I where first looking at C++ we where confused about the fact that some code had using namespace std and others where writeing std::cout
 
@thecoshman I remember those days :)
 
@StackedCrooked it was so long ago, but at the same time like only yesterday. Mind you, things that happened yesterday sometimes feel like years ago to me
 
@thecoshman Also I later learned about printf but found that cout was easier to use. From that I concluded that printf was more advanced users.
 
9:44 AM
@StackedCrooked I don't like printf, I dont't really do much consol stuff now days, appart form debug messages maybe. I find it much clearer to use code like cout << "year is: " << year << "\n";
 
@thecoshman I concur.
 
printf-likes do a better job than stream manipulators when you need to format the output, and not just send it as it is, IMHO.
Especially when you need to reorder fields.
 
@PiotrLegnica you mean when you want say a float with two decimal places?
oh wait, I see what you mean
well, both cout and printf get ungainly when you are trying to output long strings interlaced with variables and trying to manage plurals of words etc.
 
sbi
48 mins ago, by sbi
@Tony Well, money has always been in this equation. But now I feel like Jeff's sacrificing once fundamental principles of the site. Once, the goal was to make the Internet a better place, and money was just a means to do that. Now it seems the roles of these two have reversed.
 
read a good article once giving an overview of hard it can be to localise a string when its content involve a variable, eg "Adam gave Eve X apple(s)"
in English it is simple, mostly just detecting if X is 1 so that you don't put a needles 's' in. But when you factor in other languages, you need to consider the order the words go in, and some languages take special not when X is 1 or 2; when X is a multiple of 10 etc
 
sbi
9:54 AM
@StackedCrooked users are still answering people like him, even those who have been involved in us debating him here. This needlessly creates noise and frustration.
 
Selecting proper form is not that hard, you can find ready expressions in gettext manual.
Ordering is taken care of by making the entire string a single translatable entity.
 
Oh yeah, their are libraries that can do this already, but it it is still a complex task to negotiate this for languages
probably made all the worse in that you can't really program the logic for negotiating this with out knowing the language, or having some who is willing the answer a lot of questions about the language.
 
Well, you make it possible to leave that to the translator.
 
@PiotrLegnica I think you have missed my point
 
sbi
@PiotrLegnica People keep saying that printf() format strings are better, but I suspect this is a sentiment started with those coming from C++, and got "inherited", rather than experienced, by later C++ users. When I taught students, I taught them streams. When some of them later stumbled into format strings they were appalled by their cryptic complexity. IMO, printf() has no advantage over streams, but comes with the drawback of failing badly at runtime if you do something wrong.
 
10:00 AM
yes its very easy to have an array of strings, each string being it translated into another language. the problem comes from wanting to being able to have it automatically handle "I have 0 apples" "I have 1 apple" "I have 2 apples"
the conversions of apples to apple when the amount is 1 is not the same in every language.
and its not exactly clever to try to have a version of that string for every amount you might want to output in every language
 
omg, Oracle drives me nuts some days....
 
@thecoshman I know that. That's why gettext embeds an expression into the translation file, that is evaluated at runtime and selects a proper form.
 
the documentation is just inadequate, I hate it when that happens
 
@Tony Try working with some libraries with no docs at all. ;)
 
sbi
@thecoshman Right. The singular of "apple" in German is "Apfel", the plural "Äpfel". Other words follow different rules to form the plural. I'm sure I could come up with half a dozen schemes to do that which are in use in German within a few minutes. And that still discounts languages who use yet different forms of substantives when there are 2 of them, or some other number.
Bottom line: Internationalization is very hard.
 
10:05 AM
@PiotrLegnica It's just how do I figure out how this function is supposed to work .... I have no idea how to use it and the function is virtual so I cannot go look at it's implementation
 
sbi
@Tony The documentation of <insert any API name here> is inadequate.
 
Try searching it on Google Code, maybe you'll find some clear example.
 
@sbi Oracle API
 
@sbi even with in English it is had. Cactuss is wrong, it should be Cacti, so you would likely need a look up table of singular and plural for all words, or encode a string such that a parser can load it in
 
sbi
@Tony You missed my point.
 
10:07 AM
@sbi oh you mean most API's have inadequate documentation?
 
sbi
@thecoshman Yeah, but English has only a bunch of exceptions. Bad if you get them wrong, but the simple scheme still works for 95% of all cases. For German, exceptions is what makes the rule. :)
@Tony I wrote "any". :)
 
@sbi yes, I tried to learn German grammar... pfff
 
@sbi I am sure it would be the same for most European languages, as they all follow the same sort of syntax ( wrong :P )
 
I'm still confused with the Dativ, Nominativ, etc....
 
Really, translating itself is not the hard part. Correctly rendering translated UI is more tricky than that.
I was learning German for two years and all I learned was bunch of funny letters, random words and how to say 'I don't speak German'. I'm not very good with natural languages. :(
 
10:12 AM
@sbi Deutsche Grammatik lernen war echt schwer... leider weiss ich noch nicht wenn mann eine oder einen (und andere variationen) Apfel sagt...
 
@PiotrLegnica oh yeah, trying to handle the fact a short string in one language can suddenly become huge in another, or the fact that a language is read from right to left, or worse yet, vertically!
 
sbi
@thecoshman I dunno. English strikes me as using a very simplified grammar, but an incredible amount of synonyms. (This probably has to do with it being formed when the West-Germanic Angles and Saxons mingled with the North-Germanic Vikings, two closely related sets of dialects merging into a simplified one.) The only other foreign language I ever had to learn a bit of (Russian) had lots of grammatic rules, but very few exceptions to them.
 
Like @sbi said, internationalisation is a painful process to get right
 
@sbi wow Russian! A whole new alphabet
 
sbi
@Tony Oh, that's half-easy: You never say "eine". :) Which leaves "einen" (vs. "ein"), which is used whenever the 4th case is required. However, I'm afraid that this you just have to remember. :(
 
10:15 AM
@sbi more or less yeah. We do love having lots of ways to say the same thing, yet each way would have that subtle different meaning. I think the homophones are worse, there, their and they're; which and withc etc. or worse yet, wind and wind! smart move there
@sbi the 4th case?
 
sbi
@PiotrLegnica Oh, c'mon! We have four funny letters, you have, what? two dozen? :)
@thecoshman What do you call those grammatical categorizations of noun forms in English?
 
Ok, off I go to a calculus test. This day is going to be boring.
 
sbi
@PiotrLegnica Now you're weaseling out! :)
 
@sbi well, I am no master of language, but do you mean, 1st person, 2nd person, and 3rd person ie. "I slapped @sbi for being grumpy", "one has slap @sbi for being grumpy", "@sbi was slapped for being grumpy"
@sbi not that your grumpy or anything :P
 
sbi
@thecoshman No, that's something else. (And I think you're mixing two concepts there.) Besides the genitive ("English's grammar"), you don't have much of noun forms.
 
10:21 AM
let me get on wiki :P
 
@sbi I think they are just called "cases" in english, though not sure
 
sbi
@thecoshman The classic example is "The lion killed the man." In English, you don't grammatically differentiate between subject (lion) and object (man), except by word order: subject is always first, object last. In German, nouns and/or their attributes ("the") change depending on whether they are subject or object, and to which they change depends on the verb. (I think, having learned as a baby, I'm no expert on German grammar.)
 
@sbi you mean in that in English we would say "A lion saw the lion", using the same spelling for lion, but in German "A lion" would not get spelt that same as "the lion"
 
sbi
@thecoshman Yep. (Although the rule for lion is that it doesn't change, but the article "the" does.) In German, you could say it the other way around, and still mean the same thing. In English, some of this is left: In "Who killed whom?" the object differs from the subject grammatically, so (at least in theory, I'm not sure you actually do this), you could ask "Whom killed who?" and it still would be clear that the first refers to the one which got killed.
 
@sbi I see what you are saying I think... though it is kind of hard to tell because "Whom killed who?" though strange still makes sense. In order to have "the man" first, you would have to say "the man was killed by the lion", so it is the 'in between bit' that gives the context to the sentence.
 
sbi
10:32 AM
@thecoshman (You not find "whom killed X" strange when it comes as a question, after someone mumbles "X killed blrgl", and you don't know whom "blrgl" refers to.) And ""was killed" also changes another grammatical aspect (which I hardly know in German, let alone the proper English term), namely whether the subject was active, or acted on.
In German "The lion killed the man" would be "Der Löwe tötete den Menschen", where "den Menschen" (instead of "der Mensch") resembles "whom". If the man would have been victorious, "der Löwe" would change to "den Löwen" (oops, the noun changes, too! My bad. Did I mention that abstractly discussing this is hard for me?), wheres the man would become "der Mensch". Again, order of subject and object doesn't matter, so you could say "Den Löwe tötete der Mensch" and man would have been victorious.
 
@sbi can we just leave this as "Human language is needles complex"?
 
sbi
@thecoshman I don't know about "needless", but, yes, human languages definitely are complex.
 
I think that it is easier to see by decorating the nouns, in english the structure of the sentence is fixed: subject verb object (all other things) but in other languages the order is not fixed, and you can say: subject(man) killed object(lion) or object(lion) killed subject(man). Both sentences would be correct (without change in the in-between verb) and share meaning, as the language adds a decoration to each pronominal phrase to determine the function it takes in the sentence
 
sbi
@DavidRodríguezdribeas Yep, that was exactly the point I struggled to make. :)
 
@DavidRodríguezdribeas ah I see
 
sbi
10:42 AM
@thecoshman I should have realized that I would need to use a programming language syntax to explain features of natural languages on SO...
 
@sbi might have helped. Trying to understand how German syntax in terms of English syntax is not easy for me as I struggle with the English syntax as it is
I still fail to remember if I should say "get of the table" or "get off the table"
 
sbi
@thecoshman "Hey, you, get off of my cloud!"
 
the solution I get is that I just need to remember, but just remembering that things just are is hard for me
EPIC! Just noticed the current caption for the room!
 
sbi
Apr 2 at 8:27, by FredOverflow
room topic changed to Lounge<C++>: Where trespassing Singletons are shot on sight.
 
@sbi oh god, so it's not even a recent thing. Feel so slow, better rest my ageing bones
So who's going to a meet up?
 
11:07 AM
I feel bad for the poor little singletons... and I would like others to understand that it is not their fault, not their intention... it's just their nature
2
 
 
1 hour later…
12:11 PM
yesterday I asked how to wrap this, but I'm actually at a loss how to use it properly
0
Q: how to use setDataBuffer from OCCI for array fetches

TonyI have a query that I'm executing on a database that returns an array of records, I read in the Oracle OCCI documentation you have to use the ResultSet::setDataBuffer() function to fetch array's of data from the db. I just don't get what I'm supposed to give as the first two args when a databas...

 
sbi
12:36 PM
@Tony I suppose you already googled? The first google hit is now your question, but there's others.
 
@sbi I have googled plenty, most examples are for doing update's to the database, I'm only trying to fetch from the db
 
if I have something like this

class HourlyEmployee : public Employee
{...}

it means HourlyEmployee extends Employee??
 
@cyberrog yes
that's public inheritance, you also have private and protected inheritance
 
so the : public Employee after class ClasName, is like, extends ClassName in java?? Just an example for better undestanding.
 
@cyberrog yep that's what it means
 
12:41 PM
@Tony good.
 
I'm trying to find a good IDE for C++... Any suggestions? I don't like Code::Blocks, and eclipse isn't really ideal for me.
 
@SamBloomberg Visual Studio Express
 
Sorry, I'm on linux. Forgot to mention that lol
ubuntu to be precise
 
OK sorry can't help you. Maybe check out NetBeans.
 
I'll take a lot. Thanks though.
*look
 
12:55 PM
@SamBloomberg I've been using QtCreator on Ubuntu for over a year now. It's pretty good.
 
1:39 PM
So
MFC has a line:
HWND CWnd::GetSafeHwnd(){
  if(!this)
    return 0;
  ....
is it at all legal to actually do that?
 
@ChrisBecke It's legal to do it, but it should no longer be true (ever). In ancient versions of C++, it could be true (assigning to this in the ctor was a precursor to overloading new/delete).
 
Is there any gdb guru in the room?
 
I think in MFC iss quite possible to get a NULL CWnd*
@David - I onlyuse GDB when its safely on the other side of XCodes GUI interface.
so far anyway.
@StackedCrooked You can't pretend to be doing c++ dev in Qt though. wtf is with all that .moc markup anyway?
 
1:59 PM
0
Q: Fiber local storage

Amir GonnenIn Visual C++ it's possible to use declspec to specify the variable's storage. For example, __declspec( thread ) int tls_i; specifies that tls_i should be stored on thread's local storage. Is there a way or a workaround to specify that a variable should be stored on fiber local storage? I kno...

interesting question
 
@ChrisBecke, you can use QTCreator as an IDE for a code base which don't use QT.
 
thats tru
e
and its certainly a lot smoother than code::blocks
dev c++ is written in delphi, and eclipse in java, and ive never seen the pointof using a c++ IDE developed in an inferior language :P
 
2:29 PM
@ChrisBecke QtCreator doesn't force you to use the Qt library or preprocessor. You can simply import an existing makefile project.
 
2:51 PM
@ChrisBecke I don't care in which languages the tools I'm using are written. (But then I'm using emacs...)
 
@ChrisBecke VIM is written in an "inferior" language - that doesn't mean it's not still the best editor around
 
s/best/second best/
 
@AProgrammer you do know the "improved" part refers to it being an improvement over EMacs, right? ;-)
and emacs ia arguably written in two inferior languages - C and scheme
 
3:06 PM
@RonaldLandheerCieslak Agreed. Its a horrid editor for entirely different reasons.
 
@RonaldLandheerCieslak, you are confused. The improved part is over ex. Emacs is still the unreachable target. And emacs is just written in lisp (not in scheme, which is another lisp dialect). The C part is just annectotal. :-)
 
but b. Whats inferior about its language?
 
@ChrisBecke C is the obsolete parent of C++ that refuses to become a subset
 
How do i know is someone has sent something on the COM-port? Do I need to do ReadFile in a while-loop?
 
@RonaldLandheerCieslak Theres a reason it refuses.
generic programming is overrated
 
3:10 PM
I wouldn't mind if C were a true subset of C++ without the generic programming, the object-oriented programming, etc.
we could still prevent having so-called "clean C" (compilable with C89, C99 and C++-98)
 
Well then, join my campaign to build a time machine and assasinate Stroustrup and possibly Stepanov too
 
I see no reason to assassinate Stroustrup?
 
@RonaldLandheerCieslak that's because you operate by real-world logic. @ChrisBecke doesn't
 
he added new and delete, which are obsolete keywords, and broke the behaviour of void*
 
@ChrisBecke he did break void*, I'll give you that
 
3:13 PM
which are the cardinal sins that prevent c++ and c source compatability
 
the heinous crime of type safety
what was he thinking
 
at which point I suspect the C standards committee stopped even pretendig to be interested in keeping their updates aligned with c++
@jalf c++ has type safety. void* is a c ideom, that has no place in c++ and should have been left alone as a result.
plus he left union{} in which amounts to the same thing
if he was as committed to type safety as you say...
 
@ChrisBecke that doesn't even make sense.
 
ouuhHH it looks like I really need some advice with floating point arithmetic and computational geometry.. can u recommend me any reading material?
 
3:15 PM
how so?
no c++ code should ever use void*
except in rare cases
 
lol
 
@ChrisBecke please finish your sentence: if he were really committed to type safety..?
 
"Never ever, except sometimes"
and unions have ntohing to do with it
 
well. c++'s meta programming isn't all that really. so there are some holes where sometimes a void* is called upon
 
What if you have to copy/move some raw data?
 
3:17 PM
std::vector
 
@ChrisBecke yeah, neither are giraffes or the color mauve. Perhaps we could stick to things that are relevant?
of course, I realize that would ruin all your rants about how evil C++ is
 
whats wrong with just using char* anyway?
if you have to cast anyway.
 
@jalf probably the only reason he comes here, for pointless rants that annoy others
3
 
@ChrisBecke the problem is that they mean different things.
and, for example, incrementing a void* is UB, while it's legal on a char*. If you're not actually pointing to a char, you probably don't want increment to do the wrong thing
 
yes. void* means a universal pointer. char* is a pointer to the fundamental unit of the c/c++ memory model. which everything tangible is.
 
3:20 PM
er, not UB. It doesn't even compile
everything tangible is a pointer to the fundamental unit of the c/c++ memory model?
 
@jalf: Why bother? He's clearly not going to let anything as inconvenient as facts get in the way of what he believes!
3
 
@JerryCoffin Fair point. I'm off for a nap!
 
Yawn
 
maybe my headache will go away then
 
@jalf prob will :)
 
3:22 PM
@jalf Good call -- I wish I could.
 
@jalf try drinking a liter of green tea
headaches are usually a lack of sleep or a lack of liquid
 
in my case, it's lack of sleep
and I intend to remedy that!
 
I could use a good nap too, but heck I have to work
 
heh
 
meh
 
3:29 PM
@DavidRodríguezdribeas Well, there are not that many of them, so at least it's not a major problem ;)
20 mins ago, by Ronald Landheer-Cieslak
I see no reason to assassinate Stroustrup?
@RonaldLandheerCieslak You just said "ass" two times!
@RonaldLandheerCieslak Oh noes, the most important tool of C++, namely void*, is broken? How can you get anything done in such a crippled language?
 
void* is not very type safe though, so I can't see it being very safe
 
@Tony What are you implying, that C++ is an unsafe language? :)
 
@FredOverflow not implying anything, just saying what it says there
It's a language in which you are free to shoot yourself in the foot, and you can even pick the size of your gun & bullets too :)
 
@FredOverflow I never said void* was "the most important tool in C++", I just said its behavior w.r.t. the behavior in C is broken (in that it breaks C code)
 
@Tony Via template parameters? :)
template <size_t gun, size_t bullet>
void shoot_yourself_in_the_foot()
{
    std::cout << "KABOOM!!!\n";
}
 
3:41 PM
@FredOverflow yea exactly like that
 
@RonaldLandheerCieslak Are you talking about the fact that there is no coercion from void* to T* like there is in C?
 
@FredOverflow yes
 
Well, I'm not too fond of implicit conversions, anyway. But if you say it's a real-world compatibility problem, I believe it.
 
@FredOverflow it's really the only C-vs-C++ issue I have - and I do like C++ a whole lot better than C for its type safety in general
just not the way it handles void*
IMO, if automatic coercion from void* to T* were available in C++, and void* was properly avoided in the general case, C++ would be a better language for it
 
and really, void* is only ever used in situations where you are explicitly stating that type-safety is your concern, not the compilers.
 
3:45 PM
What's the difference between a void pointer and a typed pointer? I guess you can increment a typed pointer but a void pointer not (or the size by which is incremented makes no sense)
 
@ChrisBecke exactly, which is also why we have (cast) and reinterpret_cast<T>
 
@Nils You cannot do anything with a void* except storing it somewhere, comparing it via == and !=, and cast it back to what it once was.
You cannot dereference a void* in particular.
 
Classic C used char* where one now use void*. I'm not sure in which language void was first introduced C or C++. The 80's where a time where both language evolved a lot and imported things from the other.
 
but it is guaranteed to be large enough to hold any kind of c++ pointer except a member function pointer.
 
what does it mean?

VetorPPD error LNK2001: unresolved external symbol "public: int __thiscall VetorPPD::getCapacity(void)const " (?getCapacity@VetorPPD@@$$FQBEHXZ)
VetorPPD is my class.
 
3:48 PM
@ChrisBecke yes, which is why it is not guaranteed to be the same size as T*
@cyberrog you're missing getCapacity in your .cpp file, most likely
 
Probably because you forgot the const in the cpp file
 
@RonaldLandheerCieslak the definition of getCapacity?
 
@cyberrog it should look like int VectorPPD::getCapacity() const {...}
 
4:44 PM
@FredOverflow A history teacher I had in OHIO used to say that the simple way of remembering the spelling for a planed killing was: donkey-donkey-i-country (ass-ass-i-nation)
 
5:17 PM
I need a good paper about floating point accuracy and epsilon environments and how to choose epsilon. For me eps = 10e-9 worked. But just saying I played a bit around with the eps and 10e-9 worked is not very scientific
ah turns out that the wikipedia article is not bad
 
Goldberg paper is the standard reference. Then there is the handbook of floating point arithmetic by Muller et al.
and obviously numerical analysis books and paper related to your domain of application.
 
00:00 - 18:0018:00 - 00:00

« first day (172 days earlier)      last day (4794 days later) »