jm + floating-point   7

terrible review for Solidity as a programming environment in HN
"Solidity/EVM is by far the worst programming environment I have ever encountered. It would be impossible to write even toy programs correctly in this language, yet it is literally called "Solidity" and used to program a financial system that manages hundreds of millions of dollars."


Via Tony Finch
blockchain  ethereum  programming  coding  via:fanf  funny  fail  floating-point  money  json  languages  bugs  reliability 
27 days ago by jm
java - Why not use Double or Float to represent currency?
A good canonical URL for this piece of coding guidance.
For example, suppose you have $1.03 and you spend 42c. How much money do you have left?

System.out.println(1.03 - .42); => prints out 0.6100000000000001.
coding  tips  floating-point  float  java  money  currency  bugs 
february 2014 by jm
stereopsis : graphics : radix tricks
some nice super-optimized Radix Sort code which handles floating point values. See also http://codercorner.com/RadixSortRevisited.htm for more info on the histogramming/counter concept
sorting  programming  coding  algorithms  radix-sort  optimization  floating-point 
december 2013 by jm
East Texas Judge Says Mathematical Algorithms Can’t Be Patented, Dismisses Uniloc Claim Against Rackspace
This seems pretty significant. Is the tide turning in the Texas Eastern District against patent trolls, at last? And does it establish sufficient precedent?

A federal judge has thrown out a patent claim against Rackspace, ruling that mathematical algorithms can’t be patented. The ruling in the Eastern Disrict stemmed from a 2012 complaint filed by Uniloc USA asserting that processing of floating point numbers by the Linux operating system was a patent violation.

Chief Judge Leonard Davis based the ruling on U.S. Supreme Court case law that prohibits the patenting of mathematical algorithms. According to Rackspace, this is the first reported instance in which the Eastern District of Texas has granted an early motion to dismiss finding a patent invalid because it claimed unpatentable subject matter.

Red Hat, which supplies Linux to Rackspace, provided Rackspace’s defense. Red Hat has a policy of standing behind customers through its Open Source Assurance program.


See https://news.ycombinator.com/item?id=5455869 for more discussion.
east-texas  patents  swpats  maths  patenting  law  judges  rackspace  linux  red-hat  uniloc-usa  floating-point 
march 2013 by jm
SmoothLifeL
'A continuous version of Conway's Life, using floating point values instead of integers'. 'SmoothLifeL supports many interesting phenomena such as gliders that can travel in any direction, rotating pairs of gliders, 'wickstretchers' and the appearance of elastic tension in the 'cords' that join the blobs.' paper: http://arxiv.org/abs/1111.1567 , and slides: http://www.youtube.com/watch?v=iyTIXRhjXII

(via jwz)
life  games  emergent-behaviour  algorithms  graphics  via:jwz  cool  eye-candy  conways-life  floating-point  continuous  gliders 
october 2012 by jm
Java Hangs When Converting 2.2250738585072012e-308
ie. the same value as the PHP bug. 'Konstantin [Pressier] reported this problem to Oracle three weeks ago, but is still waiting for a reply.' good job, Oracle!
oracle  fail  security  java  bugs  floating-point  from delicious
february 2011 by jm

Copy this bookmark:



description:


tags: