« first day (815 days earlier)      last day (4137 days later) » 

10:00 AM
@jalf you can kill a lot of people in 7 hours
 
user142019
Those are fools who never used anything else.
 
@NolwennLeGuen queer Objective-C?
 
@sehe Pleonasm
 
Nah. Queer is socially accepted these days. ObjectiveC... not so much
 
@NolwennLeGuen, yeah, about that: that's old you know?
 
10:02 AM
More like an oxymoron then
 
user142019
Oxymoron? Is that a moron who had too much oxygen?
 
Xeo
It's like a paradox, but different.
 
@Jeffrey so what
 
@Xeo like a pair of ducks, but different.
 
Xeo
(Also, I think what I just said is also an oxymoron.)
 
10:04 AM
@Zoidberg contradictio in terminis, roughly
 
@NolwennLeGuen, it's just a suggestion to update your joke repertory :)
 
@Xeo nah. that's a paradox
 
@Jeffrey applefag detected
 
no need. she can just flip to a different page.
Your jokes have nothing on the roach
 
user142019
We had to make a test in class
 
user142019
10:05 AM
on the computer
 
No shit
 
wow
like an if?
 
You mean: "take a test"
 
user142019
and if you entered one thing wrong, all answers were cleared and you had to start over.
 
user142019
T__________T
 
user142019
10:06 AM
What a terrible UI.
 
No that's exquisite design: this how you condition animals. Train for the best! No food unless flawless hoop-jumping demonstrated
 
user142019
No, it's terrible.
 
user142019
I mean.
 
user142019
Just give me a fucking error message and let me fix it.
 
user142019
This is like that bug in GHC, which deleted your source file if it contained a type error.
 
10:09 AM
@Zoidberg but then you'll keep making mistakes. Their problem is that they weren't harsh enough!
you enter something wrong, bullet through the head
 
Xeo
@Zoidberg wut
 
user142019
So glad you asked! The best ghc bug ever involved a dev version of the compiler deleting your source file if it contained a type error.
 
Xeo
o_o
 
@Zoidberg A bit like Vigil!
 
Xeo
How the fuck can you code that into the compiler?!
 
user142019
10:10 AM
@sehe :^)
 
user142019
@Xeo Haskell + I/O = epic fail. xD
 
@Xeo Google open or creat
 
Xeo
@Zoidberg It's just not meant to go hand-in-hand, huh?
 
user142019
Side effects!
 
Xeo
Ugh. I have spent the last 10 minutes trying to figure out from where the fuck a certain type comes (in a header). The header didn't include anything but referenced it... and then I remembered the precompiled headers. :|
 
user142019
10:21 AM
Use libclang.
 
user142019
Also, boo.
 
user142019
You should all scream in despair.
 
0
Q: Why do I get "recursive type or function dependency context too complex"?

MehrdadWhy does this code generate the following error in Visual C++? Is it a bug in the compiler or is the code invalid? template<int N> int test(int = sizeof(test<N - 1>())); template<> int test<0>(int); int main() { return sizeof(test<1>()); } Recursive type or fun...

 
user142019
Dat code.
 
Speaking of funny errors, I still like that other one.
invalid conversion from std::nullptr_t* to std::nullptr_t*
 
user142019
10:31 AM
lol
 
@chris whenever I get those, I open up a text comparator...
 
@LuchianGrigore, Well, this one was from here.
 
Xeo
10:48 AM
Guys, is there any reason to new up a mutex?
 
user142019
Mutexes are not movable.
 
user142019
But you can move pointers to mutexes.
 
@Xeo ... yeah, if you don't want it to match the lifetime of an other object/stack frame
@Zoidberg aren't they? Of course they aren't
 
yeah, std::mutex being immovable is a bitch.
 
user142019
It's terrible.
 
Xeo
10:53 AM
std::auto_ptr<tbb::spin_mutex>		m_mutex;
:|
 
It enables an implementation directly on top of pthread, e.g.
 
user142019
Wait.
 
user142019
Mutex being immovable makes sense.
 
Of course it does
11
A: Move constructor for std::mutex

seheWell... mainly because I don't think they should move. Literally. In some OS-es a mutex might be modeled as a handle (so you could copy them) but IIRC a pthreads mutex is manipulated in-place. If you are going to relocate that, any threadsafety is going fly right out of the window (how would th...

 
user142019
Hmm.
 
