« first day (2021 days earlier)      last day (2929 days later) » 

2:14 PM
@R.MartinhoFernandes Heh. For few seconds I thought you were somehow making your thing work with/for TeX :D
 
@Griwes Hmm ok, that would change in that case, but again fuck decltype(auto)
 
lol
Good luck with perfect forwarding out of your functions :D
 
@R.MartinhoFernandes That sounds oddly specific.
 
Ven
> How can I shave .1 seconds from the runtime of this program?
 
Run it on a faster computer. — Cᴏʀʏ May 11 '12 at 22:09
 
2:26 PM
@milleniumbug thats the convention in those two languages, I do program in both.. I think I made a mistake on class names, I think that should be attributes instead
 
> deleted by owner
Tsk, no balls.
 
Ven
did anyone here use github.com/nlohmann/json this lib?
 
@KhaledKhnifer standard_case the best case.
 
@Ven looks nice
 
@Griwes it's more of a convention thing, if you write things like that, it's gonna be the odd code within that language
 
2:34 PM
@Griwes that's another thing
having mutable state isn't bad in general
7
 
Ven
@набиячлэвэлиь exactly why it might be a trap :P
 
having unconditional, implicit, uncontrolled mutable state is what makes users of imperative languages dirty savages though
compared to pure FP master race
 
lol
 
State is a contextual effect like any other, and you're treating it as if was a gift from OOP gods
and that's as dumb as religion
well no okay religion is dumber but you get my point
 
Speaking of religion.
 
2:36 PM
@JerryCoffin Understand the reasoning behind putting it there or understand the usage of it?
@R.MartinhoFernandes what about it
 
I'm trying to redesign error handling in ogonek.
 
I've actually noticed today that nonius has almost twice the stars of ogonek
 
@BartekBanachewicz It's a finished product.
 
@R.MartinhoFernandes but I think the latter required much more effort no
 
@BartekBanachewicz That's why it's not finished!
 
2:38 PM
heh
#justopensourcethings
@Griwes what case was that again
 
@BartekBanachewicz Look literally 4 messages above that one.
 
@milleniumbug for what reason?
> The resulting value (that is, the result of applying the corresponding binary operator to the value immediately preceding the effects of the corresponding member function in the modification order of *this)
 
@BartekBanachewicz You can't form an useful reference to a temporary.
 
@Griwes I'm afraid I don't understand
 
@BartekBanachewicz The op+= must operate atomically (obviously).
 
Ven
2:41 PM
@Griwes MSVC will pretend so, though :D
 
And the expected return value is the value after the addition.
 
@Griwes obviously. And?
 
And before any other op happens.
 
@Griwes ah. hmm..
 
You cannot separate the addition and the evaluation.
 
2:42 PM
That value might stop existing in the atomic object immediately after (like, literally a memory bus cycle later).
 
but in that case wouldn't you want a transaction or something anyway?
because caring about that value implies you want to do something further with it
 
> Clojure Friends (@ClojureFriends) is now following you on Twitter!
 
so both += and the following use should be under a transaction anyway, no?
 
wut
@BartekBanachewicz You may use it later as an id.
But the whole reason for using += there is to not have to do a wider transaction.
You acquire the value from the atomic object (be it a counter, or even the dumbest linear allocator) and don't care about what happens later, because that resource is yours now.
 
You don't want to enable doing the two separately anyway.
 
2:44 PM
OK, I don't disagree with that reasoning.
But then again nobody forces you to
a) use += specifically for that
b) make += return non-void for anything else
 
There's no reason not to.
 
I don't like it. /cc @JerryCoffin
 
@Ven lol. I must have thought "fuck it" and deleted mid-way
 
Ven
@sehe well, i laughed :)
 
:)
 
2:47 PM
@BartekBanachewicz (b) - but consistency!
But ok, I can accept that you don't value consistency as high as I do.
 
@Griwes I do value consistency in general, which is why I'd use another function.
Having supergeneric functions that have interfaces allowing everything doesn't mean your API becomes more consistent because just those functions are used everywhere
 
It literally makes no difference 99% of the time.
 
or well, maybe actually from some PoV it does, but it certainly does not automatically make it better
 
The natural use of += is as a statement. The return value is a bonus that you use when it comes handy.
 
@R.MartinhoFernandes I'm arguing the principle, not practice
@R.MartinhoFernandes I don't like such "bonuses"
If anything, they introduce a semantic specialcase which is imho much worse than an explicit API specialcase /cc @Griwes
 
