« first day (663 days earlier)      last day (4302 days later) » 

1:00 PM
a president not ending a speech in "God Bless America" is committing treason.
 
@sbi isn't "Christian democrats" the biggest party?
 
@rubenvb Roasted on a spit
 
@sbi Wait, what? Don’t you remember that whenever a minister refuses to swear their oath on the bible, there’s invariable a protest from some coalition party?
 
@Flexo the religious names in Western European parties are mostly historical.
 
@DeadMG right , would PointerToPointerToUniquePointer operator&() work?
 
1:01 PM
And they tend to discuss things from a more christian point of view. It's not nearly as extreme as any US party.
All Belgian parties say pretty much the same when you look at the big picture.
 
@melak47 I think so.
 
i'm still nto sure entirely what your struct does :S lol
 
Is there anything in boost::filesystem that normalizes space, Tab, etc .. in strings ?
 
@rubenvb Heard plenty of "mission from god" crap during the Bush years, don't need that shit again
 
sbi
@Flexo Yeah, it is one of the two big ones (the other being the Social Democrats), but I bet they have much more members than the German churches have. At the top of the Christian Democrats is our beloved chancellor, Mrs. Merkel. She is physicist, and I doubt she goes to church.
 
1:03 PM
@NeelBasu Why would there be? What’s the connection to file systems?
 
@melak47 You should probably be familiar with stuff like unique_ptr, move semantics, and RAII before writing any C++ application.
 
@DeadMG but why do you have a struct in a struct with two pointers....?!
ah, nvm
that was the constructor >_>
 
@KonradRudolph such that I can normalize user specified string before creating a file with that name
 
sbi
@KonradRudolph The very fact that I didn't even know some swear on the bible, and that others don't, and that the latter sometimes causes friction, tells you enough about the importance this thing is assigned in German. It must not have been prominently enough mentioned in the media in order to allow me to miss it.
 
@sbi Again, she occasionally feels the need to publicly affirm her Christianity though, and to emphasise that her party’s politics are founded on Christian values. That’s pretty obnoxious to me
@sbi It was prominently featured in SPON
 
1:05 PM
@thecoshman <3
 
@NeelBasu but that is your normalisation, not the file system’s
 
@KonradRudolph yes But I don't want to write that myself cause many people have faced the same. so there should be something reusable.
 
@NeelBasu You misunderstand. The point isn’t that there shouldn’t be such a library, just that it doesn’t belong in a file system library, it’s completely unrelated to file systems
 
sbi
@KonradRudolph Shrug. It might have been, for a day. I must have missed it then, and didn't pick it up elsewhere. Now, can you imagine any US minister refusing to swear on the bible — and a common US citizen missing this in the news?
 
@sbi Nope. There was practically hysteria out of the bible belt when someone made the claim Obama would be sworn in on the Koran
 
1:07 PM
@sbi No idea whether they even swear on the bible over there. ;-) Until some time in the 50s “one nation under god” wasn’t on the money either
 
@KonradRudolph It's "In God We Trust" on money
 
@KonradRudolph different system might allow different characters in file name so normalization of strings in this case wil depend on filesystem.
 
@Collin Durr, that’s what I meant
 
and "under God" in the pledge of allegiance, both added in the 50s under the ridiculous idea that communists couldn't say "God"
Wish I could go back in time and slap Joe McCarthy
 
@NeelBasu Ah, then you didn’t make clear what you wanted. You talked about spaces and tabs, both of which are totally legitimate in file names
 
1:09 PM
so last night, I helped my cat catch a may fly, by holding her up high against the wall. She seemed to enjoy eating that thing
 
