Recent

Author Topic: pas2js WebAssembly SQLite demos  (Read 497 times)

PierceNg

  • Sr. Member
  • ****
  • Posts: 431
    • SamadhiWeb
pas2js WebAssembly SQLite demos
« on: February 17, 2026, 03:32:46 pm »
Happy Chinese New Year! Today is the first day of the year of the Fire Horse.

I've put up a demo of pas2js invoking WebAssembly SQLite entirely within the web browser. In the demo, the pas2js program runs its SQLite database operations on the web browser's main UI thread and updates the web page as it runs.

I'll publish the source code somewhere sometime. Meanwhile, thanks to pas2js's generating Javascript source maps, my demo program's source, in both Pascal and Javascript forms, is visible in the web browser's debugger; see screenshot.

Next demo will run SQLite operations in a separate worker thread, away from the browser's main UI thread.

PierceNg

  • Sr. Member
  • ****
  • Posts: 431
    • SamadhiWeb
Re: pas2js WebAssembly SQLite demos
« Reply #1 on: February 19, 2026, 04:02:22 pm »
Second demo up!

This demo runs SQLite operations in a separate worker thread, away from the browser's main UI thread, and stores data in OPFS, the origin-private filesystem.

 

TinyPortal © 2005-2018