« first day (652 days earlier)      last day (4295 days later) » 

9:00 PM
No code walls. ideone.
 
Anyways; it's silly that you need to do all that just to pass in a function pointer
Reminds me of Java
COM was really poorly architected.
 
@StackedCrooked he he, nonsense to the limit :-)
 
At least the tablet works nicely :)
Samsung Slate
 
@IDWMaster no, it's quite elegant. in c++ you just need some support machinery. although our current and former committee chair insists that a language extension is needed (for windows rt)
 
@Cheersandhth.-Alf Except the problem is that the COM implementation currently is inconsistent in Windows 8. You have some newer, prettier C++ WinRT classes, and some older, win7/32 COM ones mixed in.
WinRT does a good job of abstracting COM.
But not everything is WinRT yet.
 
9:05 PM
@IDWMaster i've stayed away from windows 8, but if experience is anything to go by, the perceived problems are very much construed problems, not real ones. microsoft tends to put politics into the design and coding. like pretending that identical things are different, that you absolutely need to use this tool or that, and so on (most infamous such, that you "need" WinMain for a GUI subsystem program, which is just bollocs).
 
@Cheersandhth.-Alf In WinRT this really is the only way to get raw PCM data.
 
oh sorry i said "politics", i meant "marketing". but almost same thing :-)
 
sbi
stackoverflow.com/q/11712020/14065 is now reopened. Shall we close this as a dupe now and ask a mod to merge the answer? — sbi 1 min ago
 
@sbi Someone actually gave that 4 upvotes?!?!?!?
 
9:08 PM
@Cheersandhth.-Alf I quite agree that me getting the points is a problem. Maybe some way to move ownership of the question would be useful. But I did not have the privileges to re-open the original question (and it would not have got the votes to re-open).
 
sbi
@IDWMaster The question is indeed bad, but, as @Loki has shown, not unanswerable.
@LokiAstari Usually you can get enough votes if you come here and make a good point about why you think it should be reopened.
@Loki: We can now close your question as a dupe of the original one. Then you will either have to copy your answer to there, or flag for a mod to merge. What do you think?
 
@sbi If I had not written the answer first and linked back to the original I would not have gained enough buz to re-open.
 
Well; it compiled, but my callback never got dialed. (called)
 
I would say merge as then ginni gets the recognition for the question.
 
sbi
@LokiAstari I dunno. Coming here with "I have a very elaborate and perfect answer for even that vague question, can I have a few votes to prove this is answerable?" might have gotten you the votes. Or it might not. However, at this time of the day, with so many well-reputed regulars hanging out here, it is always worth a try.
 
9:12 PM
@sbi i think that closing the original question is better, because until merging has been done that points readers to an answer
 
sbi
@Cheersandhth.-Alf AFAIK, only the answers and comments of a closed question can be merged into the one it is closed as a dupe of. ICBWT.
Telnet @Shog9, are you there?
Well, he obviously isn't.
I'd suggest voting to close this as a dupe of that, and we flag for a mod to merge @Loki's answer from the duping to the duped question. Objections?
 
how does one remove a close vote then?
and this also raises the interesting question of what happens if both questions are closed as dupes of each other
 
sbi
@Cheersandhth.-Alf You can't.
@Cheersandhth.-Alf I think one would be closed first, and the the other couldn't. ICBWT.
I have flagged for a mod on both questions that @Loki's dupe should be closed and his answer merged.
 
ok, i'll add a close vote to the faq question
 
sbi
Oh, it seems @FredOverflow has found an FAQ entry that the whole thing is a dupe of. Couldn't he have done that like 15mins earlier?? @#'%! I guess this is the moment I give up and bow out...
 
9:28 PM
since all big vendors offer similar functionality it should be possible to define a downward compatible macro CPP_THREAD_LOCAL?
 
clang has __thread, IIRC. GCC probably does the same and then MSVC might have something similar.
But clang already supports thread_local.
At least the version I have does.
Man. ØMQ is so awesome.
 
@sbi Sorry, just came up then.
 
9:45 PM
The clearest explanation of monads is Wikipedia’s.
 
