Profile

Cover photo
Tianyu Zhu
Works at Tamr
Attends University of Waterloo
Lives in Boston, MA
188 followers|101,639 views
AboutPostsPhotosYouTube+1'sReviews

Stream

Tianyu Zhu

Shared publicly  - 
1
Add a comment...

Tianyu Zhu

Compilers & Tools  - 
 
What kind of vim plugins do you use for programming with C++?
4
1
Dan Lewis's profile photoPhilip Allison's profile photoTomasz Wiszkowski's profile photoErnest Rider's profile photo
5 comments
 
go for YouCompleteMe. It will blow your mind: that's the C++ completion mechanism that bases on actual C++ compiler libraries. Can deduce auto types, work with template instances, and do virtually anything else you may need. I'm not sure how many other IDEs have addons THAT powerful.
Add a comment...

Tianyu Zhu

Support  - 
 
If my CPU supports 64-bits, is there any downside to using the 64-bit arch packages?
2
Otto von Metzger's profile photoMatej Ľach's profile photoJosh Sabboth's profile photoStephan Seemöwe's profile photo
18 comments
 
You really should use the 64bit system or you may run into the Y2K38. Which may port you back in time.  Once there you will have to wait for another 70 years to be able to boot without faking system time. Only positive side-effect is that you will have extra time to use  your time-limited-shareware.
Add a comment...

Tianyu Zhu

Shared publicly  - 
 
You must become like the tiger and the ant, young grasshopper.

:P
1
Add a comment...

Tianyu Zhu

General  - 
 
Here's a question in the style of GOTW. Hopefully, it'll generate some nice discussions.

Suppose we have some class Widget. C++ gives us several options to  access instances of a Widget. Of all the options below, what are the pros and cons of each? When should you use one over the others?

1. Widget value;
2. Widget *raw;
3. Widget &ref;
4. Widget &&refref;
5. std::unique_ptr<Widget> unique;
6. std::shared_ptr<Widget> shared;
7. std::optional<Widget> opt; // Available in C++14
1
Fulvio Esposito's profile photoValentin Trinqué's profile photoTianyu Zhu's profile photoFlorian Philipp's profile photo
5 comments
 
Let's tackle this one context at a time. Let's start with return values

Widget: when copy is cheap (e.g. std::string, primitives)

• Widget&: when read-write access to private object attributes is to be granted, e.g. operator[]

• const Widget&: when read access to private object attributes is to be granted (e.g. getter of complex objects) and the coding style allows it (e.g. Qt does not use it as changes to the internal class structure might break ABI)

• Widget&&: only in functions ref-qualified as rvalue references when returning object attributes

• unique_pointer<Widget>: for new-allocated objects, passes ownership to caller

• shared_pointer<Widget>: like unique_pointer but shared ownership. Might be preferred over unique_pointer for ABI compatibility when sharing might be an option in the future but is not now.

• shared_pointer<const Widget>: similar to const Widget& but avoids dangling pointers and makes maintaining ABI compatibility easier

• Widget*: obsolete
Add a comment...

Tianyu Zhu

Shared publicly  - 
 
I honestly don't think this will change much. Both China and the US know that they're cyber-spying on each other, and neither parties are going to stop. Hopefully in a few years, they'll come out with some nice spy movies about this whole thing. Like James Bond with the Russians.
The reports in state media are the closest thing to an official Chinese response to the revelations, which have come at an uncomfortable time for the United States.
1
Add a comment...
In his circles
194 people
Have him in circles
188 people
Kyle Roest's profile photo
Winston Pierre's profile photo
Leonard Angka's profile photo
Michael Wulff's profile photo
Aliza Raponi's profile photo
Nicolas Zerovaz's profile photo
Micah Lee's profile photo
Evelyn Mak's profile photo
Chris Stanford's profile photo

Communities

18 communities

Tianyu Zhu

Knowledge Sharing  - 
9
1
Ivan Čukić's profile photo
Add a comment...

Tianyu Zhu

Support  - 
 
I've been looking through the Arch Beginner's Guide and I have a few questions. I have both an intel and an nvidia graphics card on my laptop.

1. Which driver should I install? The intel driver or the nvidia driver?
2. Do I need to install mesa before I install the driver?
3. Is it possible to "dynamically switch" between the two graphics cards?
2
Sam Stuewe's profile photoClaire Farron's profile photoJuan C.'s profile photoSudhir Khanger's profile photo
4 comments
 
