« first day (2145 days earlier)      last day (2794 days later) » 

12:44 AM
@LucDanton subtle
 
btw I reached fractal personal reward lvl 100
not as big a deal as it used to be but oh well
 
You have your green avatar back. Now I'm confused
Haha. With ?r=PG it returns the old one. Interesting.
@LucDanton It seems you have more explaining to do?! o.O
Perhaps some one has rated a colliding identicon as "PG". Weird world.
 
1:11 AM
@sehe This shade of orange can incite sexual thoughts, so it is allowed only at ratings of R or above.
 
@sehe well, SO set it so that people with X-rated gravatars don't get displayed on the network
or so I imagine
 
2:01 AM
wanna ultra-violet gravatars for fighting terroristm - especially those close to x-rays
 
2:56 AM
@Telkitty Gives new meaning to "wide gamut monitor". But if you're gonna fight terrorism, why not just go straight to gamma rays?
 
 
1 hour later…
4:06 AM
Sometimes, I prefer slow cooked meat @jer
 
@sehe probably those idiots who see Hakenkreuzen everywhere
 
 
2 hours later…
5:42 AM
I FUCKING HATE MOSQUITOS MAN
FUCKING HELL
i left my two fucking arms outside my blanket and holy fuck do they sting now
 
5:55 AM
I got bitten by wild ones while camping earlier this month - scars are still there
 
these creatures come from hell man
 
6:40 AM
@LucDanton Yeah. However, that still requires someone to have "self-rated" your original avatar...?
@ChemiCalChems Whoa. Why are they stinging? You're not better than those mosquitos then!
 
@sehe i almost loled
 
Good morning :)
 
morning
 
Ven
Hi
 
7:19 AM
some are electrical automobiles too - 8k vs 80k Tesla
some chinese are so cheapskates
 
8:11 AM
constexpr if in GCC7 /o/
 
Ven
\o/
@Morwenn c'est ton double maléfique qui est sur discord ?
 
@Ven Comment ça ?
 
Ven
someone's named morwenn there
and I don't remember seeing you there
 
I've been over there a few months ago.
 
user1804599
8:29 AM
@Ven 5 6 7 8
 
Ven
@rightfold it'd be expensive :(
 
user1804599
Why?
 
Ven
because hotel+plane/train
 
user1804599
70 pounds for sleeping, 34 euros for flying, maybe 10 euros and 10 pounds for train
 
user1804599
conference ticket is free because I know someone who gives a talk
 
Ven
8:38 AM
oh yeah and I'd need to pay the ticket for the conf as well...
hahahaha it's 500 pounds for this
nope. nope. nope.
 
user1804599
xd
 
Ven
if they had an affordable students thingie then it'd be considerable, but otherwise... no.
but i'm not putting 600e into a haskell conference ticket
 
i can't stop watching technical support scam videos when i should be coding
oh well
 
user1804599
8:55 AM
SPJ gives talk
 
Ven
@rightfold if you know someone that's gonna be there, ask them if there's a student plan
@набиячлэвэли altu?
 
Ven
I'm on a mac
 
user1804599
8:58 AM
hold E
 
Ven
eeeeeeeeeeeeeeeeee
happy? :)
 
user1804599
oh you disabled that
 
Rok
if you would have held e for one more e it would have worked :/
 
Ven
oh true.
how did you know that?
 
Rok
had a feeling
 
Ven
9:00 AM
thanks!
 
Ven
9:11 AM
0
Q: Reliable way to provoke Segmentation Fault in PHP for testing?

fschmenglerIs there a reliable (i.e. reproducable in any version) way to provoke a segmentation fault in PHP? I want to test how they are handled. I'm happy with solutions specific to PHP 7.x or PHP 5.x but would prefer not to rely on known bugs that might be solved in the next release.

 
While specifics on the lightning strike are still unknown at this time, it’s likely that the dead reindeer were a herd that huddled together to weather a severe thunderstorm that rolled through the area on Friday.
not a good idea ...
 
