News for hackers. Stuff that matters.
Re:Show HN: 3D shooter in your terminal using raycasting in Awk by minimax on Wednesday January 13, 2016 @07:12PM (#10898717)
As in Javascript, awk represents all numeric values using double precision floating point. I have always thought that was a strange (but not necessarily bad) choice for a language that is basically all about text processing. I guess it works out pretty well if you need to do 3D graphics math.

There is a bit of cheating going on here though. Awk doesn't support true multidimensional arrays. They are depending on a Gawk extension for that bit of functionality.

Re:Show HN: 3D shooter in your terminal using raycasting in Awk by TheMozg on Wednesday January 13, 2016 @07:23PM (#10898759)
Actually I tried to do without true multidimensional arrays, but deleting and sorting elements would be a pain.
Re:Show HN: 3D shooter in your terminal using raycasting in Awk by david-given on Thursday January 14, 2016 @04:53AM (#10900419)
Double precision floats can losslessly manipulate integers with up to 56 bits precision, so you get the best of both worlds with no extra effort.