« first day (861 days earlier)      last day (4093 days later) » 

9:00 PM
Anyway, I'm seriously considering writing a perfect-forwarding version of Boost.Operators.
 
deadline for proposals is in three weeks.
 
I put off writing anything related to range concepts for the longest time and since I've been doing that might as well go all out :v
 
3
Q: Incorrect floating point behavior

rajachanWhen I run the below C++ program in a 32-bit powerpc kernel which supports software floating emulation (hardware floating point disabled), I get a incorrect conditional evaluation. Can some tell me what's the potential problem here? #include <stdio.h> int main() { int newmax = 1; if...

 
Xeo
@DeadMG After that, any submitted proposal won't make it into C++14, right?
 
@Xeo Yep.
 
9:02 PM
I already have an operators.hpp (for things like operators::plus and so on) so first hurdle is finding a good name. As usual.
 
they need to be feature-complete by Bristol, and for a paper to be considered at Bristol, it has to be submitted by 15th March
 
Xeo
Btw, @Luc, note that we only laughed about the name of the namespace operators, not about the concept itself. :P
 
plus is an operator, fuck you!
 
Xeo
@DeadMG Welp, would be hard to start a new proposal now and get it ready for Bristol.
@LucDanton haha
 
@Xeo Yeah, but I mostly just have to touch up my existing proposals.
not that I haven't been putting that shit off for three weeks already
 
9:04 PM
@Xeo for the fallback, I like the template<int I> void foo(Rank<I>) { } for added type safety more (than the ellipsis stuff)
 
Xeo
@DeadMG Well, I was considering actually going forward with some of my small proposals, but eh...
 
user1182183
ah I know why it's not working, I need somehow to get the EXE's base adress my DLL is injecting in.
 
@JohannesSchaub-litb Ignored const&...... is safe though isn't it? Doesn't look super nice though.
 
Xeo
@JohannesSchaub-litb Hm.. I don't quite see the need for the extra type-safety for just the rank argument, but well, that works aswell, yeah.
 
oww wait, it won't work here because there are multiple Rank<I> base classes. dammit :)
 
Xeo
9:06 PM
Wait, no, I don't think that works if all other overloads are also templates.. would have to test.
 
@Xeo Why not? They don't have to be perfect by Bristol.
 
Have to use the fallback fallback then?
 
Xeo
lawl
 
Herb said "feature-complete", that's not the same as "perfect", only "No new major features".
 
Xeo
So yeah, back to ellipsis :P
 
9:06 PM
@Xeo you are right, that will be another probem. heh
 
Xeo
I love the ellipsis. It's one of the ugliest features if used normally, but if used for TMP, it's a bliss.
 
mind rotting
 
@thecoshman Why so? D:
 
I swear once upon a time I used to have effort to spare for projects
 
Xeo
@DeadMG Hmm
Let's see what I have on my list...
[]name lifting, highly improved pack expansion, identifiers as template parameters.
 
9:09 PM
Mmmh, every one is in a slump lately it appears. I've been perking up over the last few days so obviously I can drain your energy through this chat.
 
Xeo
@LucDanton lol
 
@LucDanton it's been a lot more than the last few days for me
 
Internet-induced latency.
 
Xeo
*than
 
forwardable braced (heterogenous) initializer lists are on my list
 
9:10 PM
@JohannesSchaub-litb Fancy! I must have read that proposal but I don't remember.
 
there was a time nothing would stop me, I would work relentless on what ever it was I had latched onto
 
Xeo
@JohannesSchaub-litb So, syntactic sugar for std::forward_as_tuple?
 
user1182183
hm any code to get the base adress of the application my DLL is injected into?
 
@LucDanton i mean, on my list of things to write :)
 