ah man, I just hate those conspiracy theory people that get way too deep into it, to the point that everything around them becomes a conspiracy
 
sbi
@TonyTheLion Just because you might be paranoid, that doesn't mean they're not out there trying to get you!
 
is that one of those responses I've already heard from you in other contexts?
 
sbi
@TonyTheLion I don't think I've ever said that (ICBWT), but it's a pretty common one, so you'll have heard it elsewhere.
 
yea seems fairly common, if you Google it
that's probably why it sounds familiar
 
9:49 PM
i think, unusual people will always be hounded by others. and one does not have to be very much unusual. in primary school just having glasses or being obese or being good at math might be enough.
 
sbi
@Cheersandhth.-Alf So you were an obese pupil with glasses and a knack for math?
 
the latter
 
sbi
:)
 
i got glasses late in college
 
sbi
@Cheersandhth.-Alf And you obtained obesity...when? :b
 
9:52 PM
Dems fighting words.
 
oh, well now i'm getting thinner again. i got a bit well rounded so to speak, while i worked as teacher. dunno why
 
sbi
@EtiennedeMartel Damn fighting words. FTFY.
 
Is it me, or is not capitalizing words that should be, just annoying?
 
sbi
@Cheersandhth.-Alf Ah, I've also been teaching for years! So that's what I can blame it on! Wow, I hadn't known!
 
sbi
9:54 PM
@TonyTheLion Yes, Alf's grammar and orthography rapes are very painful to read.
 
@TonyTheLion "Is it me, or is not capitalizing words that should be capitalized, just annoying?" FTFY
 
TIL: teaching makes you fat.
 
@sbi ah, at least I'm not alone
 
sbi
@Cheersandhth.-Alf Is that second comma correct? With English, I never know.
@EtiennedeMartel And now you're out there to catch a teaching job, yo you have an excuse?
 
@EtiennedeMartel Mayonnaise in high portions makes you fat too
 
9:56 PM
@sbi I would leave it out, but @Tony seems to prefer it. The reason for leaving it out is that any reader can insert a pause where the comma would be, but it's difficult for a reader to remove the pause implied by a comma. I often find myself removing commas that I inadvertently have placed where I would have paused.
 
oh commas
 
sbi
@Cheersandhth.-Alf Don't tell me there aren't any hard rules in English where a comma ought to be and where not?!
 
Virgules.
 
@sbi It really shouldn't be there -- but nearly nobody can keep straight where there should or shouldn't be commas in English.
 
I was taught, if there's a pause put a comma
well, that's what I remember.
 
9:57 PM
@sbi There are some -- but as with all English, each has nearly as many exceptions as applications.
 
sbi
@TonyTheLion That's better than what I was taught. When asked, my English teacher just said that commas in English are a complicated topic...
 
C++ has exceptions too
 
@TonyTheLion But well written code generally has relatively few of them...
 
@sbi well, that's a shitty answer from a person who is supposed to know this
 
sbi
@JerryCoffin The comma rules for German I was taught (which slightly differ from those in official use today) are so complicated that I never bothered to learn them all — but knowing 90% of them in German puts you into the 10% of the population who know even that much...
 
10:00 PM
wow
I'm so terrible at language grammar, it's unreal
nouns, verbs, adverbs, adjectives. I get so confused
 
sbi
@TonyTheLion To be fair, this person had never ever been to an English-speaking country, likely had never encountered a native speaker, and most likely only remembered herself that the rules are complicated.
 
sbi
(I grew up east of the Iron Curtain, remember?)
 
yea, the English teacher I had in Belgium when I first learned English, was so fucking full of herself, If I saw her now I could embarrass her with my English
 
How are you guys ?
 
10:02 PM
@sbi oh yea
 
@ManofOneWay Better than ever; my code compiles.
 
@ManofOneWay me and my alterego are good :) :P
 
Nice to hear :)
@TonyTheLion How's work?
 
not working atm, so good
 
lol
When will you start / continue?
 
10:03 PM
my new job starts end of August, so I'm kinda in between jobs
my last one ended
 
What kind of job?
 
C++ dev
 