Switching is not dynamic but manual using optirun command.
Add a comment...

Tianyu Zhu

Support  - 
 
If I want to use KDE on archlinux, is it possible to not install certain things like Akonadi and Kontact?
1
Josh Sabboth's profile photoJerome Leclanche (Adys)'s profile photoTianyu Zhu's profile photoCole Mickens's profile photo
7 comments
 
Seems like LXDE+Razor could fill the role KLyDE is trying to fill.
Add a comment...

Tianyu Zhu

Shared publicly  - 
 
I think what you want is a mathematician. Mathematicians are constantly searching for the simplest rules that govern the most complex systems. They then use their understanding to solve non-trivial problems elegantly.

And mathematicians used to be called philosophers. :)
“This, what is it in itself, and by itself, according to its proper constitution? What is the substance of it? What is the matter, or proper use? What is the form, or efficient cause? What is it for in this world, and how lon...
1
Matt Osbun's profile photo
 
Nice, +Tianyu Zhu. Especially since proofs are such an integral part of mathematics.
Add a comment...

Tianyu Zhu

General  - 
 
My latest mini-project in C++11:

C++11 introduced variadic templates as well as many new type traits.  However, one (small) missing feature is variadic type traits.

For example, in C++11, one can check if a type T is the same as a type U using: std::is_same<T, U>::value. However, how can you check if a type T is the same as a bunch of Us? Or How can you check if every T in a bunch of Ts is the same as some U in a bunch of Us?

Now you can write expressions such as:
is_same<T, forall<Us...>>::value; // Is T the same as all Us?
is_same<forall<Ts...>, exists<Us...>>::value; // Is every T in Ts the same as some U in Us?

What do you think?
1
2
Tianyu Zhu's profile photoMichele Caini's profile photoJun Wang's profile photoAliza Raponi's profile photo
5 comments
 
Write me by mail (michele dot caini at gmail). I have several questions for you... ;-)
Add a comment...

Tianyu Zhu

Shared publicly  - 
 
I've always wondered what these people look like.
1
Add a comment...
People
In his circles
194 people
Have him in circles
188 people
Kyle Roest's profile photo
Winston Pierre's profile photo
Leonard Angka's profile photo
Michael Wulff's profile photo
Aliza Raponi's profile photo
Nicolas Zerovaz's profile photo
Micah Lee's profile photo
Evelyn Mak's profile photo
Chris Stanford's profile photo
Communities
18 communities
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Boston, MA
Previously
Dorchester, MA - Kitchener, Ontario, Canada - Ottawa, Ontario, Canada - Beijing, China - Missouri, US
Links
YouTube
Contributor to
Links
Work
Occupation
Software Developer
Employment
  • Tamr
    Software Developer, 2013 - present
  • Endeca Technologies Inc.
    Software Developer, 2011 - 2011
  • Unitron Ltd
    Automated and Manual Tester, 2009 - 2010
  • Sybase
    Internal Tools Developer, 2010 - 2010
Education
  • University of Waterloo
    Combinatorics & Optimization/Computer Science, 2008 - present
  • Nepean High School
    2004 - 2008
  • Notre Dame High School
    2002 - 2004
  • St. Elizabeth's Public School
    1998 - 2002
  • W.E. Gowling Public School
    1996 - 1998
Basic Information
Gender
Male
Other names
Sky
Tianyu Zhu's +1's are the things they like, agree with, or want to recommend.
2048 Infinity
market.android.com

Simple, yet addictive puzzle game based on the famous 2048, 1024, Threes! and other similar games, with unique gameplay, graphics and featur

Maps
market.android.com

Explore new places, discover local favorites, and navigate your world with Google Maps. Available on Android phones and tablets with a simpl

910 - 10 Saratoga St # 10 Boston, MA 02128 Three levels of living
www.realtor.com

Home for Sale | $309,900 | 3 Bed , 2 Full Bath | 1,373 Sq Ft

GotW #6b Solution: Const-Correctness, Part 2
herbsutter.com

const and mutable are powerful tools for writing safer code. Use them consistently. Problem Guru Question In the following code, add or remo

Google+
market.android.com

Real-life sharing rethought for the web, wherever you are. Google+ for mobile makes sharing the right things with the right people a lot sim

The Lance | Arcade Games | Play Free Games Online at Armor Games
armorgames.com

Providing the internet with the very best in casual gaming.

