HNHacker News
TopNewBestAskShowJobs

merijnv

1,071 karma · joined January 10, 2010

merijn@inconsistent.nl
submissionscomments
merijnv··on The Nature of Lisp
> why don't languages provide the ability to do this kind of thing automagically, I mean marking some code to be executed at compile time and act as a code generation feature?

There's certainly already languages that do this type of thing. Haskell has Template Haskell which lets you execute Haskell code at compile time to generate code. I'm pretty sure multiple ML's also have similar meta-programming features.

It works rather nice, actually.

merijnv··on Haskell in Production: The good, the bad, and the ugly
What do you mean by bandaging the standard? And why are extensions scary?

In general none of the extensions change the behaviour of valid "standard haskell" (beyond adding a small handfull of new keywords, rendering those words illegal as variable names). So calling it "bandaging the standard" seems a bit harsh/odd.

I think extensions are a nice way of keeping the language moving forward without being slowed down by the standardisation process. The standard can then catch up in its own time.

merijnv··on Outlawed by Amazon DRM
I use my DX exclusively for reading scientific papers and stuff from Project Gutenberg, I just connect it over USB and copy PDFs/epubs/txt/html on there and everything works just fine.

So yes, it works just fine without an Amazon account. Granted I bought mine without any expectation to buy ebooks, so I can imagine this being unsatisfying for people the expect to actually purchase DRM books...

