« first day (2356 days earlier)      last day (2575 days later) » 

12:08 AM
eyyyyy
wassup lovely loungelies
I hope everyone is enjoying life
 
@jaggedSpire oןןǝɥ
 
or at least not actively suffering
@Borgleader oh my god so cute
Thank you <3
 
@jaggedSpire Experiment in a day, Adaptec RAID card can't detect Sunrich S-331 splitter :-(
 
(I'm really on the ball here)
@Mikhail :(
 
The Backblaze storage pod is a lie
 
12:11 AM
oh man
will some red pandas help you take a breather from crisis mode?
...
i just found a red panda live stream
nothing particularly exciting happening now
 
Here is another amusing thing, the RAID card has zero load, but:
Temperature Normal (95C / 203F)
 
@jaggedSpire are you still with your folks? do you have mini horses there? apparently theyre pretty comfy
 
@Borgleader :O
and yes, I'm still with my folks but there are no mini horses
 
rip :(
 
12:22 AM
@Borgleader eh, there are some pretty cute sandpipers here :)
 
oh speaking of those, did you see the pixar thing?
 
1:07 AM
@Borgleader The pixar thing?
so
I am on vacation in a hotel-like location
As many of these places do, it contains a collection of jigsaw puzzles
Things like pictures of flowers, buildings, and boats.
One is of animals, one is of dice, and on top of all of these is a box labelled "Google chrome extensions"
It looks like you'd expect a google product to look when packaged
mostly white, the google logo. Accent text in blue.
 
@LucDanton they never really bothered me
 
Specifically, the cover is blank white except for two things:
The Google Chrome extensions text on top, and a few breakaway puzzle pieces on the bottom corner
...
Curious, I open the box. Why did someone put this in with the puzzles?
 
hi @jaggedSpire.
 
It is in with the puzzles because it is a puzzle. The box contains hundreds of puzzle pieces.
Lots of them are solid white.
More of them look like pieces of black and white pixel art.
It is for another day. I put it back and pick up a flower puzzle.
@edition yo
...Two days later I am done with the flower puzzle, a Georgia O'Keefe number with strange puzzle piece shapes that judging by the ragged edges hasn't been assembled too many times before.
I pick up the Chrome extensions puzzle again
and bring it back to the room to assemble it.
This thing
this thing
This thing is a QR code, and every piece is borderline-identical: two opposing in sides, and two opposing out sides. It is also missing pieces.
what
Who makes a puzzle out of a QR code?!?
 
autists
 
1:19 AM
For the love of all that is holy, why?
 
sod this nonsense
If you're curious, this is what the assembled nonsense looks like in potato quality:
from Google Images. I'm not brute-forcing my way through that.
 
is that all you have as input
 
I have plenty of other input, but it's mostly the same.
A few curse words, lots of incredulity.
Looks like it's a prize Google gave out a while back at conventions.
which explains it
apparently there's a prize to be found at the end of the rainbow puzzle when you scan the QR code
or there was, when it was first given out.
 
I'd probably try to get the cleanest scan of this first then a number of filters to denoise the image
 
1:27 AM
ah, yeah.
This is the best image I could find.
 
1:50 AM
@SpongyFruitcake don’t forget to commandingly say 'enhance!' when you apply the filters
 
2:17 AM
It's under Menu > Image > Filters > Enhance
> replace “concept bool” with “concept”
praise
 
@jaggedSpire if I want to get dizzy, I will be staring at that picture
 
 
1 hour later…
3:29 AM
I need to post more C++11 answers
I'm 11 answers away from the bronze tag badge
and -15 upvotes :\
 
3:41 AM
Every time I try to answer questions on SO, I end up closing them instead.
9
 
> comments full of false non-sense
that means they’re right!
 
Not quite
 
@Mikhail it's almost like most of them are completely terrible and/or duplicates
 
I can't believe that you still have hope on having good C++11 questions on Stackoverflow
you need to think ahead, study C++17, there might be good questions on that tag
 
@LucDanton all comments are left
 
3:52 AM
leftover
 
4:03 AM
I propose we invent our own programming language to improve the overall quality of SO questions.
 
So I'm trying rewrite the FLOPs benchmark. ICC is really had at optimizing synthetic code. So I write the loop body in inline assembly. But ICC spills all vector registers on entry and exit of the inline asm block. So I try to put the loop inside the inline asm block, and ICC says, "labels not supported." FFFFFFFFUUUUUUUUUUUUUU
 
Isn't that the behavior when optimizations are disabled?
 
They're enabled.
 
Do you have a link to godbolt?
 
It only happens in Windows ICC. Linux ICC is surprising ok.
Not sure what the difference is.
When I get the time, I'm gonna file a bug report.
There's no reason ICC should be spilling all vector registers on entry and exit of an asm block.
 
4:12 AM
why Linux ICC being ok is surprising?
 
@Telkitty The obvious surprise would be at there being a significant difference between the two.
 
Well, ICC follows GCCs convention on Linux and maybe MSVC on Windows? The two OSs, for example, have different calling conventions...
 
@Mikhail ICC is fine on Windows for regular registers.
It's just the vector registers and the AVX512 mask registers that are spilling.
 
Ain't no AVX512 on Windows
 
ICC's had the ability to generate AVX512 on Windows since 2014.
On the topic of FLOPs, I'm finding it almost impossible to get anywhere near 4 FP instructions/cycle on Ryzen. The only reason FLOPs can get close to it is because of the HT.
There simply aren't enough registers for me to come up with the 20 dependency chains to do it with one thread on one core.
I haven't tried streaming through memory, or using the expand/collapse tricks. But those are hard to get right.
 
4:18 AM
Shouldn't it be half of Haswell?
 
No. Haswell can sustain 2 FP/cycle regardless of width.
Ryzen can do 4 FP/cycle if they are all 128-bit and with 2 adds + 2 muls.
 
constexpr _Optional_payload(bool __engaged, const _Optional_payload& __other)
: _Optional_payload(__engaged ?
            _Optional_payload(__ctor_tag<bool>{}, __other._M_payload) :
            _Optional_payload(__ctor_tag<void>{}))
{}
implementing constexpr copy/moves for a union-like type like optional
 
@JerryCoffin compilers on linux are usually minimist, compilers on windows, being windows, are always packed with extra goodies
 
4:34 AM
@Telkitty Since you seem to have missed it, this is essentially the same compiler. In any case, we're talking about its code generation, not something like an IDE that ships with it.
 
cool, deduction guides in libstdc++
oh apparently some of that comes from NB comments
 
@LucDanton pretty cool
 
@SpongyFruitcake it’s a bit deceptive though, I think it’s meant to be able to copy/move e.g. std::optional<int> but I’m not sure it’s going to work for std::optional<literal_class> due to language limitations
I’ll finish building this then we’ll see
 
and here I was hoping it would reduce an entire program to a single mov
 
> + struct _Empty_byte { };

I was going to ask whether std::byte would be better here, but I think
a valueless struct is better.
Obviously I anticipated that comment
operator-> is non-constexpr ._.
this does work on HEAD, pretty cool
> Another important point to mention is, that as of the current working draft, variable template constants also have internal linkage and are therefore susceptible to the ODR violation problem unless declared as inline variables […]
well, shit
class-static constants get inline but not namespace scoped ones :(
 
5:00 AM
@LucDanton your HEAD is more recent than the one of wandbox?
 
@SpongyFruitcake I literally pulled 15 minutes ago, no surprise here
 
Reminds me of that time I reported a possible codegen improvement and they were like "that was implemented 2 days ago, please pull and try".
gcc-so-bleeding-edge
 
> Status: 2017-03-14 (regression fixes & docs only).
reminder
 
I'd like to contribute optimisation fixes to GCC but that seems like a full time job
 
as there is still no 7 branch that means those things are going into the release unless I’ve missed and/or misunderstood something (which would not be very surprising either)
 
5:05 AM
That's how I understand it too.
 
> regression fixes & docs only
makes sense
 
@LucDanton Before the meeting it conformed with the draft, but during the meeting the draft changed, so it no longer conforms. Sounds like regression to me.
 
your mind is more twisted than a Python server
 
5:19 AM
Python server ... like this? A place that serves python?
 
5:33 AM
@Telkitty No, it's obviously the person who brings the Python to the table (at a place that serves Python). Don't you know the difference between "restaurant" and "server"?
 
5:47 AM
@SpongyFruitcake it’s your tiem to shine, I gotta repaint the constant in static constexpr auto& pay_homage_to_niebler = constant<functors::pay_homage_to_niebler>;. best I have so far is the unimaginative inline_, whereas the last time I looked Niebler & friends had inline_const
 
@JerryCoffin server, python, table ... lemme guess u r talking about SQL </trollololo>
 
inline_constant :noel:
when in doubt trust the prophet
 
ah it’s static_const, but actually in C++17 they’re dropping it entirely
let’s try the latter then
I wonder what the inline namespace function_objects bit is for though, @R.MartinhoFernandes do you happen to know?
 
@Telkitty How dare you make such an accusation? And go wash your mouth out after using language like that!
 
sup guise
 
5:57 AM
@LucDanton Dropping it how?
inline verbibols?
 
yeah
inline constexpr all_of_fn all_of {}; to pick all_of as an example
@SpongyFruitcake are you familiar with template<auto NonTypeParam> struct demo {};?
 
On a scale from Cinch to Luc?
Well, try me anyway.
 
what about e.g. typelist<int_<42>>? given the old template<int Value> struct int_ {};
 
Yes that I understand so far
:shivers in anticipation:
 
righto, in MPL-style (preceded by the workk of Vandevoorde and Alexandrescu IIRC? it’s been a long while) we hide ints into that int_ thing. you can do the same with bool_<true> and even string<'h', 'e', 'l', 'l', 'o'> if like to live dangerously
 
6:07 AM
Yes, that I've seen too. :smug:
 
well in C++17 you can have that template<auto IntOrBoolOrWhatever> struct demo {}; to handle all these jobs (except the string)
which colour would you paint that?
pre-C++17 you would have to have template<typename Type, Type Value> struct val_to_type {}; with questionable ergonomics e.g. val_to_type<int, 42>. then perhaps have int_ be a alias to that
 
unit ? iuno
I mean that's kind of a unit type constructor, isn't it
 
@SpongyFruitcake nah
 
Why not
demo<1> {}; is a unit isn't it :noel:
 
different arity (at the kind level)
@SpongyFruitcake it’s iso, yeah; but demo<1> is not demo
 
6:15 AM
I didn't know Unit had other requirements than just being single-valued
 
you did bring up type constructors into this, to which I made my answer 'as type constructors go they have different arities'
I will also likely add things to the type definition for convenience, think std::integral_constant (which is the standard int_ after all)
(fun fact: you can even stuff non-integral stuff into that one)
@SpongyFruitcake you see where I’m going with this?
 
Some siliness with compile time values as types, I guess.
 
no I mean I kinda want to call it meta::constant
 
I understood, but I thought you were getting rid of that?
 
they’re two different things
two different shed, I’m reusing a colour
 
6:23 AM
I see
@LucDanton fair enough, then iso_unit :meluche:
almost_unit_but_not_quite
 
Ven
Hi
 
@LucDanton and then what's the end goal down the road
 
less hoops, e.g. decay can have type functors::decay and not functors::decay const&
 
there used to be maps.googleapis.com/maps/api/place/search, now it's either the nearbysearch or textsearch, which do pretty much the same thing except search itself is deprecated
 
6:59 AM
@LucDanton what are "type constructors"?
 
@Rerito the Pair in e.g. data Pair a b = MkPair a b
 
@Rerito C'est un peu comme les édriseurs, mais pas tout à fait.
 
@SpongyFruitcake chenapan
 
Ven
@SpongyFruitcake là ça serait plutôt Idriseur.
 
now that’s how you make it funny
 
7:09 AM
@Ven 9/10
 
Ven
Clang's thread safety analyzer looks cool, if only a bit... manual...
 
Prêts pour #Marine2017 ?
Ca se rapproche
 
C'est mon identité du mois prochain
inb4 banned for impersonation of a public character
 
is private ryan a public character?
 
7:35 AM
Welp. I'm having a 0.57% branch miss on my dev machine and 1.04% branch miss in production even though the same process has the whole fucking CPU for itself. Why.
Of course this ruins the performance
If only I could channel my inner Mysticial to cast the branch miss away
sprays some AVX
 
pair programming = me & chicken - left hand on laptop, right on chicken, solving 30 secs problem in 300 seconds
 
nwp
@BartekBanachewicz but can you cancel out different angles with appropriately different phasing?
 
@nwp Not sure
 
7:55 AM
@BartekBanachewicz he he he, memeber
 
"memeber"?
 
Ven
@SpongyFruitcake is the binary the same?
 
@Morwenn Let me know when you have the result or let me know if you have problems, I will try to make something myself.
 
> What’s missing:
- face swap
I am not sure if I want to communicate with anyone at all at this point
 
8:11 AM
Hm. "C++17 is done". I thought it was already done..
 
> Theranos is offering investors Elizabeth Holmes’ shares if they promise not to sue
ahahahahhahahahhaa
oh my god this is the funniest news I've seen lately
> shows a level of selflessness and grace reflecting her commitment to the company’s success.”
yeah right
 
nwp
@StackedCrooked it got pinned a while ago, and the text says it is basically done, technically it is not an iso standard yet
 
Ven
They abandoned the array TS?
 
@BartekBanachewicz Hehehe, didn't know who she was and I got the same reaction "Yeah right"... :D
 
8:27 AM
@wilx It'll probably take a few days. I need to gather time and motivation :p
 
@Ven Yes lol
 
@Ven A long time ago.
 
Ven
 
@Ven jerry
 
Hamon avis il est cuit
 
8:29 AM
It only contained std::dynarray anyway, which was dropped. Other array-like things like spans and views fell back to LFTS or main IS.
 
Ven
@Morwenn aaah ok, so good it was dropped
 
Runtime-sized classes looked interesting, but they were never able to get consensus on anything :p
@Ven Wow.
 
It would be nice if we could allocate a statically sized block (arena) at the beginning of the stack and use that for fast memory allocation.
But the problem is that we can't access it from within a function unless we pass it as a parameter to that function.
Maybe compiler magic could help here.
 
Ven
@StackedCrooked a globall variabel
 
@Ven A thread-local might work.
But that imposes some overhead. (Not sure how much overhead TBH.)
I should try some benchmarking.
 
Ven
8:40 AM
> This is interesting, but I am curious why the effort has gone into this C++ tool when Google's own multi-threading-first language, Go, is based on Tony Hoare's work from decades ago, except that it omits the most interesting feature of CSP
 
@StackedCrooked reserve a register for the thread local pointer? Windows does that IIRC
 
Interesting.
 
@Ven but does it semaphores?
 
lmao
@SpongyFruitcake I feel like someone pushed to production without testing
 
@StackedCrooked Why not stackalloc
 
8:45 AM
> {"code": 0, "message": "'utf8' codec can't decode byte 0xbf in position 1: invalid start byte"}
Good 500 error code.
 
>tfw no 0xbf
 
I'd post to #badware but I can't :^)
 
Ven
tfw we get Rapptz back by getting discord down
 
ikr
who uses snack chat in year of our lord twenty seventeen
 
discord is webscale
 
Ven
8:46 AM
@Rapptz I'm starting to look at the discord API to write a layer in CL, it seems "easy enough" – I mean no manual bitwise shenanigans, it all looks straightforward.
What are guilds tho
 
OpenCL? :noel:
 
@SpongyFruitcake Hm, I suppose that would work as well.
 
Oh it's back
 
Ven
@SpongyFruitcake fuck no
 
Common Lisp?
 
8:47 AM
@Rapptz Can't load messages.
 
There are like 10 libs in development using Lisp
Ctrl + R
Oh I think not all of their servers are back
 
Ven
none rly work, AFAIK.
the only one on github is stibear's
 
A Guild is a server in the UI
e.g. Lounge<C++> guild, Discord API guild, etc.
It's because they reserve 'server' for voice servers instead.
 
Ven
aaah. alright
I guess I should get onto the discord api server and ask around tho
 
I co-own that server.
discord.gg/discord-api is our invite link
 
8:51 AM
@Rapptz It gives a 401
 
Ven
@Rapptz you might want to change it as this one is invalid/has expired :c
 
It should work.
Are you banned somehow?
 
I see it invalid/expired too.
 
I guess Discord is fucking up in other ways lol
okay retry
it should work now
 
Ven
It worked. See you in 10mins!
it's like a SO.chat ban :noel:
 
8:54 AM
ye I see you
 
Ven
what's the naming scheme? dscord? discordcr? discordr?
 
dscord already exists
 
Ven
ah, so it's like lang_libname
 
discordcr is also taken
you can name it w/e you want
 
Ven
yeah I got that now
no CL channel yet
 
8:57 AM
Why would you bother with writing a lib in lisp?
 
Ven
Why would you bother not spending the week daydrinking?
 
There are requirements to getting a lib channel.
One of which is me reviewing it.
 
Ven
okay
 
tiem to bribe
 
Ven
well no, by the time I get something done, discord will not be hype anymore anyway
 
user1804599
9:28 AM
@Rapptz Do you work for Discord?
 
No
 
user1804599
Nice
 
user1804599
Cuz discord suks
 
same
 
Ven
:o
 
9:45 AM
@rightfold why
 
@SpongyFruitcake free speech!
 
only if it was allocated with malloc
 
@Rerito yeah, the sentence is sooo full of bs even w/o knowing who it's about you immediately smell it
 
10:17 AM
Guys, if the Lounge unconference is going to be in Prague, the Czech Republic, and since I am the only Prague resident here, do you require anything of me?
 
Just czech that everything is properly prepared for uncon.
 
Ven
oh, maybe I should uncon
 
Oh, I need to book a bed.
 
@wilx Not much I think, maybe just try to help people get around and the likes, advise where good places to be/go are
 
@thecoshman OK.
 
Ven
the rumors of my death have been greatly exaggerated
 
Xeo
11:02 AM
Oh we can fix that
time to murder Ven
 
lmao
a question with the problem statement: The results are disturbing af.
 
> you’ll need to prove that you can spend your days defiling the natural world
I wonder if they accept video submissions
 
Xeo
@R.MartinhoFernandes you coming to Uncon, btw?
 
@Ven Death by teaching C++
 
There's no take_while in the stdlib, is there?
 
11:24 AM
@R.MartinhoFernandes I guess find_if called repeatedly is closest
alternatively find first element not satisfying the criteria and take that as the end iterator. Obviously doesn't work for lazy collections
 
@R.MartinhoFernandes teehee
 
@BartekBanachewicz find_if consumes the sequence. Won't do.
 
Ell
copy_if repeatedly?
oh wait
consumes
Ignore me :3
 
@R.MartinhoFernandes but won't takeWhile also consume it?
I wasn't suggesting find_if to return an iterator range, but to do the actual processing
I mean you have to peek at the element before deciding whether to take it or not
 
@BartekBanachewicz The problem with find_if consuming it is that the values are lost.
@Ell copy_if is filter.
 
Ell
11:31 AM
oh yeah :/
 
@BartekBanachewicz Right, but find_if always discards it. It never takes it.
 
@R.MartinhoFernandes you mean the values not taken?
@R.MartinhoFernandes ah
 
find_if can be used for drop, but not for take.
 
for (; first != last; ++first) {
    if (p(*first)) {
        return first;
    }
}
return last;
 
(And find_if with reverse iterators isn't the same as take either)
 
11:32 AM
so the problem is in *first not being returned somehow?
 
That's what take does!
 
11:44 AM
@jaggedSpire I can no longer find the full version (theyve all been taken down), but here's part of it.
 
11:57 AM
I have a small puppy in my house
 
nwp
If the lounge was a law it would be Sturgeon's law.
 

« first day (2356 days earlier)      last day (2575 days later) »