Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ondrasej
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
ondrasej
5y ago
I can't speak for the parent, but I've been using RAII and smart pointers in the 00s and it provided a lot of the benefits that got standardised with C++11.
2.
▲
by
ondrasej
7y ago
There's genrule() which basically runs a shell script. With that, you can build anything for which you can write a command-line. And you can go as far as invoke a binary that is built by another bazel rule. You can also define your own
3.
▲
by
ondrasej
7y ago
The same seat gets used on most days, by many different passengers (and many of them are used by multiple passengers per day). By a conservative estimate, profit per seat per year would be large hundreds to small thousands of euros.
4.
▲
by
ondrasej
8y ago
Online content is not exactly the same as physical goods, but it's not that far either: - it costs very real money to produce, and - it costs very real money to be served and to remain online. These costs may be covered by ads, by subs
5.
▲
by
ondrasej
11y ago
First, be very careful about burning out. It can happen faster than you think if you have to force yourself to do the work every day. Second, maybe you should find a different job - or at least change something about your current job. Remot
6.
▲
by
ondrasej
12y ago
The price for Hong Kong looks weird, NomadCost per month in HK is roughly 350 EUR lower than the monthly rental costs. This is probably due to the very low listed price of the hostel and budget hotel rooms.
7.
▲
by
ondrasej
12y ago
This is definitely not a short-term solution, and it might not be practical even in mid-term, but wireless charging sounds like a perfect solution for this kind of environments. The hospital rooms could have special "charging" spo
8.
▲
by
ondrasej
14y ago
I don't know what they do if you ask for a battery replacement or when something's wrong with the SSD, but changing a display on my 2011 MacBook Air was a matter of 20 minutes. I'd be very surprised if you couldn't at least replace the mohe
9.
▲
by
ondrasej
14y ago
These two facts are not necessarily in contradiction. At this moment in the current Humble bundle, the average price paid by Linux and Mac users is significantly higher than the average price paid by Windows users, but the total income from
10.
▲
by
ondrasej
14y ago
It just reminded me of http://www.flickr.com/photos/aebax/893691711/ The original site seems to be down at the moment, but fortunately, someone put it on Flickr.
11.
▲
by
ondrasej
14y ago
I wouldn't argue against using a formatting string in general, but the printf style order-based formatting strings are really bad once you need to localize your app and have to support languages with different word order. In this sense, .NE
12.
▲
by
ondrasej
14y ago
As for commenting - code that is meant to be a library should have a clearly documented API. Perhaps not from the beginning, but as the API gets stable, the JavaDoc comments for generated documentation should be there. Though at the current
13.
▲
by
ondrasej
15y ago
An appstore (sort of) for web apps is already there: http://www.apple.com/webapps/
14.
▲
by
ondrasej
15y ago
Definitely Programming in Scala - http://www.artima.com/shop/programming_in_scala . You might find some parts of the book a little boring if you already have experience with functional programming, but it is one of the best books about pro
15.
▲
by
ondrasej
15y ago
I guess the point of the article is that when you're doing an invalid cast, you in fact want to get an InvalidCastException, not NullPointerException.
16.
▲
by
ondrasej
15y ago
Actually, geting reference counting right and mostly bug-free is much easier, if you use C++ and do the counting via objects on stack (RAII).
17.
▲
by
ondrasej
15y ago
The code in the post is based on depth-first search, which basically is a trial and error approach. A well implemented and effective one thanks to constraint propagation, but it is still trial and error. And there are cases, in which backtr
18.
▲
by
ondrasej
15y ago
That's why I called it pathologic... ;) Edit: using the symmetries described in the same Wikipedia article, the size of the database could be reduced significantly to roughly 5*10^9, which is quite manageable.
19.
▲
by
ondrasej
15y ago
If you do the constraint propagation right, the number of trials and errors will be very small (and it will be only one trial and no errors for the easy ones). I'd be very interested to see what an algorithm that solves any valid sudoku p
20.
▲
by
ondrasej
16y ago
I've voted for work from home, as it is what I do most of the time. But I also do have a place at a shared office and I prefer to spend at least a day each week there, as it's sometimes easier to concentrate there and I do really hate sitti
21.
▲
by
ondrasej
16y ago
I'm glad to see Hipmunk have an app, this could make searching for flights even more fun. I was interested if they had any problems with selling tickets via an iPhone app using the browser for paymentsm not the in app purchase API. But obvi
22.
▲
by
ondrasej
16y ago
Using Facebook/Twitter/OpenID accounts for login would probably remove this issue completely. Though, I'm not sure if you can get e-mail from these, and making the users enter their e-mail after login would degrade the user experience.
23.
▲
by
ondrasej
16y ago
However, the current version control systems usually have compatibility layers and/or import tools. We have a project that started wih CVS, then moved to SVN and now runs on Hg, and we have the complete commit log (including commits from th
24.
▲
by
ondrasej
16y ago
There are some well known public data sets used for this purpose, such as those in the UCI Machine Learning repository. Unfortunately, not everyone is using them. And even if they do, it is often impossible to reproduce the results as pre-p