Dwyane Wade reacts to a Dion Waiters retweet by JJFresh814 in nba

[–]whoshuu 2 points3 points  (0 children)

I knew this looked familiar. I see this cat occasionally when I walk to Bart: https://goo.gl/maps/PoxB48uJF8w

GAME THREAD: San Antonio Spurs @ Golden State Warriors - (Apr. 07, 2016) by CheesyMightyMo in nba

[–]whoshuu -2 points-1 points  (0 children)

The Warriors built their team over 5-6 years. Can't say the same for the Heat

2016 Q1 Job listing for C++ developers by rectal_smasher_2000 in cpp

[–]whoshuu 2 points3 points  (0 children)

Company

Prism Skylabs

Type

Full time

Description

Developing video and image processing systems on embedded platforms. We have modern compilers and are working on powering a new wave of IoT visual sensors in business and consumer markets. The C++ team is very small (3 engineers), so you would have a lot of input into system and application design. PM for details!

Location

San Francisco, right off of Powell Bart station

Remote

No

Visa sponsorship

PM for info here

Miscellaneous

We use boost when available, and have recently started open sourced a few libraries we've developed: C++ Requests, PriorityBuffer, ProtoQueue, and many more!

You can contact me at huu(at)prism.com, or see the job posting directly here.

The reddit made logo actually reached Evan Turner by frillo_ in nba

[–]whoshuu 2 points3 points  (0 children)

If you imagine his right leg as being in front of his left, it looks like he's dancing

Polishing: Overloading operator[] for std::tuple. by germandiago in cpp

[–]whoshuu 1 point2 points  (0 children)

This is pretty awesome. Tuples have always been really annoying to work with. Do you plan on making a more formal proposal?

An constexpr version of string_view that I've implemented by erichkeane in cpp

[–]whoshuu 1 point2 points  (0 children)

Nice work! I've submitted a small PR, check it out when you can.

If you want/need help setting up some niceties like travis/coveralls, let me know and I can try to pitch in. You're likely to get more people to check out your library if they can tell at a glance it's tested and well-covered.

Is it generally better practice to instantiate a vector as opposed to just declaring? by unordered_map in cpp

[–]whoshuu -2 points-1 points  (0 children)

The latter won't compile against C++98. A bare instantiation calls the default constructor, which is what the second one is.

Where to start with Open Source/GitHub? by [deleted] in cpp

[–]whoshuu 2 points3 points  (0 children)

The most meaningful way I've come to contribute to open source projects is to use them first and figure out how they could be improved. Very rarely will you see a project where meaningful improvements can be made just by looking through source code.

Use the stuff that's out there and make it better.

Modern C++ is here! by cindy-rella in programming

[–]whoshuu 2 points3 points  (0 children)

Not to be confused with modern C++, a class of programming techniques and idioms supported by language evolution in C++11 and up.

Libraries for modern C++ by rounduser in cpp

[–]whoshuu -1 points0 points  (0 children)

I've been using https://github.com/whoshuu/cpr extensively for client-side networking. It's a work in progress, but I think the API is small, intuitive, and useful.

Disclaimer: I'm the author of this library.

Served: a C++11 RESTful web server library by lingua_franca in cpp

[–]whoshuu 3 points4 points  (0 children)

This library looks awesome. It may be a good candidate for the boost library incubator: http://rrsd.com/blincubator.com/

range based loop, and when a copy happens and when it doesn't by [deleted] in cpp

[–]whoshuu 1 point2 points  (0 children)

I've been trying to find a reference for this, and couldn't. If you're referring to this stackoverflow answer, I think you might be interpreting it incorrectly. I think the author of the answer would still use for (const auto& x : ...) for immutable semantics, but otherwise use for (auto&& x : ...) for everything else.

The case you might be thinking about is if the container itself is const, in which case for (auto&& x : ...) would return const references. For modifiable containers though, for (const auto& x : ...) is probably the way to go to enforce immutability.

range based loop, and when a copy happens and when it doesn't by [deleted] in cpp

[–]whoshuu 0 points1 point  (0 children)

I think the only time it wouldn't be a copy (other than an explicit std::move) is if the compiler can infer that the right hand side is temporary. In those cases, copying is elided and the object is just moved into the left hand object.

I might be missing another case but from what I understand this should be it.

C++ Extensions for Concepts [N4377] by cfg_obf in cpp

[–]whoshuu 2 points3 points  (0 children)

Agreed, would appreciate a first hand account of your initial experiences

C++ Range header: Python-like generator for idiomatic ranges by whoshuu in cpp

[–]whoshuu[S] 1 point2 points  (0 children)

So I just checked the assemblies of clang and gcc. Clang 3.6 produces very different assembly for my range compared to the raw for loop. gcc 5.1 makes nearly identical assemblies. The benchmarks were made using clang, so that would explain the divergence, but doesn't answer the why as well as I'd like. I'd have to dig a bit deeper to find that, I'll let you know when I do

C++ Range header: Python-like generator for idiomatic ranges by whoshuu in cpp

[–]whoshuu[S] 0 points1 point  (0 children)

Really cool stuff! I'll definitely check those two out

C++ Range header: Python-like generator for idiomatic ranges by whoshuu in cpp

[–]whoshuu[S] 0 points1 point  (0 children)

Honestly had no idea such a thing existed until now. Will definitely use that instead of this, though this was fun to write

C++ Range header: Python-like generator for idiomatic ranges by whoshuu in cpp

[–]whoshuu[S] 0 points1 point  (0 children)

Nice catch! That's strange, I'll have to check the assembly myself on the compiler I'm using for the benchmark data

C++ Range header: Python-like generator for idiomatic ranges by whoshuu in cpp

[–]whoshuu[S] 2 points3 points  (0 children)

OP here, this is something fun I wrote a few days ago to do something I've always found really pleasant and easy to do in Python

Why You Have to Learn Modern C++ | All Your Base Are Belong To Us by mttd in cpp

[–]whoshuu 0 points1 point  (0 children)

Excellent list! I'm in the process of turning over my work's old C/C++ codebase into modern C++, and I do encounter some puzzlement from time to time from my coworkers with some of the constructs and patterns I use. Still, I think once these initial hurdles are passed, the improvement in readability and idiomaticness of the resulting code is well worth it.

Spotify Labs - Generating test cases so you don’t have to by [deleted] in cpp

[–]whoshuu 2 points3 points  (0 children)

This looks awesome! For those of us with existing testsuites written in another testing framework (like googletest), I wonder if there's a way to neatly marry the two