Making a WebAssembly interpreter in Ruby, part 9: floating-point arithmetic instructions

preview_player
Показать описание

00:00:00 — Waiting to start
00:00:45 — Hello
00:01:49 — Retro
00:03:54 — Refactoring
00:05:55 — Use #mask helper in Format#pack for symmetry
00:09:14 — Make float regular expressions a bit more compact
00:20:06 — Use descriptive names instead of `p`, `q` and `e`
00:25:57 — Allow limited use of underscores in float regular expressions
00:49:25 — Remove underscores from floats once they have been successfully matched
01:02:46 — Extract #parse_rational helper from #parse
01:16:49 — Return actual Rational instance from #parse_rational
01:40:22 — Replace `numerator`/`denominator` data clump in Finite with Rational
01:54:05 — Introduce explicit Wasminna::Float::Zero class
02:20:11 — Store a signed Rational in Finite instead of keeping negation separate
02:25:12 — Implement #to_f separately for each Wasminna::Float type
02:31:01 — Run pending tests in test script
02:33:35 — Floating-point arithmetic
02:38:00 — Report the current command in assertion failure message
03:05:52 — Implement #with_float helper for calculating in the world of Ruby floats
03:53:15 — Refine ::Float to report its sign and use it to detect negative zero
04:32:52 — Wrapping up
04:36:08 — Bye
Рекомендации по теме
visit shbcf.ru