« first day (1941 days earlier)      last day (3000 days later) » 

6:24 AM
> internal compiler error: in tsubst, at cp/pt.c:12897
why.o
algo the GCC bugzilla timed out upon submitting my PR
 
6:44 AM
Are you having fun
 
 
scrollbars kind of work
 
@LucDanton I never link that in
@LucDanton lol
 
warning, sehe transcriptology inbound
 
@HubertApplebaum so much
 
6:58 AM
initializer_list can be constexpr, right?
 
Clang accepts this, GCC doesn’t (in either form)
 
@ThePhD yes?
 
I’m not sure what options are available to me at this point
 
FTR botany is always an option
 
@HubertApplebaum tu dis ça juste parce que t’es une belle plante
 
7:03 AM
Wonder if there's a std::same_value that's variadic.
Meh I'll just write one.
 
what would this magical std::same_value do
 
template <typename Arg0, typename Arg1, typename... Args>
constexpr bool equals(Arg0&& arg0, Arg1&& arg1, Args&&... args) {
	return (arg0 == arg1) && equals(std::forward<Arg1>(arg1), std::forward<Args>(args)...);
}
 
presumably check that all values in the pack are equal
 
Something like that.
I wonder if forward is constexpr...
 
why require 2 args though
 
7:06 AM
@HubertApplebaum I’m sure they’re equal to something
 
no pedantry
 
@hi
to all
 
WTB std::type_list.
 
Have issue in PJSIP Can any one help me out here
 
Yes this is the PJSIP room
 
7:09 AM
hahaha.....
i asking here because pjsip is on C++
 
It's actually a C library.
It's also esoteric to connecting to the web.
 
@ThePhD noob not using c++1z smh
 
And dealing with media streams of sorts.
@Rapptz type_list exists there?
 
So Can you Help me out @ThePhD
 
No.
 
7:10 AM
or need to go in to c room
OK
 
no I was talking about FOLD EXPRESSIONS™
 
Oh.
 
thanks @ThePhD
 
> Fold Expressions No
Thanks VC++.
 
lol
> Anything No
 
7:13 AM
and then GCC accepts this case (which is how I used to have it)
hair-pullingly frustrating
 
shh shh it's alright
 
@HubertApplebaum yes of course, I’m making burgers
 
> This video contains content from Dik Hayd International, LLC, who has blocked it on copyright grounds.
Dick Hayd
 
I hate templates.
How should I get the size of a type list?
typelist.size() ?
typelist::max_size ?
count<type_list>?
 
sup lounge
 
7:20 AM
@ThePhD .size() unless you have a specific reason to do otherwise.
 
@JerryCoffin Mostly because I'm working with templates, and constexpr in VC++ is fragile...
 
@ThePhD those are general, not specific.
 
you're not doing complex polymorphic structures, are you?
 
7:35 AM
boy I really need generic lambdas
this is v annoying
 
It's Chrome what did you expect
 
> batterijverbruik
good nickname
 
Battery usage
 
Interesting that std::thread::join has no precondition
oh wait it's misleading
 
7:45 AM
can’t join not-a-thread m8
 
@HubertApplebaum isjoinable is mentioned, AFAIK
 
Yes but it's listed in error conditions rather than preconditions
So I didn't see it immediately
But yes it is indeed noted.
 
contract as wide as your mom
 
Suddenly, a wide kitty
Compiler - "somehow" - optimizing. They're called compilers for a reason :) — sehe 6 secs ago
 
7:52 AM
lol
 
@sehe optimizing compilers*
after all optimization is not part of the contract of the compiler
how2luc
 
I had long since reworded it
 
@HubertApplebaum badly
 
@sehe I wouldn't let facts get in my way
 
@LucDanton Is there any other way :)
 
