« first day (1854 days earlier)      last day (3085 days later) » 

10:00 AM
@Rerito pass things around, the way you pass stateful allocators around
 
@GregorMcGregor is its name std::string
 
@Griwes no it's an inhouse thing
 
user1804599
template<typename T>
class C {
public: C() : x(T()) { } // bad
public: explicit C(T x) : x(std::move(x)) { } // good
private: T x;
}
 
@LucDanton In the end I implemented my policy classes. And the host class does not inherit from them but has private members of the policy classes + the appropriate interface
@Elyse That's what I did
 
user1804599
Then the problem is solved!
 
10:01 AM
More or less
 
user1804599
template <typename OutputPolicy, typename LanguagePolicy>
class HelloWorld : private OutputPolicy, private LanguagePolicy
 
I couldn't keep the inheritance, which prevent me from benefiting from the "enriched policy" stuff. But that is not very troublesome
 
user1804599
holy shit that's some convoluted shit
 
@Elyse That's the spirit of policies usually. Use inheritance instead of having the policies types as members.
 
user1804599
it's like, the total opposite of good, simple, readable, easy-to-understand, reusable code with few edge-cases.
 
10:03 AM
Isn't that the whole point of policy based design
Or is there some kind of specialization for when the policy is stateful then you store it as a member? idk
 
user1804599
Now OutputPolicy and LanguagePolicy can't be the same type.
 
user1804599
They can only be class types.
 
user1804599
They can't be final.
 
user1804599
They may cause issues if they inherit (directly or indirectly) virtually from something.
 
@Elyse Why would they be? The only purpose of these type of class is to be used that way
 
user1804599
10:06 AM
Making them members doesn't suffer from any of these problems, and is therefore more generic. It also doesn't cause as many lookup issues.
 
yeah but EBO
 
user1804599
Premature optimisation.
 
not really
p sure you enjoy your std::vectors to be exactly three pointers don't you
 
user1804599
Only optimise for EBO when it becomes a direct problem if you don't.
 
user1804599
Otherwise you need to suffer all the consequences of inheritance.
 
user1804599
10:10 AM
@GregorMcGregor I prefer one pointer and two std::size_ts.
 
idempotent
 
user1804599
@OmnipotentEntity
 
user1804599
@IdempotentEntity
 
If I’m reading concepts-lite correctly, { ++i } -> Integral; and requires Integral<decltype(( ++i ))>; are more or less two ways of writing the same requirement
(I don’t know if it’s decltype(( … )) or decltype( … ), I have to check)
> To determine if an argument deduction constraint is satisfied, invent an abbreviated function
template f with one parameter whose type is `T`.
really
 
@Elyse What is .mly?
 
10:16 AM
that’s not flexible at all
 
user1804599
@fredoverflow like Yacc but for OCaml.
 
Wait, I thought you switched from C++ to Rust? Now OCaml?
 
user1804599
Yes, C++ sucks. Rust gets in the way. OCaml is nice and also produces very small binaries.
 
@Elyse Blog about it ;)
 
user1804599
I'm going to implement name mangling and diagnostics today.
 
10:22 AM
how2debug concepts
because false isn’t that helpful
 
Xeo
heh
 
I feel worse than I did yesterday
 
> note: concept 'Bar<non_moveable>' was not satisfied
 
rip me
 
Bar<non_moveable> is actually true
._. I need a break
 
10:24 AM
BURGERS
 
user1804599
You need proper parametric polymorphism instead of templates (fuck templates).
 
@LucDanton breaking it up into smaller chunks?
 
@Rapptz I meant actual concepts
it works well, I guess the diagnostics are not as good as they could be in the current implementation
 
oh you mean the famous improved diagnostics just say "not satisfied"?
 
@Rapptz yup: errors point you at the first concept that fails, but doesn’t tell you why; and at that point I think you’re stuck
 
10:27 AM
@GregorMcGregor What is EBO?
Sorry my chinese coworker called me :p
 
@LucDanton yeah that's actually pretty shitty
you can do the same thing with static_assert
 
