« first day (1788 days earlier)      last day (3161 days later) » 

10:00 AM
I don't like it because I use libcurl.
and no kwargs so I have to do some stupid overloading-with-template-parameters thing
mediocre
 
@Rapptz you don't like coliru?
 
what?
 
@Rapptz >Content blocked
coliru pls
:(
 
wow how bad is China
you actually chose to live there too
:smirk:
oh right no shitposting emojis here
 
@AnastasiyaAsadullayeva inb4 coliru blocked
 
10:02 AM
#include <requests/request.hpp>
#include <iostream>

int main() {
    auto r = requests::get("http://www.example.com");
    std::cout << "Number of headers: " << r.headers.size() << '\n';
    for(auto&& i : r.headers) {
        std::cout << i .first<< ": " << i.second << '\n';
    }
    std::cout << r.status_code << '\n';
    std::cout << r.text << '\n';
}
 
itt even regulars fail to post code to coliru
 
I don't want to wipe the cache I have on coliboob.
 
ITT itt
 
I admit it.
 
ITT coliru needs stash
 
10:04 AM
@Rapptz Private mode you scrub
 
oh right that's a thing
I thought it was only for porn
 
I would say r.body
But that seems nice so far.
 
yeah well there's everything except like uh
that one weird HTTP verb no one uses
OPTIONS
 
It's used for CORS
Also health-checks
 
yeah some APIs use it too for some weird reason
A long time ago I thought it'd be fun to work on the HTTP RFC
It isn't
 
10:19 AM
I am browsing gumtree, there are so many wonderful things you can build using the free timber you get there ...
Some soild old timber shed you can get there, which of course require work. But if you are good with building things and willing to put in the work, one can easily build a small house with those
You probably can tell, I am very fascinated with building things. But nowadays, I am no longer satisfied with building virtual things, I want build things that have physical forms, can be touched and of some use in real life.
 
Xeo
@Rapptz Code porn
 
I loved to build actual things a few years ago, but I got used to CTRL+Z since then.
 
built with pallets
 
@Rapptz there's no limits to the verbs you can use
 
which you can get for free from many places
 
10:27 AM
Emergency shelter. Complete with emergency flowers.
 
wild flowers? :p
 
I love how some towns just have some rainbow fields of wild flowers nowadays. It's pretty.
 
@Rapptz that code is laughing at me.
 
?
How..?
 
Btw @Rapptz, auto&& is rare, experts-only.
 
10:31 AM
dw I am expert.
 
Xeo
Certibutted expert
 
Then get that lib probuttion-ready
I want to use it, and open a slew of invalid issues on GH that you'll close ASAP
 
I don't like it.
Maybe it's because I actually know how it looks like under that pretty code.
hint: not pretty
Also curl is such a shitty library.
Are we in C++17 yet
Oh wait it's 2015.
It feels like I haven't been here in years but it's still 2015.
 
@Rapptz Well, if you put it up on Github, others might come in and help clean it up internally.
 
I'd rather make it uglier by not using curl.
 
10:36 AM
(...but I've used this argument before with other people and it didn't work, so I don't believe it will magically work this time ;_;)
 
Oh you're using curl below
 
I had to write some stupid header_list garbage to wrap curl.
Yeah that's why I don't like it.
Because I'm using libcurl.
I actually wrote the cross-platform-socket thing so I could work on the HTTP spec.
Until it turned out that it's a total drag.
 
Cross-platform simple socket still needed
And not an entire solar system like Boost.ASIO
 
@Rapptz So like asio? hides
 
No.
It's literally just sockets.
It's not even async.
i.e. it's garbage for 99% people
which is why it's private
 
10:39 AM
lol
 
I'll make the repo public so you can laugh at it
k
it's amazing
it's my favourite file ever
 
@wilx I just don't like cry baby behaviour. E.g. "Boohooo why is Java useless" is surprisingly close to "Oh noes, sehe doesn't like me".
You can't say "there's no stress" and then "ERMAGAD ~~gaaaaarbage~~". Chill.
Instead, say "I've been looking for a zero-copy way to compare ranges of unicode characters in Java", that'd even make an excellent Stack Overflow question, if it's not a dupe
 
@sehe lol
@sehe How was what I did different from @CatPlusPlus's incessant everything is shit? He does not get the same treatment from you, AFAICS.
 
@Rapptz what does safely_invoke promis?
 
@Rapptz ow, make it private again
 
10:42 AM
@AnastasiyaAsadullayeva you can't fool me! You don't have access to github!
 
inb4 proxy
 
I don't blame things for my inability to read documentation
4
 
github works most of the time
 
:25569125 Double standard? An example of same behaviour that is not considered being a crybaby.
 
10:43 AM
@sehe It's just a wrapper for setting error_code if something bad happens.
 
@CatPlusPlus you are not a thing?
 
@AnastasiyaAsadullayeva I actually like that file. It taught me a lot about how <system_error> works. :v
 
This is a good idea: socket(): fd(invalid) {}
 
lol
 
for a second my brain read noexcept as constexpr and I thought you were extremely silly
@Rapptz Not kidding, the lib we currently use can't default construct sockets L:
 
10:48 AM
It'd be a good idea if I had a different way of constructing.
but I guess I expected people to use the move constructor
or rather me
 
I tend to split OS details in different files
 
I did that originally
but there weren't that many socket differences between them
 
There are quite a few
Aren't read and write also different?
 
@Rapptz Yeah. That's a bit of a wart. Here's my "containment": paste.ubuntu.com/12313183 (that is, until I switched to curl-asio)
 
Also gethostbyname and friends
 
10:52 AM
not that I recall
their BSD layer seemed compatible when I tested this out in debian and windows
 
@CatPlusPlus I suppose that contributes. In general, you're not quite so intrusive. It's mostly we need to push you to speak at all. And you don't require any help. I dunno.
 
ioctls are different
 
@AnastasiyaAsadullayeva Ah. I'm not alone. I confuse these too.
 
yeah I never got that far with this
I was gonna wrap more of it but I got demotivated since it probably wasn't gonna go anywhere so I stopped working on it therefore finalising the fate I placed on it.
 
10:56 AM
Oh. That's hilarious. This still sitting in another tab /cc @wilx sorry, not on purpose:
http://docs.oracle.com/javase/7/docs/api/java/lang/String.html#regionMatches(boolean,%20int,%20java.lang.String,%20int,%20int)
(TBF I wasn't aware of the flexibilty in `std::string::compare`. I use lexicographical compares, and frequently from Boost String Algos).
 
@Nooble lol
 
Ok... I've added the star myself, since apparently no-one picked up on it
 
I had considered it
 
:D
 
#line 1 "/home/vagrant/src/dev/served/src/served/request_parser.rl"
wot
what is happening
this looks auto-generated but I still find it weird for all those #line directives to be there.
 
Xeo
11:09 AM
For debug info?
 
looks generated yeah
 
how would it help with debug though?
 
Xeo
Telling you where in the original sources the problem is
 
It's a source map if you want
 
rip
 
11:12 AM
@chmod711telkitty cool.
is that yours?
 
> Doesn't seem to deal with the culture? (As in: if your underlying culture is some european one, number parsing fails).
lol this is the best way to refer to a locale
 
@Mr.kbok I wish
 
WTB anonymous types
 
We already have them?
 
11:13 AM
?
 
??!?
 
@Rapptz Think C# style
 
Think#
 
11:19 AM
even better
 
are we having a :smirk: contest?
 
Xeo
Too bad this isn't possible in the NSDMI version
 
> NSDMI stands for 'non static data member initializer'
ah I see
 
Xeo
define: NSDMI
hm
wiki: NSDMI
 
11:21 AM
fail
 
Xeo
hmmmm
 
Noun: mother ‎(plural mothers)
  1. A (human) female who (a) parents a child (b) gives birth to a baby (c) donates a fertilized egg or (d) donates a body cell which has resulted in a clone. Sometimes used in reference to a pregnant female, possibly as a shortened form of mother-to-be.
  2. 1991, Susan Faludi, The Undeclared War Against American Women,
  3. A female parent of an animal.
  4. (figuratively) A female ancestor.
  5. 1844, Thomas Arnold, Fragment on the Church, Volume 1, page 17,
(8 more not shown…)
Verb: mother ‎(third-person singular simple present mothers, present participle mothering, simple past and past participle mothered)
  1. (transitive) To treat as a mother would be expected to treat her child; to nurture.
lol cat pic
 
@Rapptz in containers
rip
 
Just use decltype(shitpost).
 
11:25 AM
I made my repo private again
don't want people perusing
 
I knew you would so I cloned it
 
container 2
 
:(
Did that lounge project ever get any traction?
The C++ doc tool?
Better than Doxygen™?
 
you mean lucdoc?
 
ye
 
11:30 AM
there's a lucdoc?
it's a good idea
does it do things
 
it uses lucpm as a backend
 
user1804599
Seems allowed!
 
@sehe \o/ Thanks. I have completely missed this one.
 
lucpm?
 
user1804599
 
user1804599
Very nice.
 
Ludicrous Unbelievable C++ Package Manager
 
@chmod711telkitty you could have saved so much time
 
@Rapptz Why do you need a package manager for a documentation generator?
@chmod711telkitty bleh
 
you just do
 
11:38 AM
@Rapptz Wow. Missed opportunity. "Le Duc LoC"
 
<Orange Cube On Sticks> I call that Architecture!!
 
Me too
@elyse Are you telling me I could have stopped commenting that out because I was in c++1y mode?
 
user1804599
No.
 
user1804599
Just that you can always insert typename and template even if the names aren't dependent.
 
So, yes, I could have stopped commenting them out
 
user1804599
11:40 AM
Yes.
 
Good news for all mankind
 
greetings fellaz
 
Xeo
@elyse Since C++11, IIRC
 
@AnastasiyaAsadullayeva What did we decide to back lucdoc with?
 
@FilipRoséen-refp heya
 
11:42 AM
@sehe I fell asleep for only 3 hours and somehow managed to get up. Body is trying to start a riot on me, send help.
 
@ThePhD plenty of lucfeatures
 
@Mr.kbok zup zup, how are you doing?
 
@ThePhD Ok. Good luck. Be strong. You slept ~1 hour less than me
 
@AnastasiyaAsadullayeva I mean like, was it going to zip through source code or something?
 
@FilipRoséen-refp fine. it's a nice day. I'm being paid to do TMP
 
11:43 AM
yeah luclang-based no?
 
@Mr.kbok you motherfucker.. really?
@Mr.kbok I want whatever job it is that you are having
 
@Mr.kbok You forgot to change your name =/
 
I'm thinking about starting to record my lectures (where I do live coding on my laptop (running arch linux)), anyone know a good approach for doing this? I can get access to a camera, etc. but I would like some advice on what software to use to easily manage the sessions, as well as recording what is going on on my screen
 
user1804599
I want to write a compiler.
 
@FilipRoséen-refp when sehe livestreams he uses OBS for recording.
 
11:47 AM
@Borgleader what?
 
user1804599
But I don't know what to write it in.
 
@AnastasiyaAsadullayeva Well, in a mythical world where luclang worked, would you want people to tag their C++ methods/members/classes/global vars with attributes like [[lucdoc]] and then let the generator pick up any comments that way?
 
@Mr.kbok Arent you Pr. kbok now? :)
 
user1804599
I could write it in C++, but writing parsers in C++ is a PITA.
 
@FilipRoséen-refp sehe and I use livecoding.tv, which archives all streaming sessions. you get an audience for free, too.
@Borgleader It's supposed to start at the second semester
 
user1804599
11:48 AM
Hmm, how about JavaScript.
 
@FilipRoséen-refp It's only for a few days though.
 
user1804599
PEG.js is superb.
 
@FilipRoséen-refp I just implemented something similar to what you did in your "constexpr counter" article.
Only with stuff built on top, and using techniques by @R.MartinhoFernandes
 
@Mr.kbok Yeah but livecoding.tv's session management is a pain though. if he just wants to record them he could save the videos locally and upload them to youtube.
 
11:49 AM
@Borgleader Sure.
 
@Mr.kbok but I need to merge it with the camera feed from the lecture, ie. so that I can physically be seen explaining stuff on whiteboards (on those rare occasions that I use them)
@Mr.kbok what was your approach? sounds like you didn't use the exact technique described
 
@FilipRoséen-refp Well if you need editing, no need for streaming, you can just use VLC.
 
maybe I should write a small article on how to abuse ODR to get the same functionality, no templates required, only magic
@Mr.kbok can I use vlc to record the screen session?
 
@FilipRoséen-refp Maybe. I did it before. Not sure if all drivers support it.
 
hmm, I have no idea why I didn't google "ffmpeg record screen" sooner
 
11:51 AM
@FilipRoséen-refp you can use OBS to record screen to a video file, then film the whiteboard and use any video editing software to merge the two.
 
@FilipRoséen-refp I'll write about it I guess.
 
@Borgleader thanks, I will keep that in mind - but if I can get ffmpeg to do the job I will do that
 
You can also use OBS to record the screen and then play back the video file in OBS while you're streaming it, and then it'll just be one integrated uploaded streamed experience.
 
sure, wont change much since i think OBS uses ffmpeg under the hood for encoding
 
3 hours ago, by Morwenn
I would like Foo bar = foo() to always be valid and always elide stuff because you can't guarantee a copy or a move because it might be elided and you want it to be elided anyway.
^ what the fuck?
I wonder if it's a good or a bad thing to provide means to ask questions during lectures anonymously through some web-interface
 
11:55 AM
@FilipRoséen-refp twitter :P
 
@Mr.kbok that's not really anonymous though
but I'm not sure if it will generate more questions, or just be a distracting thing
 
@FilipRoséen-refp It's anonymous enough (you don't know who in the class posted the question)
 
A QA member just reported an off-by-one error with the buttons. Of my shirt. (Root cause: alignment issues)
2
 
@Mr.kbok that's true
 
True story. The 2 hardest #clothingproblems...
 
11:56 AM
@FilipRoséen-refp it's not like they're asking about having AIDS or such
 
@Mr.kbok I just want students who are not comfortable to ask questions in large crowds a way to get their question across without having to say it out loud. Needless to say, in a room of 150+ students who are studying computer science there's always a few (quite many) that fall into that category
I mean, programmers aren't know for being the most social, or verbal, type of people
 
@elyse are you writing a COBOL compiler in js?
 
user1804599
No.
 
Wow. That's improbable
 

« first day (1788 days earlier)      last day (3161 days later) »