Aw :(
 
9:10 PM
@Xeo yeah
 
now, meh
 
best if it is recursive
 
user1182183
I can only find how to get function adresses and DLL module handles..
 
Xeo
@JohannesSchaub-litb Language-integrated tuples would be nice...
Btw, does anyone know if Richard Smith finished his operator... proposal?
 
Is the syntax planned to look like foo(<a, b, c>, <d, e, f>) :p ?
 
9:11 PM
@Xeo thinking about something like initializer_list, but an "initializer_tuple<T1, ..., Tn>"
 
How do you explicitly call conversion operators? o_O
 
generally speaking, tuples are actually nples aren't they?
 
Xeo
@ThePhD static_cast<stuff>(shit);
For one example.
Or if(shit) if it's explicit operator bool().
 
I meant like, when accessing the class itself.
 
@thecoshman Yes. n-tuple is another name for it.
 
9:12 PM
... Wow
Typing fail.
 
if all the T1, ... Tn are of equal types (ignoring reference modifiers and cv qualifiers), initializer_tuple provides a "to_list()" returning an initializer_list<CommonT> weakly referencing items of temporary life time
 
Xeo
@ThePhD Woah, steady there, lightning-finger!
@ThePhD shit.operator stuff();?
 
@Xeo That's it?
I thought I'd have to do some kind of voodoo or something.
 
Xeo
It's a normal operator, so eh.
 
a Ti is a lvalue or rvalue reference type as needed to encode the rvalueness of the element.
 
Xeo
9:13 PM
It's like shit.operator++().
 
o_O
 
Well I already have type_traits/special_members.hpp for my first CRTP helper, I could go type_traits/operators.hpp
 
NOOO
 
Xeo
@JohannesSchaub-litb Oh, so the initializer_tuple is highly volatile?
 
I TRIED TO SCREENSHOT IT I REALLY DID ;~;
 
9:14 PM
@Xeo As is an std::initializer_list tbh.
 
@Xeo No.
 
When @Xeo did shit.operator++() an intellisense bubble for my class popped up right over his stuff.
It was like Xeo was typing code into my computer.
 
and then, if an expression initially has type "std::initializer_tuple<T1, ... Tn>", it is replaced by the expression "{ item1, item2, ..., itemn }" (recursively replacing nested initializer_tuples), where each item references the corresponding element in the initializer_tuple
 
For a second, I felt both giddy and violated.
 
Xeo
@LucDanton nah, that one always copies.
@ThePhD lol
 
9:15 PM
that way, forwarding of initializer_lists could work I think
 
@Xeo Reference semantics. 'Backing array' and all that.
 
Xeo
@LucDanton Mm, yeah, but not as volatile as the initializer_tuple would be. You can extend the lifetime of the initializer_list with, say, auto&& = { ... };, and the backing array will live as long, but for the tuple, it would be bad.
 
then, template<typename T> void f(T); would deduce T as initializer_tuple<T1, .., Tn> if the argument is a braced init list
 
Xeo
9:17 PM
@JohannesSchaub-litb That's another proposal in general, IIRC.
 
@Xeo Works fine for a function parameter though, so I noticed the similarities first and foremost.
 
which is the reason I deeply dislike the idea to deduce it as initializer_list<T>. it destroys my cute dreams of perfect forwarding of heterogenous init lists :(
@Xeo ohh
 
Xeo
@LucDanton Aye, true enough.
To make auto and template argument deduction completely equal.
@JohannesSchaub-litb Well, new syntax!
How about what Luc suggested, <a, b, c, d, e>? :)
 
@sehe and what? sit doing nothing at all?
 
@Xeo rather, I would make auto x = { 1, 2, 3 } illegal
 
Xeo
9:18 PM
Or <{a, b, c, d, e}>!
 
i don't agree that it should be initializer_list<T>. i see no reason
 
Xeo
@JohannesSchaub-litb Eh, they also plan on allowing return {...}; in lambdas, and the deduced type would be initializer_list<...>.
 
@Xeo ohh that's not good :(
 
@thecoshman try it :) I'm pretty positive that you'd find time to do stuff
 
@Xeo how the heck should that work.
@Xeo they would need to allocate the temporary array in the caller?
 
