« first day (1284 days earlier)      last day (3678 days later) » 

12:00 PM
Lounge.
 
no, life
 
@LightnessRacesinOrbit Lounge.
 
@LightnessRacesinOrbit btw, do you like it?
 
room topic changed to Lounge<C++>: You fail logic forever loungecpp.net [c++] [c++11] [c++1y] [c++-faq] [c++-magpie]
 
12:03 PM
@DeadMG no. read the domain name.
this is part of Stack Overflow
 
I freehand circle; therefore you lose.
 
You're not even very good at playing dumb, druggy
5
 
freehand-circle-rush eh
 
> druggy
I like that
 
12:07 PM
Clearly the solution is to change the URL
 
must implement more vtables.
 
@TorbenC It's just a convention that stuck. I guess it has the slight advantage that it is easier to distinguish from a random variable with value 1 when looking at it in the debugger.
 
hmm, shit.
I need to change my initializer lists.
 
JBL
Getting Lazy with C++ seems interesting, though quite complex, and I fail to see if it can be of practical use....
It sounds like forcing Haskell into C++.
 
12:23 PM
looks at URL
 
Yes it's that guy
 
Xeo
hahaha
 
bartoszmilewski.com. I knew it.
 
You're not subscribed?
 
@JBL That's all that guy ever does.
 
12:24 PM
If it sounds like forcing Haskell into C++, there's a high chance it's Bartosz's.
 
"Here's Haskell, blah blah blah isn't it great, TIME TO HACK IT INTO C++ FOR NO APPARENT REASON!".
 
"Bartosz's" sounds so weird.
 
JBL
I usually like his articles. In an "artistic" kind of way, like "this is nice, but won't ever find a (reasonable) application in real life".
 
Xeo
@R.MartinhoFernandes Drop the final s
 
Xeo
12:25 PM
@JBL Obviously we need instance Applicative RealWorld
 
@LightnessRacesinOrbit look who's talking :/
 
JBL
@Xeo Not necessarily, that's just how I feel.
 
@R.MartinhoFernandes Or Sinkovicz!
 
@sehe How DARE you
 
Xeo
@sehe Kitchensinkovicz?
 
12:26 PM
@sehe I've never taken hard drugs in my life
 
:D
@Xeo Abel
@LightnessRacesinOrbit That took you a while :)
@Xeo He throws it all in, yes
 
huh.
I think... that my hearing is getting better.
 
@sehe Did it?
@DeadMG Sorry? What was that?
 
Bah most of my packets to sourceforge.net get lost
 
@LightnessRacesinOrbit More than 2 seconds, and only in second instance response. Slow for a fox like you
@CatPlusPlus Seems like a feature to me
 
12:29 PM
UK IS EATING MY PACKETS
 
I accidentally declared war on them a few hours earlier.
 
@sehe I need to get something :/
 
@sehe You're not worth rushing for
 
@CatPlusPlus We've been taxing them heavily to support the war effort against the robot.
 
@R.MartinhoFernandes Accidentally yeah right
You evil bastard
 
12:31 PM
@LightnessRacesinOrbit <sad-face/> makes me wonder why you only realized it today
 
@sehe I didn't
 
I have a confession to make.
I'm a geocentrist.
 
Nooooooooooooo
 
@LightnessRacesinOrbit unconvincing
 
I know about epicycles and shit.
 
12:33 PM
@R.MartinhoFernandes oops.
 
aw shit.
inheriting C++ interface -> gotta meet Itanium ABI specifically for virtual functions and layout.
they have this super annoying "primary base" shit.
 
Xeo
> Without the use of concepts, we have no way of enforcing, or even specifying, that F be a type of a function from T to U. The best we can do is to statically assert it inside the function:

static_assert(std::is_convertible<F, std::function<U(T)>>::value,
"fmap requires a function type U(T)");
 
@Xeo I know, hilariously bad.
 
Did he just say that.
 
Xeo
last time I checked, the standard didn't demand SFINAE on the constructor of std::function and libc++ implemented it for funsies.
 
12:41 PM
@Xeo They fixed that.
 
@Xeo C++14 does. I believe everyone's implemented it by now.
 
And everyone does it.
 
Xeo
Oh, ok
 
Fuck MSVC.
 
