Better HN
topnewbestaskshowjobs
Log inSign up

codex

3,238 karma · joined Nov 2, 2010 (16y ago) · 1,195 submissions

Submissions

comment 15y ago · link · parent

This project would be more interesting to me if it could complete C/C++ by using the autocompletion features of the Clang compiler.

comment 15y ago · link · parent

It's expensive, true: but if you value your eyes, you should get something which is not fuzzy at common point sizes, but is still readable and with pleasing shapes even when rendering with sub-pixel anti-aliasing.

I do like Inconsolata as well.

comment 15y ago · link · parent

After searching high and low for many years, I've settled on Akkurat Mono--a commercial font, well hinted, and gorgeous on Mac OS X.

edit: link: http://www.lineto.com/The+Fonts/Font+Categories/Text+Fonts/A...

comment 15y ago · link · parent

Can the shell complete text which was rendered with terminal specific escape sequences, i.e. color? Can it complete stdout from child processes (i.e. cat)?

comment 15y ago · link · parent

This visualization assumes that a condo for sale is the same quality as an apartment for rent. At least in Seattle, that is not true--there has been a rash of (ill advised) condo construction in the area which has resulted in a lot of really nice two bedroom condos for sale, with new construction and spectacular views. Two bedroom apartments on the market are nowhere near as nice--and, of course, nowhere near as expensive. That's not to say that the condos aren't overpriced, just that the distribution of supply may not be uniform in every city.

comment 15y ago · link · parent

Coworking is really gaining a head of steam. I use a coworking space in Seattle that I can't say enough good things about: http://officenomads.com. Great space, great community. Indispensable for those who could work at home, but don't want to.

comment 15y ago · link · parent

Forgive my ignorance of quantum physics, but would it be possible to use entanglement to send messages back in time? If not, why would entanglement work in only one direction (forwards)?

There is a causality argument, but I don't why it would be impossible that reading a message from the future cannot alter that future. Just because a future universe occurred once doesn't mean that it has to occur again once particles have been entangled, does it? Aside from being very strange, would such a scenario violate any known laws of physics?

There is this: http://en.wikipedia.org/wiki/No-communication_theorem, which, unfortunately, is beyond me.

comment 15y ago · link · parent

Yes, they have. I love CitizenM. A truly great hotel concept.

comment 15y ago · link · parent

Well, if there were a million bloggers posting random predictions and only one analyst, it would seem, intuitively, that the top nine would likely all be bloggers. It all depends on the number of bloggers that made predictions but aren't in your list. Is it zero? A trillion? Given that most bloggers tend to advertise their successes but not their failures, how can you get a definitive number?

comment 15y ago · link · parent

There are a lot more bloggers than professional stock analysts. Therefore, doesn’t it follow that some bloggers would be the most accurate based on random chance alone?

comment 15y ago · link · parent

You can safely do this as long as your tests are fully deterministic. If they use inputs which change over time, like a system clock, or a database, or share mutable state between threads, then you can't be sure that the code coverage does not change from run to run.

There's more to it than simply checking each line with a coverage tool--you also need to rerun tests when any implicitly referenced global data, strings, input files, command line parameters, etc. change, including calls to third party libraries for which the source is not available. Usually a build system and compiler can track some of these dependencies already, so you may be able to leverage those.

As long as you occasionally run the full test suite, though, you may not care to cover these cases for your incremental tests.

comment 15y ago · link · parent

As an aside, it would be fairly simple to decrease the time taken for a unit test suite to run by switching to incremental testing--that is, by not running tests for code that hasn't changed.

While I've never implemented something like this, I imagine it would be straightforward for compiled languages if you have a good linker:

1) compile each unit test as a statically linked executable

2) make sure that each unit test outputs to an individual file; e.g. ./test_a >> test_results_a.xml

3) jigger your build process such that the linker removes dead and unused code from each test executable. Now each test executable contains code that is directly used by the test.

4) ensure that your build process only touches a statically linked test if a dependency has actually changed. This comes for free most of the time, but you may still have the linker touching files that it doesn't have to. You can remove these cases by staging the test files using a binary comparitor tool like rsync. If you have a crappy linker, or there's something in your test executables which is always changing (like a build stamp) you might need to compare using more advanced tools (like binutils) or something like Google's Courgette.

5) Run your tests only when the test is newer than the results--that is, when test_a is newer than test_a_result.xml. This is straightforward to implement using most build systems, like make, or using a test runner script.

Bam--now a test only runs if some dependent code has changed. If your test also uses data, you should list it as a dependency in your build system--either manually or by detecting open() calls at runtime via a shim over libc, or via strace. Your test run takes much less time, and, best of all, developers get a lot less spam to read through. This is perhaps a much greater benefit than increased speed.

