@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.
@JohannesSchaub-litb I think @Mysticial, @Mikhail, @Morwenn have experience with actual instruction profiling. There was another guy speaking about VTune too
@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]
@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.
@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
@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).
This 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
@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 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.
@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.
I 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...
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
@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
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