« first day (420 days earlier)      last day (4544 days later) » 

8:00 PM
ah
 
I went to university to learn to create shit
to make my computer do my bidding
not pussy about on a blackboard
 
Ahaha, good luck.
 
yeah, I got that message already
 
user457812
That's why I'm an English major and not a CS major >_>
 
That makes zero sense around these parts.
 
user457812
8:02 PM
I imagine it'll make sense to a few people.
 
No offense, but a major in English sounds even more boring
4
 
Around here, if you get a literature degree thingy, you're stuck with... I honestly don't know what job you can get with that.
 
user457812
I think that just means you're a shitty writer.
 
user457812
Literature? I never said I did literature.
 
What's an English major then?
 
user457812
8:04 PM
I'm in creative writing. I get to actually write things, not just read books and grand-stand about whether or not you can read Moby Dick as a Freudian commentary on life and death.
 
that sounds good
 
Do you need to "get to" write things? Isn't it something you can just do?
 
user457812
No, but creative writing gives you the opportunity to work with a lot of different professional writers and in a workshop format.
 
ah
 
user457812
Basically, you make stuff and then you get critiqued.
 
user457812
8:05 PM
So, it works pretty well for figuring out where you suck.
 
so what can you do with it :P?
 
Write things. In English.
 
user457812
Copywriting, teaching, technical writing, etc.
 
user457812
Believe it or not, a lot of people need things written (because Americans suck at writing).
 
What's copywriting?
 
8:08 PM
I'm gonna go stuff my fucking face
I'll be back
 
user457812
Copywriting is the use of words and ideas to promote a person, business, opinion or idea. Although the word copy may be applied to any content intended for printing (as in the body of a newspaper article or book), the term copywriter is generally limited to promotional situations, regardless of the medium (as in advertisements for print, television, radio or other media). The word copywriting is regularly used as a noun or gerund. The purpose of marketing copy, or promotional text, is to persuade the reader, listener or viewer to act—for example, to buy a product or subscribe to a...
 
god, I suck at makefiles
2
 
Everyone does.
 
@nil: I know, my gf is trying to get a copywriting job, but I was under the impression there are not that many opportunities in that sector :P
 
8:08 PM
Anyone wanna bet the puppy will be complaining about his stomach in a few hours?
 
user457812
You just have to learn to accept that you do not suck at Makefiles, but that Makefiles suck
 
nah
I learned what to stuff my face with
 
@nil nah, it's both
 
user406009
@nil "a lot of people" also need their trash taken away. But that is still not a glorious job.
 
user457812
@KillianDS There isn't a lot of opportunity there, but it's better to get a degree in what you like than not.
 
8:09 PM
Yes it is!
Taking the trash is a class C job. Perfectly good.
 
user457812
@Ethan No, but do you think writing is the same as being the asshole riding a garbage truck?
 
user457812
I would say one requires a considerable amount of skill and the other requires you have functioning muscles. A brain probably isn't required for that line of work.
 
What do you guys have against garbage truck people?
 
user406009
No but the argument that people need it done does not mean that it will lead to a high paying college education requiring career.
 
Actually they make quite good money here in Sweden
above average I would say
 
8:11 PM
@ManofOneWay yeah, same here
and good working hours too
 
And they do stuff.
 
user457812
@Ethan And yet we have a college education in English and none in garbage dumpery, so what's your point?
 
or, well, they have to get up early I suppose, which is a definite drawback. But don't have to work that many hours
 
user406009
I have nothing against people who drive a garbage truck, but it hardly a job that requires a college degree.
 
user406009
Those degrees are expensive.
 
8:12 PM
Maybe it's time to drop school and become a real man, a garbage man
3
 
user457812
@Ethan The problem I see is that you seem to think writing "hardly ... requires a college degree."
 
@nil well, many people write without having a college degree
 
Xeo
0
A: Container for a limited group of classes

XeoLike I already said in my comment, you can do this with Boost.Variant. There's also the other way, and the more natural, and that is the usual class hierarchy with polymorphism. Since there are already answers on the hierarchy version, I'm going to focus on the variant version here. First the c...

Phew, longest answer I've written in the last time
 
user457812
@jalf And most of them are lousy writers.
 
I'd wager that most popular writers do not have a degree
 
8:15 PM
@jalf Btw, how will this summer turn out? Portugal, Netherlands and Germany.. :)
 
or at least, do not have a degree in writing
 
Dammit.
0
Q: GCC implementation for behavior of reinterpret cast

user1086635How can I know how will reinterpret cast work on GCC compiler? Is it mentioned in the documentation? May I know any reference or link if it exist?

