HNHacker News
TopNewBestAskShowJobs

ndh2

578 karma · joined January 31, 2017

submissionscomments
ndh2··on Researchers suggest that R.E.M. sleep serves to warm the brain
What is the connection between swimming and heat? How did they even arrive at this hypothesis? Why would rats need to catch up on heating their brains, days after missing REM sleep?

The facts are interesting, the conclusion doesn't make any sense at all to me.

ndh2··on Ask HN: Are you working on interesting technical problems?
90% would be fine. The problem is that it's 100%.
ndh2··on Pie Menus: A 30-Year Retrospective: Take a Look and Feel Free
Thank you for the writeup.

Possibly interesting links:

https://www.autodeskresearch.com/people/gord-kurtenbach#pate...

Display and control of menus with radial and linear portions https://patents.google.com/patent/US5926178

Methods and system of controlling menus with radial and linear portions https://patents.google.com/patent/US5689667A

Method and apparatus for producing, controlling and displaying menus https://patents.google.com/patent/US6618063B1

ndh2··on My name is Wil Wheaton. I live with chronic Depression, and I am not ashamed
I lost most of my twenties to anxiety and depression. Started therapy at 29, finished university with only a Bachelor's degree at 31.

The worst aspect was that through all this time my mind was always telling me that, yes, I have some problems, but what if I don't have anything at all? Maybe if I ever did see a doctor about it, I would be wasting their time. It wasn't even about whether or not they would take me seriously. My biggest fear was that a doctor would tell me that there's nothing wrong with me. It's really the worst of all the "what if"'s that Wil was talking about, because that was the one that kept me from getting help.

ndh2··on CPY – Code C/C++ with no redundancy
What about debugging? Looks like it's Linux-only.
ndh2··on Programming in the Debugger
I really, really, really don't understand what it is that you're saying here. Slow compile times make better programmers? And you base that on one anecdote? And somehow your example coworker would transform into a sensible programmer if you add a Sleep(30000) in the compiler? According to you, it is better if the compiler always makes everyone wait for long periods of time than letting the programmer decide when to pause and think? What??? Are you serious?

When I build C++ stuff at home I go to great lengths to shave milliseconds off my compile time, because it is just so much better to have your program built in under 2 s than in 2 minutes.

ndh2··on Ask HN: Organizing company knowledge?
Never trust a website without an About page.
ndh2··on Productivity
A better way would be to schedule regular 1-on-1 meetings.

You're not going to find out if somebody is happy by "casually being around".

ndh2··on Productivity
Did you see the last paragraph?

> Don’t neglect your family and friends for the sake of productivity—that’s a very stupid tradeoff (and very likely a net productivity loss, because you’ll be less happy). Don’t neglect doing things you love or that clear your head either.

ndh2··on Productivity
I really, really don't care. To each his own.
ndh2··on One bad night’s sleep may increase levels of Alzheimer’s protein
> of 20 volunteers over the course of two nights

Really? This is news?

ndh2··on Gradual Programming
Actually I believe abstraction is a tool with the express purpose of limiting the amount of stuff you have to keep in your head. Abstraction lets you omit the nasty details, so you can work with a representation of the problem space that better fits in your brain cache.
ndh2··on Organizational Skills Beat Algorithmic Wizardry (2015)
Does this promo piece add anything to the original blog post that it feeds on? I didn't notice anything. Why not link the blog instead? http://prog21.dadgum.com/177.html
ndh2··on Au Revoir
The question is not whether or not they can learn, but whether or not they did.
ndh2··on Ask HN: Weirdest hack that you ever saw in production?
I think in this instance it's also a matter of tools. Visual Studio/Visual Assist would have been able to find the class definition, and that's where the comment would go. For cscope it's a matter of configuration, which should be auto-generated by the build tool.

If the class is being used, then the definition has got to be somewhere, hopefully in a header. It's simply a file that is included somewhere. And it will be human readable. There is no magic.

ndh2··on Ask HN: Weirdest hack that you ever saw in production?
I disagree that you shouldn't do it. The way you do it is to add a comment

// This %thing% was generated from %template% using data from %data%.

If your language is too restrictive to add sensible tools, you should write the tools yourself. As with any code, write it in a way such that other people will be able to understand it.

There is no magic, it's just code. I wish people would stop using that word.

ndh2··on C for All
From https://plg.uwaterloo.ca/~pabuhr/:

> The ability to write generic reusable programs, called polymorphism, is fundamental to advanced software engineering. I am interested in static type-systems providing polymorphism without the use of subtyping. The problem with subtyping is that it imposes significant restrictions on reuse when static type-checking is required. This work has resulted in a new dialect of C language, called Cforall, which adds parametric polymorphism and extensive overloading to provide a more general type-system.

ndh2··on Message-Oriented Programming (2017)
"Now, in order to understand the composition, you need to trace the thread through the entire system"

I don't think that's necessarily true. It depends on the implementation. In an actor based system, the syntax might not change that much. You just sprinkle in some async() here and some yield() there. So the code still looks like it is using function calls, and uses the stack/instruction pointer for state management, but is running asynchronously.

I do very much agree with you point about coupling.

ndh2··on Message-Oriented Programming (2017)
I don't think this article is very good. The main achievement of message passing is to decouple call stacks, and the reason why you do that is that you get more control about which threads a function is called from. You turn to message passing because you want to get away from callback spaghetti. The article doesn't even mention concurrency.
ndh2··on Make your own build system
Here's Casey Muratori on saying "reinvent the wheel". This is in the context of game development, but it sure applies to build systems for C/C++.

https://youtu.be/fQeqsn7JJWA?t=140

ndh2··on Sergey Brin's Home Page from the Late 90s
Archive.org's first snapshot of google.stanford.edu: https://web.archive.org/web/19981111183552/http://google.sta...
ndh2··on Make your own build system
The biggest problem I see with the article is that you didn't say exactly what you're doing with this build system. And this gets people's imagination going.

What is the scope? Is this an open source project? How many people are working with it?

To me it looks like this is a personal project that only you are working on. I don't see any problem using this approach. I mean, I use a batch file as my build "system" for my personal projects. But for anything else it would be worth discussing the trade-offs versus using one of the available build systems.

I didn't understand how this works: scanCmd = 'scanincludes-%s' %(oPath). What is this scanincludes thing?

ndh2··on Make your own build system
Yeah, about that last sentence. Are you actually a contributor to an existing build system? CMake? Make? Bazel? Anything?
ndh2··on Ask HN: How do you keep a good posture when you spend most of your type sitting?
We'll probably see an evolution from sitting desk to standing desk to walking desk to mechanical bull desk.
ndh2··on Bazel Fawlty
Well, one section is suspiciously titled Back to the Future.
ndh2··on Announcing Rust 1.24.1
Good read. Too bad none of that made it into the documentation.
ndh2··on Announcing Rust 1.24.1
Windows Update generally still works on 7.

Maybe you ran into this issue? https://www.myce.com/news/windows-7-dont-receive-security-up...

ndh2··on Ask HN: What do you think of performance appraisal at your workplace?
It's an interesting perspective, but seems a bit out of place here. I would think it would have been more fitting as a reply to the thread from yesterday (which is still on page 2 ATM).
ndh2··on Ask HN: What do you think of performance appraisal at your workplace?
There is none. Performance doesn't matter at all. It's weird.
ndh2··on How Much Does a Compiler Cost?
I watched a couple videos from this and was good to go. https://lagunita.stanford.edu/courses/Engineering/Compilers/...

My strategy was to start with a very small grammar and grow it.

← PreviousPage 2 of 7Next →