sbi
@Collin See, and even we here in Europe heard about that. (To be fair, though, if a German minister would want to swear on the Koran, this would make the major news, too, and it would stir up the Bavarian bible belt, too. Although it likely wouldn't cause as much hysteria.)
 
3
Q: How to check if path is valid in boost::filesystem?

Dan NissenbaumI am setting a boost::filesystem::path from an edit field. I notice that the constructor is happy to accept invalid characters for the filename. How can I use boost::filesystem to check if the boost::filesystem::path object represents a valid filename?

 
sbi
@Collin He'd expelled you from your country for doing that. :-/
 
(^ from this answer)
 
@sbi No kidding
 
1:11 PM
@KonradRudolph Yes that's what I wanted
 
@sbi ¬_¬ your disputing that I think the wiki page implies humans are no longer considered apes, based of off one graphic?
 
However Idon't need to check. I'll just somehow convert them to a portable format
 
sbi
@thecoshman No, I am disputing that said Wikipedia page consistently does not consider humans apes. The longer I read it, the more I see that they switch back and forth between both definitions of "apes".
 
@sbi I see, still, I think I rather clearly stated my 'review' was based upon one image
 
1:15 PM
hello
 
@KonradRudolph but It looks like a set of functions that returns bool
Ineed to string-> string conversion that makes the name portable
 
sbi
@thecoshman "Some then use the term "ape" to mean all the members of the superfamily Hominoidea. For example, in a 2005 book, Benton wrote "The apes, Hominoidea, today include the gibbons and orang-utan ... the gorilla and chimpanzee ... and humans". The group traditionally called "apes" by biologists is then called the "nonhuman apes". "
 
hm.. nothing to do ... bye
 
@sbi ¬_¬
 
@DeadMG hmm, is there any way around a cast to ID3D11Resource * with your unique_ptr way?
 
1:19 PM
@melak47 You shouldn't need an explicit cast, it should be implicit.
 
'ID3D11Device::CreateDepthStencilView' : cannot convert parameter 1 from 'std::unique_ptr<_Ty,_Dx>' to 'ID3D11Resource *'
 
are you sure the specialization is functioning?
 
:/
PointerToPointer(..) seems to work
 
@DeadMG ¬_¬ what is that 'z' doing in there?
 
although I think the template broke intellisense :p
 
1:21 PM
@thecoshman Being part of a word?
@melak47 Seems to me like you either failed to specialize, or you forgot to use &.
 
@DeadMG specialisation you mean? Your English god dam it! now go smoke a pipe!
 
@DeadMG but ID3D11Resource * is not a pointer to pointer, it wants just a pointer
 
eh, I've seen it as both specialize and specialise. Chrome gives no error. It's an AmE/BrE difference.
@melak47 Then why the hell are you trying to use the PointerToPointer stuff?
 
..I'm not!
 
just use ptr.get() like you normally would to get from a unique_ptr<T> to a T*.
 
1:24 PM
device->CreateTexture2D(&zbufferdesc, NULL, &zbuffer);
device->CreateDepthStencilView(zbuffer, NULL, &zbufferview);
oh.
 
@DeadMG you best be smoking that pipe boy!
 
urgh
 
and get a pint of ale whilst you are at it
 
no
 
and beat some street urchins
 
1:32 PM
to be fair in terms of specialization the standard definitely spells it with a Z.
 
anybody read this question ?
5
Q: C++ OutputIterator post-increment requirements

nknightC++ requires that an OutputIterator type X support expressions of the form r++, where r is an instance of X. This postfix increment must be semantically equivalent to: (*) { X tmp = r; ++r; return tmp; } and must return a type that is convertible to X const&. In C++11, see 24.2.4 (this is ...

I cannot understand what he is asking
 
@NeelBasu Me neither, I will have to reread a few times
I think he misinterpreted the line he quoted from the spec. It's suggesting that algorithms that use the operator shouldn't touch the same iterator twice, and somehow he think's that's the job of the ++ operator.
But I'm not sure.
 
@Flexo when it comes to the English language, I'm practically the Standard :P
 
oh my, looking at this code, actually felt a little bit of sick come up
 
1:47 PM
@R.MartinhoFernandes when you use dynamic storage, do you always use std::unique_ptr and std::shared_ptr?
 
@VictorHugo not always, but you nearly always should be using unique_ptr
3
 
You should never have owning raw pointers.
 
@R.MartinhoFernandes Your Song
 
Whether unique_ptr or vector or whatever is better depends on what you're doing.
 
@CatPlusPlus almost never say never :P
 
1:51 PM
If you have owning raw pointers, you're doing it wrong.
 
@VictorHugo Yes. Well, no. Sometimes I use other ownership policies. But the idea is to always use some policy.
 
@DeadMG can I somehow just add std::unique_ptr<T, COMDeleter>::operator&, without redefinding/losing the other operators and member functions?
 
Don't overload unary operator&.
 
@melak47 Unfortunately, no. You have to define them all yourself.
 
@CatPlusPlus why?
 
1:52 PM
it might be possible to perform composition or inheritance to re-use them.
@CatPlusPlus That advice comes a lot from C++03, before std::addressof. Now it's fine to use e.g. Standard containers of objects that overload operator&.
 
It still sucks.
 
@DeadMG When was the last time you used std::addressof in generic code :(
 
depends on the use, IMO.
@R.MartinhoFernandes No idea, but I sure would if someone told me that they were trying to use a class that overloaded unary & and it failed.
 
Yeah, only the standard library does.
@thecoshman Runnable is loads more flexible. You can pass it to executors and all kinds of stuff.
A Thread is always a thread, no way out.
 
am I a bit paranoid for not wanting to see the same string used more then once in a class? things like properties name that are being read from a file for example
 
1:57 PM
no
 
@R.MartinhoFernandes that's what I thought, sadly this is crappy code I am trying to maintain ¬_¬
 
@thecoshman You can pass Runnables to Threads too if you want it.
 
but at that same time, I hate having a huge list of static strings at the start of the class... think wrapping them into an inner class so I get property.***
@R.MartinhoFernandes runnable is a newer way of doing things though isn't it, even though it is rather old
 
Explicit threading is old.
 
@CatPlusPlus java
 
2:03 PM
@Collin LMFAO :P
 
@thecoshman It's as old as Thread.
 
@rubenvb I've never figured out if he was just a master of riling up the regligious right or he was a complete idiot duped by Dick Cheney
 
@Collin My vote goes for complete and drunk idiot.
 
Is this UB? static_cast<signed>(unsigned(-1))
 
yes
 
2:07 PM
@StackedCrooked Implementation defined.
 
@R.MartinhoFernandes Pretty sure that, by the rules of unsigned integral overflow, -1 is going to be UINT_MAX or close enough. That would be too large for signed, where overflowing a signed value produces UB.
 
And why is reinterpret_cast<signed>(unsigned(-1)) not allowed? (Since the expected behavior would be a bit-by-bit copy.)
 
@DeadMG Overflow only occurs as a result of arithmetic and shifts. The conversions are specified to either not alter the value or produce an implementation defined value.
 
@DeadMG this seems to work: pastebin.com/vREV8zn3
 
@melak47 Seems to work?
 
2:09 PM
@StackedCrooked Because reinterpret_cast is only valid when there are pointers or references involved (or when converting from T to T, which is useless).
 
you know nothing about UB.
oh, wait, haha. my fail
ignore me
 
@DeadMG you mentioned inheritance, so I tried it :/
huh :S
now I'm confused :p
 
I assumed you were linking a code snippet related to the discussion at hand.
not our previous discussion
 
oh, sorry
 
but that solution should work absolutely fine- just don't forget to inherit the constructors.
 
2:12 PM
@MooingDuck So I figured out what the problem was.
if (std::transform(temp.begin(), temp.end(), temp.begin(), ::toupper) == "--help")
 
@R.MartinhoFernandes Does that mean I can circumvent the compiler error by casting on the object addresses?
 
@StackedCrooked Yes.
Beware of aliasing shits.
 
Seems so. IIUC first cast is implementation defined, and second is UB due to aliasing errors?
 
yes, second is definitely UB.
 
@DeadMG "error C2876: 'std::unique_ptr<_Ty,_Dx>' : not all overloads are accessible" ...what, one of the constructors is not public?
 
2:19 PM
@melak47 Or you attempted to delegate to a non-public constructor.
 
Xeo
@melak47 The copy ctor is private in VC++'s stdlib
 
ah, ok
 
isn't static_cast<unsigned>(-1) ub ?
 
@melak47 Welcome to er... C++?
 
Xeo
no
 
2:20 PM
@Xeo why ?
 
@NeelBasu No, it's defined to be UINT_MAX.
 
@NeelBasu unsigned is defined to "rotate" AFAIK.
 
Converting -n to an unsigned type results in 2^b - n, where b is the number of bits in the target type.
 
@StackedCrooked There is no aliasing problem in the second. The semantics are the same as static_casting via void*, but I still have problems figuring out what happens when you dereference.
 
Xeo
7
Q: converting -1 to unsigned types

parapura rajkumarConsider the following code to set all bits of x unsigned int x = -1; Is this portable ? It seems to work on at least Visual Studio 2005-2010

 
2:23 PM
I suspect you read the value representation as if it were the type you're asking for. I.e. punning.
 
greetings.
 
@R.MartinhoFernandes isn't all bit to 1 the UINT_MAX ?
 
then why static_cast<unsigned>(-1) is not UB ?
 
4 mins ago, by R. Martinho Fernandes
Converting -n to an unsigned type results in 2^b - n, where b is the number of bits in the target type.
 
2:26 PM
Because it's defined.
 
2^b - 1 is the b-zigamorph, i.e., b bits set to 1.
 
Good thing it's not b-xenomorph.
 
@R.MartinhoFernandes what is zigamorph ?
 
@CatPlusPlus Could be dangerous.
 
@NeelBasu A value with all bits set to 1.
 
2:30 PM
Thats where I am confused. You said Converting -n to an unsigned type results in a zigamorph which means all bits 1. and on there other hand static_cast<unsigned>(-1) sets all bits to 1. and UINT_MAX is all bits 1
 
0
Q: C/C++ Arrays of multidimensional arrays

user1587730I am trying to create an array of two 2D arrays as follows Given char twoDArr[2][3] = {{'a','b','c'}, {'d','e','f'}}; you could do char (*twoDArrP)[3] = twoDArr; which yields valid results in: cout << "twoDArr: " << twoDArr[1][2] << endl; cout << "twoDArrP: " ...

:(
@NeelBasu Right. They're all the same.
static_cast<unsigned>(-1) is 2^32 - 1 (assuming a 32-bit unsigned), which is 0xFFFFFFFF, which is UINT_MAX.
 
@R.MartinhoFernandes If they are all same then static_cast<unsigned>(-1) == ALL BITS 1 ==UB
 
@NeelBasu Wait, who told you all bits 1 is UB?
 
nobody . just thought.
 
@R.MartinhoFernandes Pain.
 
2:32 PM
then what is UB ?
 
@NeelBasu Undefined behavior?
 
@EtiennedeMartel I thought Upper bound of Integers
 
CRAP CRAP CRAP CRAPCRAP
What the hellman
 
What.
 
2:33 PM
Here, it's exclusively used to mean undefined behaviour, which means all kinds of crazy things can happen, including ordering pizza.
 
@DeadMG wait, if I inherit from std::unique_ptr...I don't inherit the destructor, right? so won't I need a new one? what's the destructor of unique_ptr supposed to do? :S
 
Although I would like it if pizza was ordered.
 
What a big shit
 
@melak47 You do inherit the destructor.
 
2:33 PM
a big pool of shit
 
@melak47 The destructor will, of course, be called from the destructor of your derived class.
 
Yes, it's called C++.
 
@R.MartinhoFernandes oh. that makes it easier
 
I finally received my new cat T-shirt yesterday.
 
why would one want to inherit from unique_ptr?
 
2:35 PM
@EtiennedeMartel A cat shirt ?
 
@CatPlusPlus No no I've used the term undefined behavior somany times in full in cboard in past. butI donno or may be I am wrong saying UB instead of Undefined as a whole is new to me. It feels like a new trend
 
@rubenvb so I can add operator& :p
 
@rubenvb Evil.
 
Exactly what I thought... Where'd I put that bazooka...
 
Why would you add operator& to perfectly fine unique_ptr is beyond me.
 
2:36 PM
> A glvalue (3.10) of a non-function, non-array type T can be converted to a prvalue. [...] If the object to which the glvalue refers is not an object of type T and is not an object of a type derived from T, or if the object is uninitialized, a program that necessitates this conversion has undefined behavior.
 
@CatPlusPlus For use with COM functions.
 
So does this mean it's only possible to blit trivially copyable types through std::memcpy?
 
@CatPlusPlus because I need a pointer to a pointer, and I don't feel like calling PointertoPointer(my_unique_ptr)
 
@LucDanton Seems so, and matches what Johannes told me.
 
2:37 PM
@kbok Yeah. It's a red shirt with "LOVE" written on it, with a cat face where the O should be.
 
@melak47 how about &some_unique_ptr.get()? That should give a pointer to pointer
 
@LucDanton AFAIK, that's practically the definition of std::memcpy.
 
@R.MartinhoFernandes This is schizophrenic. There are tons of rules that describe when and how to obtain such and such pointers but you can't do anything with them.
 
@rubenvb To an rvalue?
that's just not gonna work out.
 
@DeadMG I don't know. He said he needed a pointer to pointer.
 
2:38 PM
@rubenvb some_unique_ptr.get() is an rvalue, you cannot apply & to it.
 
ok
my bad
 
preferrably a pointer to a specific pointer I already have :p
 
<- hobbyist here
 
@rubenvb It needs to be, effectively, a pointer to the unique_ptr, disguised as a T**.
 
2:39 PM
@LucDanton That's why now I just fall back to memcpy when I need that (and when is that? No idea). It's simpler than trying to decipher all that madness.
 
@EtiennedeMartel Oh. Shipping shirt, you're reckless :)
 
@thecoshman Not surprising.
 
@rubenvb clearly, it's supposed to point the other way around
 
@thecoshman lol
 
@rubenvb That's not an excuse. I'm a hobbyist C++ programmer too :P
 
2:40 PM
@R.MartinhoFernandes > The object representation of an object of type T is the sequence of N unsigned char objects taken up by the object of type T, where N equals sizeof(T).
Where the fuck are those objects.
 
@R.MartinhoFernandes no, your a hobbyist template wanker :P
8
 
@R.MartinhoFernandes you are a robot, it's an unfair competition.
 
If I can point to them, I can dereference them!
 
@LucDanton Yes, you can through char references.
 
Why not just use this then: en.cppreference.com/w/cpp/memory/addressof
the example provides what's needed. A custom deleter in there isn't too hard to write
 
2:42 PM
@rubenvb No, that's different. That's what you need to use to avoid a big mess because they overloaded operator&.
 
@R.MartinhoFernandes but that's the reason he wants to inherit from unique_ptr?
 
@R.MartinhoFernandes Still an lvalue-to-rvalue conversion. (E.g. in the case of copying from a source.)
 
@LucDanton Overlapping objects are not impossible.
@LucDanton But there are unsigned char objects there.
 
there let the UB ensue.
 
@R.MartinhoFernandes Fine, then I don't have to use std::memcpy specifically.
 
2:44 PM
@rubenvb Ha, so many C-style casts in that "possible implementation" thing.
 
@rubenvb What you wrote is just int** pp = &p;.
 
You know, C++(11) wouldn't be such a terrible language with a decent platform abstracting library.
 
@EtiennedeMartel It's the only non-magical way. Oh, wait, not with C-style casts. With reinterpret_casts.
 
@R.MartinhoFernandes I got a pointer to pointer from a unique_ptr. Problem solved.
!next
 
dxgitype.h line 12: warning 'DXGI_STATUS_OCCLUDED' : macro redifinition, see previous definition in winerror.h line 49379
 
2:45 PM
@rubenvb abstraction by default is not that clever
 
@thecoshman just try to open a file with a non-ASCII filename on windows using pure C++.
 
Xeo
@rubenvb "abstracting" in what way?
 
@rubenvb They want it to pass to some crap API that takes pointers by pointer as output parameters.
 
@R.MartinhoFernandes so what I wrote would work, no?
 
1: 19.9905%
2: 20.0108%
3: 19.9993%
4: 19.9998%
5: 19.9995%
 
Xeo
2:46 PM
@rubenvb <filesystem> should allow that
 
@R.MartinhoFernandes You are taking this particular paragraph I quoted as justification for those objects to be there right?
 
@Xeo absolving the need for the typical ifdef's you see in most C++ code.
 
@rubenvb If you then reset the unique_ptr, yes.
 
Is %5 an even distribution for rand?
 
@rubenvb there are solid libraries to do this already. My point is, there should not be some default abstraction built in to the language... well maybe more of boost could be moved into std I guess...
 
2:46 PM
@R.MartinhoFernandes and if I don't? Are they trying to hack move semantics into a pointer to pointer?
 
@LucDanton Yeah, the typical straightforward implementation of memcpy works without magic or additional guarantees.
 
@thecoshman what's std::thread, what's fstream? what's boost::filesystem? Abstraction.
 
@LucDanton Yes, I think that's the only place where they're mentioned.
 
@rubenvb The lack of decent Unicode support is one of the biggest problems in the Standard.
 
But there are other mentions of overlapping objects elsewhere.
 
Xeo
2:47 PM
@rubenvb And <filesystem> is part of C++11
 
@Xeo It's not.
 
Xeo
Oh, right, TR2
 
@Xeo wut? Liar.
 
Xeo
I always forget that
Since VS2012 has it :P
 
hey
 
2:48 PM
@R.MartinhoFernandes I was going to question that :P
 
MSVC2012 wants you to believe that boost::filesystem v2 is part of C++ yeah
 
if even Visual Studio has it, you know it's real
 
@Drise If by "even" you mean "uniform", no.
 
@Drise Iff RAND_MAX is congruent to 1 modulo 5. (Or maybe that's 4? In any case don't use %.)
 
@rubenvb To be wholly fair, it is in TR2.
and they did implement TR1 relatively pronto too, IIRC.
 
2:48 PM
@DeadMG they didn't use v3?
There's an official TR2?
 
Xeo
@rubenvb There will be
 
3
A: How to generate random number within range (-x,x)

Jerry Coffin// return a random number between 0 and limit inclusive. int rand_lim(int limit) { int divisor = RAND_MAX/(limit+1); int retval; do { retval = rand() / divisor; } while (retval > limit); return retval; } // Return a random number between lower and upper inclusi...

 
@rubenvb NFI. But I do know that they implemented what's in TR2.
 
@LucDanton Then why do my results of 500,000,000 rands show that they are.
 
@DeadMG so they implemented a non-existent TR... That's smart.
 
2:49 PM
@Drise Well maybe RAND_MAX is the right kind.
 
Xeo
@DeadMG The <filesystem> spec in in the TR2 proposal is from v2 IIRC
 
@rubenvb I think it's existent enough, or at least parts of it. I didn't hear you complainin when they introduced lambdas and other stuff before C++11 was finalized.
 
@Drise Because you might be lucky, or you don't know statistics.
 
@Drise not enough tests
 
Gimme a chi-squared test and I might believe you.
 
2:49 PM
@thecoshman 500 million not enough?
 
@DeadMG pdf or it didn't happen.
 
@Drise No amount is enough.
 
@Drise sure why not
 
@DeadMG ok, now I have a unique_ptr...but what about ID3D11Device and ID3D11DeviceContext? if the gpu buffer should be able to create itself, it needs to use the device...so, shared_ptr?
 
@melak47 No. Your core state class should uniquely own the device, at least.
 
2:50 PM
@rubenvb There probably won't be, in name, since they intend to use a different scheme for library updates (Technical Specifications or whatever they call it). But <filesystem> is on track to becoming one of those thingies.
 
@DeadMG there were C++0x drafts titled as such. There is no such TR2 document.
 
I don't actually know how to cope with contexts, I've only really dealt with D3D9
 
@R.MartinhoFernandes v2 or v3?
 
@rubenvb There is TR2 documentation going around. I don't know how complete it is, but I know it's definitely in progress.
 
1
Q: boost::filesystem normalize filename

Neel BasuI need normalize file names such that it don't contain any non-portable characters in it. There is portable_file_name but that just checks and returns bool. I need to anyhow convert the given string to a portable name to create files. Is there any reusable works ?

 
Xeo
2:51 PM
@rubenvb They'll use v3 I'm sure, but the current proposal has v2
 
@DeadMG the fact is, there is no real TR2.
or draft TR2.
there's just a bunch of proposals, like concepts
 
no, that's your opinion.
 
@rubenvb I'd have to check.
 
it obviously differs from the opinions of the Visual Studio library implementation team.
 
2:52 PM
@DeadMG you fail to present evidence of the contrary
 
@DeadMG ok, but to create the on GPU buffer I need to do device->CreateBuffer(), so...if I want to do that inside GPUBuffer, what should I do? just keep a pointer to it?
 
and since Herb Sutter chairs WG21, I'd expect him to know WTF is going on w.r.t. TR2
@melak47 Yes. Or simply pass the pointer in in the Upload method.
 
> N3239 = 11-0009, Filesystem Library Update for TR2 (Preliminary), reflected changes made to the Boost library version 3 since the previously accepted committee paper:
@rubenvb Seems like it's v3.
 
ok
 
@R.MartinhoFernandes they are sane after all. MSVC2012's filesystem is borked and will produce a compatibility nightmare
like I thought.
 
2:54 PM
I think I should get a new pen... this one is slowly rapidly getting chewed away
 
1: 10.0019%
2: 9.99933%
3: 9.99978%
4: 10.0013%
5: 10.0006%
6: 9.99906%
7: 9.9981%
8: 9.99845%
9: 9.99903%
10: 10.0024%
 
btw, GCC still classifies its C++11 support as experimental, Clang has "production quality" support.
 
500million, 0-9
 
<filesystem> is highly likely to be the first TS thingy because at the time work on TR2 was suspended, it was the only one that had been already accepted.
 
@rubenvb clang doesn't support OMP...
 
2:54 PM
@R.MartinhoFernandes and justly so, it's very much handy :)
 
@rubenvb really? that's surprising
 
Xeo
> Filesystem: We've added the <filesystem> header from the
TR2 proposal, featuring super-cool machinery like
recursive_directory_iterator. Note that the 2006 proposal
(before work on TR2 was frozen due to C++0x running
extremely late and turning into C++11) was derived from
Boost.Filesystem V2. It later evolved into Boost.Filesystem V3,
but that will not be implemented in VC11."
 
@Drise That's not C++11.
 
@Drise true. There's some flaky work being done though.
 
@R.MartinhoFernandes ...so?
 
C++11 is much more important than OMP.
 
@EtiennedeMartel shit photo
 
I beg to differ.
 
OMP is flaky by itself
 
OMP is a hack.
 
Xeo
2:56 PM
@EtiennedeMartel shitty content
 
@EtiennedeMartel looks like his toilet backed up.
@R.MartinhoFernandes PPL is way more important than OMP.
 
the MS multithreading algorithms thing is much better.
or so they say. It's less portable though.
they should propose it for a TS thingy.
 
@DeadMG If nothing else, at least because it's extensible.
 
OMP makes concurrency with things like for loops much easier and faster.
 
@Drise "faster" is relative.
 
2:57 PM
You can't make concurrency easier.
 
I've had no trouble using a mighty experimental std::thread on windows.
 
@R.MartinhoFernandes #include <omp.h> #pragma omp parallel for #pragma omp critical
Doesn't get much easier than that.
 
@Drise That's simple syntax.
 
just a vector<thread>, add all the random number generation stuff I needed, then loop through it joining em all.
 
@rubenvb which thing?
 
2:58 PM
@Drise Ah, now you add critical sections. How the heck is that easy?
 
parallel_for(1, 10, [](int i) { ... }); is way better.
 
@R.MartinhoFernandes It's extremely straight forward. You write to memory, you use critical.
 
@rubenvb oh. that thing
 
@melak47 @DeadMG likes it, no one has really objected, that's good enough for me
a TS proposal would incite porting to other implementations.
 
2:59 PM
@rubenvb I didn't mean any disrespect :p it's pretty nice, being able to use templates and what not in compute shaders, basically
 

« first day (663 days earlier)      last day (4302 days later) »