« first day (2511 days earlier)      last day (2663 days later) » 
00:00 - 14:0014:00 - 00:00

14:02
@BartekBanachewicz He looks chill. Sadly, he sounds like a player/manipulative bastard. He's really good.
@sehe he's certainly above-average in talking to random people
And he calculates it, really fast. ("She has one [a pokemon go account] but she doesn't want some of this" - nailed it, and revealing)
@sehe i want to compare different coding styles in an implementation of algorithms
@JerryCoffin is the overhead of perf actually that high? does it not use hardware cycle counters internally?
@JerryCoffin with rdtsc, it includes the time of other processes and the time of in-kernel code. that's the reason i wanted to avoid it
@JohannesSchaub-litb My preferred weapon is ogling generated assembly. Yes, that can be tricky, but most often it tells you what you want to know ("It's the same assembly", e.g., or "Whoa, that's suboptimal").
Only rarely do I see myself faced with "Wait, is this unrolled code going to be slower than the SIMD version". In which case, yeah, benchmarking is the tool. I'd probably use Nonius or similar micro-benching framework and not bother about cycle counts.
what are the micro-benching frameworks out there?
14:08
@JohannesSchaub-litb I think @Mysticial, @Mikhail, @Morwenn have experience with actual instruction profiling. There was another guy speaking about VTune too
@JohannesSchaub-litb I was gonna find Filipek's post: i.imgur.com/8vgYfBS.png
nice
i did find another one not listed there
@Ven I've never gotten over the ugliness of references. That was the end of fun in Perl. I played with Perl6 some times and it has Very Nice Things. Leaps ahead of Perl5 and way more innovative than Python[2,3]
Ven
Ven
@sehe Yes, I think I remember you saying a few things were interesting though you considered it too messy.
@Ven Yeah, the messy part could be my Perl5 experience though. Perl5 really killed my interest
14:14
@sehe nice i will use nonius
hope it runs on ARM
@JohannesSchaub-litb Knowing Robot it should. Or the platform dependent code will be documented somewhere
@sehe I don't really know, I merely stole code from @orlp.
@JohannesSchaub-litb That looks impressive, though it looks more like UnitTestsExEx
ah, someone of this channels regulars coded it?
@Morwenn Sorting?
@JohannesSchaub-litb Robot, with some irregular contributors from user communities I believe
14:18
@sehe it's a thin wrapper around perf on linux, I think, for the performance parts
@sehe ah i think that's the guy with the robot in his pic
@sehe HIs benchmark was based on rdtsc IIRC.
@JohannesSchaub-litb yeah. That looks promising
@JohannesSchaub-litb @R.MartinhoFernandes, don't tell me you're you stone-hearted you forgot
@Morwenn Oh like that.
so the Nonius framework uses rdtsc aswell?
No idea.
No idea. I would think not. But I'm not sure
14:20
i will have to mess with interrupt and cpu affinity then, i guess
@JohannesSchaub-litb Always. And RT priority
hm when using linux perf, i guess i wouldn't have to mess with that?
because it will by default only count statistics for that process
@JohannesSchaub-litb It does, but perhaps I took your mention of cycle counting too literally. If you're timing long enough sequences of code that you plan on context switches happening throughout what you're timing, the situation changes considerably. I think of cycle counting as something that applies only to microscopic sequences like up to a few dozen instructions or so.
@JerryCoffin yes planning on the order of seconds
@sehe does nonius have a scientific history? i wonder whether it's tested and proven
@JohannesSchaub-litb I think it does. It uses the concepts behind Haskell's Criterion which was one of the first frameworks with a strong statistical foundation AFAIK
I think I've seen that copied in other ecosystems as well
14:58
@sehe do you have to sign up on liveedu to watch your videos?
at work right now, slow day, curious to see how experienced ppl code
15:15
Perl, what is it good for?
Ven
Ven
@LoïcFaure-Lacroix Eeeeverything
15:40
@Ven I'm pretty sure it wouldn't fit on my small PIC12F683.
@JohannesSchaub-litb Yeah, in that case the OS-provided "stuff" becomes a lot more tenable.
@sehe He didn't just copy Criterion though--he actually bought a book on engineering statistics, and spent a fair amount of time studying the theory first (I remember this largely because I convinced him to buy a copy of my sister's book when he asked about the subject).
16:20
@OneRaynyDay No clue. I stopped using the site since they made it annoying/impossible for me to use.
@JerryCoffin +1 I didn't know for sure, but that's how we all know the Robot
@sehe are you streaming anymore?
Debugging is inspecting runtime behaviour. Fixing a compiler error is troubleshooting. — sehe 27 secs ago
@OneRaynyDay nope
folks
lemme make another caravel espresso
16:38
uh
it's 18:38 and I'm still at work
also technical interviews are hard
-4
Q: Inheritence problems inC++

Aditya SinghThis is my first time asking anything here.I know I shouldn't cheat but I was busy with some other homework and couldn't practice much.If someone could solve these problems and explain how,I would be eternally grateful.Thanks. Problem 1 Problem 2

