HN user

lelf

67,542 karma
  occasional c⊎k⊎haskell⊎erlang hacker
  #76d6ff
Posts3,529
Comments614
View on HN
www.daveperrett.com 2y ago

Underscores are stupid? Get a Japanese keyboard (2012)

lelf
51pts72
www.daveperrett.com 2y ago

Underscores are stupid? Get a Japanese keyboard (2012)

lelf
1pts1
www.espressif.com.cn 2y ago

ESP32-C61: Delivering Affordable Wi-Fi 6 Connectivity

lelf
3pts0
newtonfaq.com 3y ago

Newton FAQ

lelf
45pts31
www.dragonflybsd.org 3y ago

DragonFly BSD 6.4

lelf
82pts58
www.exclassics.com 3y ago

English as She Is Spoke (1884) [pdf]

lelf
165pts136
lists.gnu.org 3y ago

Sed-4.9 Released

lelf
3pts0
en.wikipedia.org 3y ago

English as She Is Spoke

lelf
1pts0
en.wikipedia.org 3y ago

Gravity Probe B

lelf
70pts15
www.esa.int 4y ago

ESA — Software upgrade for 19-year-old martian water-spotter

lelf
2pts0
www.space.com 4y ago

Unexpected solar weather is accelerating satellites' orbital decay

lelf
128pts99
www.nytimes.com 4y ago

Microsoft Plans to Eliminate Face Analysis Tools in Push for ‘Responsible A.I.’

lelf
3pts0
news.usc.edu 4y ago

Earth moves far under our feet: Study shows Earth’s inner core oscillates

lelf
80pts16
yourdigitalrights.org 4y ago

Own Your Data

lelf
1pts0
twitter.com 4y ago

Post mortem of our temporary BTC network withdrawal suspension

lelf
2pts2
www.vice.com 4y ago

Technologists Are Using AI to ‘Expand’ Famous Works of Art

lelf
1pts2
www.apple.com 4y ago

MacBook Pro M2 13-Inch

lelf
2pts2
www.cnn.com 4y ago

The 'Benjamin Button' effect: Scientists can reverse aging in mice

lelf
2pts0
www.nasa.gov 4y ago

Juno skims the cloud tops of Jupiter

lelf
141pts55
krebsonsecurity.com 4y ago

Costa Rica May Be Pawn in Conti Ransomware Group’s Bid to Evade Sanctions

lelf
1pts0
newtonfaq.com 4y ago

Newton FAQ

lelf
4pts0
www.tomshardware.com 4y ago

AMD-powered Frontier supercomputer breaks the exascale barrier

lelf
216pts168
www.hpcwire.com 4y ago

The Final Frontier: US Has Its First Exascale Supercomputer

lelf
2pts0
www.digikey.co.uk 4y ago

Whatever Happened to “Programmable” Analog? (2019)

lelf
38pts19
www.jpl.nasa.gov 4y ago

InSight's Final Selfie

lelf
70pts32
newatlas.com 4y ago

CRISPR tomatoes genetically engineered to be richer in Vitamin D

lelf
106pts122
hackaday.com 4y ago

Chonky Palmtop Will Slide into Your Heart

lelf
21pts3
en.wikipedia.org 4y ago

Corsi–Rosenthal Box

lelf
81pts21
erlang.org 4y ago

OTP 25 has been released

lelf
163pts4
platform.leolabs.space 4y ago

LeoLabs: Low Earth Orbit Visualization

lelf
21pts3
  Coq < Compute 0.1.
  Toplevel input, characters 8-11:
  > Compute 0.1.
  >         ^^^
  Warning: The constant 0.1 is not a binary64 floating-point value. A closest
  value 0x1.999999999999ap-4 will be used and unambiguously printed
  0.10000000000000001. [inexact-float,parsing]
       = 0.10000000000000001
       : float
Fossil 6 years ago

Yes. It's pretty good actually. It got a reputation for being painfully slow. No longer the case, yet… reputation is reputation.

There's a more modern reincarnation of the similar ideas — https://pijul.org. Ready for playing with, not much else.

Where are the comments?

While I can understand how that code can be intimidating to a programmer with a more “traditional” background… there are 26 (non-empty) lines of comments, and only 15 lines of code.

Quite surprising for me too. Or rather, I don't understand the unit they mention. From the article linked:

also collected alcoholic beverage consumption, including red and white wine separately (4 ounces, increasing to 5 ounces in 2006), beer (one glass, can, or bottle), and liquor (one drink or shot). We multiplied the amount of alcohol in grams per specified portion size by servings per day, determined the midpoint of the frequency category, and summed across all beverages to estimate the average alcohol consumption (g/day). We defined moderate alcohol consumption as 5-15 g/day for women and 5-30 g/day for men

Surely it cannot be 4 bottles of beer daily (or 4*7 bottles on weekend).

Assume the values could be equal if the relative error of the operation is greater than a small predefined value (called “⎕ct”, comparison tolerance, and you can change it).

That’s only formatting.

The other (and more important) matter, — that is not even mentioned, — is comparison. E. g. in “rational by default in this specific case” languages (Perl 6),

  > 0.1+0.2==0.3
  True
Or, APL (now they are floats there! But comparison is special)
      0.1+0.2
  0.3
      ⎕PP←20 ⋄ 0.1+0.2
  0.30000000000000004
      (0.1+0.2) ≡ 0.3
  1