10:56 AM
Hmm.
 
Xeo
.mmH
 
user142019
C++ y u no Haskell-like _.
 
user142019
std::scoped_lock<decltype(mutex)> _{mutex};
 
@Zoidberg Just don't put a name?
 
˙ɯɯɥ
 
user142019
10:57 AM
lol
 
@Zoidberg That's not Haskell-like _
 
user142019
@R.MartinhoFernandes Not always possible.
 
user142019
@R.MartinhoFernandes I know. I want it to be.
 
"put a name". This is English that always unnerves me. Is it proper English anyway?
 
@Zoidberg It's possible every time it would be possible in Haskell.
 
user142019
10:58 AM
Or Erlang-like _. You get the point.
 
I associate "putting something for..." with "having a code" and other kinds of engrish
 
user142019
Man.
 
user142019
I accidentally inhaled Fanta last night.
 
Accid- what?
 
user142019
I was drinking Fanta and it accidentally went into my trachea.
 
11:01 AM
That's not inhaling.
 
@Zoidberg It's probably for the best. At least you didn't drink i
 
user142019
I ALMOST DROWNED
 
I ALMOST FROWNED
YOU WERE OWNED
 
user142019
I ALMOST POWNED
 
@Zoidberg Don't worry, you can try for the award again at any time.
 
user142019
11:02 AM
PowNed is a good broadcaster.
 
Xeo
So... I'll have interwebz at home in roughly 3 weeks. :(
 
user142019
Be happy.
 
0
Q: Storing polygon soups C++ data structures

teodronI need to store large mesh information within a 3D system. The input is provided in a naive manner as a polygon soup (the exact format is triangular irregular network) If there are millions or tens of millions of vertices in such a soup, what is then the relatively efficient way of handling this...

 
user142019
Some people never have interwebz at home.
 
polygon soup?
@Xeo oh gawd. I had the same thing when I moved into my flat here. It was very annoying.
 
user142019
11:06 AM
A Polygon soup is a group of unorganized triangles, with generally no relationship whatsoever. Polygon soups are the default output format when geometry is exported from a 3D modeling package, such as Maya or Blender. As soon as any kind of hierarchical sorting or clustering scheme is applied, then it becomes something else (one example being an octree, a subdivided cube). Any kind of polygonal geometry that hasn't been grouped in any way can be considered polygon soup. Optimized meshes may contain grouped items to make drawing faster. References
 
@Zoidberg srlsy
 
Xeo
@TonyTheLion Aye. Atleast it's 50mbps down and 10mbps up.
 
oh much much faster then my interwebs
but at least mine is fast enough to watch movies online or whatever
 
Xeo
30eur/month, though. :|
And it's only interweb flatrate.
 
user142019
 
user142019
11:09 AM
> blagonet
 
Xeo
"webweb"?
 
bllago-blag
 
user142019
BlagMG
 
blagfest
aw carnt type
 
user142019
Man.
 
user142019
11:13 AM
Coca-Cola is so fucking tasty.
 
user142019
But it makes me always so damn ill.
 
@Zoidberg Try sniffing it. Much better than Fanta
 
heh, I love Cola
@sehe hahaha
 
user142019
@sehe I rather sniff air.
 
user142019
Man.
 
11:15 AM
Someone wanted to move this to sharepoint?
 
user142019
I think my VM will be slow as fuck.
 
user142019
I should profile it.
 
No. You should design it.
Then write tests for performance characteristics.
Then profile.
Then optimize
 
user142019
Reading an opcode needs four dereferencing operations.
 
@chris wow
 
Praise the lord!
 
For sweaty eyes?
wat
 
@TonyTheLion oh 4chan u so silly
 
user142019
@TonyTheLion SFW?
 
@Zoidberg yup
 
11:19 AM
Safe story, only arguable content is the name of the links.
 
user142019
tl;dr
 
Which isn't really any worse than this chat, so.
 
cool story bro
no tears for me
 
@sehe "no tears for queers"
Westboro Baptist Church Master Race reporting in
 
user142019
@sehe s/b/\/b\//
 
11:20 AM
definitely
 
definately
 
man, make it sane? s#b#/b/
 
user142019
@NolwennLeGuen You are wrong.
 
definotly
 
Hey @NolwennLeGuen – my condolences â€¦ where did you get that info from that they’re killing CUDA?
 
user142019
11:21 AM
@sehe Can you use any character?
 