not that it even matters.
the real solution is obviously to define U as decltype(std::declval<F>()(std::declval<T>())).
 
Xeo
12:43 PM
he has that
although as simply decltype(f(stuff))
 
@R.MartinhoFernandes That's.... so off-topic :)
 
is it possible to redirect output into the system clipboard?
 
@Crow yes
 
@Crow only on Mondays
 
@Crow Turing says: yes
 
12:48 PM
You'd probably have to write the plumbing code yourself, but given that you can get the output from another program as a string and that you can programmatically write a string to the system clipboard, I'd have to say that it is indeed possible.
 
@Crow program | xclip -selection c
xD
 
@ScarletAmaranth And when it's a full moon.
 
Redirect output to file open file in Notepad click at the start hold the mouse button move the mouse until all text is selected press right mouse button select Copy
 
That's the Win32 way
 
Xeo
> We really don’t care what value sits in this Stream — we never use the result of guard for anything but the flow of control. In Haskell, there is a special “unit” value () — here I use a nullptr as its closest C++ analog.
Stream<void*> guard(bool b)
{
if (b) return Stream<void*>(nullptr);
else return Stream<void*>();
}
 
12:52 PM
@Xeo Is that.
 
Xeo
ayiGOaasupf bloody hell markdown, turn that quote into code
 
fail
 
Quote is not code
 
Xeo
@R.MartinhoFernandes yes
 
I scratched my arse.
 
12:54 PM
peeks at article
lol, thunks.
 
JBL
@R.MartinhoFernandes I liked that word.
 
Xeo
and why the fuck doesn't he use std::nullptr_t at least if he wants to emulate unit
 
JBL
But its declaration looks horrible.
 
Xeo
Stream<std::tuple<int, int, int>> triples()
{
    return mbind(intsFrom(1), [](int z)
    {
        return mbind(ints(1, z), [z](int x)
        {
            return mbind(ints(x, z), [x, z](int y)
            {
                return mthen(guard(x*x + y*y == z*z), [x, y, z]()
                {
                    return mreturn(std::make_tuple(x, y, z));
                });
            });
        });
    });
}
Teehee~
 
lol
 
Xeo
12:56 PM
(where mbind = (>>=); mthen = (>>))
 
JBL
Dat lambda cascade.
 
@Xeo When will people realise that do-notation is the real juice.
 
Xeo
@R.MartinhoFernandes yeah
 
Xeo
I like the desugared code for short stuff, though.
 
12:57 PM
Also, ha, good luck hoping a C++ compiler will do any decent optimisation on that thing.
@Xeo I use combinators like Kleisli composition instead of bind if I can.
 
Xeo
@R.MartinhoFernandes >=> for president
 
GHC knows about thunks and performs magic on it. GCC knows fuck nothing beyond std::function.
 
Digging through 2GB of logfile is great fun you should try it sometime
God I hate this fucking projeft
 
@CatPlusPlus lol 20 bytes.
 
@R.MartinhoFernandes That's gzip overhead
It's actually empty!
Don't compress empty files kids
Also fuck logrotate
 
1:01 PM
That's an infinite increase in size!
 
JBL
@CatPlusPlus Does it yield a negative size after the process?
 
I just invented a compression algorithm better than gzip.
 
Also fuck Rails for not having any sort of log rotation built in
 
It's the same as gzip, but special cases empty files to compress into empty files.
I'm so awesome.
 
FOR ALL THE FUCKING MAGIC IT DOES, IT DOES NOT HAVE A PROPER LOGGING FRAMEWORK
Eat shit and die, everyone who ever thought Rails was a good idea
2
 
1:10 PM
why are you even taking a look at rails?
 
I'm not "taking a look at rails"
 
@R.MartinhoFernandes lol
@CatPlusPlus do you have to work with it?
 
ahahahahhahahaAHAHAHAHAHAHA
 
Also thanks Rails for logging every single subtemplate rendered for every request
It's very helpful
 
1:15 PM
@R.MartinhoFernandes you should be out there solving logical puzzles not writing software
 
@BartekBanachewicz What?
 
@R.MartinhoFernandes world needs heroes that improve compression algorithms
IOW I had too little sleep last night
 
No world needs people who'll invent FTL travel
 
and cold fusion
also if you could compress people...
 
@CatPlusPlus I travelled here from 1987 to tell you I don't like that idea.
 