@Telkitty well, the probability of being struck by lighting is very slim, and it's a good way to preserve body heat while in a storm
it sometimes goes sideways, yes, but it's the best option
 
true
 
9:44 AM
May I suggest using an XML library to parse XML? Boost does not have an XML library. It has a property tree library though — sehe 15 secs ago
 
Rok
10:18 AM
haha
makes me feel better knowing there are worse questions than the ones I usually post :')
 
11:01 AM
I am sure you wouldn't be able to post any more questions if you keep your question quality consistently low
 
Rok
i mean .. i don't get any with negative scores so i guess they're neutral
 
Can I get downboats on this, please?
 
@milleniumbug So I can get badge :v
 
nwp
did you specifically wait for griwes to not be here?
 
11:09 AM
No, I know he's already upboated it so it doesn't change things
 
So tempted to add the tag and add " again" to the title
4
 
sadly only 5 tags per question allowed
 
2) is partial ordering. I don't think there is a way around it (I haven't found one before) - see en.cppreference.com/w/cpp/language/…sehe 1 min ago
Anyone else sage/motivated?
@milleniumbug Pfft. You need to think like a successful businessman
 
Ven
@sehe &*b?
@набиячлэвэли downvoted :P
 
11:30 AM
@Ven thanks
 
Ven
TFW rightfold edits one of your answers.
@набиячлэвэли (sorry for the -10 :P)
 
Worth it for the badge :P
 