Xeo
9:20 PM
@JohannesSchaub-litb Welp, no clue.
 
@JohannesSchaub-litb The only reason is that you can write cute things like for(auto&& e: { 0, 1, 2, 3 }). Could provide begin/end for initializer_tuple<T...> iff CommonType<T...> exists though.
 
but the caller doesn't know the size. or do they wanna mangle the size of it into the lambda type and restrict the body to a single "return { ... }"
 
@sehe time is not what is lacking bud
 
(Or just for initializer_tuple<T, T, T /* moar */>.)
 
@LucDanton yeah that would be good
 
9:21 PM
ask the bin
 
Xeo
@JohannesSchaub-litb The return types would have to agree anyways, for multiple return statements.
 
@LucDanton they could make a special rule for for-each then :)
 
@thecoshman That's what you think. Like I said, try it (I know it would help me get stuff done :))
 
@DeadMG fuck sake man
 
what?
 
Neo
9:21 PM
Did you just move my message?
 
ITT: pirates don't love sake
 
yes, I binned it
 
@JohannesSchaub-litb Well I was thinking that providing begin/end would be forward-compatible with a range initiative.
 
Neo
I had a health concern and I was asking the community a question
Since alot of people here have experience with that sort of stuff
 
Xeo
@thecoshman Sake is great stuff.
 
9:22 PM
@Neo It's nothing to worry about. If you had died, you'd have known by now.
 
I don't even bother reading the question anymore
 
@DeadMG Then let others bin it?
 
Neo
Well it just that I have irregular heart beat.
 
and secondly, if you got a dangerous dose of electricity, you'd know it by know.
 
@Neo the fan is plastic and not obviously going to give you an electric shock, besides 12V isn't going to hurt you
 
Neo
9:23 PM
Nvm I feel like an idiot asking here anyway
 
Anyone up for a reconsideration of this classic one? I've set a bounty that expires tomorrow:
 
@Neo Ask actual medical advice to an actual health professional. For your sake.
 
29
Q: Set all bytes of int to (unsigned char)0, guaranteed to represent zero?

refp This is not a matter of recommended practise (nor undefined behavior), but about what the c++-standard actually guarantees in the matter of turning all bytes of an integer type to the value of (unsigned char)0. The Question(s) In the snippet below, is the expression used by the if-stateme...

 
TIL were doctors
 
Neo
Thats what I thought that's why I mention that it was plastic its just really weird that I did get shocked
 
9:23 PM
@Borgleader And grammar NAZIs! s/were/we're/
 
Xeo
Oh gaaaaawd
OH GAWD
 
@LucDanton hmm i see. so that later one can replace initializer_list by initializer_tuple in those cases i guess?
 
Xeo
I just received an upvote for this horrible answer:
4
A: How do I return a char array from a function?

XeoBest as an out parameter: void testfunc(char* outStr){ char str[10]; for(int i=0; i < 10; ++i){ outStr[i] = str[i]; } } Called with int main(){ char myStr[10]; testfunc(myStr); // myStr is now filled }

 
@Neo Perhaps it's just sensation. Senses can't be trusted, unless you've trained to be a human multimeter
 
Neo
I forgot the C++ question I had
too
 
Xeo
9:24 PM
I didn't even know I had something like that.
 
@Neo So, a little braindamage is indicated
 
Neo
@sehe I think you are right
 
@JohannesSchaub-litb Yeah. Plus I'm sure an std::tuple<T...> range is workable, too.
 
Neo
@sehe lol
 
:)
 
Xeo
9:25 PM
@LucDanton static for cough
Or my super-special-awesome extended pack expansion~
 
I don't do far-reaching language proposals.
 
Xeo
@LucDanton I think that thing was already being proposed.
 
Not by me!
 
Xeo
But it got lost somewhere in the operator... proposal thread (not the one by Richard).
 
is gravatar buggy again
 
9:26 PM
Oh yeah, that does ring a bell.
 
