HNHacker News
TopNewBestAskShowJobs

demallien

2,742 karma · joined February 18, 2008

d13b2ac1c6b22c9a1557ee5a5dd4f41855f65133
submissionscomments
demallien··on Fasting triggers stem cell regeneration of damaged, old immune system
We didn't do that; instead, we let threw out all of that knowledge, the good and the bad, and we have 100 million sick people in the US and over a billion around the world.

I'm not sure what you expected scientists to do. None of the "traditional wisdom" was confirmed as true, it all had to be tested and was considered suspect until such testing had taken place.

On top of that, traditional diets had shortcomings. It's hard to produce enough calories for today's population to survive, without a larger proportion of those calories coming from grains.

Faced with this change in the food landscape, and with faith in traditional wisdoms rightly shaken, nutritionists have been basing their advice on reasoning from first principles, and preliminary results. They got it wrong badly. But at least we were on the path to a better understanding of nutrition. It's been too slow, and nutritionists were not skeptical enough of preliminary results, but lucky us, these are problems science knows how to fix.

demallien··on OS X Yosemite
Yes, linux geeks can school Apple on systems engineering when they can deliver laptops with a better battery life than Macs get. As for this latest release, what, adding a new systems programming language and a whole new graphics API isn't enough?

At least my Mac recognizes and uses a second monitor when I plug it in, unlike the bloody Fedora 19 box that I use at work. And don't get me started on that second graphics card that the system can't figure out how to use! And the wifi Just Works(tm), unlike the Ubuntu laptop that I had before that.

demallien··on OS X Yosemite
whaaaaat? My 2012 MacBook Air with 4 gigs of RAM and SSD is lightening fast. The thing that kills performance these days on Macs is if you still have a spinning platter of rust as your storage. Don't do that. (Aside: this is not surprising - Apple has spent a lot of effort optimizing the core OS for iOS, which has always been flash-only storage)
demallien··on Shell Scripting with Objective-C
Are you sure about that? I'm pretty sure that it's NSImage that holds the actual pixmap, which definitely makes it part of the GUI stack.
demallien··on Who or What Broke My Kids?
Like 3pt141597, I remember everything about high school trig. Not only do I remember it, but as it turned out, 10 years after leaving school, I actually started having to use it regularly (graphics programming). I also remember high school level calculus. Sadly I can't say the same for university-level maths, which I regularly have to break out the text books for when I need them (stats and probability, complex numbers being my two regular bugbears).

When I think about it, I struggle to find a single useless class from high school. If anything, I regret mostly that I didn't make enough of the opportunities that my school provided me - I really regret not having put in the effort in art classes for example.

demallien··on Emulating a 6502 with cycle-perfect timing
Just reposting TempleOS's post (which, being hell-banned, many won't see). Plus, it's a little less ranty than usual :) Without further ado:

----------

To me abstraction above the hardware is like condoms. Some people say "Use three condoms, its better". I don't want a literal C64 -- just the complete open simple access... but 64-bit and 3Ghz and multicored. I don't want it to run on a 386, just x86_64.

demallien··on From Poverty to Prosperity: A conversation with Bill Gates [pdf]
True enough, but there was an accord signed with the unions substantially limiting the use of email after hours, which I imagine the OP wax referring to.
demallien··on Colossal peat bog discovered in Congo
And FYI a peaty whiskey is a whiskey tourbé :)
demallien··on DEFCON Capture the Flag Qualification Challenge #1
Http://crackmes.de They have lots of challenges, with difficulty levels going from 1-10, and each challenge has an annotated solution explaining how to crack the program.
demallien··on Is Piketty All Wrong?
Not really. If you assume a relatively even distribution of the rate at which people sell homes. For example, let's take those 100 people and assume that on average they sell their home every ten years. In any given year, 10 of those people will sell their homes, realising their capital gains. Now, because you have 100 people, the average increase will be divided by 10 (100/10). Which is exactly what you would get if you amortise those capital gains over the ten years. Large numbers of people smooths out lumpiness of individual income.
demallien··on Don’t Believe Anyone Who Tells You Learning To Code Is Easy
You know what? I don't think it is easier to learn to program now. Many years ago when I was a child and I got my first computer, it booted straight into a BASIC interpreter. The computer also came with a manual that taught you about if statements, for/next loops, gotos and gosubs. It showed you examples of how to draw to the screen and get inputs.