user1804599
2:52 PM
private static function writeElement(XMLWriter $w, string $element, string $text): void {
    $w->startElement($element);
        $w->text($text);
    $w->endElement();
}
 
user1804599
 
Dunno; I can't come up with a scenario where += returning the new value hurts that isn't especially crafted to be pathological.
 
Ven
@Zoidberg nice indent
 
user1804599
Thanks.
 
user1804599
It is intentional.
 
user1804599
2:54 PM
I wrote an XSD too so now testing the functions is easy. :)
 
user1804599
Hmm.
 
user1804599
If I uppercase or lowercase all my tag names it'll compress better :)
 
user406009
@Zoidberg Or, you could just use one letter tags :P
 
@R.MartinhoFernandes pathological code is rarely intentional
 
lol
it is intentional, but not for the pathological part
 
3:16 PM
speaking of which, my friend suggested that I should see a podiatrist because of my knee issue
although currently I have no knee issue or it's not severe that I almost forgot about it
 
> I'm looking for a language with dependent types that can be used in practice for full-stack web development (which is my job).
 
@LucDanton Aren't we all?
 
My current backup is at 38% after running for 3 days, I am so ashamed, I almost didn't want to mention it ...
But then I remembered my thick skin and tendency to over-disclose
 
> I am an enterprise class software engineer with around 35 years experience, the last 30 of which have been as an international consultant. I am very senior, working right now in finance, near Wall Street. I'm an expert in the fields of architecture, process (especially Agile and XP) and on all things Java.
very senior
many java
 
3:28 PM
@DmitriBudnikov So old.
 
So old ... so old ... sold!
 
19
Q: Interview coding test: Fizz Buzz

Engineer DolleryI was recently given a coding test to complete for a potential client. It was a FizzBuzz-type of thing with a two-hour time limit. I had a request to write basic FizzBuzz, then add a special case, then add a report. I didn't get an interview, and they didn't return any feedback so I don't know wh...

> FizzBuzz-type with a two-hour time limit
@LucDanton Ben écoute moi zygo, parce que haskell c'est vraiment futu
Tu reprendras bien un peu de zygo, ou futu satisfait de ton dîner ?
etc
@slaphappy @Rerito @Ven
 
@DmitriBudnikov pas si simple à comprendre
 
ouh alors toi
toi tu vas loin
I'd star this but nobody else would get it so
> Multithreading in modern C++
27 April 2016
With the new C++11 Standard, [...]
 
OP means 'C++ of the modern art period', which as WP puts it spans "the period extending roughly from the 1860s to the 1970s"
 
3:40 PM
> As an example, Hypponen said he had recently spoken to a European aircraft maker that said it cleans the cockpits of its planes every week of malware designed for Android phones. The malware spread to the planes only because factory employees were charging their phones with the USB port in the cockpit.
 
@R.MartinhoFernandes wow
 
please be a joke
 
Not.
The planes don't run Android, though, so it's "safe".
It only works as a vector.
 
How does the malware get transferred to CockpitOS or whatever it is
 
what the fuck
 
cicada, please refrain yourself from asking robot to be a joke
 
There is something wrong with this world
 
Dunno. I guess it transfers itself into some storage.
 
Can't wait for an A380 to crash because of Welchia.W32
 
so it’s not just power-charging USB ports and there’s something at the other end even though it’s pointless? :/
 
3:43 PM
I guess.
Can't see it operating another way.
 
Ell
welp. my phone probably has malware :V
 
> W32.Ramnit
lol
 
I used to swim in the ocean a lot, and I parked the car on a mini cliff near the beach. On windy days, the car would be covered by salt by the time I came back from swim.
 
The Ramnit botnet was dismantled.
 
Ramnit!
 
3:44 PM
I look at all those trendy people live near the beach and I think about salted fish
 
@Ell didn’t they teach you to put a condom over the USB plug
 
Ramn it in... okay.
 
@Ell is it hacked though
I thought you were doing hacking on it
 
@Ell Did you plug it on a plane's cockpit?
 