I'm voting to close this question as off-topic because if you can't be bothered to do your homework, why should we? — Borgleader 24 secs ago
/cc @Mysticial
@Borgleader he'd be eternally grateful tho
16:57
@sehe That search bar is ever so small in the top corner of this chat :P
The right place, at least
@sehe it is in the right place, but I want it to be in the left place.
17:17
Right. I left the place
@BartekBanachewicz woof
@Borgleader lol
@Borgleader If you got inheritence problems I feel bad for you son, I got 99 problems but a base class ain't one
9
Oy guys, there's a ton of vim c++ autocomplete plugins out there, which ones do you guys use?
I've survived without autocomplete thus far, thinking of converting :P
user784668
@OneRaynyDay an IDE
17:33
I also use an IDE
too neck deep in vim bindings to convert :P plus it's very portable
Just use an IDE.
okay, then which IDE?
Notepad
user784668
@Mysticial ed
17:38
@Mysticial ++?
Microsoft Word is also a great IDE. It automatically corrects your spelling, grammar, and formatting for you.
8
@Mysticial Imo it's not flexible enough, I prefer microsoft paint, has tons of plugins
kk
18:33
@OneRaynyDay Unfortunately, MS Paint is apparently going to be discontinued. I'm not sure of a really solid replacement for it though.
it's a sad day for all of us
19:14
Hello, does this lounge accept general algorithm questions not tied to a specific language?
19:34
@Puppy here just getting frozen pizza
@user10478 you'll be better off at the channel above
wow the usd to pln is currently so low
like soooo loooow
soooooooooooooo loooooooooooooooooooow, indeed
@набиячлэвэли earning in USD sucks now
great
found some wine to go with my frozen pizza
I'd make a great crazy cat lady
@BartekBanachewicz Switch to bitchcoin
19:49
@OneRaynyDay YouCompleteMe. No IDE comes close. Especially with regards to speed and CMake integration
20:03
@sehe What about clang_complete? I was turned off by YCM after I saw it required macvim
using clang complete and it seems fairly smooth which is nice :)
ok so I thought buzzfeed is terrible but this is genuinely funny
20:36
@Mysticial It also comes with a good set of Macros
Recent version of word even have version control integrated! You can also lock your code with passwords so nobody can even read it while you're not there.
@LoïcFaure-Lacroix If you code C++ in Microsoft Word, it also underlines all your undefined behavior.
20:52
@LucDanton Heya, was wondering if you were free to talk about this post: stackoverflow.com/questions/10526950/… , in which you answered
Don't want to spam the chat so if you're free we can hop over to C++ Q&A, and if you're busy it's totally ok
21:09
Heya, it's me, Imoen
Anyone ever wanted to build a washing machine?
I'm amazed how expensive are those things.
@LoïcFaure-Lacroix My washing machine is the only component where I'd be fucked if it died.
I can live without a fridge or a microwave. Dryer is optional since I can just hang them around. Bathroom and shower I have backups so I'm okay with those.
But if the washer dies, I'm fucked.
wait I meant dishwasher
Oh. I can live without a dishwasher by using disposables. Not great, but doable short-term.
That said, I lived a couple of years in Russia washing my clothes by hand
it's not as bad as it seems
21:30
@OneRaynyDay I tried clang-complete long ago and it didn't catch my attention (that was when I didn't use any completion, like you). YCM however doesn't "require" macvim. It works fine in terminal vim under tmux or screen. Combine with TPope's Dispatch (based on Tbone) for eternal bliss.
Aug 23 at 15:23, by sehe
2
Q: Portable way to read a file in C++ and handle possible errors

Oleg AndriyanovI want to do a simple thing: read a first line from a file, and do a proper error reporting in case there is no such file, no permission to read the file and so on. I considered the following options: std::ifstream. Unfortunately, there is no portable way to report system errors. Some other an...

I bountied that one now
> This question has not received enough attention.

There must be existing libraries/solutions that do this well. Right? Right?! Let's hear and share some more.
@LoïcFaure-Lacroix did that for 3 months. It's pretty annoying.
.NET? ;p
I'd rather have have no washing machine than having to wash myself for a month each year with icy cold water.
22:14
The 80s action flicks are so cheesy and awesome.
Read Heat on TV right now. :)
@sehe Just to confirm, you're using OS X?
Nope. Though I did a short while. Just don't remember whether I had YCM up and running
(Don't think so actually, the OSX project was more Java than C++)
Ah I see, in the docs it says macvim is required for OS X, so that's why I said I needed macvim
as far as I remember it works with vim from homebrew
@LoïcFaure-Lacroix :oo really? I'll give it a try
22:24
That said, there's a weird thing about YCM, it seems to run a server on your machine and once in a while, while my network was down vim couldn't connect to the YCM server and it would create some problems
As far as I remember it was actually trying to connect to a remote server which is kind of weird
What - an autocomplete that connects to a central server for service? What this must be a gigantic project
Clarification: more gigantic than I thought
And I originally thought it was gigantic already
I don't believe it connects remotely for that purpose. It's supposed to work locally
I meant service in collecting analytic data from user, and etc, not actually serving
if it was actually serving the autocompletion engine would be so slow
(and it would be a very bad business model)
22:59
Re.: "not exactly what I was aiming for" - asking the right question isn't that simple. Note how I asked for "specify the goal functionally, often best expressed with concrete examples". I'm not saying it's easy. I'm saying you can help us help you. — sehe 20 secs ago
@OneRaynyDay It's possible that it used to be the only suitable version at some point
@OneRaynyDay It's just a local daemon. That's actually what gives it the responsivity.
@LoïcFaure-Lacroix It does. I've seen problems when opening HUGE files when YCM thought they needed to be analyzed (e.g. logfiles with non-descript extensions). Seems that was fixed github.com/Valloric/ycmd/issues/461
@OneRaynyDay Nah. It works offline. Obviously.
There's this other thing that promises "online hive-mind like magic completion" - what's the name again... Kite
@Mysticial Now, press Alt-F1, ^G, ? "Hello world". Peak IDE achieved.
23:21
Kite sounds good
Would help a lot for my job, the arg part. Most function definitions are really *arg, **karg most of the time until I dig deep enough to find what method was really called and can read the code directly instead
@sehe sounds promising but also potentially a ton of baloney
I bet on the latter
Still curious
true true
00:00 - 14:0014:00 - 00:00

« first day (2511 days earlier)      last day (2663 days later) »