11:43 AM
@Ven oh come on, my hard work upvoting that to avoid giving him a badge wasted :(
 
Ven
sry bby
So. The fact there's a thread launched when I called ASSERT_EQ (gtest) makes it std::terminate(). O\ay.
WTF. Google Test. You're so shit.
 
@Ven kek
granted my own framework needs you to explain to it what thread is the main thread of a given test, but... kek, that gtest behavior
 
user784668
@Ven wat
 
Ven
    // segfaults:
    std::thread thread([]{ });
    auto i = 3;
    ASSERT_EQ(1, i);
    thread.join(); // <= join after assert

    // doesn't segfault:
    std::thread thread([]{ });
    auto i = 3;
    thread.join(); // <<==== before eq
    ASSERT_EQ(1, i);
5
 
user784668
@Ven AAHHAHAHAHAAHHAAHAHAHAHHAHAHAHAHAHAAHAHAHAHAHAHAHAHAHAAH
 
Ven
11:53 AM
@Fanael I'm pretty sad right now
 
@Ven where is this from?
 
Ven
From my own test. I'm trying to write some multi-threaded tests (for $job). But gtest.
 
Ben
@Ven what's the contents of ASSERT_EQ?
 
@Ven fucking hell
 
user784668
@Ben Ask Google, it's their crap code.
 
Ven
11:54 AM
@Ben that's what I'll be looking at shortly.
Google are probably amongst the worst developers there is.
Dart: fucking sucks.
Angular: fucking blows.
Fruit: fucking retarded.
Gtest: fucking broken.
 
user784668
@Ven Are you surprised? They're a surveillance company.
 
Ven
Well they could be a capable surveillance company.
 
Ben
I've resolved it down to
#define GTEST_ASSERT_EQ(val1, val2) \
ASSERT_PRED_FORMAT2(::testing::internal:: \
EqHelper<GTEST_IS_NULL_LITERAL_(val1)>::Compare, \
val1, val2)
thus far
 
user784668
@Ven They certainly spy on people rather well, so they're capable in this regard.
 
Ven
@Ben I can just write ASSERT_EQ(,) to make it fail to compile but thanks
 
11:58 AM
why does Dart suck?
 
Ven
non-checked types
next question
 
that sounds like an issue inherent in all dynamically typed languages
 
Ven
most dynamically typed language don't have functions definitions like
void f(a: int, b: int) {}
so you know you don't have types. Dart accepts them syntactically but they're not checked. Hilarity ensues.
 
user784668
@Ven Is f("what the", "fuck") legal?
 
Ven
Hilarity goes even higher when one of their VM dev says "static types don't help with performance"
@Fanael sure
 
user784668
12:03 PM
@Ven Does it at least throw at runtime?
 
It's legal in C I think, and after all C is the superior language
 
Ven
@redspah pointer-to-int conversions notwithstanding...
@Fanael yes but only in dev mode
 
user784668
@Ven what the fuck
 
Ven
> The static checker acts a lot like lint in C. It warns you about potential problems at compile-time. Many of these warnings are related to types. The static checker does not produce errors—you can always compile and run your code, no matter what the checker says.
 
user784668
@Ven top kek
 
user784668
12:05 PM
@Ven Actually, this one is topper kek.
 
Ven
So yeah. dart sucks. Next question please.
 
does Python suck?
 
Ven
I'll leave @rightfold to answer that one
but hint: yes
 
user784668
@Ven What does not suck, Google vacuums?
 
@redspah It's fine for programs with <200 lines of code
 
12:07 PM
does C++ suck?
 
also it's way better than using Bash
 
Ven
@redspah yes
3
C++ is my $dayjob and it sucks.
 
user784668
@redspah C++ is legitimately one of the worst languages ever made.
 
what language sucks the least?
 
user784668
@redspah Wide.
 
12:08 PM
?
 
Ven
:D
@Fanael bah, that joke works better with microsoft
 
> @branches.=map(*.trans(<' "> X=> ''));
:S
 
@Ven Why don't you rename it to git-checkout--fuzzy though
 
Stroustrup's quote sounds appropiate here
 
Ven
@milleniumbug done very much on purpose
@набиячлэвэли why would i tho
 
12:12 PM
because that's what it is
 
Ven
@milleniumbug It's just .map({ s/'|"//; }). I just had an extra amount of fun with that line
@набиячлэвэли so?
 
@Ven kek
 
Ven
@Griwes )=
@набиячлэвэли here, renamed
 
so glad I tend to use just my own tools
 
@Ven I didn't mean the repo name :v
 
Ven
12:14 PM
@набиячлэвэли well fk u too
@milleniumbug here.
(and if you're gonna ask "what's s///", fk u)
 
Ben
@Ven so, 'branches' and 'ignores' are array variables.
 
Ven
@Ben yes
 
Ben
I really don't know Perl 6.
 
Ven
I know
 
Ben
heh
 
12:19 PM
Hi
 
Ben
no thanks
 
Ven
yes sure
 
lol
 
>.> There is no greater sense of betrayal than an RPG that sacrifices your best-equipped party member for the sake of a plot twist...
 
I'd like to learn c++, do you know any good books? I haven't got experience, I know only PHP
 
12:22 PM
4265
Q: The Definitive C++ Book Guide and List

grepsedawkThis question attempts to collect the few pearls among the dozens of bad C++ books that are published every year. Unlike many other programming languages, which are often picked up on the go from tutorials found on the Internet, few are able to quickly pick up C++ without studying a well-written...

 
Ben
@yessure what do you want to do with C++?
 
Cool! Thanks
I'm interested in web applications, chats, crawlers etc.
 
...
I wouldn't say C++ works particularly well for web applications
Try C#
 
user784668
@milleniumbug Is there anything C++ works particularly well for?
 
Ven
masochism
 
12:29 PM
Python, Ruby, et al are good choices for web scripts. C# or Java are good choices for web applications. I'd reserve C++, Rust (heavyweight languages) for applications intended to run on a single computer and do rendering and other things which make you want to gouge out eyes.
 
user784668
@Ven It's not even a good BDSM toy.
 
Rust is pretty good for servers too
 
^ Rust is in a nice place for a lot of people.
 
me: still depressed that my best money-making and healing items left with a party member
Remember kids, divorce is messy
 
Ven
12:38 PM
Oh yeah. I forgot I reported another shitty bug at gtest last year.
github.com/google/googletest/issues/626 @Fanael @Griwes @ChemiCalChems @Ben
4
 
user784668
@Ven but how lol
 
Ven
that's just how shit they are
 
it's a very bad library
similar terribleness level to boost.test
 
That's why you use Catch
 
12:47 PM
but have they fixed it yet?
 
Ven
no.
 
@набиячлэвэли that's why I use mayfly
 
@Griwes What's that?
 
@Morwenn my thingy
 
Ven
problem is, it maynotfly with my tutor.
 
12:53 PM
@ratchetfreak duh
@Ven subtle
 
Ven
dubtle trudble
 
@Griwes Oh, that's why I had no clue.
 
:P
 
_FloatN and _FloatNx from the Decimal TS in GCC7.
 
Ven
@Griwes @набиячлэвэли ^ you can put smileys on that one as well
 
12:59 PM
omg blatant emoji ring
 
Ven
reporte moiiiii
 
Ven
1:12 PM
Fuck Sheen. If I want to hear a ranting man tell me about his special powers, magic blood and subjugation of women- I'll just go to church.
 
> C'est un peu extrême comme solution pour passer le reste de la semaine sur la nouvelle extension de WoW et la bêta de Battlefield 1 je trouve.
5
réaction à l’annonce de la démission de M. Macron
 
1:26 PM
I don't understand what you have said, but it's that time of the month!
 
@Telkitty should be that time of month for me as well
 
@LucDanton Is the BF1 beta good?
 
I have no idea, I’m not a government official
 
@Abyx option traders have that time of the month as well - expiry day
maybe months are created to help women remembering their menstruation cycles
at least on lunar calendars
you don't happen to have monthly tests or assignments due, do you @aby?
 
1:39 PM
@Ven this is... actually very nice
 
Ven
No, it's literally hitler.
 
1:54 PM
 
say i have a print function in namespace A, and I want to e.g. have an operator<< for std::vector that gets chosen when i call that print function
is it there a good place to put that operator<< ?
in particular when I call print from namespace B, by doing A::print(vec), it only tries to look for operator<< in namespace B and not in namespace A.
 
Don't define operators for where both operands aren't yours
That's a very fast way to madness
 
@gnzlbg nope, meaning you can make it all up
 
@gnzlbg yes. In the namespace of the vector's element, allocator type etc.
It's duct tape, but works for UDT element types under your control
 
If I put operator<<(OStream, vector<T>) in the namespace of the vector element (T for vector<T>), would ADL still find it?
I thought ADL worked only on the concrete type (e.g. vector in this case, not the T in vector<T>)
 
2:07 PM
@gnzlbg Yes.
 
note: 'operator<<' should be declared prior to the call site or in an associated namespace of one of its arguments
 
@gnzlbg oh no no no no. You're in for a surprise
 
@sehe I'll give that a try ah well, I cannot
I don't control T either
 
expect pain and suffering
 
3 mins ago, by milleniumbug
That's a very fast way to madness
 
2:08 PM
@gnzlbg Most beautiful case of unexpected buttsecks ADL I remember was this: stackoverflow.com/questions/7965262/…
 
error: call to function 'operator<<' that is neither visible in the template definition nor
found by argument-dependent lookup
 
@gnzlbg Make your own free function that does what you need with a fallback to standard library behaviour. As everyone always does
 
I am using cppformat
 
I'm using a keyboard.
 
which basically means I have to use operator<< to serialize UDTs
or I have to wrap every type into another type that provides a operator<< that calls whatever function I want
I guess I'll give each of the types I want a debug_print non-member non-free function that does what I want
and then use a customization point that falls back to operator<< if debug_print is not found
 
2:11 PM
I'm "sure" a reasonal text-serialization lib will have a provision for you to override/specialize. I mean, EVERYBODY has run into this conundrum, so surely library devs have?
 
and then wrap all the arguments to cppformat print
 
See boost::lexical_cast e.g.
 
@sehe yeah, you provide an operator<<
 
lol. that's bad
 
@Telkitty nope, only two week agile sprints
 
2:13 PM
Oh damn. I linked the wrong answer earlier. This is my favourite ADL kicker
10
A: Getting the address of template class object leads to full instatiation of template parameters

seheAnalysis/explanation: What you are seeing is shallow instantiation, not full (see below for proof). ADL is the culprit here. Hypothesis II I'm suspecting an ADL-related thing here (classes can have static free functions (friends) declared inline. Perhaps the compiler needs to instantiate th...

 
the only way is via operator<<
so I write my own print("string", args...) function where I wrap each arg into an object with a operator<< of my design that does what i want... painful, but should work
 
2 mins ago, by sehe
lol. that's bad
 
@sehe Oh. My. God.
 
@sehe it's actually nice, till it doesn't work
combining two projects using cppformat, adding somehow operator<< for std::vector is a recipe for lots of FUN
 
I love ADL. And I like std::operator<< but ... you know. The pitfalls
@gnzlbg In fact, it's illegal. Unless you can define all overloads/specializations in your own namespaces
 
2:16 PM
@sehe self-immolation is no better
 
Ironically you are allowed to specialize customization points in the std namespace, but... only for UDTs.
@LucDanton Precisely.
 
so you first suggest that a reasonable library should provide a customisation hook, then when they do you slam them for it
 
I have my first CTAN package! \o/
Am I famous yet?
 
@LucDanton their customization hook mechanism is the problem
a formatting library should not assume that you always want to format types in the same way
 
that’s more of a feature enhancement request
 
2:18 PM
you would expect someone who just reimplemented fprintf to know that
 
@sehe But note that std::vector<T> is a user-defined type (even if T = int).
 
It's "user defined" from the perspective of a language
which is... interesting
 
@LucDanton Because it is limited, and cannot be used - for all things
@gnzlbg The worst part, you should be able to format vectors, full stop.
 
functionality gotta start somewhere
 
2:26 PM
Yup. And it would be nice if the sprinter didn't meet the dead-end before the starting shot
@JerryCoffin Are you sure? I'm listening. This is so gonna end up on (not me ofc)
@milleniumbug I'm not convinced. I think it's even UB to specialize vector<T> for T != UDT
 
Ven
@sehe Actually, @JerryCoffin is right, except for std::vector<bool>. This one is not a UDT.
 
Still listening
 
@sehe you’re both using UDTs with differing meanings
 
Ven
@sehe Common Lisp has that in its printf equivalent. :D
 
@LucDanton I was hoping to use the relevant meaning, ofc
 
2:30 PM
you did and he did, but they’re still different
 
so bois
 
Ven
im not a boi
 
you a grill?
 
Still listening. If anyone can throw in/link to the disambiguator, much obliged
 
Ven
I identify as one of @rightfold's non-finished projects (that is, all but one).
 
2:31 PM
Not just sexually, methinks
 
Ven
I'm free to be anyone's pet..project!
 
is there any way (maybe using the preprocessor) to pass a flag to the compiler to switch from A to B? coliru.stacked-crooked.com/a/e2b45cc8357ee5d0
 
Ven
@ChemiCalChems #ifdef + -D?
 
i was thinking something like this
 
@Ven Which one did she finish?
 
2:34 PM
@Ven you wot? pass a -Dflag?
 
Ven
Yes, always put in the -D.
 
so in case i wanted the flag to be flag, i'd say #ifdef -Dflag?
 
@sehe what Jerry said amounts to "std::vector<T> is unlike int"
 
Ah. Irrelevant to me, indeed.
But nice to know that definition is around.
 
2:47 PM
@Ven now i have to make cmake plug that into the compile flags if i'm building the client, and only in that case
 
Ven
not too hard, really.
 
thing is, i don't know how clion decides what to build based on the targets i specify in the CMakeLists.txt
because if i say if (TARGET client), even if i'm building the server, client is a valid target, it's just not used
 
Ven
you should have a "target" menu at the top right of your screen.
 
@sehe github.com/fmtlib/fmt/issues/375 I filled an issue
we'll see
 
@Ven that's not the point, i want to add one flag if i'm building one target, and another one if i'm building another target
i know i can select targets, i do already
 
Ven
3:02 PM
@ChemiCalChems ah ok. so it's just cmake: if (FOO) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMYFLAG") endif()
 
@Ven i know, but what's the foo? that's my problem
it can't be if(TARGET client), because if i'm building server, client still exists, but it isn't used
> There is no concept of a "current target". What would that be? The
name of the last library added with add_library? Or the last
executable? Or the last custom target?
so... clion must call a makefile elsewhere
ok, so clion calls cmake with --target Client
i should be able to get that somehow
 
Ven
no.
it doesn't make sense By Definition™. a cmake file describes "all" targets. use add_custom_target. (don't use TARGET, pls)
 
@Ven that should work
oh, of course not
i'm going to use CLIENT and SERVER
 
Ven
bah.
 
@LucDanton The article on rust futures was very nice, I keep coming back to it.
 
Ven
3:13 PM
@AndreasPapadopoulos y'a pas CUDA en Rust bb
 
@gnzlbg s/way way/one way/
 
Also wow minister of economy resigned?! wtf
 
It's par for the course: steer country to trouble, abandon ship
See: Brexit
 
@Ven target_compile_definitions
 
@AndreasPapadopoulos There's a movie reference in there, somewhere
 
Ven
3:15 PM
@AndreasPapadopoulos eh oui, on a du mal le #define
 
i'm ripping my fucking hairs out
 
@ChemiCalChems Why don't you just set the goddamned flags on a per-target basis? (I admit to not reading the scrollback.)
 
@Griwes because i don't know how to, that's the point
that's what i wanna do
 
@LucDanton congrats :)
 
3:17 PM
@ChemiCalChems lol assuming makefiles
 
@milleniumbug i learned that doesn't happen right after that message
 
and probably a bunch of other ways
start googling
instead of asking here
 
i was googling, i just couldn't find anything useful
just fucking obnoxious cmake documentation that didn't do shit
 
then you were Doing That Wrong
the above is literally the third result for "cmake set flags per target"
 
@Griwes possibly, first time i fight with cmake over anything tbh
@Griwes i was looking, for something else, yeah
 
3:21 PM
Setting compiler flags is a last resort action in CMake
 
@milleniumbug i can understand why
 
It indicates either "you're writing CMakeLists.txt wrong" or "wth does CMake not provide this"
I can bet on the former in your case
 
idc tbh
it fucking works now
holy shit that took a while
 
3:38 PM
@sehe [Sorry for the delay--had to drive to work]. Unfortunately, I don't believe the standard has anything to make us certain on its own. Here I'm going on recollections from old discussions on comp.std.c++, where there seemed to be agreement among the committee members in the discussion that any type that wasn't built into the language per se was a user-defined type. I'll do a little looking to try to find a reference, but searching Groups is hosed, so don't hold your breath.
 
in the old days you could also justify the class synopses to be just that, and that an implementation could use any magic as long as it was indistinguishable. these days SFINAE (of the expression kind) and things like std::is_class makes it that 'indistinguishable' is a very high bar to pass though
 
@JerryCoffin but, but... It's in the wording for allowed specializations somewhere (allowing them inside namespace std, for UDTs). I'm /sure/ they don't want to allow us to specialize, say std::hash<std::string>?
 
yeah, that’s the intention. the wording is a bit lacking though
 
@sehe I suspect they don't intend to allow that, but I'm not sure. I'm tempted to say a defect report is in order, because the standard simply don't (seem to) contain a definition of what does or does not constitute a user-defined type.
 
Xeo
3:56 PM
@LucDanton y'know, for traits, I guess the stdlib would be allowed to specialize them for their magic?
 
an additional layer of tricks solves everything
 

« first day (2145 days earlier)      last day (2794 days later) »