well it’s an improvement in that it SFINAEs when it can, and errors when it shouldn’t
manual static_assert you don’t SFINAE
manual SFINAE you get 'no overload found'; although then it tells you why
 
Xeo
@Rerito It's Ebola's little brother.
 
it’s actually almost exactly like manual SFINAE lol; I’ve actually said as much in the past though so no surprise
 
Moi j'connais l'UBO (cc @GregorMcGregor @Mr.kbok @Morwenn)
 
10:30 AM
ubo?
ah lol
 
(I used french as a hint)
 
@LucDanton I thought you knew C++
 
@Rerito Empty Base Optimization
@fredoverflow More like seven days
 
@fredoverflow lol
 
10:37 AM
@GregorMcGregor Oh yes inheritance makes you save 1 byte compared to the member alternative, amirite?
 
Yes but that can mean a lot more than 1 byte saving
 
@Rerito alignment dude
 
if std::vector didn't do EBO for the allocator then bam +8 bytes on 64 bits
etc
 
is it taboo talking about non-programming stuff in this chat room?
5
 
@fredoverflow Dude, you're awesome
 
10:39 AM
lol do I go Bjarne_case for my concepts or what cc @Rapptz
 
@hansf. Ofc not, favorite topic is buttsex
 
@fredoverflow I like the cover image haha
 
Ah I love this room
 
@LucDanton SaneCase.
 
@hansf. Nope every message you post must contain the word C++
It can be C++ anywhere in the C++ phrase
But C++ at least once
Got it? C++
 
10:40 AM
lol C++ C++
 
I though there's no part of a girl called C++
except its exam result which is C , but coz they'are hot they get C++
 
@fredoverflow wait I just saw the author
imslow.jpg
 
okay I actually get why people might want Semiregular as a (non-)concept, since it doesn’t come for free
 
user1804599
I'm hot yet I never got a C++.
 
user1804599
I did get a 10/10 sometimes, though. For Dutch dictations, often.
 
10:45 AM
Jesus...
 
joyeax anniversaire @Mr.kbok
 
If you have template<typename X> concept bool Trivial = true; void foo(Trivial); then you might have Trivial<X> true, but foo(x) not valid for pathological X x;
 
I think thats correct french
 
user1804599
I'm still baffled I was the only one who spelled "Rembrandt van Rijn" correctly.
 
@AlexM. The original cover art is from the book "Seven Languages in Seven Weeks", in case you are unaware of its existence.
 
10:46 AM
Semiregular is a way of hand-waving 'I just want variables of that type and pass them around plx'
 
> You should learn a programming language every year, as recommended by The Pragmatic Programmer. But if one per year is good, how about Seven Languages in Seven Weeks? In this book you’ll get a hands-on tour of Clojure, Haskell, Io, Prolog, Scala, Erlang, and Ruby.
I find the tower of babel to be a great choice
because something like this is just bound to fail
 
user1804599
@fredoverflow Yeah I already thought the font of "Implementing" was weird.
 
hehe
 
haha, I have 7 repositories on github
 
user1804599
oh shit lol I just saw my name on that
 
10:47 AM
@edition please no french in this room thanks
 
@Elyse I could have spent 10 minutes and research what font was originally used, but you know... laziness :)
 
internet is american you speak american
 
@edition almost :D
 
6 mins ago, by Alex M.
@fredoverflow wait I just saw the author
Wow, you people are slow :)
 
@fredoverflow it looked like a legit book
I mean there are things like teach yourself C++ in 24 hours
 
10:50 AM
The latest edition has been renamed Kill yourself in 24 hours
 
excuse the pun
 
not intended
 
ok
 
I swear
 
@AlexM. So you thought it was real until you saw the author? That's awesome :)
 
10:51 AM
I never do puns
 
@fredoverflow yes
I actually thought the author was legit too until I saw the last part (R. Fold) :P
 
@fredoverflow lmao
 
tho now that you mentioned it
if I stare hard enough
the text that you added does seem off a bit
 
Alex it's been 20 mins now
if it took you more than 15 seconds you need a brain check
or pizza
 
it's actually been 17 mins
:A
 