Dynamic languages are a much harder nut to crack, as are integration tests that are loosely bound to the code.

comment 15y ago · link · parent

I believe each person should have the opportunity to rise to the limits of their own ability for both practical and moral reasons. If this program works, I am in favor.

That said, people aren't equal. Evolution wants diversity in human offspring to ensure survival of the species in the face of an unknown future. Until science can remove this diversity, the poor will always be with us by definition. Even if we could make everyone "equal", there's no good definition of "equal", and a monoculture would very, very bad for our species over the long term.

comment 15y ago · link · parent

ZFS will also verify the checksum of each data block, which means that by default it is not a zero-copy filesystem. sendfile(), recvfile(), etc. will all require at least one read pass.

This isn't necessarily a bad thing--in my experience, ZFS has caught on-disk bit rot several times. However, it may not be worth it on an iPhone or other low-power device. Fortunately, it can be disabled.

comment 15y ago · link · parent

It is not my intent to invalidate the author's thesis. I attempted to point out that skepticism is not enough; one must also apply skepticism consistently to all sources in order to free oneself from unconscious cognitive bias. As evidence, I use the author's treatment of global warming, where the evidence supplied is far too poor to support the conclusion. It's not a matter of quantity--it's just a blog post, after all, and I would have been tolerant of zero support for his claims. But if the author does supply support, it shouldn't be so crappy to as to suggest that does not apply a skeptical viewpoint to his own sources.

comment 15y ago · link · parent

The author argues for skepticism but is quick to dismiss global warming, apparently on the basis of a single webpage. Should not one also be skeptical of the skeptics, too?

comment 15y ago · link · parent

So far, nobody has mentioned the author's C++ based race detection tool. Conceptually it is similar to Corensic's commercial product, Jinx (http://www.corensic.com) but practically Jinx supports more languages, doesn't require recompilation, and is most likely much faster.

comment 15y ago · link · parent

I'm glad someone is stepping into this opportunity, but it's plain to me that Apple had originally intended to release the iPod Nano as a watch. Look at the default clock and the square dimensions. Perhaps this developer will eventually discover the reason for Apple's trepidation--or perhaps this is a rare Apple misstep.

comment 16y ago · link · parent

We have no problem with calling people; the problem is finding people to call--that is, lead generation.

1190.

Ask HN: Gaining traction when AdWords and viral won't work?

10 points · by codex · 16y ago · 10 comments

comment 16y ago · link · parent

From the visualization, it doesn't appear that BitTorrent uses a spanning tree to reduce the bandwidth load on ISPs. When will we see true application level multicast for P2P?

comment 16y ago · link · parent

I have not yet had laser eye surgery, but I've done a lot of research. You're fortunate to be in the UK, home of one of the best laser eye surgeons in the world, Dan Reinstein. He's known as a surgeon that fixes other surgeon's screwups, but his own first-time results are quite stellar; see the bottom of this page: http://www.londonvisionclinic.com/what-makes-us-different/re.... Almost zero surgeons publish their statistics. Rainstein does because his statistics are the best. He works closely with Zeiss, the world's premier optics company, in their development of new refractive surgery products. They are truly doing some amazing things with wavefront technology these days; some patients come out with a best-corrected Snellen score of 20/12! Unfortunately, his clinic is probably also the most expensive in the world. Expect to pay seven thousand pounds, but I, for one, would not trust my eyes to anyone else.

Keep in mind that while serious complications are rare, there are some downsides to refractive surgery. LASIK, for example, frequently results in a loss of "contrast sensitivity"--a metric which isn't captured in the typical "20/20" Snellen score. Vision can be sharp but dynamic range can be lost. Furthermore, the flap interface creates a distortion in the eye's optics which, while normally hidden in during the day, becomes apparent when the iris is forced to widen at night (especially affected are those with blue eyes, which "leak" more light). Nerves are cut in the procedure, too. Also ask about other forms of error, such as cyclotorsional registration and nomograms.

The field is evolving so quickly that I have chosen to wait. Femtosecond lenticule extraction (FLEX) is on the horizon, but I'm most excited about intrastromal corneal reshaping (http://www.lasiksurgerynews.com/news/intrastromal-corneal-la...). The intrastromal proeedures promise to change the interior of the cornea via laser triangulation. No flaps or cuts of any kind are made. Incredible stuff.

comment 16y ago · link · parent

Does anyone else find ESR's writings to be haughty and a bit sophomoric? He may be brilliant, but every time I pick up this book I get turned off almost immediately.
1
3637383940