What's with the "reinterpret_cast is defined by the standard, compilers can't change its behaviour" people here?
 
user457812
@jalf And I could wager the opposite
 
user457812
The problem is that neither of us knows who all has a degree and whether an education would benefit those that don't.
 
wager, that's a fancy word :( Had to look it up
 
user457812
8:17 PM
For me, an education is beneficial, and I know that much because my writing has improved quite a lot.
 
@jalf Many popular CS figures also do not have a relevant degree
 
@nil the second part is irrelevant. I didn't say anything aobut whether an education would benefit their writing
 
What if I want to search for text only within a specific file (but there may be multiple files with the same name) at the root of a server. I try this: % grep dev.site.com httpd.conf
grep: httpd.conf: No such file or directory (but that only checks the immediate below level)
 
and the first part can be answered by wikipedia
 
user457812
I would say it's highly relevant. That's the point of having an education.
 
8:18 PM
I would like to check all files on server called httpd.conf with the specific text string "dev.site.com"
on ubuntu 10.10
 
Xeo
btw @RMartinhoFernandes, get Clang, it has template aliases :P
 
@nil but we're not discussing what the point of education is
 
user457812
At any rate, this discussion has gotten boring, so maybe continue it later by having a duel of cat pictures
 
@Xeo Lacks initializer lists.
 
I am making the simple claim that you do not need a degree to be a popular or successful writing
 
user457812
8:20 PM
You could make that claim about any degree, by the way.
 
user457812
Except maybe engineering.
 
Stephen King does have a degree in English. J.K. Rowling does not. Ken Follett studied philosophy, not English. Ian Fleming and C.S. Lewis did not have an English degree either, as far asI can figure out
@nil what, that you don't need it in order to be a successful writer?
you seem needlessly defensive
No one's saying you won't gain any useful skills from your degree, or that it won't leave you a better writer than you were before
but frankly, it's absurd to say that writing needs a college degree
 
user457812
It's probably absurd to say anything needs a college degree as well.
 
Have you guys received the Unsung Hero Badge?
"Zero score accepted answers: more than 10 and 25% of total"
It seems hard to get
 
Tony has it.
I don't have any hopes of getting it.
 
8:29 PM
It must be damn hard to get after a while, I guess it's easier to get it early.
 
Yeah. When they created it I already had tons of answers.
 
Xeo
You can try to get it in the low-pop tags
 
I only have four zero-score accepted answers.
 
Xeo
But if you already have tons of answers, it's basically impossible
 
@nil Being a college professor probably does.
 
user457812
8:32 PM
@StackedCrooked Nah.
 
@Xeo Even then it's hard. You need to provide a good enough answer, because it needs to be accepted. But it can't be good enough to get an upvote.
 
Xeo
The worst is the "and 25% of total" condition
 
cpx
Hm, does it mean we have to immediately accept it before it gets upvoted? lol
 
Can you lose the badge?
 
Xeo
@cpx It can even get upvoted afterwards, and then it doesn't count anymore
@StackedCrooked I don't think so
 
8:35 PM
@StackedCrooked "Badge". No.
 
Xeo
Oh, I just thought of a way to get it
 
And many askers, like me, always upvote + accept.
@Xeo Delete everything!
 
Xeo
A pretty easy way
It talks about "score". If you have a score of "1", let someone downvote you and the answer counts
 
cpx
Downvote answers?
oh
 
And how will you get someone to downvote you and no one else?
 
Xeo
8:36 PM
Ask ? :P
You can always game the system
 
That's cheating!
Might as well sockpuppet your way through.
 
cpx
hm'
 
@RMartinhoFernandes As long as you don't get caught it isn't :p
 
Xeo
Can you see how many zero-score accepted answers you have without going through your answers?
 
0
Q: How are programming languages created?

Sameh HanyIs creating a programming language all about creating the compiler of the language? if so, then how come there are many compilers for each language?

 
cpx
8:38 PM
after getting the badge upvote them again!
 
I wonder if it's really cheating if a schizophrenic upvotes himself.
As a different personality.
 
Xeo
The more pressing question is, should he use the same account?
 
Being a different person, he'd have his own account.
 
If you are not using initializer lists, is it still possible to have the same name on the incoming argument as on the class variable?
 
Xeo
Huh?
@StackedCrooked He's not a different person, only a different personality!
 
8:42 PM
Details..
 
Class(int a, int b)
{
a = a;
b = b;
}
 
Xeo
@ManofOneWay No, that won't work
 
With 'class variable' you mean static member?
 
Xeo
Atleast not how you want it too
@StackedCrooked "non-static" you surely mean
 