10:52 AM
close enough
 
what is off?
 
@AndyProwl "Implementing" is a totally different font.
 
user1804599
@GregorMcGregor without ketchup
 
@fredoverflow lol, I have trouble realizing that even after you told me
 
@AndyProwl Look at the top right of the g, then it's obvious.
 
10:55 AM
@fredoverflow Yeah, but it's just a tiny little bit different
like, if it weren't for that tiny tail up there it would be identical
 
Also the n is notably thinner.
 
Unlike your mom
 
fred got puppy'd by andy
 
And the distance to the dot on the i is very different.
 
10:56 AM
okay, okay... they're different indeed
 
I hope someday I can make revenue from developing software.
 
I just spectacularly failed to notice despite the amount of hints
I hope someday I can make revenue without developing software.
 
I was somewhat afraid people might not recognize it as satire if I picked the perfect font.
 
makes sense
 
Also I was too lazy.
Mostly I did it for the lulz.
 
10:58 AM
I do it for Father Lulz
 
Wow, he died 20 years before his wife.
Poor Mary!
 
poor him!
 
Not quite it but I enjoy abusing this meme
 
I find it funny because what kind of person says those things as replies to "aw look how cute"
like imagine going around the street, you meet someone and say hi
and you get back JET FUEL CAN'T MELT STEEL BEAMS
ahaha
 
11:03 AM
What the deck was he thinking
 
You're on fire lol
 
@GregorMcGregor How about you replace "It's retarded" with "It's recursive"?
 
very good idea
30s
user image
20
 
is that a fractal
 
11:09 AM
@GregorMcGregor u win
 
credits to fred
 
I love how the poor dog doesn't even get to say anything :)
 
It does, at infinity.
 
So... what does he say?
 
that's a mystery of life fred
 
11:16 AM
How many levels did you do before you decided you were close enough to infinity?
5?
6?
I think I see 6 levels.
 
6 is close enough to infinity
 
@AndyProwl It is a pretty solid template.
 
eyy bby u know what else is pretty solid
 
user1804599
@fredoverflow lulz
 
user1804599
11:27 AM
"lul" is Dutch for "dick"
 
user1804599
Grote zwarte lul.
 
fu
 
yay, Rebecca is back
 
Re-back-a
 
11:28 AM
Chewbacca Blackfriday
 
why is everyone supersmart today
 
'cause it's Friday the 13th!
 
'cause it's Friday
 
Friday the 13rd
 
11:29 AM
'cause
 
also 11/13/15
 
nice
 
13 is a prime number and so is 31
Isn't it nice
 
oh shit I have self-referencing concepts that I don’t know how to translate into concepts-lite
 
I'm off, cya guis
 
11:30 AM
cheers
 
cya gurl
 
@LucDanton concepts-lite can't express self-referencing concepts?
 
@AndyProwl let’s see
 
user1804599
Rebecca Schwartz
 
works without complaint
 
11:34 AM
I wonder if you can have two concepts that refer to each other
I'm afraid not, cause you can't forward-declare them
but I also think it would make sense
 
@AndyProwl that’s kinda what I’m doing here
 
@LucDanton does that work too?
 
can’t forward-declare, so I’m thinking about it
can’t have member concepts, that prevents a lot of tricks
 
@LucDanton eh? suckage
 
can’t specialize
 
11:40 AM
I don't think there's a way to do it
 
> N.E. Briated
 
could you like...define a constexpr bool my_concept_func() { /* concept requirements here*/ }?
 
needs the concept keyword
and return requires bla bla
but I prefer concept variables, less noise
 
@melak47 yes, with concepts-lite you can define concepts
 
11:43 AM
@LucDanton no, I mean implement the actual thing in a function, which you can forward declare?
@AndyProwl o.O okay I need to read up on concepts sometime :p
 
@melak47 no you can’t forward declare that sort of stuff
@melak47 you can do tricks with ADL though so smart thinking—not going to use that here though
compiler spins in constant memory
impressive
I should probably ask on the ML
 
user1804599
> Thinking Outside the Bottle
 
