HNHacker News
TopNewBestAskShowJobs

jshprentz

905 karma · joined July 20, 2014

submissionscomments
jshprentz··on The birth of Prolog (1992) [pdf]
Implementations of Prolog was published in 1984; its contents predate the Warren Abstract Machine.

Pages 87-92 contain the article "The world's shortest Prolog interpreter?" by M. Nilsson of Uppsala University. The article describes and provides source code for a simple Lisp implementation of Prolog.

jshprentz··on Best practices for REST API design (2020)
https://xkcd.com/1179/
jshprentz··on Python strings are immutable, but only sometimes
Python uses Timsort[1]. They provide benchmarks and details at [2].

[1] https://en.wikipedia.org/wiki/Timsort

[2] https://svn.python.org/projects/python/trunk/Objects/listsor...

jshprentz··on Major Incident at Fastly
As compared with 139 contrast errors on this HN page as of 2021-01-12 19:04 GMT: https://wave.webaim.org/report#/https://news.ycombinator.com...
jshprentz··on A spellchecker used to be a major feat of software engineering (2008)
The venerable Ispell program dates back to 1971 with the most recent update in 2015 [1]. Its Contributors files traces earlier spell checkers back to 1959 [2].

[1] https://www.cs.hmc.edu/~geoff/ispell.html

[2] http://web.mit.edu/~mkgray/jik/sipbsrc/src/ispell-3.1/Contri...

jshprentz··on CanaryTrap: Detecting data misuse by third-party apps on online social networks
The research paper[1] contains a list of the 16 apps on page 11.

[1] https://arxiv.org/pdf/2006.15794.pdf

jshprentz··on The chicken first crossed the road in Southeast Asia, landmark gene study finds
Unanswered is the question of where and when a chicken would first have an opportunity to cross a road. The article reports that researchers traced chickens genetically back to southeast Asian pheasants domesticated around 7500 BCE. Beyond the title, the article mentions nothing about roads. At what point in history did some trails and paths become roads?
jshprentz··on Prowords
The 1980 movie "Airplane" spoofs prowords with this dialog between Captain Clarence Oveur, co-pilot Roger Murdock, flight navigator Victor Basta, and the airport tower: https://www.imdb.com/title/tt0080339/quotes/qt0484135
jshprentz··on One Billion People Will Suffer from “Unliveable” Heat Within 50 Years
HN discussed [1] this topic three years ago when New York Magazine published "The Uninhabitable Earth" by David Wallace-Wells.

In section II, Heat Death, he states, "At seven degrees of warming, that [human cooling] would become impossible for large portions of the planet’s equatorial band, and especially the tropics, where humidity adds to the problem." He adds, "At present, most regions reach a wet-bulb maximum of 26 or 27 degrees Celsius; the true red line for habitability is 35 degrees. What is called heat stress comes much sooner."

The annotated version of that article [2] cites the 2010 paper, "An adaptability limit to climate change due to heat stress" [3] by Steven C. Sherwood and Matthew Huber for these claims.