@DeadMG can you point to some discussion on that? I know you must have discussed this before.
 
Xeo
@R.MartinhoFernandes Btw, are you actually gonna write the assignment for the CPPGM?
 
@Xeo ... of course
> 10,000 Enrolled - Enrollments Extended To March 15 CPPGM
^ I think I'll skip it now, it has become a mainstream thing. I liked it while it was still exclusive :)
 
nvm
 
Xeo
Well, he already has an advantage with his unicode stuff :P
 
9:28 PM
huh... mumble is a to the point program isn't it
 
@sehe Nope. I merely read the Gratuitous Standard Quotes on that page, and none of them ban such a thing.
 
@Xeo Isn't that super down the line though?
 
@Borgleader Not unless they edited the web page :)
 
@sehe This has got to be the most wankerrific question/answer about the standard I've seen in a while.
 
Xeo
@LucDanton That's the very first thing, actually.
 
9:29 PM
Oh yeah, UCNs. Wait, is that relevant?
 
@ThePhD I agree. Still, it has merit
 
Xeo
Since the input needs to be mapped.
 
@sehe you hipster :P
 
Xeo
They also posted the first assignment as a preview.
 
Oh well nevermind.
 
user142019
9:29 PM
Yay nested switches.
 
The robot is participating in CPPGM? O.o
 
@thecoshman That's the weirdest compliment I've had in ages
 
@Borgleader As am I.
fuck Clang :P
 
@Borgleader He signed up. For fun
 
Xeo
Btw, the course is said to run for 12-18 months
 
9:30 PM
Heh... I won't even bother signing up I know I won't have time for it until May
and I'll stop having time for it in august
 
Xeo
Let's just do it as a Lounge project!
We'll surely finish it that way!
 
@sehe that's not a compliment...
 
Xeo
:D
 
@Xeo lol
 
the CPPGM is serious?
 
Xeo
9:31 PM
Nobody knows.
But the first assignment doesn't seem half-assed.
 
@thecoshman That's why I opted to take it as such. Anyways, it was weird regardless. I'm not, by any strange approximation, a hipster
@Rapptz lol :)
@Xeo Really? I might sign up then.
 
Xeo
@sehe As I said, they posted it as a preview.
 
user142019
Is there a nicer way to do this? gist.github.com/daknok/5021449
 
lol I just enrolled
["ok"]
 
@sehe well, that was hipster mentality
 
9:32 PM
Wonder if it's cause I have js disabled
 
@thecoshman You are confusing mockery with mentality
 
@sehe you are confusing saying stuff for giving a fuck :P
 
@Zoidberg Yay for nested switches o/
 
Oh wow that first assignment isn't half-assed at all.
 
Xeo
@Zoidberg Why the fuck the outer switch?
 
user142019
9:34 PM
Oh right I can use if-else if.
 
@Zoidberg A lookup table. Linear search or compound-key map. Perhaps (depending on gacc/cacc values) it could be in a 2dim array of structs
 
Xeo
Also, the only difference between the inner switches is the first case.
 
I think I'll sign up for CPPGM.
 
user142019
@Xeo and the third one.
 
And I'll use the answers to develop my own language.
 
user142019
9:35 PM
Right I should revert them.
 
Slowly, carefully, I will bastardize C++ for my purposes.
 
user142019
The CPU flags don't change depending on the GPU access.
 
CPPGM wouldn't help me that much since the language I wanna make will have JIT compiler >.>
 
user142019
But yeah a table would be nice.
 
9:36 PM
> We ask you to agree, when you start the course, to not release your toolchains source code anywhere but the cppgm site. It would be too tempting for future participants to search for and plagiarise your work. It is unlikely that the toolchain you develop will compete with optimizing compilers like gcc, clang, msvc and so on - so there really isn't much point in releasing the code
^ Smells like a bad idea
> The evidence of your work is the letter of recommendation. As part of the course, the image of your codebase at each milestone will only be visible to people that have already passed that milestone.
 
