Discussion
Loading...

#Tag

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
dch :flantifa: :flan_hacker: and 1 other boosted
psf
@psf@oldbytes.space  ·  activity timestamp 3 weeks ago

Putting Lua through its paces. Here's Advent of Code 2024, Day 13, running on all my favorite hardware that I had on hand, through the power of Lua.

Ryzen 5 9600X modern desktop - 1 ms.

HP 200LX, 8 MHz 186, 640 KB RAM available to Lua: 62 seconds.

TI-92+, 12 MHz 68000, 64 KB RAM available to Lua: 65 seconds.

"Write once, run anywhere".

#retrocomputing #lua #ticalc #ti92 #hp200lx

Texas Instruments TI-92+ graphing calculator.  Unlike most calculators, this machine is in landscape form factor and has a built-in QWERTY keyboard.
Lua session showing a row of "."s (progress meter) then the correct answer to the problem.
Texas Instruments TI-92+ graphing calculator. Unlike most calculators, this machine is in landscape form factor and has a built-in QWERTY keyboard. Lua session showing a row of "."s (progress meter) then the correct answer to the problem.
Texas Instruments TI-92+ graphing calculator. Unlike most calculators, this machine is in landscape form factor and has a built-in QWERTY keyboard. Lua session showing a row of "."s (progress meter) then the correct answer to the problem.
HP 200LX palmtop computer
Lua session showing a row of "."s (progress meter) then the correct answer to the problem.
HP 200LX palmtop computer Lua session showing a row of "."s (progress meter) then the correct answer to the problem.
HP 200LX palmtop computer Lua session showing a row of "."s (progress meter) then the correct answer to the problem.
Terminal emulator on a modern Linux PC
$ lua 13.lua 
Part A, B: 	36571	85527711500010
Terminal emulator on a modern Linux PC $ lua 13.lua Part A, B: 36571 85527711500010
Terminal emulator on a modern Linux PC $ lua 13.lua Part A, B: 36571 85527711500010
  • Copy link
  • Flag this post
  • Block
psf
@psf@oldbytes.space  ·  activity timestamp 3 weeks ago

Putting Lua through its paces. Here's Advent of Code 2024, Day 13, running on all my favorite hardware that I had on hand, through the power of Lua.

Ryzen 5 9600X modern desktop - 1 ms.

HP 200LX, 8 MHz 186, 640 KB RAM available to Lua: 62 seconds.

TI-92+, 12 MHz 68000, 64 KB RAM available to Lua: 65 seconds.

"Write once, run anywhere".

#retrocomputing #lua #ticalc #ti92 #hp200lx

Texas Instruments TI-92+ graphing calculator.  Unlike most calculators, this machine is in landscape form factor and has a built-in QWERTY keyboard.
Lua session showing a row of "."s (progress meter) then the correct answer to the problem.
Texas Instruments TI-92+ graphing calculator. Unlike most calculators, this machine is in landscape form factor and has a built-in QWERTY keyboard. Lua session showing a row of "."s (progress meter) then the correct answer to the problem.
Texas Instruments TI-92+ graphing calculator. Unlike most calculators, this machine is in landscape form factor and has a built-in QWERTY keyboard. Lua session showing a row of "."s (progress meter) then the correct answer to the problem.
HP 200LX palmtop computer
Lua session showing a row of "."s (progress meter) then the correct answer to the problem.
HP 200LX palmtop computer Lua session showing a row of "."s (progress meter) then the correct answer to the problem.
HP 200LX palmtop computer Lua session showing a row of "."s (progress meter) then the correct answer to the problem.
Terminal emulator on a modern Linux PC
$ lua 13.lua 
Part A, B: 	36571	85527711500010
Terminal emulator on a modern Linux PC $ lua 13.lua Part A, B: 36571 85527711500010
Terminal emulator on a modern Linux PC $ lua 13.lua Part A, B: 36571 85527711500010
  • Copy link
  • Flag this post
  • Block
theruran 💻 🌐 :cereal_killer: and 1 other boosted
psf
@psf@oldbytes.space  ·  activity timestamp 4 weeks ago

This is still very much a work in progress, but it appears I've managed to shoehorn the latest version of Lua onto the TI-92+ graphing calculator.

#retrocomputing #ticalc #ti92

TI-92+ emulator displaying:
Lua 5.4.8 Copyright (C) 1994-2025 Lua.org, PUC-Rio
Followed by a short interactive session.
TI-92+ emulator displaying: Lua 5.4.8 Copyright (C) 1994-2025 Lua.org, PUC-Rio Followed by a short interactive session.
TI-92+ emulator displaying: Lua 5.4.8 Copyright (C) 1994-2025 Lua.org, PUC-Rio Followed by a short interactive session.
  • Copy link
  • Flag this post
  • Block
psf
@psf@oldbytes.space  ·  activity timestamp 4 weeks ago

This is still very much a work in progress, but it appears I've managed to shoehorn the latest version of Lua onto the TI-92+ graphing calculator.

#retrocomputing #ticalc #ti92

TI-92+ emulator displaying:
Lua 5.4.8 Copyright (C) 1994-2025 Lua.org, PUC-Rio
Followed by a short interactive session.
TI-92+ emulator displaying: Lua 5.4.8 Copyright (C) 1994-2025 Lua.org, PUC-Rio Followed by a short interactive session.
TI-92+ emulator displaying: Lua 5.4.8 Copyright (C) 1994-2025 Lua.org, PUC-Rio Followed by a short interactive session.
  • Copy link
  • Flag this post
  • Block
psf
@psf@oldbytes.space  ·  activity timestamp 4 weeks ago

Solved! Trial-and-error indicates that you have to #define USE_KERNEL before using any system includes like #include <stdio.h>, as it appears they check for it. If you neglect to do this, you get cryptic "unresolved reference to __main" errors even when trying to build a library.

My program still doesn't work (one module is raising hundreds of "too far for size-two reloc" linker errors) but I think that's because the module is >64K and needs to be split up more, which is my own fault and a problem for tomorrow.

#ti92 #ticalc

  • Copy link
  • Flag this post
  • Block
psf
@psf@oldbytes.space  ·  activity timestamp 4 weeks ago

Do I know anyone who does #ti92 or #ti89 TI calculator homebrew development? The gcc toolchain is giving me some very specific problems when creating libraries for use under PreOs, and maybe someone else has already encountered and moved past this. #retrocomputing #ticalc

  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1-alpha.8 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login