7:55 AM
@sehe :(
> Can't believe how cool this subreddit is lol i love reddit, im from CA f 18, if anyone wants to snapchat me add me - [redacted]
from /r/ocaml
 
looks $100% legit
 
fucktional programming alright
 
user1804599
> Jonathan_Blow
 
user1804599
no
 
7:59 AM
wow jblows hiring to work on his language
just when I was thinking that we were lacking new languages recently
how fortuitous
 
presumably whatever project comes next will dogfood it
 
Funktional programming
 
TBH he has a few nice ideas
but nothing revolutionary really
 
I was reading interesting "Yo mama so fat" jokes, but couldn't find any one compilers
 
user1804599
I like it when good songs take 20-odd minutes.
 
8:02 AM
how do you stop those exclamation marks from bouncing in discord
 
user1804599
Click them.
 
it doesn't help
 
user1804599
Click all of them.
 
oh, I have to click "got it" as well
 
user1804599
There, you got it.
 
8:03 AM
> This is where you will be typing your opinions and ideas.
 
user1804599
 
Wow, high expectations
can't cope with that
 
weird way to spell 'shitposts'
 
oh that's what they meant? cool, I feel at home now
 
shishapots
 
user1804599
8:22 AM
I wonder how often DST causes jet lag.
 
@HubertApplebaum i welcome a game dev centric language
jblow seems like a pretty quirky dude I bet we'll get some neat drama and blow ups
 
I wish
I enjoy gaymedev drama very much
 
user1804599
He's a perfect example of dunning kruger.
 
@HubertApplebaum semi-fortuitous
 
frankly why have std::generate instead of std::fill(..., pred)
after all fill is just a special case of generate innit
 
8:34 AM
I don’t mind that sort of convenience
I don’t want to use foldr any time I do a list operation
 
user1804599
Convenience is fine as long as the lower-level APIs are still available.
 
I'm more talking about the choice of splitting it into its own thing
 
@HubertApplebaum I think you wrote that the wrong wayy around
 
I was thinking that too but then no
 
@HubertApplebaum what did you think I was referring to
 
8:39 AM
I don't see how it's more of a convenience to have it separate
 
user1804599
template<typename T>
auto constant(T x) {
    return [y = std::move(x)] (auto&&...) { return y; };
}
 
user1804599
This might be more useful.
 
writing val instead of [&val] { return val; }
 
._.
Not what I meant
 
yes that is the convenience
 
user1804599
8:40 AM
std::generate(begin, end, constant(0))
 
Have fill(beg, end, val) and fill(beg, end, pred)
 
user1804599
0 <$ xs
 
ambiguity when filling with callable things
 
have we definitely lost robot?
 
std::generate, imo that term is wrong .. you're not generating, you're filling using a generator
 
8:41 AM
@AndyProwl he does pop in, just seems too busy to chat
 
good for him, I guess :)
 
Ell was kicked by Puppy?
 
user1804599
generate is short for generate_into
 
Btw, good morning :)
 
ouch, I missed drama
 
8:43 AM
Just saw it on the notification bar on my browser at work.
It shows everything that happened this weekend :D
 
@KhaledKhnifer what is using a generator repeatedly if not generation
 
@LucDanton good point
for once
 
semi-good
 
A term coined by Peter Semilad
 
@LucDanton the generator generate, the function using the generator use the generator to generate, but it doesn't generate by itself
 
8:47 AM
> the function […] to generate
it’s a function to generate
that’s what it does
 
user1804599
who cares
 
user1804599
it's clear what it does
 
user1804599
therefore it's a good name
 
yes there is a generator involved in the process
 
I think filling is it primary function
 
8:48 AM
what does it do
 
it does that, too, yes, it’s not like those things are contradictory
 
If it were me I'd merge it with fill
Time to write a paper!
 
@KhaledKhnifer what does 'filling' mean to you anyway?
 
@LucDanton try a different metaphor .. does a delivery boy delivering cooked goods considered to be cooking?
 
I was typing that
 
8:52 AM
@KhaledKhnifer I would dispute that a generator is cooked goods
and the use of metaphors to begin with
 
@LucDanton the generator is the kitchen or the cook
 
@KhaledKhnifer does your metaphor really work then
(which is why I question the choice of using metaphors in those circumstances)
 
Is overloading of new really a good idea
I wish I could overload it differently for different parts of the an program
 
@LucDanton AFAIK OO arguments are using metaphors from the real world
 
Maybe I should just pass pools really
 
8:54 AM
@HubertApplebaum it’s difficult to justify
 
even with text-align
 
@KhaledKhnifer std::generate & algorithm is the prototypal example of something that’s not OO and is a better fit than anything OOP can come up with
@HubertApplebaum well… you can, as long as those parts are classes
 
sorry?
I meant have different overloads of new for the same class
 
@LucDanton well if generate function would be like a delivery boy who also cooks the food, as in the generator is not doing the generation but is more like a recipe book, then I'd agree with you in that case.
 
i.e, in this scope I care about pooled allocation, in this one I don't (for the same type)
 
