HNHacker News
TopNewBestAskShowJobs

user2994cb

131 karma · joined April 15, 2014

submissionscomments
user2994cb··on Gentzen's Rules for Natural Deduction
And the same volume has his proof of the consistency of arithmetic:

http://www.digizeitschriften.de/download/PPN266833020_0039/P...

user2994cb··on Gentzen's Rules for Natural Deduction
The paper referenced also defines Gentzen's sequent calculus, an even nicer formulation of logic:

http://www.digizeitschriften.de/download/PPN266833020_0039/P...

user2994cb··on A Regular Expression Matcher (2007)
An FSA matcher will be O(M) - one state transition per input character.
user2994cb··on Never Use Floats for Money (2016)
As does Javascript of course. On the other hand, IEEE754 guarantees correct rounding, so floating point operations on integral values will come out alright (additions and multiplications will be exact within a large range, and inexact divisions will be rounded correctly, so you shouldn't be any worse than using integer operations).
user2994cb··on All Programming Languages are Wrong (2018)
To put the original in more context, David A. Moon is a major figure in the Lisp world: https://en.wikipedia.org/wiki/David_A._Moon
user2994cb··on Visualizing Complex Functions
You can construct the complex numbers quite nicely with Geometric Algebra: https://www.youtube.com/watch?v=PNlgMPzj-7Q
user2994cb··on The Why of Y (2001) [pdf]
It's true that the original non-recursive definition of Y doesn't typecheck in Haskell:

  Prelude> \f->(\x->f(x x))(\x->f(x x))

  <interactive>:5:14:
    Occurs check: cannot construct the infinite type: r0 ~ r0 -> t
    ...
user2994cb··on Quaternions and Reflections (1946) [pdf]
Interesting stuff. Maybe there is a connection with the use of quaternion pairs to represent rotations in 4-space (as in the Coxeter paper).
user2994cb··on Quaternions and Reflections (1946) [pdf]
> Location: Los Angeles, Prague

It's still a bit early if he's in LA, particularly as it's Sunday.

user2994cb··on Quaternions and Reflections (1946) [pdf]
I forgot to add (1945) to the title, apologies.
user2994cb··on Lisp Machine Inc. K-machine (2001)
Useful discussion on Stack Overflow: https://stackoverflow.com/questions/16198700/using-the-extra...

Upshot: you can probably get away with it if you are careful to canonicalize pointers before using them.

user2994cb··on Bayesian Inference Lectures [video]
I came across this series of YouTube videos by Aubrey Clayton on Bayesian Inference (based on Ed Jaynes' book, 'Probability Theory: The Logic of Science') that I thought explained the fundamental ideas extraordinarly well but judging by the viewing figures, are not widely known.
user2994cb··on Fast, Constant-Time Sphere Indexing
There is a neat way of doing this style of indexing using barycentric coordinates: https://www.shadertoy.com/view/MlVfzG
user2994cb··on Lisp Machine Inc. K-machine (2001)
Building a tagged architecture on top of a stock 64-bit system would be much easier than with 32 bits - current systems use 48 bits for addresses, which leaves plenty of bits left over for the tag (you could even represent all non-floating point values as 64-bit NaNs and avoid the problems with FP mentioned in the article).
user2994cb··on Functional Pearl: Enumerating the Rationals [pdf]
An interesting (later) paper about generating the Stern-Brocot tree and the Calkin-Wilf tree simultaneously from a sequence of 2x2 matrices: http://www.cs.nott.ac.uk/~psarb2/MPC/RecountingRationalsTwic...
user2994cb··on Beautiful maths simplification: quaternion from two vectors (2013)
There is a neat derivation of this from the fact that reflection in a plane with unit normal Q can be represented as P -> QPQ with P and Q considered as pure quaternions (ie. no scalar part).
user2994cb··on An integer formula for Fibonacci numbers (2015)
Previous discussion: https://news.ycombinator.com/item?id=11560122 and Paul Hankin has some more thoughts on the subject: https://blog.paulhankin.net/fibonacci2/
user2994cb··on The F-106A That Flew Itself – After the Pilot Ejected, Landing Gently in a Field
Something like this happened in 1944: crew bailed out from Dornier 217 over London, plane carried on north, landing by itself in the Milton Road allotments in Cambridge: https://www.asisbiz.com/il2/Do-217/Do-217-KG2.2-(U5+DK)/page...
user2994cb··on Ask HN: What are the best MOOCs you've taken?
Dan Boneh's Cryptography Part I on Coursera. Will we ever get Part II? Enrolling for Sept 2018 according to Coursera.
user2994cb··on MLton Compiler Overview
Just out of interest (I worked on a table-driven parser for SML a couple of decades ago) - what bits of ML syntax is giving you trouble? I remember one bit that (theoretically) needed unbounded lookahead, and user-defined infix operators were fun.
user2994cb··on Recounting the rationals: twice [pdf]
Code to print both the Stern-Brocot tree and the Calkin-Wilf tree, using the algorithm in that paper:

  def fractions():
      a,b,c,d = 1,0,0,1
      while True:
        yield a,b,c,d
        if a == 1 and b == 0 and d == 1:
          a,b,c,d = 1,c+1,0,1
        else:
          j = (c+d-1)//(a+b)
          k = 2*j+1
          a,b,c,d = k*a-c,k*b-d,a,b

  g = fractions()
  for i in range(100):
      a,b,c,d = g.next()
      print "%d/%d %d/%d"%(c+d,a+b,a+c,b+d)
user2994cb··on What to Make of Finnegans Wake? (2012)
The audiobook by Jim Norton (aka Bishop Brennan) is a good way in to FW: https://www.youtube.com/watch?v=JAc901X7gK0
user2994cb··on Double Pendulum Visualization
Another visualization, using JS to solve the Langrangian: https://matthewarcus.github.io/lagrange/
user2994cb··on Kotlin: The Problem with null
Actually, having Some(x) be just a pointer to x seems to work fine without an explicit tag, as dragonwriter says below.
user2994cb··on Kotlin: The Problem with null
Dunno, but I'd have thought that you can make None look like a null pointer, but Some(p) needs to be tagged in some way.
user2994cb··on Kotlin: The Problem with null
Aren't null pointers just a variation on the Maybe Monad?
user2994cb··on Samuel R. Delany’s Life of Contradictions
2014 interview with Delany about this here: http://shetterly.blogspot.co.uk/2014/07/a-conversation-with-...
user2994cb··on Generating all permutations, combinations, and power set of a string (2012)
Generating necklaces and bracelets is fun too, see eg. http://www.sciencedirect.com/science/article/pii/S0304397512...
user2994cb··on Smallpt: Global Illumination in 99 lines of C++
Looking at it a bit more - the double recursion in the radiance function for refraction would make things a bit awkward in WebGL.
user2994cb··on Smallpt: Global Illumination in 99 lines of C++
Looks like it would make a nice glsl/WebGL fragment shader (might be even shorter as the vector operations are predefined). Can't see one listed on the page, but then it's mostly from a few years back.
← PreviousPage 2 of 3Next →