~/talk

Ada 99: Rewriting the very first computer program: How does JavaScript stack up?

Talkat CityJS Conf 2019 · 2019-05-01..05-03· [javascript]
links:none on file
slides:none on file

Rewrites Ada Lovelace’s Bernoulli-number program across two dozen languages using the Akiyama–Tanigawa algorithm implemented in JavaScript, Ada, Pascal, C, Perl, Shell, Forth and even Spectrum Sinclair BASIC. Notes where code needs to change: BASIC lacks recursion so the algorithm is restructured, a PHP fraction library returns wrong values, C forces manual malloc and free and pointer casts, shell arithmetic becomes unreadable, and the Spectrum’s floating-point and 0/0 quirks slow or break results — most implementations ultimately work with language-specific hacks.

AI-written summary · about

  1. 0:00Start
  2. 2:48Breakdown of the Algorithm
  3. 8:21Declare before Use
  4. 10:40Operator Overloading
  5. 21:44Can Names Be Reused as between Variables and Methods
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.