Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
alpatters
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
alpatters
9y ago
I think the comparison of bitcoin with gold is a better one than stocks. The value of gold today is not tied to the underlying precious metal any more. Gold is kept in vaults likely never to be looked at or touched. It might as well be a di
2.
▲
by
alpatters
9y ago
I don't think the history of gold changes the argument here. As a store of capital gold has also been stolen by corrupt governments in history.
3.
▲
by
alpatters
11y ago
I don't know Scanner Darkly and I don't have the app. But I have done a lot of my own images using the same algorithm as that used in the app. And, yes, it can definitely render photos is anime or cartoon like styles.
4.
▲
by
alpatters
11y ago
On the waiting time point. I was putting together a similar service to yours (though you got there first). We managed to get our processing time down to under 50s for a 300x300 image. How do you cope with such long times? Or, how long is th
5.
▲
by
alpatters
12y ago
> "Practically, switching away from as many Google services as possible will help alleviate the most obvious issues like most of your personal data being in the hands of one company and the related issue of ads following you around
6.
▲
by
alpatters
12y ago
I'm surprised they do not reference GraphLab from Carnegie Mellon, http://graphlab.org/projects/index.html It's built for the same purpose and has been around for a number of years. The core is in C++ with p
7.
▲
by
alpatters
13y ago
Well, the kernel does device, process and memory management and that is a likely culprit when looking into power usage.
8.
▲
by
alpatters
13y ago
You could use boost::range to make it even more succinct
9.
▲
by
alpatters
13y ago
So in no way did they copy Google's which is implemented in C++ ? Though I agree with OP - these projects and Java are here to stay for the foreseeable future.
10.
▲
by
alpatters
13y ago
> Stack allocation is irrelevant for most of what the application is doing. Well I disagree with that. In C++ it is quite common for most objects to be allocated on the stack. I have never heard stack allocation being described as irrele
11.
▲
by
alpatters
13y ago
"None of these libraries (or many others) have competing implementations written in other languages." Except the ones they were written to copy. Each example you give is an open-sourced clone of an pre-existing version implemented
12.
▲
by
alpatters
13y ago
C++ gives you the option to just put your objects on the stack and have them clean themselves up upon destruction. Enforcing the placement of small objects on the heap, even a garbage collected heap, seems such a waste of time and efficienc
13.
▲
by
alpatters
13y ago
You're wrong. http://en.wikipedia.org/wiki/Profile-guided_optimization The method for C/C++ is just different to JIT. Compile program, collect profile information, optimize program guided by profile informati
14.
▲
by
alpatters
14y ago
You're a professional programmer, you use a keyboard all day, so you touch type right? hjkl sits right on the home row, where your fingers sit. It is just a natural place to put movement keys. Nothing to do with the number of keys on the au
15.
▲
by
alpatters
14y ago
Well you have missed the point that they chose C over Pascal to implement Unix. I don't think that was by accident.
16.
▲
by
alpatters
14y ago
You could always let the compiler work it out for you. template< typename Func > int escape(std::complex<double> c, int iter_max, Func& func)
17.
▲
by
alpatters
14y ago
> With C you can easily get better (that is, safer) than C++ native MM just building a reference counting system on top of your C "objects". Why build your own when C++ has std::shared_ptr.
18.
▲
by
alpatters
14y ago
Avoiding its complexity does not mean avoiding it. E.g. you could avoid template metaprogramming due to its complexity whilst keeping to simpler areas of the language. C++ is a large, multi-paradigm language. It gives you choices and one is
19.
▲
by
alpatters
14y ago
I often convert python code to C++ and you'd be surprised how often the difference in loc is not that much. Certainly no hassle to do so. Not that I'm suggesting that one always should. Several boost libraries are inspired by python and C++
20.
▲
by
alpatters
14y ago
Looking at the source, it looks like this lib uses boost:asio on non windows platforms.
21.
▲
by
alpatters
14y ago
I think the use of then() makes sense as this is an async call and not serial. So the function passed to then() is a completion handler, i.e. it is run when the call is complete. So do this call, and then when its finsihed do this. I like i
22.
▲
by
alpatters
14y ago
I do wonder sometimes if google's own site would pass its site quality guidelines. Like duplicated content; the same content appearing on multiple pages, all pages should be linked from somewhere on the site or a site map, substantial origi
23.
▲
by
alpatters
14y ago
In the spirit of the article, boost range also has a reverse filter, so the following would return a reversed range similar to python's generator expression using namespace boost::adaptors; s | reversed or reverse(s)
24.
▲
by
alpatters
14y ago
The extra syntax is not there for nothing. It's adding type information. Thus allowing error checking or dispatching by type or optimisations at compile time. It is a cost in terms of syntax and readability but it's not for nothing. So for
25.
▲
by
alpatters
14y ago
you might not like the syntax of this particular boost lib, but it bears no relation to macro abuse in C. For one it is strongly typed. Of course it is unreadable if you don't know C++ or boost range. But it is not more complex than a pytho
26.
▲
by
alpatters
14y ago
I do both python and C++ in my job. They're both great at what they do IMO. Often, they are a good match for each other; several of the boost libs have been designed similarly to python equivalent. boost python also makes writing python ext
27.
▲
by
alpatters
14y ago
presumably the result of the quake would have been the same if the scientists didn't give a reassuring message? And now they are in jail, if another quake strikes, the same will happen again. Surely it is better that scientists are at least
28.
▲
by
alpatters
14y ago
Well, getting 1.7x speedup on a dual core box isn't so bad and makes some sense. Showing at least the context switching isn't crippling, if you can cope with the memory overhead. Anthony William's book "C++ Concurrency in Action" gave me th
29.
▲
by
alpatters
14y ago
I think the best benchmark for this is to look at the industries where performance matters and see what they are using. Take high-frequency trading where lowest latency makes the most money. I don't see many using the JVM. AFAIK it's all as
30.
▲
by
alpatters
14y ago
If Monsanto want their patent to cover future generations of seeds derived from a Monsanto seed. Would they also claim liability if one of those generations had a mutation that caused the plant to be toxic and kill people?
More ›