@Zoidberg try it
 
user142019
@sehe ok.
 
user142019
(Probably yes. :P)
 
user142019
Cool.
 
@KonradRudolph They announced HEMI, which is a high-level language based on C++, for paralell processing. It will replace CUDA in less than 5 years they said. Also, they are dropping OpenCL support. => le giggles
 
11:23 AM
I GOT MY WORK PERMIT APPROVED WOOOHOOO!!!
Er I mean, hello. How's everyone? Lovely day isn't it.
 
@KonradRudolph A contact at Dassault Systems told me. (btw. this is "supposed" to be secret or such. lol)
 
@sehe an ice cold polar bear.
 
Xeo
> This is a scary thought. But to put it in perspective, that’s about the number of surgeons who will operate on the wrong body part or wrong patient every two days.
Holy crap.
 
@AndreiTita to work where?
 
UK.
 
11:24 AM
@Xeo what?
@AndreiTita gratz. That's where I work. :)
 
@Xeo, I was catching up on those when you said that.
Just finished the wise men one.
 
@NolwennLeGuen Well maybe this is progress after all â€¦ develop a set of library extensions instead of completely idiotic language extensions
who the fuck thought of this weird syntax for calling kernels anyway?
totally unnecessary
 
@KonradRudolph I think it is progress indeed. However dropping OpenCL is probably going to kill it, too.
 
11:28 AM
> I expect this significant[citation needed] fact[dubious—discuss] will pave the way[citation needed] for a great deal[dubious—discuss] of important[citation needed][dubious—discuss] research.
2
 
@AndreiTita Unless you're into swimming, it might have been better if your permit was delayed until the summer :)
 
@MartinJames I like the winter better there. I hate the cold and snow. Rain is ok.
 
@Cheersandhth.-Alf, Darn it, I just finished my response. I'm too used to my behaviour toward unknown acronyms - to highlight it and drag it to a new tab. Of course I can't assume other people do, though.
 
Some rain is OK. Rain that stops you getting to your office because the roads/rail are flooded is something else.
 
user142019
Take the plane.
 
11:30 AM
@KonradRudolph Here's the github repo of it. Note how kernels are declared, for example. It does look cleaner. Still fugly though. (I believe that's a very early version)
 
@Zoidberg Another Ryanair commuter?
 
@MartinJames Is that a problem atm? In what regions?
 
@NolwennLeGuen Well you can do only so much with macros. By basing the syntax more on templates this could be improved. Declaring device functions of course still needs a function decoration
 
user142019
@MartinJames No. I'm a Vim, Arch Linux, xmonad, Haskell and Git commuter.
 
but they should switch to C++11 annotations if that’s really required at all
 
11:33 AM
C++11 has annotations???
 
Mostly South-West, (Devon/Cornwall), though other areas too. The rain has stopped ATM, things are easing...
 
user142019
@NolwennLeGuen It has a standard syntax for attributes.
 
Xeo
@NolwennLeGuen Attributes he means, I think.
 
user142019
It has no annotations.
 
user142019
There are also pragmas, but they have been there for longer.
 
11:34 AM
@Xeo à la C#?
 
It has /*annotations*/
 
Xeo
lol
 
user142019
@sehe It has #pragma mark annotations, depending on the implementation.
 
@chris well, but how many people are lmnoe
 
@NolwennLeGuen yeah, but without the metadata - so, no
@Zoidberg less portable
 
user142019
11:34 AM
IMPORTABRU
 
i don't even know what that means!
 
@sehe Oh so that's like, totally useless?
 
> S.H.O.E.- stupid hoboes on earth
 
@Cheersandhth.-Alf, Interesting page to say the least.
 
@NolwennLeGuen not unless a compiler decides to do something with it.
 
11:36 AM
@sehe Right. But on the developer side?
 
C++ has no runtime reflection.
Get that in your head.
 
Which
Are there some libraries for metadata / code gen at runtime btw?
 
@NolwennLeGuen I don't think there is any use (outside parsing the source but /*annotations*/ would work almost equally well)
 
@NolwennLeGuen LLVM?
 
@NolwennLeGuen there is CxxReflect (and a number of other attempts) and libclang
 
11:38 AM
CxxReflect is for WinRT types.
 
Oh. You caught me redhanded, citing something I only heard of. I know there are several other (flawed) attempts, though
 
there is one based on GCC
 