Compare that to today. There was nothing to install. It was all already there. There wasn't even an environment to launch, you booted into the REPL. You didn't have to hunt for tutorials on the internet, everything you needed to get started was in the manual that came with the computer. And everything in that manual was appropriate to the computer. You didn't have to worry about having the wrong version of dev environment, making the tutorial incorrect.

That's not to say that programming hasn't improved in other respects. I could spend years trying to build a basic TCP/IP stack on that old 8bit computer, which already comes pre-installed on a modern computer. I can grab a free copy of just about any language I've heard of. Huge numbers of libraries freely available allow me to stand on the shoulders of giants. But, nothing available today approaches the simplicity of that old 8 bit system for learning to program...

demallien··on OS X 10.9.3 Is Toxic
Apple have always had flaky products when it's something new. The first PPC macs, the first Intel Macs, OS X 1.0, and so on. Those of us that have been in the apple universe for a long time remember "don't use rev 1 of a product" was a mantra amongst Apple users since way back.

So, problems with the iPad Air are not particularly surprising. The shift to a 64 bit OS is a difficult thing to get perfect on a first go.

That said, they really should have nailed the discrete GPU kernel panics on rMBPs by now. That's been going in fir a couple of revs of the hardware and is unusual.

demallien··on Computers are fast
"Hardware has gotten orders of magnitude faster, yet the experience, as a user, hasn't changed nearly that much."

I see what you mean, but I feel that this misses out an important fact - a lot of those speed increases are only available if you modify your code to use an optimized path. Memory I/O is a classic example - it has sped up a lot but only if you make sure that you aren't generating cache misses on every memory access. Branch-prediction-friendly code is another good example that can make a huge difference to the performance of a system.

That means that a lot of the performance gains that we have achieved (not all, certainly, but a substantial chunk) are not necessarily made available to naively-written code. It is not terribly surprising then that we sometimes struggle to achieve the speed-ups the hardware has made available to us.

This problem is only compounded by the fact that performance is one of the leakiest things going when we are talking about abstraction layers. It makes things extremely difficult to think about because you need to know intimate detail of your entire software stack, which these days is huge, if you wish to effectively optimize your code.

demallien··on My favorite debugging tool
Or C-x a after launching GDB. Followed up by "layout regs" and "layout split" and you have a pretty decent debugger.
demallien··on A new book compiles knowledge necessary for society to recover after disaster
The most obvious Larry Niven book for this concept would have to be Footfall - http://en.m.wikipedia.org/wiki/Footfall

Humans beat up on some invading aliens that got their interstellar tech from one such reboot library, and then go and invade Earth. We win because their knowledge is deep but narrow, and we exploit that.

demallien··on Why CPUs aren't getting any faster (2010)
Take a look at Chromium as an example. Every tab gets it's own process. The GPU gets it's own process. Every plugin object gets its own process. Page loading is done in a separate process. Web workers run in a separate process. Chromium will happily eat up every core your CPU has to offer.
demallien··on Some thoughts on Go and Erlang
My understanding is that it is impossible to have a NULL reference. Can you show us some code that ends up with a NULL reference? I'd be curious to see how that can be done!
demallien··on Some thoughts on Go and Erlang
For 1), modern C++ style generally frowns upon NULL pointers, preferring to use references, which are guaranteed to be non-NULL.
demallien··on Build Tools – Make, no more
Heh. The one and only time that I ever wrote a parser in my professional career was for a build tool. In my defence, at the time I didn't know much about command line tools, and had only really programmed in IDEs. So when the new project was to be compiled on the command line, I quickly discovered that maintaining dependencies, changing targets and doing all the other things that a build system generally does by hand quickly gets old. Not knowing that autotools, cmake, ant, and about a bajillion other tools already existed to do just this, I wrote my own language, with a parser in ruby, no less :D

I have since repented. I find autotools (with occasionally a script of [ruby|python|perl] to handle something that would otherwise be tricky to do in make or m4, which is then called by the makefile) works a treat. Just don't try to do anything tricky in the auto tool files - as I said, boot anything exotic out to a separate tool.