user142019
@sehe std::unordered_map<std::pair<gpu_access, cpu_access>, std::pair<UINT, UINT>>?
 
^ smells like a very bad idea
@Zoidberg That's not going to perform well, but, yeah basically
 
Oh dear.
I did not see that part.
Haha, fuck that shit.
 
user142019
@sehe come on, it's the ctor of a buffer. :P
 
@Rapptz @R.MartinhoFernandes Tell me how that cppgm goes. :D
 
9:37 PM
@sehe Suspicions of astro-crowdsourcing?
 
user142019
Copying the data into the buffer will be more likely a bottleneck if at all.
 
As I thought coining the term was easy and it already exists.
 
@LucDanton I dunno. Evidence of freedom-restricting rules
 
@Zoidberg seriously, switch inside switch is awful
 
@Xeo Dunno. Maybe if I am really bored.
 
9:38 PM
"Nope."
 
Xeo
hehe
 
@Xeo UTF-8 decoding is quite simple. (bitbucket.org/martinhofernandes/ogonek/issue/13/… whistles)
 
@Zoidberg Then, perhaps switch(std::tie(gacc, cacc))?
 
Xeo
@sehe Ehh... there's exactly two places where the gacc matters.
 
Why doesn't he just define CPUAccessFlags and be done with it?
In fact, just define CPUAccessFlags with the exact same values as the underlying API.
 
9:39 PM
@sehe oh come on, you don't need to shy away from saying stuff
 
user142019
@sehe if I use the unordered map then it's just map[std::make_pair(gacc, cacc)].
 
@Xeo I don't know. I didn't actually read all that. It's just something I'd think of
@thecoshman I don't.
 
Mmmh, there still isn't a consensus on how to write the non-compound binary operators right? Beyond C++03-style (T const& lhs, U const& rhs).
 
Xeo
He only needs description.Usage = gacc == gpu_acces::read? D3D11_USAGE_IMMUTABLE : D3D_USAGE_DEFAULT for cpu_acces::none and D3D11_USAGE_DYNAMIC : D3D11_USAGE_STAGING for cpu_access::write.
 
@Zoidberg But the unordered map wouldn't gain you much. You'd more or less get: const map<.......> contrivedMap = { { ..... ughh } }; return contrivedMap[tie(gacc, cacc)] which is just a non-optimal circumlocution of the switch
 
9:42 PM
i would just make one inner switch and for the first two cases have a simple ?: or a simple if
straight forward
 
Xeo
@JohannesSchaub-litb The first and the third, but yeah.
 
user142019
@sehe why the tie?
 
@sehe then why delete?
 
user142019
Does MSVC support initializer lists?
 
@Zoidberg November CTP, but no constructors use it in STL.
 
9:45 PM
 
So basically, no.
 
user142019
Oh pairs are not hashable. xD
 
user142019
 
Xeo
Why the fuck are you even using a table?!
Just one switch, and a ?: for two description.Usages.
 