I mean 'static', I just don't know what he means.
Instance variable or class variable.
 
Xeo
8:44 PM
class variables count as non-static to me, especially if he mentions initializer lists
 
I'm also not sure if he means initializer list or initialization list..
It's a 2x2 grid of solutions.
 
Xeo
lol
 
No | No
--- ---
No | No
 
Xeo
:D
Me likes
 
Actually, the initialization list would work.
But he isn't using it in his code sample..
 
8:51 PM
@StackedCrooked Instance variables. I was answering a question realizing the function wasn't a constructor, so it didn't matter..
 
Dammit now I need to add a 3rd dimension.
 
=D
Anyone seen Sons of Anarchy?
 
I didn't.
 
I'm downloading the first season now, heard it's good
 
back
 
9:05 PM
Can someone retag this as C++ stackoverflow.com/questions/8459010/…
 
done
 
int* x = any_void_pointer; // can this conversion happen implicitly in initialization?
 
no
 
Anyone got a stream to el classico?
 
you can implicitly convert to void*, but not from, I think
 
9:15 PM
Yep.
 
Not in C++.
 
@DeadMG but when we overload operator new , we return void pointer
 
that's not the same thing at all
the language enforces the type-safety because you give a type to new expressions
there's no conversion there
 
Xeo
overloaded operator new is only concerned with the memory allocation. The construction happens with the new operator, which is a different beast
 
ah, Thanks :)
so much aah moments come when you learn C++ :D
 
9:17 PM
wait until you have fun with templates
the aah moments never stop coming
 
Xeo
Or until @Johannes throws his "quizzes" at you...
 
pff
 
Templates are awesome.
4
 
Johannes only throws meaningless trivialities at you
 
9:20 PM
Quiz time: what type do I use for an argument that is supposed to be a sequence of contiguous objects of an unknown POD type?
 
what?
you can't use anything for an argument where you don't know the type
 
Xeo
std::array<T,N> with T and N as template parameters? /shrug
 
@DeadMG It's to be fed to a C function that takes void* :( Hence the POD requirement.
The type will be a POD.
 
if you don't know the type, there's jack shit you can do
 
Is T* + size my best option?
@DeadMG I can pass it to the C function! It knows what to do.
 
9:23 PM
how could you create anything to pass to it? you don't know the type
 
I don't want to restrict this to arrays, because I'd like to allow the data to come from a vector, too.
 
cpx
is it int a[]? :/
 
Xeo
@RMartinhoFernandes Iterator first, Iterator last, build an array out of it or something like that?
But yeah, T* p, size_t size might just be the best option
 
Hmm. Yeah, that's flexible. But I'd like to avoid copying the data if possible. The C function will copy it again.
Pointer + size it is.
 
WTF
switch statements, y u suck so bad
 
Xeo
9:26 PM
?
 
Because they were inherited straight from C.
And pretty much every language that took switch from C forgot to fix it.
 
I fixed it!
 
C# did improve it, but it's not totally fixed yet.
 
Xeo
What exactly are you complaining about?
 
@DeadMG Yeah, I suspected so.
 
9:28 PM
the whole "cases aren't scopes" bullshit
 
What bit you this time? Fallthrough? One-big-scope?
Ah, one-big-scope.
That's what C# forgot to fix.
 
lol are you kidding? that's their biggest problem
apart from the "only works on integers" also bullshit
 
@DeadMG Yeah, but they only fixed the "fallthrough as default".
 
that's also bullshit
 
Xeo
Well, what's the big deal with introducing the scopes yourself?
 
9:29 PM
I used some fallthrough but it wouldn't kill me to have to write continue to get it
 
Yeah, it's incredibly rare the situation you need fallthrough.
@Xeo Manual labour.
 
error-prone labour
 
Xeo
lol
 
I put one } the wrong side of a default
compiler bitched at me and I couldn't for the life of me see why
 
Xeo
try to find out what you did wrong when you accidentially write template<template<class> T>.
 
9:32 PM
That's missing a class.
 
Xeo
src\main.cpp(64): error C2988: unrecognizable template declaration/definition
src\main.cpp(64): error C2059: syntax error : '<L_TEMPLATEDECL>'
That's what MSVC throws at you
 
Xeo
I now know where to look when I read that, but the first time I got that error, believe me, it took me some hours to find it because I just didn't see the missing class
 
there's a missing class?
 
lol
template<template<class> class T>
 
9:33 PM
ah
by the way
is it a bad thing that I have lambda objects, lambda functions, and lambda types?
 
Xeo
@DeadMG Ehm... what?
 
but they all have perfectly good use cases
 
