Viewing profile — hnkain
hnkain
HN member- Joined
- Sun, Jul 06, 2014, 11:18 AM UTC
- HN karma
- 71
- Public activity
- 20 items
- HN profile
- View on Hacker News ↗
About hnkain
No profile information was provided.
Recent public activity
-
comment
Comment #40983134
It's great as a learning experience for the author, but it would be a good idea for the author to take a look at a JSON spec and see if the regular expressions used by the lexer su…
-
comment
Comment #30271727
I commented elsewhere already, but I have a blog post where I go through some examples of applications of the Kelly Criterion, including two that are related to insurance: https://…
-
comment
Comment #30270785
I have a blog-post on the Kelly Criterion, and some (I think interesting) realistic examples of its application in decision-making: https://blog.paulhankin.net/kellycriterion/
-
comment
Comment #30056061
It's a bit disappointing that there's been many writeups of heuristic-based solvers make the front page, but the writeup of an exact solver doesn't make it. [Note: I was the person…
-
comment
Comment #30056019
The (exact) optimal EV-minimizing strategies (assuming each target word is equally likely) always solve in 5 of fewer guesses in normal mode, and always solve in 6 guesses in hard …
- story
-
comment
Comment #22801227
If you like programming puzzles, I also recommend trying to write the littlemancomputer programs listed on this blog entry: https://blog.paulhankin.net/littlemancomputer/ They are …
-
comment
Comment #22801162
https://blog.paulhankin.net I don't think everyone should read it, because it's quite technical. There's articles on mathematics, game-theory, and computer science. The highlight (…
-
comment
Comment #22451030
I wrote a solution to this some time back: https://github.com/paulhankin/morse-decoder . It finds the most likely sentence based on n-gram frequencies and a dictionary, and runs a …
-
comment
Comment #22450999
In particular, E is . and T is -, so you can trivially decode any sequence of dots and dashes to strings containing only E and T.
-
comment
Comment #19220568
You can do it with just integers (ie: in Z[φ]) by noting that φ^n = φFib(n) + Fib(n-1). Equivalently, compute X^n in Z[X] / (X^2-X-1). I have an article on my blog, but it's unfort…
-
comment
Comment #16315437
It looks like they got the N upside-down. The top of the N (the end with two serifs, as you can see here http://www.identifont.com/similar?TI ) is pointing to M, rather than the bo…
-
comment
Comment #14335774
https://en.wikipedia.org/wiki/Little_man_computer is a simple computer model for education, from the 1960's. I built an emulator for it, which you can find here: http://paulhankin.…
-
comment
Comment #13535994
It would be surprising to me if a completely deterministic strategy wasn't within some very close margin of an optimal strategy. For example, if you think you should raise with JJ …
-
comment
Comment #13361044
Significance works the other way round than you described it -- if two players were equal in skill, then a winrate of -91mbb/g or larger would happen 5-10% of the time. I don't kno…
-
comment
Comment #12112849
Go's GC has been precise for heap-allocated data since go1.1 (released 3 years ago) and precise for heap and stack-allocated data since go1.3 (released 2 years ago), completely fix…
-
comment
Comment #11641402
It doesn't invalidate what you say, but you're assuming there's a bounded number of different values in the array -- 2^k where k is your word size. Under this assumption, a correct…
-
comment
Comment #11640960
A phone book search does O(log N) string comparisons, but its running time is not O(log N) unless you consider all string comparisons to take a constant amount of time. Because for…
-
comment
Comment #11561915
I'm the author of the blog post. You're right, it requires n^2 binary digits (and I mention this at the end of the article). The formula isn't, and isn't meant to be, a good way to…
-
comment
Comment #7994268
I don't think the author's interpretation of #5 to mean use smart objects (which I'll guess means objects in the object-oriented sense) is correct. I interpret Pike's meaning to be…