3,238 karma · joined Nov 2, 2010 (16y ago) · 1,195 submissions
comment 15y ago · link · parent
edit: link: http://www.lineto.com/The+Fonts/Font+Categories/Text+Fonts/A...
comment 15y ago · link · parent
comment 15y ago · link · parent
comment 15y ago · link · parent
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
comment 15y ago · link · parent
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
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
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
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
comment 15y ago · link · parent
comment 15y ago · link · parent
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
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.