1:17 PM
You can compress people just fine
4
It's decompression that's the problem
HAHA GETI T
 
Good enough for robots.
 
user1804599
@BartekBanachewicz Cold fusion was already invented by Jeremy and JJ Allaire.
 
@CatPlusPlus I wish I was so funny
 
I'm all the rage
 
also I wish I slept for 8 hours today
 
1:22 PM
I'm scrolling up scrolling up and suddenly I'm in January
 
sleep is a waste of presius time
 
Thanks logrotate
 
I'm still in April.
 
@CatPlusPlus You're all the raaaege
 
2014-04-(20|19) is too hard for grep
 
user1804599
1:25 PM
Pft, grep.
 
Do one thing badly and also assume the worst fucking defaults because we all still live in 1960 apparently
 
JBL
@Jefffrey If you're fine with wasting that precious time being because you're completely sleepy, kind of agree then. :)
 
@JBL It's just as funny as being drunk, without the side effect of actually poisoning yourself.
 
Bug opened at 2014-04-20 at 1 goddamn AM, but only requests that could've triggered said bug are done AFTER that date
 
JBL
@CatPlusPlus Hey you've discovered time travel! Or another bug.
 
1:30 PM
@CatPlusPlus grep -E or egrep
 
Yes got that, I was trying -e
 
The egregious egrep.
 
Which is extended regexp in some other retarded tool
Probably sed
 
@CatPlusPlus Nah, someone was reporting a bug he spotted while reading the source
 
Ahahahaahahhahaha no
 
1:31 PM
> adjective
1.
outstandingly bad; shocking.
"egregious abuses of copyright"
2.
archaic
remarkably good.
lol
 
Dat archaic
Egregious means "pastoral", right?
 
JBL
Oh, GCC 4.9.0 released.
4
> on the standard C++ library side the most important addition is
support for the C++11 <regex>
 
@sehe No.
Exceptional.
 
> Support for various C++14 additions have been added to the C++ Front End,
on the standard C++ library side the most important addition is
support for the C++11 <regex>.
 
@sehe (as in "out of the flock", if you're seeing the "grex" root)
 
1:33 PM
> mid 16th century (in sense 2): from Latin egregius ‘illustrious’, literally ‘standing out from the flock’, from ex- ‘out’ + grex, greg- ‘flock’. Sense 1 (late 16th century) probably arose as an ironical use.
just found that
@R.MartinhoFernandes I was seeing the grex root indeed.
 
Ahahahaa this goddamn app
Logging binary uploads is a good idea yes
PuTTyPuTTyPuTTyPuTTyPuTTyPuTTyPuTTyPuTTyPuTTyPuTTyPuTTyPuTTyPuTTy
 
Cat's brain is putty.
 
So I had "herd" and "shepherd" associated too tightly
 
Also let me tell you all about sed -n '36344842,+50p' production.log
 
I know "egregious" because it's on the Portuguese anthem.
 
1:35 PM
I know it because I like words
 
You know it because I told you!
 
fucking sinatra documentation
 
no dont use ruby
 
I have to look at the source code to know what's the possible return values of a method
 
it only makes it stronger
 
1:38 PM
because the documentation just assumes everything will always work fine
 
@R.MartinhoFernandes huh. How would you come to that conclusion. I was only wrong on the etyomology
 
@CatPlusPlus says the rails geek
:)
 
This project was written before my involvement
And rewriting is dumb regardless of how shitty the tech stack is
(Ask me about rewriting 200KLOC of C++ code in C to hire developers cheaper)
Or was it 500
I don't remember
 
yeah, well, I'll just wait that the web evolves to use Haskell I guess
 
someone said haskell
 
1:40 PM
There's plenty of decent stacks
You don't have to use shituby
 
@sehe The etymology was right, you just forgot the rest of the word :P
 
@CatPlusPlus "Status: Experimental", "Status: Don't know what a cookie is", "Status: Rails clone"
yup, decent haskell stacks out there indeed
 
I didn't say "Haskell"
 
Ok, what do you say then?
 
I default to Python
 
1:43 PM
 