Also, any discussion of build tools without also discussing package management is but half a discussion.

demallien··on Why isn’t New Zealand richer and more productive?
You're selling the US short. When I was there last year, I was passing through Gettysburg, and stopped to get something to eat. You might expect a town like Gettysburg to be really over tourists, but whilst I was trying to figure out how to make a parking meter work, the first random stranger walking past offered first to give me done change, because he thought that was the problem, and then once I had explained that I was a clueless Aussie who couldn't figure out how to make the damn thing work, showed me what I was doing wrong.

Or when I was in a small town in Virginia with a friend, we were in a shop, and discussing whether the museum there would be open the next day. The shop assistant overheard and offered to call them for us. Even people in DC were wonderfully polite and friendly! So much so that I'm heading back for another holiday in a couple of weeks time.

demallien··on Raising a moral child
Yes, this was my first thought too. The results need to be taken with a healthy dose of scepticism when there is no double blind and the interpretation of the result is subjective.
demallien··on Excerpt from ‘Flash Boys’ about Serge Aleynikov and Goldman Sachs
This is true, but inferences from silence are much more problematic when you haven't said anything. If I tell the police a story about what I had been up to that afternoon, and then they say "right so if that's true, why was the victim's blood on your shoes?", and I choose at that point not to answer, it's suspicious, and can be played as such in court.

If, on the other hand, I have said nothing other than "I'm not speaking without discussing with my lawyer first", it's much easier for your legal counsel to paint you as just a cautious individual, rather than someone that is trying to cover up a lie.

tldr, "don't talk to the police" is also good advice in Commonwealth countries, not just the US.

demallien··on Show HN: Untrusted, a JavaScript adventure game you play by modifying its source
Object.defineProperty with 'writable' = false?
demallien··on Linus will not be merging any code from systemd developer
Because as with many things, it's a matter of perspective. For Kay, this code works as intended. So if you want him to change it, don't open a bug, discuss it on the mailing list. This does not seem like a completely unreasonable request on Kay's part. Note also that Kay does not get personal in this response. Compare and contrast with Linus then calling Kay a "fking primadonna". Now, whether you agree with Kay or not, do you really think that Linus's approach is going to get him what he wants?

Again, I have the greatest respect for Linus's achievements, but I personally feel that he uses the power those achievements have bought him to be a bully, and that gets no respect from me.

demallien··on Rare 'goat-sheep' born on Irish farm
That overlap is more than large, it's actually the most important factor in the calculation. You only need to go back about 6 generations (200 years), and there is practically no interchange between geographically separated groups, which means that I probably don't have any genes from some random asian living 1000 years ago (although we both almost certainly share genes that we inherited from some far more ancient common ancestor).
demallien··on Ask HN: I am a good developer but have a serious gaming addiction
Yup, it's a common problem. My technique is to have nothing but work stuff installed on my work laptop, and then I go and work in a cafe, away from my TV, games console, and permanent network connection (although I can still turn my phone's wifi hotspot on when I need to check something on the 'Net). It does wonders for my productivity!
demallien··on Linus will not be merging any code from systemd developer
I tend to think of Linus as being similar to Steve Jobs - brilliant but arrogant srseholes whose products I enjoy using, but I would never work with them without some very serious compensation for putting up with the shit. Which is where this becomes a problem for Linus. Jobs could hey away with it, because he could pay people enough that they accepted the bad treatment. Linus, not so much.

It's clear that that the kernel dev guys and Kay have a history. I wonder if Kay would have been more open to accepting change requests to systemd without Linus's bad behaviour. It bears thinking about...

demallien··on VIX: A New Kind of Video Editor
Ahhh, very cool! If you want to sell about 10 times more though, make it capable of exporting to iMovie...
demallien··on How many 32-bit RISC CPUs fit in an FPGA? Now vs. 1995?
If you take the travelling salesman problem, you can dramatically simplify the problem by constraining the salesman to visit all of the cities within the same state sequentially.

Similarly, you can reduce the complexity of routing calculations by applying some constraints. You will potentially lose the possibility of an optimal solution, but you will gain a far faster compilation time. As always with engineering, it's a trade-off.

demallien··on Ask HN: What online word processor do you use?
Pages on iCloud
← PreviousPage 4 of 34Next →