That's really nice =)
 
I should be happy about it, but for some reason, I'm not that happy about it at all
 
that's strange
 
10:04 PM
yea, it'll pass
 
I'm sure it will
 
@ManofOneWay What are you smoking?
 
@RadekSlupik ?
 
C++ isn’t nice. :P
 
lol
finding a Haskell job is even harder
 
10:06 PM
Okay, I sometimes write PHP.
Luckily not often. :p
 
oh god why?
 
at work
 
I don't EVER write PHP
and I plan to make it stay that way
 
Because the clients want websites and theirs hosts only support PHP. >.>
Otherwise I would use Python.
 
10:07 PM
Are you saying you rather do PHP than C++?
 
I don't do websites, so no PHP for me
 
C++ > PHP
 
I don't like Python either
 
Python is quite ok
 
10:08 PM
@ManofOneWay I hate Python -- but it's still at least 10000 times better than PHP.
 
@JerryCoffin I agree
 
I don't like the way it depends on line indents, but for the rest I think it beats a lot of other things (Perl for example)
but it doesn't beat Haskell. Not by a long stretch
 
@TonyTheLion Perl is almost as bad as PHP, though for entirely different reasons.
 
parenthesis?
 
@TonyTheLion Haskell also uses indentation.
 
10:11 PM
@RadekSlupik really? seem to not remember that tidbit
 
context :: Context -> IO ()
context ctx = do
    withSocket ctx Pub publisher
    withSocket ctx Rep replier
You can write it in one line.
context ctx = withSocket ctx Pub publisher >> withSocket ctx Rep replier
 
@JerryCoffin Do you write code nowadays at work? Or is it mainly other things you do?
 
But that’s just stupid and unreadable.
 
sbi
@JerryCoffin The main problem with Perl is that you cannot tell whether the guy who hacked together those lines simply introduced a b bug or whether his cat jumped on the keyboard while he went to take a dump. (And nor could he, really.)
 
is Context like a typeclass or a Mondad?
 
10:12 PM
@ManofOneWay I tend to write more reports than code, but prefer code when I get a chance.
 
@TonyTheLion Context is a type.
 
@JerryCoffin No offense, but writing reports doesn't sound too exciting
 
I haven't actually figured out if I really want to just write code for the rest of my life.
It seems like that's a tad boring, but I may just have the wrong idea
and what are type constructors then?
same like Ctors in C++?
 
@FredOverflow Have you cleaned your room yet?
 
Oh yes, I spent a lot of time sorting out garbage and throwing it away.
 
10:16 PM
I came to the realization that when I move to my new place I'm actually going to have to do cleaning myself
that majorly sucks
 
@ManofOneWay Some are, some aren't. My problem is that I'm senior enough that most people are convinced I should do managerial things, not "just" write code. At some point, most companies figure you have to do management type things to get any more promotions -- and I passed that point at least 10 years ago...
 
@TonyTheLion Where do you live now?
 
in a place where I don't do the cleaning
 
@TonyTheLion Does your mom do the cleaning?
 
@FredOverflow no, cleaning lady
my mom isn't here either
 
10:22 PM
Ok wait. Lets move this discussion to the Haskell room. :P
 
sbi
@RadekSlupik Done.
 
Thanks.
 
@LucDanton What are you up to?
Btw, does std::array allocate on the heap?
 
sbi
Nope.
 
Ell
10:36 PM
hey guys
 
hey ell :)
 
@sbi Roughly, at which size is it not a good thing anymore to allocate on the stack?
 
sbi
@ManofOneWay Are you talking about the chip in my toaster or that mainframe at the university I studied?
 
The general desktop people are using
We're talking roughly here
 
the Windows stack is 1MB
total
Unix is 8MB
by default, of course, pretty sure that you can alter the size of both if you're desperate
 
sbi
10:40 PM
If you can pick either one (std::array requires a compile-time const), then either it's obvious (a few dozen int fit well on the stack) or, if it matters at all performance-wise, you should profile and decide based on your findings.
 
@DeadMG What? Are they expecting a thousand threads or something?
 
@RadekSlupik Never had a problem.
 