user1804599
lol :D
 
mmh I might have got rid of the Google account I used for posting on groups
I can’t switch linked account there anyway because they still have the weirdness between the two Groups website or whatever
 
user1804599
11:55 AM
Rust's blitting mechanism is nice.
 
@fredoverflow web development with assembly - I like that!
 
Blitting?
 
user1804599
Noun: blit ‎(plural blits)
  1. (computing) A logical operation in which a block of data is rapidly moved or copied in memory, most commonly used to animate two-dimensional graphics.
Verb: blit ‎(third-person singular simple present blits, present participle blitting, simple past and past participle blitted)
  1. (computing, transitive) To transfer by a blit operation.
 
user1804599
Implicit copies and moves blit in Rust.
 
user1804599
If you need something more advanced to copy (e.g. update refcount), you need to copy explicitly.
 
user1804599
12:00 PM
This allows moves to be the default without being overly obnoxious (i.e. forbidding use after move) for simple things like integers and Booleans.
 
user1804599
struct S;
#[derive(Copy)] struct T;
#[derive(Clone)] struct U;
fn f(s: S) { }
fn g(t: T) { }
fn h(u: U) { }

let s = S;
let t = T;
let u = U;
f(s); // bitwise move, using s after this is forbidden
g(t); // bitwise copy
h(u); // bitwise move, using u after this is forbidden
h(u.clone()); // potentially-not-bitwise copy
 
Hey chicks.
Someone have directx sdk ?
11.2
link
 
user1804599
> Hey chicks.
 
@Rerito Cool.
IIT @Elyse is happy.
 
12:09 PM
@fredoverflow Who's Jacquelyn?
 
@AndyProwl hey since you’ve posted to the SG8 - concepts group before, how is the application process? promise them you won’t troll and that’s it?
 
user1804599
 
user1804599
One of those. I think this one:
 
user1804599
 
12:12 PM
Lol, I've got a pull request on a project I don't maintain anymore.
 
Oh, C++ books ...
 
user1804599
@Morwenn Me too!
 
More exceptional C++ ... is that C++ program with more exceptions?
 
@Elyse Fun :)
The one I had was about my static_math library, which does some basic constexpr math. Some guy just implemented not-so-basic constexpr trigonometric functions and submitted a pull request.
 
user1804599
12:18 PM
 
gud jerb
 
aaaaaa I've been awake for 10 hours already
Stupid shitty hours
 
user1804599
 
user1804599
This show was great.
 
12:25 PM
@Morwenn Yeeaaaah Brest RPZ
 
:D
 
I miss the seagulls (but not their shite)
 
Just the sound.
 
Yeah
 
@Rerito IRTA "I miss the segfaults"
 
12:28 PM
I also like the temperatures. Never too hot, never too cold
@Griwes Oh, today's WTF. In our project, we customized gtest (I wasn't even aware of this)
And... Segfaults in some of the tests... Coming from such customization (LOL)
 
> g++-trunk: internal compiler error: Segmentation fault (program cc1plus)
I guess I kinda forgot about the compiler
 
user1804599
ugh "a unicode"
 
Tarantool looks really cool.
 
@BartekBanachewicz wow, we could really use something like that
 
12:43 PM
@LucDanton I don't remember what I wrote, probably just "I'm interested, can I participate?" or something like that
 
i have a new idea for thermite
I could change it to be a middleware instead of a DB
I could use any DB as backend and perform rough spatial filtering in it
 
I should join SG21
 
then do actual processing in rust service
and return that to the application
 
@melak47 or that could work, too
 
@Mr.kbok Happy birthday :D
 
12:51 PM
+1 ^
 
user1804599
> How stable is the software?
The software is production-ready.
 
user1804599
-1 would not use
 
Thanks :)
I'm getting messages on facebook from people I haven't talked to in 6 years, too
it's a bit sad
 
user1804599
@Mr.kbok link to facebook
 
user1804599
oh found :P
 
12:57 PM
shouldn't be hard :p
 
user1804599
that's what she said
 

« first day (1854 days earlier)      last day (3085 days later) »