Care to explain the distinction?
 
Xeo
You can make types on the fly, objects there-of, and functions?
 
9:35 PM
lambda functions, you already know
 
Explain to me as if I don't know WideC.
 
lambda objects, I made them because pair, tuple and such are arduous
you can do like, func( { x = 5, y = 6 } );
 
Oh, so you're using "lambda" as a placeholder for "anonymous"?
 
Xeo
@DeadMG sounds like C99
 
not exactly
 
Xeo
9:36 PM
(somestruct){ .x = 5, .y = 6 }
 
in C you have to have an extant type and that's just an initializer
whereas in WideC it creates said type, and then makes an object of it
 
Xeo
I know, I said it sounds like it
 
well, it's also more flexible
 
@DeadMG Sounds like C#'s anonymous types.
 
yeah, they're kind of similar
 
9:37 PM
new { x = 5, y = 6 } is valid C#.
Well, I wouldn't call that lambda anything.
 
and lambda types
 
Xeo
So, and what's a lambda type now? The type of a lambda object?
 
I need stuff like `func( type { int x; string y; } );
eh, you can call them anonymous if you like, but I prefer lambda
wtf's the point in "lambda" functions and then anonymous everything else?
 
Xeo
func(decltype({ x = 5, y = "hi" })); ?
 
it's the exact same principle
 
9:38 PM
@DeadMG They're lambdas for historical reasons.
 
as if I give a flying fuck about that
 
Some dude used a notation like "λx. 2*x" for them.
 
well, I'm sure that his grave will appreciate it
oh wait, I doubt that very much
 
Xeo
so what about your lambda types now? Why do you need them?
 
because lambda objects can't inherit from anything
also, it saves me from having to introduce type definition statements
 
9:40 PM
Yeah, Church died in 1995.
Poor sod.
Some lambda function expressions create an object. "Lambda object" seems like a perfectly good name for those objects.
Confusion ensues!
 
meh
I'll just rename lambda functions anonymous functions then
 
lol
But everyone will call them lambdas anyway.
Just because.
 
well they can suck my dick
 
Xeo
@RMartinhoFernandes C++ standard calls it closure object :D
And closure type for the type
 
9:43 PM
@Xeo But no one calls them that.
 
Xeo
Well, yeah
 
That's the point I'm trying to make. You can call it whatever in the standard, but people are likely to call it something else if it's "more natural".
Think "instantiation" and "specialization".
 
sure, but I really don't care what people call it
 
It could be a hindrance to learning the language!
 
well, as the guy who invented the language, I think that it's not unreasonable to define a consistent term for "inline-defined unnamed object"
 
Xeo
9:47 PM
unnamed function, unnamed object, unnamed type
sounds better than that anonymous stuff
 
Xeo
also, anonymous can be tedious to type
 
Function literal, object literal, type literal.
 
Xeo
You know, I just thought of something: Name your free functions liberal functions! :)
 
Democrat functions! (or is it Republicans?)
 
Xeo
9:49 PM
Woot, finally a flag weight of 500
Deputy badge inc
 
Good luck getting to 750 now.
 
Xeo
yeah, as I'll never reach it
749 is max afaik
 
From 500 on, the increase per flag decreases exponentially.
 
@Xeo Well, good luck getting to 749.
 
Xeo
9:51 PM
:P
But first: on to electorate and copy editor
 
0
Q: GCC implementation for behavior of reinterpret cast

user1086635How can I know how will reinterpret cast work on GCC compiler? Is it mentioned in the documentation? May I know any reference or link if it exist?

As apparently the only one that understood this question, I'm sad I don't know how to answer.
 
user406009
@RMartin I am sure people understand it, but they do not want to go crawling through gcc's source.
 
Someone asks about implementation-defined behaviour and everyone goes on babbling about how the standard defines it.
 
sbi
@RMartinhoFernandes I like such names. :)
 
Xeo
Who'd have guessed
 
sbi
9:53 PM
@Xeo Me!
 
Xeo
...
No questions, your honor.
So, anyone needs some upvotes on their questions? I want my electorate badge
And I'm missing ~200 votes or something like that
 
Xeo
Oh wait, it's 289 votes :(
That's gonna take over a week, ugh
 
@Xeo Vote me up, I'm in most need
I'm excepting +1k of reps when you are done!
Oh wait, I don't have that many questions =(
@sbi are you watching the game?
 
sbi
@ManofOneWay What game?
I think this answers it, doesn't it?
 
9:59 PM
:(
El Classicó
 
sbi
@ManofOneWay Well, now you got me curious. Which game?
 

« first day (420 days earlier)      last day (4544 days later) »