very naive doubt:
ClassName *obj = getObject();
if (obj != NULL) { ... }

this code is crashing in the if condition..
 
sigh hit by the question changed so as to invalidate answers move
 
and there is some library/app that generates XML description of C++ source code
not complete though
 
user142019
11:40 AM
Cabal is terrible.
 
user142019
Why do all packages need to be globally installed.
 
yesterday, by Rapptz
If you don't want to be hated here, read the Newbie Hints.
 
user142019
npm is the best. Packages just keep their dependencies inside them.
 
@Cheersandhth.-Alf gcc-xml. it works even with VC++
 
@saiy2k it's crashing one line above
 
11:41 AM
keep your dependencies inside the vehicle at all times
 
@Abyx thanks!
 
@Se
 
user142019
Global installation only leads to terrible version clashes.
 
@sehe, @Cheersandhth.-Alf thx :-) let me check
 
11:43 AM
@lo
@l
@Zoidberg prefixes?
 
user142019
No
 
user142019
A package should reside in its own directory and inside that directory should be another directory with all its dependencies.
 
user142019
And dependencies should never be shared.
 
user142019
I have a 500 GB hard drive anyway.
 
user142019
If two packages A and B both need dependency X, you'd have this directory structure:
 
user142019
11:46 AM
A/
    deps/
        X/
B/
    deps/
        X/
 
Xeo
@Zoidberg Isn't that basically what Windows tries for DLLs?
 
user142019
I have no idea.
 
Xeo
And that DLL folder is fucking huge.
 
user142019
It's what npm does and it works great and there will never ever be any version clashes.
 
@Zoidberg drives shrink implosively as time goes by, that's my experience.
 
user142019
11:48 AM
If A depends on B and both A and B depend on X, even then X will be stored twice.
 
user142019
A/
  deps/
    B/
      deps/
        X/
    X/
 
why not just refcount it?
 
user142019
That can be an optimization.
 
user142019
But the point is, this way B can depend on X 1.0 and A can depend on X 2.0 without problems.
 
user142019
With Cabal, you get a fucking error message, and when you force update, everything will be broken.
 
Xeo
11:50 AM
Well, hard-linking does sound like rather good idea then.
 
user142019
Rebar (Erlang) also does it like npm.
 
user142019
It's superior.
 
@Zoidberg That is unrelated to that solution.
 
With regards to driving: People get really grumpy when they realize you're giving them directions for how to go to the store and buy a GPS.
 
12:11 PM
blergh
stupid classes...need to turn in an assignment...but I want to sleeep
 
error C2874: using-declaration causes a multiple declaration of... since when is a multiple declaration an error?
 
Xeo
Member data can only have one declaration in a class. :P Or rather, the same name only once.
 
@chris not really a big winner that xkcd line
@Zoidberg I can relate to that. I once tried to get geordi running on any of my debian (derived) boxes. It didn't work out due to all kinds of Cabal dependency mess.
 
@sehe, I could get some enjoyment out of trying it.
 
Of course, they'll just say: don't use the packaged versions
@chris by all means. when you get it working, let me know
 
12:19 PM
@Xeo Aren't declarations of member data in classes definitions too?
 
Xeo
@R.MartinhoFernandes Sure
Man, I'd like to have override in VS2010 right now. :|
 
user142019
@Xeo maybe there is already an attribute/language extension? Then you can just #define it.
 
@Xeo man, you have it since VS++2005
 
Xeo
@Abyx I do?
 
12:21 PM
@Xeo yep. just disable a warning
 
Xeo
Ah, I see.
 
user142019
12:43 PM
fuuuuck
 
Morning
 
user142019
Cabal is even more terrible than pip.
 
user142019
Who wrote this crap.
 
user142019
Well, then I'll have to write a fucking Markdown to RTF converter myself.
 
12:59 PM
feel like a blind old lady figuring out how to get console showing on MSCV 2012?
 
@Zoidberg no way
 
Have tried AllocConsole and some other special debug prints mentioned around on threads, can't get it to show
 
user142019
@sehe Why not? I already have a Markdown to AST parser.
 
user142019
Converting that AST to RTF is easy.
 
> As a side note on non-standard Roman numeral, I've seen 80,000 written IVXXM (like quatre vingt mille) in an old french edition of the Arthurial cycle.
This is not news for anyone, but the French are crazy.
 

« first day (815 days earlier)      last day (4137 days later) »