8:57 AM
@KhaledKhnifer that’s not even a metaphor that’s an analogy!!!
if you complain that generate is a bad name because it doesn’t generate enough then you should be complaining that fill is around that bad, since it doesn’t fill (or if it does, give me your definition of filling)
@HubertApplebaum yeah that sort of things is why it’s hard to defend overriding operator new
really it’s better separation of concerns
 
user1804599
I like lambda calculus.
 
> Monads as Adjectives
more metaphors
 
@LucDanton your side of the argument should be like this, generator generate values, std::generate generate list of values using a generator. which is totally valid argument too.
 
@KhaledKhnifer don’t tell me what my argument is wtf
I would never say "std:generate generate list of values"
do it yourself
 
I'm now lost, you're not on either side
 
9:09 AM
not every discussion consists of two sides
not everything someone says has to be ascribed to any one side, if any
and most of all, don’t misrepresent people or put words in their mouth
 
@LucDanton lol
 
Ven
yo lounge
 
user1804599
yo ven
 
user1804599
Ugh, jQuery uses the term "type" to mean "HTTP method".
 
Ven
9:15 AM
uhm, it should use "type" to mean request's type. as in "json" etc
 
request type
request method type
 
user1804599
@Ven What's a request type?
 
I call that http verb
 
requiem typo mother
 
user1804599
It should use "content type" for that and take a MIME type, not "json".
 
user1804599
9:18 AM
And it shouldn't magically encode your request body.
 
user1804599
But hey, at least it's easy to use for idiots who don't know what they're doing, instead of generic and reusable. Welcome web.
 
grr convenience apis
 
@CatPlusPlus but they are so convenient!
 
Hi guise
 
user1804599
Are you litb in dis guise?
 
user1804599
9:22 AM
It's not convenient.
 
user1804599
You have to learn all the special cases and combinations of parameters before you know what's going on.
 
user1804599
It's fucking annoying.
 
why does git on windows not have long file names enabled by default?
 
user1804599
If I instead see this, I know exactly what's going on:
 
user1804599
9:24 AM
ajax('POST', '/blah', {'content-type': 'application/json'}, JSON.stringify({blah: bloop}), function(response) {
    console.log(JSON.parse(response.body));
});
 
user1804599
@thecoshman Which of the 1000 distributions of Git for Windows?
 
@MadameElyse the one from the main git site
 
user1804599
I think it asks you while installing.
 
user1804599
Or maybe that's only line terminator conversion.
 
What long file names
 
Ven
9:25 AM
jQuery would've been better if Cat wrote it.
 
I think I finally got my scroll bar working but its really noticeably jumpy when item sizes are different. a.uguu.se/pljkcg_list_view1.webm
 
Ven
Also unfinished.
 
user1804599
jQuery is a silly inner platform.
 
user1804599
Hi there jQuery plugins that don't use any jQuery features other than $.fn.blah = dickbutt;.
 
@CatPlusPlus there's a limit on how long full file names can be (ie including the path) but you can enable a setting to support more than stupidly short
 
9:26 AM
what
 
Dunno
 
Ven
jQuery.cookie <3
 
Most software uses MAX_PATH which is like 250
 
user1804599
document.cookie is the most hilarious API ever.
 
user1804599
@Ven perfect example.
 
9:28 AM
I long time ago learned to not use long paths on Windows
 
Ven
"Cat does nodejs"
 
yeah, but java @_@
so of course everything is a bout 20 folders deep before you start getting to anything half useful
 
user1804599
Use symlinks.
 
user1804599
inb4 windows
 
windows supports symlinks
but that's a stupid solution, you can just enable support for long paths in git
 
9:36 AM
It's not a solution at all
 
I think you'll find it is
 
I mean symlinks
 
oh right, yeah, that's stupid
 
user1804599
Watch out before Windows Explorer fails to delete your file because its path is too long.
 
I don't think that would even work
 
9:37 AM
Hi I have a quick question : I have class B that inherits from Class A. When I have object B b and object A abis, how can I do something like b->A::operator=abis ?
 
user1804599
@Cyril b->A::operator=(abis) should work.
 
user1804599
Or *static_cast<A*>(b) = abis. Less obscure.
 
First solution worked, thanks :)
 
user1804599
template<typename B, D>
B* upcast(D* ptr) { // no accidental unsafe downcasts!
    static_assert(std::is_base_of<B, D>());
    return ptr;
}
 