(Sections IV, Climate Plagues, and VII, Permanent Economic Collapse, from Wallace-Wells' article anticipate our current situation.)

Wallace-Wells expanded his article into a book published last year, "The Uninhabitable Earth: Life After Warming." [4] I found the book informative, relentless, and somewhat depressing. Recommended. But don't take my word for it. [5]

[1] https://news.ycombinator.com/item?id=14734865 [2] https://nymag.com/intelligencer/2017/07/climate-change-earth... [3] https://www.pnas.org/content/107/21/9552 [4] https://penguinrandomhousehighereducation.com/book/?isbn=978... [5] https://www.theguardian.com/books/2019/feb/27/the-uninhabita...

jshprentz··on Todorant – a smart todo app that tricks your brain into completing tasks
In this Medium article[1], Nikita Kolmogorov describes the rules he embedded in Todorant. The rules are ...

- As soon as you think of a task (e.g. you get an email) you should add it to your task list — and then archive this email away from the inbox.

- If you are going to spend less that 2 minutes completing the task — do it right away.

- Tasks should be simple, clear, short, specific, actionable.

- Spend a couple of days organizing everything and every thought you own.

- Every task should either have an exact date or a specific month (but not the current month) to complete; you should not have any tasks without specific month or date to complete them.

- Do day planning every morning. Do week planning every Monday morning. Do month planning every first day of the month morning.

- Don’t feel ashamed and add completed tasks to the todo list marked completed.

- Complete unpleasant tasks (frogs) in the morning.

- Focus on only one task at a time.

[1] https://medium.com/@nikitakolmogorov/how-i-launched-7-produc...

jshprentz··on How much power can we expect from rainfall?
Quint B.U.I.L.D.s developed a system that (barely) charges his cell phone with downspout water flow. His four-part (so far) video series documents his engineering, trials, and improvements. He tries different turbine designs, builds his own alternator, manages the current and voltage, and buffers the water flow. He shows the engineering challenges of implementing a back-of-envelope design. Good fun.

1. How to Harvest Free Energy From Your Roof with a Hydro Electric Generator! https://youtu.be/S6oNxckjEiE

2. 3D Printed Alternator vs. DC Generator for More POWER From the Rain! https://youtu.be/YLb4enCgnP4

3. Fidgeting With Turbines! https://youtu.be/vify0k2sHlQ

4. Charge a Smartphone With The RAIN!!! https://youtu.be/amu5LJaDUPY

jshprentz··on 75½ Bedford Street
Washington City Paper reported in 2003 on the history and challenges of 4 1/2 Street SW, 13 1/2 Street NW, 9 1/2 Street NW, and other half streets in Washington, DC.

https://www.washingtoncitypaper.com/news/article/13026197/ha...

jshprentz··on Ask HN: Were you in a computer user group, back in their heyday?
I led PFIG, the Potomac Forth Interest Group, in the early 1980s. Some said the P was silent; others said the F.

We met monthly in a rec center in Arlington, Virginia to present member projects and discuss Forth topics. After the meetings, we would cross the street to continue our conversations at a Pizza Hut. Our roughly 30 members came from Maryland, Virginia, and Washington, DC.

Most of us were running some variation of FIG Forth on Z80- or 6502-based computers. Presenters would lug in their Commodore PET, Apple II, TRS-80, Kaypro II, Atari 800, or other bulky computer and monitor.

Most projects were pure Forth software; some involved hardware connected to serial or parallel ports. I recall several variations of Forth data structures mapped to disk blocks. There was a Prolog implementation in Forth. I have many of the handouts buried in storage somewhere.

On the hardware side, Forth translated English text into allophones and played them through Radio Shack's Archer SPO256 Narrator speech processor chip connected to a small amplifier. The system read Lincoln's Gettysburg address clearly until one of the 8 parallel port wires came loose. Demos!

jshprentz··on The Bread Code – Make Your Own Sourdough
In the novel Sourdough by Robin Sloan, a woman leaves her job programming robots to nurture a mystical sourdough starter. https://www.robinsloan.com/books/sourdough/
jshprentz··on T * sin (t) ≈ Christmas tree (2013)
Add this line at the bottom to show the tree:

    plt.show()
jshprentz··on 1958 Facom 128B Japanese Relay Computer, Still Working [video]
Additional information about the FACOM 128B:

In a July 2019 article, The Asahi Shimbun reports that Fujitsu technician Tadao Hamada keeps the ancient computer running. http://www.asahi.com/ajw/articles/AJ201907280007.html

On the IPSJ Computer Museum web site, the Information Processing Society of Japan provides more details about relay-based FACOM computers:

FACOM 128B background: http://museum.ipsj.or.jp/en/heritage/facom128b.html

FACOM 128A and 128B technical information: http://museum.ipsj.or.jp/en/computer/dawn/0012.html

jshprentz··on Ask HN: A modern-looking UML diagram tool?
I have used UMLet since 2005. The diagrams won't win a beauty contest, but they are quick to edit and depict the necessary information. https://www.umlet.com/

From the UMLet web page:

> UMLet is a free, open-source UML tool with a simple user interface: draw UML diagrams fast, build sequence and activity diagrams from plain text, export diagrams to eps, pdf, jpg, svg, and clipboard, share diagrams using Eclipse, and create new, custom UML elements. UMLet runs stand-alone or as Eclipse plug-in on Windows, OS X and Linux.

UMLetino runs UMLet in a web browser. Refer to the UMLet FAQ and sample diagrams for help. http://www.umletino.com/umletino.html

jshprentz··on Developers Who Use Spaces Make More Money Than Those Who Use Tabs (2017)
Back when communications and printing devices were much slower, we often chose tab stops to reduce the number of characters sent. I have used this algorithm, but I doubt it impacted my career earnings.

James L. Peterson, James R. Bitner, and John H. Howard, ``On the Selection of Optimal Tab Settings'', Communications of the ACM, Volume 21, Number 12, (December 1978), pages 1004-1007.

http://jklp.org/profession/papers/tab/paper.html

jshprentz··on Using Python to Pull Data from the Meetup API
Meetup2xibo also uses Python to pull event data from the Meetup API. Meetup2xibo loads the events into a Xibo digital signage dataset for display in sign layouts such as agendas, calendars, room activity signs, and maps.

https://github.com/jshprentz/meetup2xibo

jshprentz··on Sentient: Classified artificial brain being developed by US intelligence
Read the 1966 cold war novel, Colossus. https://en.wikipedia.org/wiki/Colossus_(novel)

Or watch the 1970 film based on the novel, Colossus: The Forbin Project. https://en.wikipedia.org/wiki/Colossus%3A_The_Forbin_Project

TLDR: World peace enforced by computers and resisted by their creators.

jshprentz··on Drivers followed a Google Maps detour and ended up stuck in an empty field
GPS device manufacturers provide special purpose units for truckers. Some examples:

Garmin dēzl 580 LMT-S https://buy.garmin.com/en-US/US/p/589643

Rand McNally TND 740 https://store.randmcnally.com/tnd-740.html

TomTom Trucker 600 https://www.tomtom.com/en_us/drive/truck/

Truckers can enter their vehicle size and hazardous material. Routes consider height, weight, grade, turning, and other restrictions.

jshprentz··on Google Cloud Is Down
The two Google Cloud networking incidents are:

Incident #19008 began at 2019-06-02 12:48. https://status.cloud.google.com/incident/cloud-networking/19...

Incident #19009 began at 2019-06-02 12:53. https://status.cloud.google.com/incident/cloud-networking/19...

Times are US/Pacific

jshprentz··on Loopy: a tool for thinking in systems (2017)
Loopy is one of several Explorable Explanations tools [1] that let people interact with models embedded in web pages.

[1]: https://explorabl.es/tools/

jshprentz··on Postage Stamps from Bhutan That Double as Playable Vinyl Records (2015)
Ars Technica described these about two years ago in "Forgotten audio formats: The flexi disc."

https://arstechnica.com/gadgets/2017/04/forgotten-audio-form...

jshprentz··on Why some Japanese pensioners want to go to jail
The 1904 O. Henry short story "The Cop and the Anthem"[1][2] tells of a homeless New York City man who commits small crimes, preferring arest and jail to charity handouts.

"But to one of Soapy's proud spirit the gifts of charity are encumbered. If not in coin you must pay in humiliation of spirit for every benefit received at the hands of philanthropy. As Caesar had his Brutus, every bed of charity must have its toll of a bath, every loaf of bread its compensation of a private and personal inquisition. Wherefore it is better to be a guest of the law, which though conducted by rules, does not meddle unduly with a gentleman's private affairs."

Soapy's many attempts fail, but the story ends with a typical O. Henry twist. No spoiler here.

The story was filmed in 1952, one of five stories in "O. Henry's Full House." Charles Laughton played the vagrant. He briefly meets Marilyn Monroe. Watch this segment on YouTube[3] or enjoy the entire film.

[1] https://americanliterature.com/author/o-henry/short-story/th...

[2] https://en.wikipedia.org/wiki/The_Cop_and_the_Anthem

[3] https://youtu.be/temSJCZwUlU

jshprentz··on Boeing 787 Suffers Rare Dual Engine Failure on Landing
Aviation professionals discussed this incident on the Aviation Herald website. http://avherald.com/h?article=4c2fe53a
jshprentz··on Loglan – a predicate logic-based language for humans
The 2015 HN discussion of Loglan [0] included links to XKCD [1] and its debunking [2].

[0] https://news.ycombinator.com/item?id=10075196 [1] https://xkcd.com/191/ [2] https://mw.lojban.org/papri/File:xkcd_comic_debunker.png

jshprentz··on When Televisions Emitted X-Rays
Radiation King TV on the Simpsons (12-second clip): https://www.youtube.com/watch?v=2ScUjHWUL34
jshprentz··on Isochronous Curves
Suggested for me also. Compare with yesterday's discussion on HN about YouTube's algorithms: "YouTube's tendency to push everyday users toward politically extreme content" https://news.ycombinator.com/item?id=17938181
jshprentz··on When Ramjets Ruled Science Fiction
I wonder how many of those authors first heard of ramjets from the mid-1960s kids' cartoon series, Roger Ramjet[0].

[0] https://en.wikipedia.org/wiki/Roger_Ramjet

← PreviousPage 4 of 5Next →