I always thought the stack size was 32 MB on Unix systems lol :P
 
noe
 
Ell
is stack size an OS thing then? I thought it was a c thing
 
10:53 PM
C says nothing about the stack.
nor does C++
 
sbi
It's a platform thing.
 
they use the term "automatic memory"
 
Ell
so you have it right down to assembly?
 
Evening, gentlemen!
 
Hi Dom!
 
11:00 PM
So, this past week was really busy. Reminded me that sometimes my passion for programming is indeed a job.
How's everyone doing?
Also, on the fun side, I joined the exclusive few that braved the hell that is Haskell by writing a programming in it. A raytracz0r. I should have the codes on some of the buckets and/or hubs soon.
Here's a little test. I need to code up a sexy scene to demonstrate some reflections and refractions and shit.
It's purely deterministic, no stochastic resolutions of the rendering equation.
 
@sbi Naw, was out in the blistering heat.. What's up?
 
@DomagojPandža Fine, fine. How's the Kyro dev zone going?
 
sbi
@Shog9 Gone already. Sorry for bothering you on a Sunday.
 
No worries. returns to the blistering sun
 
@EtiennedeMartel It is actually done, but I haven't had a chance to push it through. Now that I have some free time (took a week off), it should be raining down from an Internet cloud near you.
 
11:07 PM
Excellent. Then we can start working.
 
@DomagojPandža That looks a bit like a planet.
 
@Mysticial It is going to be a planet, actually, once I reinvent texturing. Derived the necessary equations today, too tired to work on it right now.
It started out as a simple module, now it is counting 5 modules and way too much functionality than initially planned.
 
Like a slightly darker version of Uranus in some distant solar system.
 
The only thing it doesn't implement is Perlin noise, that shit is terrible. Procedural content usually is.
I have a fly running around the displays, it is so damn irritating.
 
Ell
crazy, one time I had a bug stuck behind the monitor glass
 
11:13 PM
Smacked it five times, still alive.
 
@Ell so how did you debug it?
 
Ell
you could just see it crawling around but couldn't squash it or anything. then it just died and is still there to this day
 
@Ell Ahahahah, epic.
 
Ell
didn't :L its a part of the legacy now
 
:716081 so curious whether that heroic 20 minute effort actually made it to chat ....
 
11:16 PM
It is so damn dumb, always coming back for more. Can't it just map two values for spatial orientation?

1) I'm going to die if I go there
2) I'm going to live if I go there
And select the latter based on survival instinct.
 
I don't think they can actually think that far.
 
Great, I splashed it on the screen and it is now yuck.
 
Flies survive mostly because they thrive almost anywhere and reproduce very quickly. It's the "brute force" approach to natural selection.
 
One of my favorite bugs are the ones that end up on a windshield when I hit them at 100 km/h
 
sadly I have no (usable) connection for a week.... Your best shot Stack Overflow (i RSS ) or the spirit-general list :)
 
11:18 PM
And then they splash all across it, like they were made out of liquid.
Btw., what is the English term for these?
 
Liquid fly.
@DomagojPandža Hedgehogs.
 
Besides erinaceidae.
 
The hog the hedges.
 
Well, I ran over two today with my car.
Both of them running across the road
100 m apart.
 
You are violent.
 
11:20 PM
The funny thing is, I tried to evade them.
 
Ell
oh dear
poor things :( always getting run over
 
Pigeons aim at the grill.
 
Ell
or attacked by hedge trimmers or lawn mowers
 
We used to get a hedgehog in the front yard. The kids were sad when it died
 
Ell
they are an at risk species I think
 
11:23 PM
Well, looks like you can own pet hedgehogs. Hmm...
 
"Cars pose a great threat to hedgehogs. Many are run over as they attempt to cross roadways."
Well, fuck.
 
@DomagojPandža Especially when Dom the Crazy Driver is applying artificial selection to woodland critters with his car.
 
@sehe tomorrow is Draai van de Kaai. >.>
 
Poor you. Can hardly reach the office then :)
 