Ell
@LucDanton I'm trying to think of an analogue to sharing dirty needles but I can't :(
 
3:47 PM
@R.MartinhoFernandes I’ll more than gladly concede that argument to anti-nuclear power folks
 
Ell
@R.MartinhoFernandes No, but if employees have malware I think I probably do also
 
you better hack it more then
 
Why would you?
These things are not airborne.
I do find the idea of planes acting as vectors for Android malware funny.
 
I’ve actually seen planes in the sky, moved only by their own power
 
Ell
3:49 PM
I just mean in general. I mean, the employees didn't catch it from the plane did they?
 
cc @milleniumbug
 
Ell
they transferred it from their phone to the plane
but they got it on their phone by maybe downloading an app or something? I don't know. I guess I'm just a lil' afraid vOv
maybe I've downloaded a dodgy app before without realising it
 
@R.MartinhoFernandes But airborne viruses have existed for billions of years!
 
@LucDanton Sounds fairly unbelievable (there's essentially always at least a little wind moving the plane one way or another).
 
Maybe they spread the malware in the contrails
 
3:51 PM
turning software viral infections into a global pandemic
 
Nah, it's the vaccines.
 
how awful
 
You get vaccinated, and then you touch your phone, and then your phone has malware.
 
autism causes vaccines
 
see what happens when you plug your cockpit in everything
 
3:53 PM
@BartekBanachewicz ...which causes malware. So autism causes malware. Which prevents kids from learning to read or speak properly--so autism causes autism.
 
Ven
@DmitriBudnikov mais lol le parallel fizzbuzz
 
gotta go fast
 
@DmitriBudnikov Don't stick your cockpit in crazy.
 
@BartekBanachewicz That's just being a dick to the poor intern who will have to work with that.
 
3:56 PM
Do we have a conical dupe target for questions like this that not only explains why it is wrong but offers a C++ way to get the size using a template? Everything I find either does one or the other.
 
@Ven can I assume that the […]*'' is a form of joining?
oh there are explanations ._. indeed it is
nevermind it’s still proposed, not adopted (unless someone knows better)
 
@NathanOliver This is more elliptical than conical, but otherwise fits: stackoverflow.com/q/2993646/179910
 
Yeah it is close. I'm trying to find a question that matches where they pass the array to the function. I guess that is not really needed but I figured it would be one less thing they could argue about.
 
@NathanOliver Too late--it's already been closed (with what I'd call an inferior dupe, but oh well).
 
Yeah. I was just trying to find something go forward. My googleFu was not getting me anywhere and the Q was closed out from under me.
 
4:07 PM
@LucDanton Oh nice, thanks. I'm not sure why I didn't see this earlier. I took the code in a different direction because of some other constraints and no longer need this, but I'll definitely want constexpr string views again another time at some point.
 
@BartekBanachewicz Impressive
Assuming a typical office worker won't be able to decipher all these with a script, this will be noticed by somebody higher in the hierarchy
 
@DmitriBudnikov nice pvp write-up and follow-up discussions, didn’t have a chance to see the video so far. do you recognise the pvp you used to play in there?
 
what game is this
 
I’m not sure
 
I'll take a look
 
4:16 PM
@BartekBanachewicz Imagine a thread-safe Counter function object using std::atomic. With returning a value, the straightforward implementation of return c++; is the correct one, and results in a single atomic access to c.
 
the mesmer play style is very old fashioned yeah
some utility skills debatable
no but this is just a proplayer smurfing and enjoying trash plays
oboy how obnoxious
 
user1804599
Parliament y u no stop violating the law.
 
is there a drop in faster replacement for msvcr110.dll for basic math functions like sqrt/atan? I'm thinking like linking in tcmalloc for faster malloc without changing any code
 
user1804599
The law says they have to make a decision "ASAP", but instead they want to wait until after the brexit referendum.
 
People keep making comments on the sol2 lib, I get e-mails about it,
and then they delete them before I get a chance to see them on Github.
 
4:26 PM
Oh it's a XIII guy
No surprise
good to see the cancer is still going stronk 4 years after
bad players in front tbh
 
user1804599
0
Q: Is it haraam to get your braces a different color?

dopyIs it haraam to get your braces a color?

 
Is it haram to use tabs for indent
3
 
@DmitriBudnikov Yes!
 
user1804599
When fairy tale obsessions control you to the color of your braces.
 
4:52 PM
Seems more and more services are trying to move to this model where the scammers take the money of the content creators, not the money of the service providers.
 
5
A: C++-14 using enable_if_t to select member function of class templated on integral type

T.C.Substitution failure is not an elephant when it happens during template argument deduction. Also, enable_if_t<true> is void, and you can't have a void template non-type parameter. Defer evaluation with a default template argument: template<int Dimension> struct Foo { template<int..., int I...

It's so wrong, I'm not sure he wrote it by accident
 
@DmitriBudnikov lmao what happened
 
@DmitriBudnikov I guess multi threading in C++ is pain
 
@ThePhD lol, norepro
 
@набиячлэвэлиь .-.
@R.MartinhoFernandes Wow, a fixed pot? We Game of Books now?
Only the girthiest, lenghtiest, MEATIEST BOOK will survive.
 
4:59 PM
@ThePhD YouTube has a similar model.
Wait, maybe not YouTube.
 
@R.MartinhoFernandes was it ever any different?
 
@LucDanton before it was the service provider who got shafted by scammers because there wasn't a fixed pot.
Now the service provider always pays the same amount (fixed pot). It's the legitimate content creators who get shafted by getting a smaller share of that pot.
 
@R.MartinhoFernandes I'm not surprised really, I mean, don't they lose less money this way?
 
Yep, cause it's the creators who suffer the scammera
They lose less by shifting the burden, not by cracking down on scammers
 
@DmitriBudnikov I guess it’s too dank for you
 
5:12 PM
@R.MartinhoFernandes You would think there would be better quality control...
I guess this is a testament to the typical publisher system.
A little bit harder to shovel just absolute bullshit through.
 
@R.MartinhoFernandes I don’t think it’s a trend
 
@R.MartinhoFernandes It sucks, and I wish they wouldn't but I understand why they do.
 
hey guys! If you don't mind me asking, what are some common causes of "identifier <insert macro here> is undefined" after including a 3rd party library?
 
I'd say the most common cause of "identifier X is undefined" is not defining X
 
sounds far-fetched
 
5:24 PM
@milleniumbug gasp why I never
but forreals though, I'm pretty sure it's not because of that because the compiler error only came up after I included a .hh file
 
5:37 PM
#undef <insert macro here> ?
 
5:47 PM
morning
 
night
 
@Puppy evening
 
@BartekBanachewicz alright, alright, I'm coming
 
don't rush it
 
;p
 
5:50 PM
I'm implementing monads for component effects
 
how is it going?
 
state management is annoying, as usual
 
side effects master race! ;p
 
Well that's what I'm doing huh
allowing all of the UI ops to have side effects
except the ones I want in places I want them to
 
lol
 
5:54 PM
Hi itches.
 
instance MonadHasUI forall s. forall m. (HasUI s, MonadState s m) => m where
it's very fun.
 
ok well I'mma shoot some zombies
 
@BartekBanachewicz doing C++ game development for money sounds more fun tome
 
post something when you want a game
 
@Puppy won't take long (until I say fuck it)
@ProblemSlover see how deceiving it can be
 
5:58 PM
@Morwenn you mean HI B!!ches?
 
Nope.
I just shaved and it's itchy.
 
it sounds nice also
@Morwenn Shaving d!!ck is is so fucking itchy
 
You don't say.
 
> Semi-internal error:
I’m semi-confused
 
ugh I can't get it right
instance forall m. (forall s. (HasUI s) => MonadState s m) => MonadHasUI m where
now I'm getting invalid constraint on s
 
@Morwenn Perhaps he will never have to shave
Lucky bastard
 
@Borgleader Naw, apparently it was because visual studio isn't smart and decided to throw an error on the macro due to the fact that I haven't compiled it yet
Sorry - I'm not smart either, should've caught that :)
 