@Cyril b = a is the operator notation, b.operator=(a) is the function notation, where operator= is the full name of the function—that second observation should lead to b.A::operator=(a) which is function notation again, but explicitly qualified
 
user1804599
9:41 AM
The static cast solution only works when operator= isn't virtual, of course.
 
user1804599
(lol virtual assignment operator)
 
@LucDanton RMS s right! They're trying to subvert the FOSS community by luring the elite community members into JSW scandals!
 
user1804599
baka
 
@KhaledKhnifer zika pods
@MadameElyse bakalaureaat
 
user1804599
@sehe bakelieten telefoon
 
9:51 AM
no danish
 
user1804599
lol Danish
 
user1804599
Polyoxybenzylmethylenglycolanhydride telephone.
 
user1804599
Symbian is the best mobile OS.
 
user1804599
Symbian <3
 
10:06 AM
#AllSFINAEMatters
 
not sure if I’m overlooking something here
 
user1804599
eww SFINAE
 
user1804599
SFINAC Substitution Failure Is A Catastrophe
 
turning the SFINAE tricks into CL constraints doesn’t make a difference, I figure it’s the same underlying machinery anyway
 
user1804599
10:14 AM
Cern Kornel
 
user1804599
Does thread_local work only with std::thread or also with other thread libraries that don't use std::thread internally?
 
@slaphappy Beer confirmed tomorrow evening
 
I have been bitten by mozzies every day for the past few days ... in the mid of CBD today, near my friends place yesterday & outside my own house the day before ..
 
user1804599
What's with Piet?
 
10:28 AM
just discovered it
 
user1804599
Ok.
 
user1804599
I already knew about it.
 
you're welcome
 
user1804599
thanks Hubert
 
Ugh, that hangover will make the interview painful.
 
user1804599
10:35 AM
Your own fault.
 
Nah, the whole world's fault. I'm a mere product of society.
 
not a good one even
 
yerite
 
user1804599
 
You are a fault of the society, yes you, cicada ...
People around me are not attacked by mozzies, this isn't fair ...
Just as I thought that for once, mozzies have moved on to better targets, they came back to eat me alive ...
 
user1804599
10:43 AM
Nice, Perl 6 optimises foldl (+) 0 for integer ranges.
 
Wow, Perl 6 is the best language in the world :o
 
user1804599
No, it's quite bad.
 
user1804599
It's the reciprocal of Go.
 
@HubertApplebaum m8 let me tell you about David Morgan Mar
(I actually won’t though)
 
so passive aggressive
 
10:56 AM
@Morwenn welcome to my weekend :\
 
@HubertApplebaum au contraire, I’m sparing you from mansplanations
 
user1804599
Decrement operator ~- and increment operator -~ are amazing.
 
user1804599
No more - 1 and + 1.
 
-~ for increment is fucking stupid
 
user1804599
Why?
 
user1804599
11:00 AM
It works.
 
user1804599
>>> -~42
43
>>> ~-42
41
 
+~ would make more sense, you are ADDING to it's value
and ~-42 looks like you are doing the ~ operator on -42
 
user1804599
@thecoshman you are
 
my @before = @rest.grep(* before $pivot);
Nice.
 
user1804599
~ and - are separate operators.
 
user1804599
11:02 AM
~- and -~ are compound operators, like the --> "goes to" operator.
 
user1804599
~- and -~ are called "inchworm on a stick".
 
@MadameElyse -42 should not be the - operator on the value 42, it's just the value -42
 
user1804599
I agree. -42 being -(42) is troubling with integer bounds.
 
user1804599
You can't get the smallest integer that way, since you'll get overflow before the negation.
 
user1804599
Go solves it by making constants unbounded and forcing compile-time evaluation of expressions that involve only constants.
 
user1804599
11:07 AM
In Grass -42 is a single token. The unary negation operator is _ since you can't overload on arity.
 
user1804599
def answer (-42 _)
 
user1804599
RPN my favourite notation is
 
@LucDanton tu sais que j'adore ça
 
11:37 AM
@MadameElyse Or you can adjust the range by 1 and then it doesn't matter~
 
user1804599
I like how LLVM turns naive fib function into a tail-recursive one.
 
user1804599
 
user1804599
so many instructions
 
> In my experience Guild Wars 2 is one of the better optmizied mmo's.
wut
 

« first day (1941 days earlier)      last day (3000 days later) »