Incursion | Strategy Games | Play Free Games Online at Armor Games
armorgames.com

Providing the internet with the very best in casual gaming.

Bible
market.android.com

#1 Android Bible app. The Bible from YouVersion.com - 100% FREE. Get the #1 rated and ranked Bible App for FREE. We want to make it easy for

Gmail - Chrome Web Store
chrome.google.com

Fast, searchable email with less spam.

xkcd: The General Problem
xkcd.com

Permanent link to this comic: http://xkcd.com/974/. Image URL (for hotlinking/embedding): http://imgs.xkcd.com/comics/the_general_problem.pn

Ugly Meter Pro
market.android.com

Do you know how ugly you are ? Is anyone had told you how ugly you are ? And are you eager to know that , if yes , this app can tell you the

Minimalistic Text
market.android.com

Minimalistic Text is a widget app that displays information in a minimalistic way. It can be configured to display time, date, battery and w

Protocol Buffers - Google Code
code.google.com

What Are Protocol Buffers? Protocol buffers are Google&#39;s language-neutral, platform-neutral, extensible mechanism for serializing struct

Kubuntu Updates : “Package Archives for Kubuntu” team
launchpad.net

Adding this PPA to your system. You can update your system with unsupported packages from this untrusted PPA by adding ppa:kubuntu-ppa/ppa t

Unity Linux
plus.google.com

A Small (~120MB) Brick-&amp;-Mortar Distribution based on Mandriva Linux.

xkcd: Empirical
xkcd.com

Permanent link to this comic: http://xkcd.com/943/. Image URL (for hotlinking/embedding): http://imgs.xkcd.com/comics/empirical.png. [[Two p

xkcd: Delta-P
xkcd.com

Permanent link to this comic: http://xkcd.com/969/. Image URL (for hotlinking/embedding): http://imgs.xkcd.com/comics/delta_p.png. [[A wardr

Make Bacon Cups in Muffin Pans for Incredible Appetizers or Complete Meals
lifehacker.com

Attention bacon lovers: If you don't own a muffin pan already, you'll probably want to pick one up real soon. You can turn bacon into ingeni

My first impression is that the staff isn't very professional. Walking through the door, I could see three or four servers sitting in a booth socialising. One of them was chugging red bull. Sitting down, we were served some traditional Korean side dishes. They were all pretty good except for their mayonnaise-covered veggies. Calamari: Really good batter and seasonings. Very crispy! The squid itself was a little overcooked though. For $10, it was worth it. Yakitori: Horrible. Incredibly overcooked pieces of chicken breast with a few pieces of veggies on a skewer. The sauce is good but it's too thin to stick to the meat. Comes with a small veggie salad that tasted bitter. Two for $10 is definitely not worth it. Spicy pork bulgoki: Pretty good. Kind of like am Asian twist on BBQ pulled pork. Comes with a small portion of white rice. Is it worth it for $16? Well given that extra rice costs $2.50, not really. Also, aside from some onion, there are no veggies. Salmon teriyaki: Dry and overcooked. Comes with simple steamed veggies. Not worth $18. Overall: not a good first impression. Maybe we didn't order the right dishes or maybe it's just too new, but it wasn't very impressive for the cost. Maybe it'll be better next year.
• • •
Public - 7 months ago
reviewed 7 months ago
Last time I went, they served us: - Incredibly salty French onion soup - Bok choy with our salmon. - Incredibly salty crab cake for what was supposed to be "Crab encrusted salmon" - Greasy (dripping) pasta - Overdone crepes
Food: Poor - FairDecor: Very GoodService: Good
Public - 2 years ago
reviewed 2 years ago
Last time I went there, I paid $15+tax for a meal and I left hungry. The food was too salty, too.
Public - 4 years ago
reviewed 4 years ago
Be sure to try this place out if you're into cardboard-tasting pizza.
Public - 4 years ago
reviewed 4 years ago
21 reviews
Map
Map
Map
This is a great place to go if you're looking for lunch with some co-workers. Their power-lunch menu lets you choose any appetizer plus any entrée for $15. This is great since you can pick what you like and not worry about your meal costing too little or too much. Overall good food, great atmosphere and great service!
Public - 4 years ago
reviewed 4 years ago
It was okay back when they had an all-you-can-eat lunch.
Public - 4 years ago
reviewed 4 years ago
They've gotten stingy over the years...
Public - 4 years ago
reviewed 4 years ago