@ProblemSlover Probably.
@sehe Ha, it isn't even half as good as the O(1) sorting algorithm!
 
user1804599
I like how the Twitter cover photo of SpaceX illustrates the terraforming of Mars.
 
Ven
6:09 PM
yay
 
@OneRaynyDay Wat
If by "I haven't compiled it yet" you mean "I haven't declared it yet" then it has 0% to do with VS "not being smart" and 100% to do with PICNIC
 
user1804599
instance discardUnit :: Discard Unit

do log "hello" -- ok
   prompt      -- not ok
   _ <- prompt -- ok
   pure unit
 
@Borgleader I have declared it. It's inside a .tmh file that doesn't get read until I build it I believe..
 
@Borgleader What's PICNIC? I've seen e.g. PEBKAC and ID10T
 
6:16 PM
@Morwenn Look at it. Turn on volume at 100% lol
https://www.youtube.com/watch?v=4xBBU1LF89g
 
@ProblemSlover Nobody is gonna click a youtube link at max volume.
 
Not really what I like :/
 
@Puppy but it's nice surprise for someone who sleeps/
 
it's not nice, and they'd have to be more akin to dead than asleep
 
/: :(
 
6:27 PM
newtype UIEffect a = UIEffect { unUIEffect :: forall m. MonadHasUI m => m a }
newtype UIDrawM = UIDrawM { unUIDrawM :: forall m. MonadHasUI m => m [DrawRequest] }
SEND PROFESSIONAL HELP
 
user1804599
Since I installed Windows 10 my pc sometimes suddenly reboots. :/
 
NO NOT ZOIDBERG SEND SOMEONE QUALIFIED
11
 
lol
 
there's so many monads in this code
 
Ell
Guys I need help.
 
6:27 PM
@Ell k
 
turn of fucking caps
 
@ProblemSlover what a dramatic turn of caps
 
Ell
I need to give a guy my bank details on facebook messenger
well, I need to give them to him
 
...No you don't
 
Ell
and our contact is through messenger
 
6:28 PM
what what
 
@Ell lol
what's "bank details"
is it your account number
 
@Puppy Problem In Chair, Not In Computer
 
Ell
acc number + sort code
 
wtf is sort code
 
account number is almost public
 
user1804599
XML is really nice.
 
It's friday!!!!!!
 
@ProblemSlover oh fuck off it's not friday yet
 
Ell
sort code is related to your branch I think
but basically he owes me money and hes doing bank transfer
 
@Ell in general those are input parameters
 
6:29 PM
due to prior incidents, I now have a policy of instantly kicking anybody who links to that video.
 
@Ell so just send those over?
 
Ell
I was going to ask if it's fine to send them on messenger
idk much about security :P
 
robot made a case against making your account number public once
but shared on messenger != public soooo
 
Ell
yeah
 
lol. It's my favorite song..
 
6:32 PM
Cannot derive well-kinded instance of form ‘Monad (UIDrawM ...)’
@ProblemSlover says a lot about your music taste
 
Music is like skittles: it's better when you can taste the rainbow.
 
@BartekBanachewicz well what's wrong about this song. it doesn't load your brain with anything and so fucxking positive
 
@ProblemSlover it shows a complete lack of musical craftsmanship
well, actually any craftsmanship whatsoever
 
Doesn't matter as long as there are people to like it .____.
 
Can't make a derived instance of ‘Monad UIEffect’
      (even with cunning newtype deriving):
      cannot eta-reduce the representation type enough
GAAAAAAAAH thump thump thump
 
6:35 PM
just look at it
 
I'm not clicking that
 
Stop having sex with your code barket
 
@набиячлэвэлиь it was my head agains the wall
is there anyone here who knows haskell
 
@BartekBanachewicz Chinese encoding makes that url look scary
 
still not clicking it
 
6:37 PM
just click and die lol
 
@ProblemSlover I've clicked, now you better tell me what the fuck was that
Do I look like someone who clicks on random chinese people on FB? DO I?
 
That was holy chinese Jesus
 
dude, you're mental
 
Just ignore this cretin
He's a troll
 
6:39 PM
so rude :(/
 
seriously I've been shouting random parts of my heavily polymorphic code and they still make more sense than everything he's said so far
4
 
I think half of the lounge has him plonked
 
Half of the plonk has him lounged.
 
omg. I'm dying of laufh right now
 
make that even more than half the lounge
 
6:43 PM
@Puppy ping
 
yesssssss? you call for meeeeeeeeeee?
 
I think I've had enough coding for today
 
Have a hgreat friday and bye!
 
I want my IDE to optionally fold SFINAE error messages. Much required feature.
 
@Morwenn rofl, who are we talking about?
 
6:52 PM
@Morwenn My finest approach to compiler errors was g++ ... | grep 'required from here'
 
@Borgleader Some random guy :D
@milleniumbug It really doesn't scale for error messages I have x)
 
Actually, I could go with a solution that doesn't filter out, just hightlights these in another color
 
@Morwenn I need a name, so I can put him on my plonklist (if he/she isn't there already)
 
Gimme JSON error messages already.
@Borgleader Oh, if you haven't noticed, then he's already in your plonk list :p
 
Good point :)
 
6:54 PM
@Morwenn My unfinished project involves a clang plugin for machine-parseable error messages, but I found working with Clang API quite annoying
so it's put in development hell
 
@milleniumbug If you can finish that thing and get people to write IDE plugins, it would be great :o
 
@milleniumbug sth like g++ ... | sed 's/required from here/\033[31mrequired from here\033[0m' mebbe
 
0
Q: Why doesn't `eval` work inside my loop?

StackedCrookedUsing eval on a string that contains a command that defines a function works without problem: $ eval "p4() { echo 4; }" $ p4 4 However, when I do it like this it no longer works: $ echo 'p3() { echo 3; }' | while read line ; do eval "$line"; done $ p3 -bash: p3: command not found Why doesn...

^ Any bash gurus here? :)
 

« first day (2021 days earlier)      last day (2929 days later) »