:( It turns out I still have that "function is being called too many times" bug
 
9:48 PM
@ThePhD that's fault of stdlib not the compiler
Also, if not for the bounty
I would have gotten 218 rep today //cc @ThePhD
 
I know. Just pointing out its basically useless if you have to write a bunch of make_vector/list/etc. ( std::initializer_list<> )
@BartekBanachewicz Huh? o_O
 
@ThePhD i put 50 rep bounty on my vs question
 
Oooh.
Yeah, I think it's impossible.
 
What the fuck guys 8 pings
 
Xeo
Because we missed you.
 
9:50 PM
It wasn't me!
.... I hope.
 
@Cicada What can we say, we're lonely
 
@Borgleader s/we're/I'm
 
> Daily vote limit reached; vote again in 2 hours
seriously?
 
+1 for cool username +1 for flying toaster — gonzobrains yesterday
 
@Cicada yay!
 
9:51 PM
I told you putting my pic back would grant me free upvotes
I told you
 
We nodded.
Where were you? (for my whole life)
 
I'm back at my parents until I feel better
 
Xeo
@Cicada The fuck flying toaster.
 
@Cicada I should test that theory and steal your avatar. But I won't because that would be creepy.
 
Xeo
@Cicada So no awesome e-peen-enlarging interweb anymore?
 
9:52 PM
I hope that helps.
 
There is not enough room in the lounge for 2 Cicadas :P
 
@Xeo Sadly no :(
 
Xeo
@Borgleader There was enough room for 8 Puppies here, so 2 Cicadas would be easily doable.
 
Good times.
 
oh god I just remembered that prank
 
9:53 PM
@Xeo Cicada is doable? That's myso-youknowwhat
 
I've decided to learn C++ properly
 
Xeo
haha
@sehe lawl
 
@Cicada CPPGM is waiting :o
 
@Cicada You've come to the wrong place :P
 
@Cicada what does properly mean?
@sehe that's just plain dirty
 
9:54 PM
ohai
@Cicada whoa
 
@sehe rofl
 
user142019
My code compiles yay. \o/
 
@sehe meh. not good enough for that
 
@Cicada i'm not surmised
 
@BartekBanachewicz not "CUDA C++"
 
9:55 PM
Rocket Launcher!
 
@Cicada the whole damn lounge combined is not good enough for that, TBH
 
@Cicada Well, you meet their level of troll, IMO
 
@sehe what does that mean!
 
Letters of Recommendation for C++HM are gonna be otherwordly.
 
9:55 PM
@Cicada kewl. Have you got any ideas on where to begin?
 
Xeo
@BartekBanachewicz Wrong. We're too good for them.
 
@BartekBanachewicz do you play on the eu west server?
 
Greetings, gentlemen. And the lady, I suppose.
 
@kbok EUNE
 
I can't wait to hear somebody in reality talk to me about it so I can laugh my ass off at them.
 
9:56 PM
@BartekBanachewicz yes. no. i'm not sure.
@EtiennedeMartel hello there mentlegen
 
@kbok What game?
 
@BartekBanachewicz Ah, crap
@Borgleader lol
 
@Cicada come on, share what you've got (so we can laugh at it)
 
Hm.
 
Xeo
@BartekBanachewicz That sounds wrong.
 
9:57 PM
@Cicada I've got an idea for a fun project for you
 
Everything sounds wrong when talking to women.
 
@BartekBanachewicz I disagree. I'm quite convinced that a Robot, Xeo, Luc, Johannes and perhaps the help of some others would put together a mean job of a C++ compiler. At least, the core of things. But (a) people have no time (b) there is too little incentive to forge that team
 
@kbok i have a terrible feeling about this
 
18 secs ago, by kbok
@Cicada I've got an idea for a fun project for you
 
@Xeo uh. My mind is not that dirty
 
9:57 PM
^ point in case
 
@sehe b), mostly
 
@Cicada I'm serious
 
We should make a contest of projects
 
@Cicada There is a lack of a working AirPlay driver for windows
 
Xeo
9:58 PM
@Cicada You just need to come over to his house and then you two will do pair programming. The special kind.
 
@kbok That's a misconception
 
APPLE Y U NO UPNP
 
AirPlay is Fapple right?
 
@sehe Is it? What should I use?
 
user142019
MSVC y u C++9.5.
4
 
9:58 PM
@kbok UPNP GODDAMN IT
 
Xeo
@Zoidberg lol
 
@Xeo Do you think he fancies DLL injection?
 
@Cicada it's proprietary Apple protocol similar to UPnP
 
@kbok Something else.
 
@sehe UPnP!
 
9:59 PM
@BartekBanachewicz Interestingly, codenamed 'Bonjour' IIRC
 
Xeo
@Cicada No, that would be @GamErix. He has experience there, although he failed.
 
@sehe OH THAT THING
 

« first day (861 days earlier)      last day (4093 days later) »