HNHacker News
TopNewBestAskShowJobs

merijnv

1,071 karma · joined January 10, 2010

merijn@inconsistent.nl
submissionscomments
merijnv··on Learn Haskell Fast and Hard
Word of warning, though. While this article looks pretty decent it's skipping over lots of tiny details that are covered in LYAH, which may lead to annoying gaps in your knowledge/understanding later.
merijnv··on Vim is the worst editor, except all the other editors
]p does, though.

That pastes with adjust indentation.

merijnv··on I will not do a tech interview
I think those people are the vocal minority. In my experience most interviewers will go out of your way to get you to feel comfortable and relax during the interview process.
merijnv··on We Need To Talk, Google
Here in the UK I've noticed that accessing YouTube directly is slow, laggy and choppy. But when I accidentally visited while using a SOCKS proxy running over a VPS in the US it was snappy. After some more testing it seems that my local ISP is indeed throttling YouTube, but their inability to look inside an SSH tunnel means I can still access it at decent speed.
merijnv··on Average Income per Programming Language
Not quite the same, but box-and-whisker plots (https://en.wikipedia.org/wiki/Box_plot) are good for visualising distributions. They show the mean, minimum, maximum and the first and second quartiles.

Since they show the minimum and maximum we can judge the overall spread, the mean tells us...well...the mean and first and second quartile lets us judge how close data is clustered around the mean.

See http://gnuplot.sourceforge.net/demo/candlesticks.html for gnuplot examples.

merijnv··on The problem with vim
You would be correct, I have seriously looked into doing this type of thing and/or modifying the Vim codebase. My conclusion after a few hours is that the Vim codebase is a horrific unsalvageable mess of nested ifdef's. IMHO reimplementing a "vim engine" from scratch will be orders of magnitude easier.
merijnv··on Valgrind Finds Thousands Of Potential Issues With Mesa [Phoronix]
Valgrind supports suppression of reports, if valgrind can't track past ioctl, they should add a suppression file to their repo that supresses these warnings, making valgrind output useful again.
merijnv··on Why is FreeBSD deprecating GCC in favor of Clang/LLVM?
FreeBSD is not just a kernel, it also ships with a userland, which includes a C compiler (obviously).

In other words, FreeBSD ships with a gcc binary, which means FreeBSD is distributing gcc, which means all clauses in the GPLv3 apply to them.

Any group/company/whatever wishing to ship FreeBSD that doesn't strip out the compiler will be affected similarly.

merijnv··on Why functional programming? Why Haskell?
FWIW, there is currently a GSoC project supervised by SPJ that is working on making overloadable fields available in GHC.
merijnv··on Why the world needs Haskell
> I like things that are straight forward and obvious when I program.

So do I, which is why I program in Haskell rather than the other languages which make me worry about a ton of irrelevant things like the global state of my program and don't let me enforce invariants of my code in the type system, guaranteeing I can't violate without making the type checker complain.

merijnv··on Partial Tesla Model S recall
IIyama, twice I've had an IIyama screen die on me, once within warranty (due to the high volume of electric devices dying I installed a surge protector, since then no problems) and once outside of warranty. Both times they send a courier service to pick up the screen at my house and deliver me a replacement one at no charge.
merijnv··on Humble Indie Bundle 8
Using the Steam DRM is optional for developers. There are DRM free games on Steam, which means that even if Steam is down, they will still work. That said, I've never had problems with DRMed Steam games not working if the internet is down (you just need to make sure you check the "remember my login" thing when authenticating).
merijnv··on Haskell Platform 2013.2.0.0
GHC uses a per-version package database, so that should never be possible for different GHC versions. For example, I have the 7.4 from platform installed in /usr/bin/ghc (the normal location for Platform installs on OSX) and 7.7 installed in ~/ghc.

Switching between the two versions is as easy as making sure that ~/ghc/bin is on my path before /usr/bin/ghc. All I need to do is "export PATH=~/ghc/bin:$PATH" and things work. Packages get installed in either ~/Library/Haskell/ghc-7.4.1 or ~/Library/Haskell/ghc-7.7 depending on what's in my path when I run "cabal install".

merijnv··on Haskell Platform 2013.2.0.0
What stopped you from installing ghc-7.6 yourself? I've been using 7.4 (from Platform) and 7.6 in parallel for over half a year without problem.
merijnv··on Improving the security of your SSH private key files
I don't know about the grand parent, but personally I store that one in my brain. It's about 32 (maybe more?) characters and quite complex, but it's the only passphrase I need to use regularly so it's etched into my mind.
merijnv··on Free private Github repos for students and edu people
> you can use SVN with GitHub if you really want to.

How is that remotely relevant? Mercurial is a great DVCS with a user experience that is (in my opinion) far superior to git. SVN on the other hand is...I don't think I need to rehash this tired old DVCS vs SVN argument.

I would love hg support on github, but until that time will use bitbucket for my own projects, perhaps occasionally syncing to GitHub using hg-git.

merijnv··on John Carmack starting port of Wolf 3D in Haskell
Not just Carmack, Tim Sweeney (Epic Games) has held a presentation at POPL discussing the value of functional programming for games: http://www.cs.princeton.edu/~dpw/popl/06/Tim-POPL.ppt
merijnv··on Why Maybe Is Better Than Null
I actually started designing statically typed Python, since it seemed a fun exercise. Halfway in I realised I was effectively redesigning Haskell with slightly different syntax and stopped.
merijnv··on Mt.Gox does not mean "Mount" Gox
Well, in magic circles the game is often abbreviated as MtG, the t usually being lowercase because many people don't capitalise "the" when writing out "Magic the Gathering". (even though the WotC themselves do capitalise it on the cards). Whether this proves anything I leave up to the reader.
merijnv··on Git koans
I'm using hg even with github. The hg-git extension from the github guys works surprisingly well for me. The only downsides I've found that push/pull of very large repos tends to be a bit slow and the conversion to/from git will clobber file move histories in hg, since git doesn't track file moves.
merijnv··on ZFS on Linux 0.6.1 released: Ready for wide scale deployment
The thing with both GPL and CDDL is that they both put restrictions on how you are allowed to distribute the program/source. i.e. you can't legally distribute code that has both GPL and CDDL parts.

However, neither license puts restrictions on (end-user) use, which means that as long as you distribute the bits separately, running them together is perfectly fine. Which means (as their FAQ states) that while it can't ship as part of the kernel, there's no reason end-users wouldn't be allowed to load a separately distributed module into their kernel.

merijnv··on Try Haskell: An interactive tutorial in your browser
Bah, I just noticed I completely forgot to include the link for the lazy: http://blog.sigfpe.com/2006/08/you-could-have-invented-monad...
merijnv··on Try Haskell: An interactive tutorial in your browser
The majority of monad "tutorials" are notoriously terrible. Have you read "You Could Have Invented Monads! (And Maybe You Already Have.)"? If no, you should try it, it's a rather nice article. If yes, where did you get stuck with trying to implement your own?
merijnv··on Writing Open Source Software? Make Sure You Know Your Copyright Rights
The writer of a patch is the copyright holder of that patch, as a result you cannot legally distribute your code with the patch applied unless you have a valid license from the patch writer (Because part of the code is copyrighted by the patch writer, who has exclusive rights to distribution and reproduction).

If the patch is submitted under the BSD/GPL/MIT license or similar, you are fine. All of those explicitly grant anyone that complies with those licenses to redistribute the patch code (and thus the patched project), with the usual restriction that your license is compatible and that said copyright notice and author names must be reproduced in the resulting entity. Normally you'd maintain an AUTHORS/CONTRIBUTORS files listing everyone's name in addition to the license files. There's no real hard and fast rule for this, though. Keeping the names in the contributed files would also work, for example.

The situation is somewhat murky if the patch writer specifies no license. In this case you are technically not allowed to redistribute the patched code. If the codebase is on github and licensed under some open source license you could (try to) argue in court that that implies the patch is submitted under the same license as the original code, but whether that defense works is up to the judge.

merijnv··on School of Haskell Goes Beta
It depends on what you mean by statically typed language. If you mean other stuff like SML/Ocaml, I agree. If you include C/C++/Java/C# in your definition "statically typed", then I beg to differ. I have considerable experience in C, Java and, to a lesser extent, C++. And all in all I consider their type systems worthless for error prevention, the flexibility of python gains you more than their type systems do.

In this sense I suspect the OP would say the same about any ML-like static type system, but not many other static type systems.

merijnv··on Why Are Lego Sets Expensive?
Yes, it literally translates to toys, but it is also a combination of "speel" which literally translates to "play" and "goed" which translates to either "goods" (most likely candidate here as origin for the combination that means "toys") or "good" (as in, well).

IOW, the parent is correct that "speelgoed" pretty much means "goods to play with". I have no knowledge about the Danish leg godt story, though.

Source: Native Dutch speaker

merijnv··on Why 256 bit keys are large enough
bcrypt is a hashing algorithm for securely hashing passwords, this is something you want to be slow, yes.

However, the discussion in the link is about encryption, which you want to be fast. A popular webserver serving HTTPS to thousands of clients can't afford a 10x overhead on the speed of encryption.

merijnv··on “256 cores by 2013”?
The grandparent is right, the problem with multi-core is the L1 and L2 bottlenecking operations. The cache consistency protocols used to keep memory consistent between cores introduce more and more overhead as you introduce more cores. This is one of the reasons Intel's experimental SCC had no cache consistency. Eliminating cache consistency in multi core chips is the simplest way to eliminate the cache bottleneck.
merijnv··on “256 cores by 2013”?
I disagree, benefitting from 48 cores on the SCC would be easy, if the other (solvable) problems plaguing the SCC wouldn't get in the way. The bigger issues plaguing the SCC were:

The use of old P54C core, while understandable from hardware point (design already existed, no need to validate/test) this decision has big consequences. The core can only support a single outstanding memory operation, crippling memory performance. Doubly so because it does not support out-of-order execution, meaning the core is stalled until memory requests finish.

Furthermore, the lack of L2 cache consistency lets you experiment nicely with NUMA and the combination of reprogrammable lookup tables and more physical memory than address space (34 bit vs 32 bit) lets you do nice tricks to share/communicate data between cores with zero copying needed. Unfortunately (due to time/budget constraints) Intel didn't implement any programmable expiration/invalidation/flushing of the L2 cache. This means that any application wanting to use these tricks had no solution beyond reading in a full 256KB (with the proper striding to make sure you actually cache miss on all of those 256KB!) to flush the cache. Such a flush takes approximately 500k CPU cycles, almost guaranteed killing any performance gained from zero copy tricks.

The fact that cores were 32bit is also extremely, as you quickly consume your entire address space when you start playing around with the above mentioned sort of memory shenanigans.

There were some more fairly minor issues, but these are the ones that initially pop in my head.

merijnv··on Best Practices for Scientific Computing
Because scientists are aggressively selective in what they read (you have to be, given the volume of text produced) and skip large parts of the paper to see if they're interesting. A very common paper reading approach is:

  1. Read abstract. Interesting? Go to 2, else stop reading.
  2. Read introduction. Still interesting? Go to 3, else stop reading.
  3. Read conclusion. Still interesting? Read the rest of the paper, else stop reading.
The conclusion is there to summarise everything and let people decide whether they want to bother reading the entire thing.
← PreviousPage 6 of 11Next →