merijnv··on Introducing the Redesigned Bitbucket
Have you tried hg-git? I've been using it as my sole way of interacting (well, other than the web interface) with GitHub and I haven't run into any showstoppers.
merijnv··on Fizzbuzz, Interviews, And Overthinking
Easy, the company that is depending on me is not physically there, watching and judging me. Sure they probably are watching and judging me, but as long they're not physically present that makes all the difference to my mind...
merijnv··on Blind man shocks researchers with what he sees.
> This is definitely the first hurdle I encounter. The handful of times I have attempted this, I end up thinking about not thinking (isn't that silly?), or a song comes into my head, or I hear a noise in the distance, and attempts to clear out those thoughts lead to, well, more thinking!

Warning! Completely subjective descriptions ahead:

In my experience the best approach to clearing your mind is not to try and actively clear your mind (i.e. thinking about not thinking) it is training yourself to let your thoughts be more transient.

When I try to meditate I try to let all my thoughts slip. Of course, just like you I will hear a noise or some thought tries to worm its way in, but when this happens I try to relax (physically, there is a wonderful link between relaxing your muscles and relaxing your brain. Instead of forcing your brain to relax, trick yourself by relaxing physically) and let the thought go.

Of course, thoughts keep floating into my mind of course, but the longer I keep the meditation up the more transient they become. At some point they even stop being thoughts because they exist to short to even have any content or feeling associated with them.

I have noticed that with practice the time and difficulty of achieving this transient state go down, making it easier to just start. Early on I would need to be in a quiet spot alone, nowadays I can get the process fairly far even with people in the same room talking (if not to loud).

Anyhoo, I hope that description maybe helps you!

TL;DR - You don't stop thinking or actively try to shut down your brain, you passively let your thoughts become more transient.

merijnv··on Vim Creep
For longer and more interactive shell interactions you can use job control, if your shell supports job control (bash, zsh and pretty much every reasonable user shell in existence). Ctrl-Z will suspend vim and drop you back into your shell, you can then unsuspend vim by running "fg" (at least in bash).

Alternatively, my own work flow consists of using tmux to have a split screen terminal, Vim left, REPL right.

merijnv··on Hiring experiment: hiring experts in 20 minute chunks
A counter example: He mentions graphing data as one option. I'm pretty sure people with excellent GNU plot skills can make a GNU plot script that does what I want in 10-20 mins, and I really can't be arsed to figure it out myself everytime. Seems like the type of expertise that is currently hard to sell and might benefit from this sort of site.
merijnv··on Writing a CV in LaTeX
Curriculum Vitae. You can think of it as a long form resume if I understand the US notion of a resume correctly. They are commonly used in place of resumes here (Netherlands, and presumably larger parts of the EU).
merijnv··on Kickstarter game project raises $10k, made using a DIY Platformer tutorial.
> This "give money and something MAY happen, eventually" model is going to collapse on itself.

I'm not so sure, crowdfunding is certainly very attractive for people that have a track record of delivering but a consumer base that is to small for traditional publishing/production processes. Think Double Fine [1], Harebrained Schemes [2], Order of the Stick [3]. The people behind these projects have a clear, public track record of delivery and the projects wouldn't have happened without Kickstarter's crowdfunding.

There is, of course, also Kickstarter original/official goal which is funding art, but here the same principles apply. With the exception that maybe art backers are a little more accepting of late/disappointing rewards at the end.

The only real question is, is there a sufficient number of such proven projects to make Kickstarter sustainable? I'm not sure, but given the size of the internet and the available talent I would suspect so?

[1] - http://www.kickstarter.com/projects/66710809/double-fine-adv...

[2] - http://www.kickstarter.com/projects/1613260297/shadowrun-ret...

[3] - http://www.kickstarter.com/projects/599092525/the-order-of-t...

merijnv··on An easier way to create GitHub repositories
The problem is (probably) that you are watching github.com/yourprofile, which doesn't show the dropdown. When you go to github.com itself you will see the dropdown for selecting organisations in the top-left.
merijnv··on Poll: What is your primary operating system
Sure, for programming linux (any unix, really) is superior (personally I use OSX). But, for just desktop usage (browsing, e-mail, video, music) I much prefer Windows to linux. OSX vs Windows is a bit of a toss-up, I prefer OSX because of the unix environment for programming, but I still keep windows around for games.

Since XP the instability issues have Windows have been a thing of the past and the Windows 7 user experience has been pretty solid in my experience. Granted I don't do anything complicated under Windows (like I said, unix wins for programming), but neither do most "normal" people.

Edit: Also, note I'm not saying that Linux isn't usable, it is just that most trivial desktop tasks take me significantly more effort to get done nicely under Linux. Whether the benefit of other tasks (scripting your system/whatever) taking less effort outweighs this extra effort depends on the frequency of the different types of tasks.

merijnv··on Poll: What is your primary operating system
>> "While being free is a top concern for you and many others, for some (perhaps many) usability might be their top concern and they may be willing to sacrifice freedom for usability"

> False dichotomy.

I disagree, he's not stating that there's a correlation between free-ness and usability. Just that what he (and maybe most "normal" people?) consider usable is not currently available in free form. As a result they end up with a choice between "better usability" and "worse usability" and it just so happens that the entire former category happens to be non-free.

Now I know a lot of linux fans disagree and say that linux is just as usable as OSX/windows, but I personally disagree and the markets appear to be backing me up on this. Unless you are supposing there is some other important reason for people not to switch?

Theoretically linux and the important applications can be made just as usable, but it hasn't happened yet...

merijnv··on 3 caculators = 3 different answers to one math problem
> "6 ÷ 2x" gets parsed as "6 / (2 * x)"

Edit: I'm probably wrong about precedence for 2x, which should be stronger. Which would leave 2(1+2) still really ambiguous. I guess the true lesson here is to always parenthesize explicitly or use over/under notation,

But this is wrong! Division and multiplication have the same precedence and left-to-right application order!

Hence, "6 ÷ 2x" should be parsed as "(6 ÷ 2) * x", which I admit is a bit confusing, so you probably should write out either the parenthesis or the multiplication. But, just because the notation is confusing doesn't mean the rules no longer apply.

merijnv··on Vim Slime: A vim plugin to give you some slime. (Emacs)
I believe there's even a "screen-compatible" default config file that ships with tmux.
merijnv··on Vim Slime: A vim plugin to give you some slime. (Emacs)
vim-slime apparently also works with tmux, which has a much more understandable documentation in my experience. Might be worth taking a look?
merijnv··on Notepad++ 6.0 Released
Sure, I'm just pointing out that their existence greatly diminishes the motivation to write a good (free) text editor for OSX. There are plenty of nice GUI editors for OSX, but most (all?) seem to be paid editors.

The end result is that you either fork over the money (not entirely unreasonable for a tool you use so often) or learn to work the excellent free editors that exist.

merijnv··on Notepad++ 6.0 Released
There is not a lot of incentive to create a free Notepad++-like text editor for OSX. OSX already ships with two excellent free text editors for the commandline (Emacs & vim) and there's GUI versions of both.

Any Cocoa/OSX specific GUI editor will suffer from being less powerful, less well tested and less portable (whereas vim/emacs are available on any imaginable platform, allowing you to keep your editing muscle memory).

merijnv··on The Hoard Memory Allocator
A license is just that, a license to use the code. The copyright holder of a piece of code (or really any other copyrighted data) may license it to whomever they want, however they want. The GPL is just a blanket license giving permission to everyone provided they follow the restrictions put forth by the GPL.

If you are the sole copyright holder (because you are the only person who worked on a project, or because all others assigned their rights to you) then you are allowed to provide any additional licenses besides the GPL. A lot of open source projects (see Qt, MySQL and a bunch of others) work this way, only accepting patches from the community if the patches come with a copyright assignment. This allows them to charge for closed source use of the library while at the same time allowing the open source community to benefit.

merijnv··on The Proof Is Trivial
Isn't Monte-Carlo non-converging by definition? If the algorithm converged it'd be a Las Vegas algorithm...
merijnv··on The Unwelcome Mat - How Not to Attract Tourists
To be fair, my travel outside of the Schengen has still been a lot more pleasant than the way the US border is described...
merijnv··on Why Are Harvard Graduates In The Mailroom
I don't know about programming specifically, but I have met plenty of people aged >50-60 in CS and most of them still seem really enthusiastic about their work.
merijnv··on And then...silence
To be fair, if you can't do calculus you have no business consuming bandwidth of their quantum random bit generator. It is a limited resource (they have a fixed bandwidth at which the random data is produced), so it makes sense to limit the availability.

And if you get a problem that is too hard you can refresh a few times until you get an easy one.

merijnv··on Mercurial vs Git; it’s all in the branches
I don't see how that factors in? I've been playing with GitHub a bit and I use hg. I just use the hggit extension the github guys wrote to interact with git and GitHub.
merijnv··on New Year's Resolution: Full Disk Encryption on Every Computer You Own
The reason I trust (to the extend I trust anything on this planet) Tarsnap is that Colin Percival (the creator) is a cryptographer and the FreeBSD security officer. Leading to me have a higher confidence in him than most of the other "secure" backup services I have seen.
merijnv··on I'll tell you why movie revenue is dropping...
> Interactive beats mindless observation.

Sort of how the appearance of music and movies let to the inevitable demise of books?

I don't think your argument holds. I'm an avid gamer and I still enjoy good movies, TV shows and books. Interactive media are not suitable for all types of storytelling.

merijnv··on From zero to Go: launching on the Google homepage in 24 hours
You can distinguish between nulls which are errors and nulls that are just the actual return value. That is what err is for.

The entire reason Go has multiple return values for functions (such as paths and err in this case) is to avoid having to encode errors in the "real" function result.

Now I agree, that this is less nice as say pattern matching and real sum types, but if you know how to appreciate those just switch to a functional language!

merijnv··on The price of a messy codebase: No LaTeX on the iPad
The LaTeX executable isn't 4GB, it's 3MB or so (pdflatex/pdftex) or 16MB in the case of XeLaTeX. The 4GB consists of billions of extension/modules/packages for typesetting documents.
merijnv··on Full disk encryption is too good?
> They can't continue to compel you for more and more passphrases for more and more encrypted shadow volumes that they're not even aware actually exist

The point is, they can. If you're in some place run by a dictator they can do whatever the hell they want to you, including torturing you until you die.

merijnv··on The Art and Science of Great Code
ACM Queue is not an academic journal. It's the ACM's venue for publishing opinion pieces by both scientists and people from industry.
← PreviousPage 7 of 11Next →