ASP.NET MVC if you can host it (it's kinda annoying on Mono)
 
She does look sharp
 
@CatPlusPlus django?
 
Xeo
AUPIDGHAUG fuck you boost::optional.
 
1:44 PM
Or Flask
 
Xeo
or rather, fuck you implicit conversions
 
Haha
But implicit convs are so convenient man
 
Xeo
 
implicit conversion to bool?
 
Because you're bad at C++?
:v
 
Xeo
1:46 PM
@DeadMG Yes.
 
I have bones.
 
Grats
 
JBL
What? How?
 
@R.MartinhoFernandes :D
@Xeo include optional_io.hpp (or std::boolalpha manip :))
@JBL optional<>
 
@Xeo Why is it implicit :<
 
1:49 PM
@R.MartinhoFernandes c++03
 
That's not what the command-line says.
 
> pour (var i = 1; i < a.length; i++) {
 
Kinda interesting how some parts of Boost are still playing catch-up with the standard.
 
@R.MartinhoFernandes I know. It's what the library supports though. And it will want to support the same code without breaking on c++11
@R.MartinhoFernandes hmm? It's not possible to support explicit-only conversion operators <c++11
 
You don't have to.
 
Xeo
1:50 PM
@sehe So? Enable them just in C++11
 
That would lead to code working in c++03, breaking in c++11
 
boost should have separate C++11 development branch
there, I said it
 
Mmm. Separate branch: "no-no".
 
Xeo
@sehe That's good breakage, I approve of it :P
 
1:51 PM
remove all the reduntant things
 
I would agree though, but only because I think the c++03 needs to ... be obsolete
 
@sehe So what? It's beneficial and has an easy and direct migration path.
 
@Xeo well yeah. at some point in time they thought it a bad idea :/
 
that's the very point
keep the 03 branch alive for a year more and kill it
like, dunno, only provide bugfixes to 03 branch from that point
 
@BartekBanachewicz trololol. Simplist much. Boost would get a lot more (righful) criticism and ev even more (founded) resistance to adoption
 
1:52 PM
that would make sense, no one who still uses 03 is interested in bleeding edge boost
 
@BartekBanachewicz that's not gonna work well. Devs have a life to
 
JBL
All C++s must die.
 
@sehe it's already adopted where it should be: as something that fixes gaping holes in the broken language
since C++11 is less broken, it needs less duct tape
 
Welp bug no repro
That was good 1.5h
 
@BartekBanachewicz I don't know what you're trying to say.
 
1:55 PM
Also now I have even funner bug, Facebook integration problems!!!!
 
@sehe and if we're discussing criticism, the most commonly brought up flaw of boost is the size and the interdependencies
 
There's not that many interdependencies in Boost
 
user1804599
@CatPlusPlus Facebook integration is by itself a bug.
 
@sehe That boost can either continue being 100% compatible with old crap and thus die with C++03 as legacy stuff, or move on as a reasonable counterpart to C++1y stdlib
 
Also avoiding dependencies is dumb, esp when you have supposedly-quality libraries right there
 
1:56 PM
@CatPlusPlus There are.
 
you can't have a cake and eat it here, not unless you break it into two branches
 
Not that I understand how that hurts anything.
 
@CatPlusPlus there's helluva of them
 
For the most part you can trim it significantly with bcp
Not that it's worth time
 
yes only 17MB of code for optional
 
1:57 PM
Or effort
Who gives a shit seriously
It compresses to 5
 
I did a great thing recently
 
@R.MartinhoFernandes many
@BartekBanachewicz you farted?
 
I farted
 
user1804599
I burped
 
I set up a pendrive for copying stuff with a 1MB sector (or bigger) IIRC
 
user1804599
1:58 PM
And my colleague burped in response
 
then copied 17MB of (uncompressed) boost there
and whoopies I have 200MB of boost :F
 
clap!
 
@CatPlusPlus Who cares? It compiles to a little.
 
@rightfold I believe you
 
@R.MartinhoFernandes I don't know, not me
People are weird
And stupid
 
1:59 PM
@R.MartinhoFernandes mmm. My unit test runner is currently 95 MiB. That's using Catch.hpp
 
Also why would you use a 1MB sector
 
performance
 
I guess that backfired.
 
nah really I just felt like it.
 
Wasting 1MB on every file below 1MB is very performance yes
 
1:59 PM
it wasn't supposed to store files under 1MB in the first place
but I forgot about it
 

« first day (1284 days earlier)      last day (3678 days later) »