Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
shin_lao
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
95 ms
·
931.
▲
by
shin_lao
14y ago
It looks mainly looks like a rant on exception, but nothing forces you to use exceptions with C++. You can even allocate memory in a way that doesn't throw. We don't use exceptions for the reasons described in the article (and many others),
932.
▲
Blueseed startup ship of dreams has hundreds knocking at its door
(venturebeat.com)
1 points
by
shin_lao
14y ago
|
0 comments
933.
▲
by
shin_lao
15y ago
Exception performance is pretty obvious: you need to unwind the stack everytime you catch an exception whereas checking an error return value is one instruction long. If you try to catch your exception at every statement, you're not using R
934.
▲
by
shin_lao
15y ago
Please explain.
935.
▲
by
shin_lao
15y ago
A tad off topic but worth pointing out nevertheless: In C++ "exceptions should be exceptional", you don't need to fill you program with try/catch blocks and shouldn't. Use return values instead (better performance, flow less bug prone). Nev
936.
▲
by
shin_lao
15y ago
I'll bet you a beer or whatever you like to drink we're going to see a flurry of exploits around this service. I happen to have written a similar service a couple of years ago for a very different purpose and let me tell you one thing: this
937.
▲
by
shin_lao
15y ago
They're installing a service that runs with elevated privileges to bypass UAC. I don't think it's a good thing to install that kind of loophole on your PC.
938.
▲
by
shin_lao
15y ago
There is a world of difference between reverse engineering some of the software to decipher some logs and understanding everything there is to understand to build a fac-similé. While Persians are clearly clever and educated, I submit they l
939.
▲
by
shin_lao
15y ago
I think you may plateau quickly with 100 words per day and I think that plateau is well below 20,000 words. Memorizing a foreign language word is not just translation, it's about understanding context and usage for that word. When you tread
940.
▲
by
shin_lao
15y ago
I sincerely question this story. C1 requires around 20,000 words of vocabulary. That's more than 100 words per day to get there in 5 months. I submit that's impossible, even if you do that all day. On a more intuitive level, I'm C2 in Eng
941.
▲
Want to get acquired by Google? Google VP explains how to go big.
(venturebeat.com)
5 points
by
shin_lao
15y ago
|
0 comments
942.
▲
Phone data shows romance 'driven by women'
(bbc.co.uk)
2 points
by
shin_lao
15y ago
|
0 comments
943.
▲
Nokia’s Lumia line ‘not good enough’ to battle iOS and Android, say carriers
(venturebeat.com)
32 points
by
shin_lao
15y ago
|
50 comments
944.
▲
by
shin_lao
15y ago
It's curious the OP doesn't mention introsort ( http://en.wikipedia.org/wiki/Introsort ). AFAIK most standard libraries use introsort instead of quicksort. Introsort uses heapsort when the recursion is too deep and insertsort when the entry
945.
▲
by
shin_lao
15y ago
Sorry but saying "And I'll tell you how to make the best tomato sauce in the next episode" is not what I expect to read here.
946.
▲
by
shin_lao
15y ago
I think your website was simply too busy, got a socket error.
947.
▲
by
shin_lao
15y ago
A datapoint that may give an explaination for your low conversion rate: - The page does not say what the product does, I don't try demos just for the sake of trying demos; - Nevertheless, I thought I should check out the demo before giving
948.
▲
by
shin_lao
15y ago
You cannot self deadlock with a a single recursive mutex.
949.
▲
by
shin_lao
15y ago
Recursive mutexes are useful when you need to implement multithreading a posteriori and cannot evaluate all the locking paths.
950.
▲
by
shin_lao
15y ago
C/C++ is used to build the fundation of pretty much everything you use every day. I don't think a fast moving standard would be a good thing.
951.
▲
by
shin_lao
15y ago
>Security product written in C++, leveraging 2 huge libraries (Google protocolbuffers, Boost) Protocol buffers is heavily scrutinized and as for Boost, the way it's designed means that it only pulls in what you use. The project seem to
952.
▲
by
shin_lao
15y ago
It really depends on what you're used to. If you like Visual Studio and are productive with it, you'll find Linux cumbersome. Visual Studio is very powerful and dependable. What I don't understand is the comment about the "Microsoft" tax as
953.
▲
by
shin_lao
15y ago
It is true it adds an external dependency.
954.
▲
by
shin_lao
15y ago
Spirit is extremely concise. In what way do you think it's overkill?
955.
▲
by
shin_lao
15y ago
Someone should try a Boost.Spirit implementation!
956.
▲
IPhone crybabies need to shut up about Instagram on Android
(venturebeat.com)
6 points
by
shin_lao
15y ago
|
8 comments
957.
▲
by
shin_lao
15y ago
The arrogance and desperation... If you can solve a problem in 72 hours, it's not a very difficult problem. Building a company takes years.
958.
▲
by
shin_lao
15y ago
One of the best books you can find on the topic has been written by Stephen King and is called "On Writing". The first part is a small auto-biography as he states that "to understand writing you must understand what happens in the life of a
959.
▲
by
shin_lao
15y ago
The war on piracy is just the result of intense lobbying and lack of understanding at the top. It's a transitional state until we adjust copyrights for the digital age. I'm not sure we have the same level of lobbying for the war on drugs. I
960.
▲
by
shin_lao
15y ago
Every language has got at least one benchmark saying "We're faster than C".
More ›