I'd like to react, but changing the direction of a 1500 kg car @ 100 kph doesn't seem like a good idea. So, it's me and the guy coming from the other direction - or the hedgehog.
 
11:25 PM
@sehe Nope. :P
 
Ell
hedgehogs remind me of ny grandad :L
 
The thing is, I saw the first one coming, I tried to move sideways a bit, to go right ontop of it... But it accelerated or something after the car in front of me went over him, or something.
 
Selfish. Couldn't you just make it fair en miss the second hedgehog, then. I mean, seriously, can't always favour the same party....
 
And, naturally, I felt bad for the sucker because I'm a cuddly programmer.
 
Hedgehogs remind me of Sonic.
 
11:27 PM
Honestly, I wouldn't have expected an another one a 100 m away in a million years.
 
@RadekSlupik No shit.
 
I just managed to say "A pas mater."

A common Croatian swear word roughly meaning "May a dog fuck your mother."
I know, weird, but sounds right in Croatian.
 
That's what the second hh thought: well now, one hh just died, what are the odds of that happening again right away. You know, lightning strikes...
 
Is Croatian different than Serbo-Croatian?
 
@KeithLayne Nationalists would say yes. But the difference is at most grammatical sugar.
 
11:30 PM
My wife is Bosnian. It's her native language.
 
So, now we have: Croatian, Serbian and Bosnian. And everyone understands each other far too well, but they're different languages.
It's just the blood feud, I watch too much Star Trek to believe in such petty disputes.
 
She refuses to speak it though.
 
@DomagojPandža Hmm. Sounds pretty effective, actually.
 
@KeithLayne I know the reason why, Bosnian accent is hilarious.
 
Yeah, that's not quite it, but I wouldn't know how the accent sounds.
 
11:33 PM
A Bosnian in the US.
He tries to speak English and the like.
Burek, "suvo meso" and kupus are the nation-wide culinary delights in Bosnia.
 
Yeah, couldn't understand a thing.
 
Most people abroad try to hide their "national heritage", I on the other hand make fun of mine. It's terrible.
 
Night gents
 
@sehe Night, sleep well!
 
hello
 
11:38 PM
@sehe I'll have to catch you later with my Spirit questions.
 
i just installed eclipse but it doesn't the mac os x toolchain, anyone know why?
 
Eclipse. No.
 
You need Xcode installed.
 
11:39 PM
i do have xcode installed
 
Then I don't know.
 
along with command line tools.
 
Ell
aww it looks like A tiny monk praying with its feet
 
@sbi The growing capacity of organics is astounding.
 
Maybe eclipse needs GCC but Xcode only has clang? I don’t know.
 
11:40 PM
@RadekSlupik That might be an interesting point. @Chris, try running g++ in your terminal.
 
Sonic doesn't even look like a fucking hedgehog.
More like a blue human with a pointy nose and funky hair.
 
Since when does setting CXX in makefile not work? Or is it a different name?
 
sbi
Well, I'm off, too. I need to shift my sleeping cycle a bit backwards, I guess. I have to be up in 6hrs. Good night, folks!
 
@EtiennedeMartel what good would that do? i want to be able to build run from within eclipse
 
Später.
@Chris well, to check if g++ is actually installed.
 
11:42 PM
@Chris If you can't run it from a command line, then you can't run it in Eclipse either, eh?
 
Ell
night @sbi
 
'night!
 
@sbi Have fun.
Hi.
 
Looking to get raped? Come to Croatia.
 
11:49 PM
-3
Q: How are objects which are stored in an array which is on the heap created and deleted?

user1559996I think Kerrek SB is right. After i broke my long text down to the essence of my question, i could find the answers i needed really quick myself. So this was a good learning experience. :) Thank You. (asked for deletion)

Nice, the OP learned to fish. Can haz delete?
 
@EtiennedeMartel I can run g++ from the command line
 
@R. Nice pun!
 
Oh, I see that GitHub's GUI app adopted the Metrosexual™ scheme.
 
@DomagojPandža yup
and it's still caching my github account even though that doesnt exist anymore and I signed out :p
so local commits are still under my github account name :p
 

« first day (652 days earlier)      last day (4295 days later) »