Commit Graph

80 Commits

Author SHA1 Message Date
Sebastian Jeltsch bc09fde7ab Implemented a custom JS event loop and use call_function_immediate with custom completers to allow interleaving multiple requests into the same isolate.
This avoids idle while JS is doing I/O and avoid corner-case of livelock when running out of free workers while TB calls itself.
2024-11-23 23:13:34 +01:00
Sebastian Jeltsch 462ca2aacf More minor tweaks to coffee tutorial. 2024-11-23 11:39:38 +01:00
Sebastian Jeltsch d4a3b5b8e0 Update rust dependencies. 2024-11-22 22:54:50 +01:00
Sebastian Jeltsch a466bd53a3 Reference more code artifacts directly reducing duplication in the coffee tutorial. 2024-11-22 22:13:03 +01:00
Sebastian Jeltsch 1587a3270c Minor: a few more coffee tutorial tweaks. 2024-11-22 17:00:15 +01:00
Sebastian Jeltsch a7af9ee3ce Further refine the coffee tutorial. 2024-11-22 16:24:55 +01:00
Sebastian Jeltsch 97c85e2d31 Improve coffee search documentation. 2024-11-22 14:35:24 +01:00
Sebastian Jeltsch 338c4c77bb Add support for periodic tasks to JS runtime. 2024-11-21 13:15:02 +01:00
Sebastian Jeltsch 1542b96d35 Add a "coffee vector search" tutorial to the docs. 2024-11-21 00:27:49 +01:00
Sebastian Jeltsch bd59c47d68 Simplify docker setup for examples. 2024-11-20 17:04:36 +01:00
Sebastian Jeltsch f0133fdffa Coffee search example: rebuild db during docker build and add more documentation. 2024-11-20 14:23:53 +01:00
Sebastian Jeltsch b004188a5a Introduce Method type to narrow js/ts runtime APIs. 2024-11-20 13:48:41 +01:00
Sebastian Jeltsch ac672c43a9 Create traildepot folder during Docker build. 2024-11-20 13:26:20 +01:00
Sebastian Jeltsch 6bb517a1b3 Add a new vector search + Web UI example. 2024-11-20 13:23:00 +01:00
Sebastian Jeltsch fb2c5b9ae1 Bump dotnet SDK version for github actions "test" workflow. 2024-11-19 23:32:41 +01:00
Sebastian Jeltsch fd050bd719 Publish dotnet client on NuGet.org. 2024-11-19 22:25:29 +01:00
Sebastian Jeltsch dbd582275e Prepare release v0.2.2. v0.2.2 2024-11-19 14:40:47 +01:00
Sebastian Jeltsch 3fa8f51b8b Enable "web" APIs in JS runtime and test it. 2024-11-19 14:27:07 +01:00
Sebastian Jeltsch 8431f70f4a Turn v8 JS runtime into a default feature to allow building w/o it. v8 is a significant portion of the overall binary and build times. 2024-11-19 13:08:36 +01:00
Sebastian Jeltsch 0baf8d1997 Add untested Facebook and Microsoft oauth providers. 2024-11-18 22:41:27 +01:00
Sebastian Jeltsch 23b4d5c60e Minor web site tweaks. 2024-11-18 21:46:51 +01:00
Sebastian Jeltsch 51e55aecae Improve website's grid layout and add Payload CMS benchmarks results. 2024-11-18 15:32:42 +01:00
Sebastian Jeltsch f92c048c49 Update rust dependencies. 2024-11-18 13:54:42 +01:00
Sebastian Jeltsch e530e6a852 Remove unused is_editor api from example. 2024-11-18 13:52:00 +01:00
Sebastian Jeltsch d27b20e33e Fix: benchmark build. 2024-11-18 12:27:48 +01:00
Sebastian Jeltsch 6cb1acd074 Minor: factor out module initialization in preparation to making v8 an optional dependency. 2024-11-18 11:43:15 +01:00
Sebastian Jeltsch cdac7dd04c Better development instructions for the Admin UI. 2024-11-16 21:27:09 +01:00
Sebastian Jeltsch 2ea90bd45a Prepare release v0.2.1. v0.2.1 2024-11-15 15:23:30 +01:00
Sebastian Jeltsch 2dd603b4e1 Update insert benchmark utilization measurements. 2024-11-15 15:18:45 +01:00
Sebastian Jeltsch 5096e6e9be Add screenshots to blog example. 2024-11-15 14:52:04 +01:00
Sebastian Jeltsch 69bd8a3978 Make number of JS V8-isolate threads user-configurable via CLI. 2024-11-15 14:14:14 +01:00
Sebastian Jeltsch 13e949e5b4 Add a utilization graph to JS benchmark. 2024-11-15 14:11:02 +01:00
Sebastian Jeltsch 8ccdd506ac Update Rust dependencies. 2024-11-14 22:33:34 +01:00
Sebastian Jeltsch 4376efa146 Update documentation for PB comparison to reflect recent JS/V8 addition. 2024-11-14 22:32:47 +01:00
Sebastian Jeltsch dc261e3405 Release v0.2.0 with JS/ES6/TS runtime based on V8-engine and dotnet client. v0.2.0 2024-11-14 21:37:35 +01:00
Sebastian Jeltsch 21b59dce6e Wire user auth state into JS runtime. 2024-11-14 20:45:38 +01:00
Sebastian Jeltsch 0755444169 First stab at JS/TS scripting documentation. 2024-11-14 20:45:37 +01:00
Sebastian Jeltsch ad8839f28d Add HttpError custom exception to js runtime. 2024-11-14 20:45:37 +01:00
Sebastian Jeltsch 8fa26c246f Minor: Write out js runtime to traildepot and rely on relative includes. Also some opportunistic cleanups along the way. 2024-11-14 20:45:37 +01:00
Sebastian Jeltsch 7465203174 Add conversions and convenience for various content-types to the js runtime. Make handlers async. Also extend the test spin up wait time with the longer build times with v8. 2024-11-14 20:45:37 +01:00
Sebastian Jeltsch 18dd596478 Bring up multiple isolate workers and grab requests from a shared pool. 2024-11-14 20:45:37 +01:00
Sebastian Jeltsch 43f5820bee Load all js/ts scripts from traildepot/scripts. 2024-11-14 20:45:37 +01:00
Sebastian Jeltsch 5929582168 Move js runtime out with offline transpilation. 2024-11-14 20:45:37 +01:00
Sebastian Jeltsch bce0f9c2c0 Wire sqlite/libsql client up with javascript v8 runtime. 2024-11-14 20:45:37 +01:00
Sebastian Jeltsch ab5513c825 Minor: Improve error handling and typescript integration. 2024-11-14 20:45:37 +01:00
Sebastian Jeltsch 6d37024ec4 Initial HTTP router setup: allow routing HTTP req/resp into and out of JS. 2024-11-14 20:45:37 +01:00
Sebastian Jeltsch fc8093139c Move runtime setup out, allow for return values, and turn it into a singleton making it usable in tests. 2024-11-14 20:45:37 +01:00
Sebastian Jeltsch d15202c749 PoC: Integration of V8-engine and rustyscript runtime.. 2024-11-14 20:45:37 +01:00
Sebastian Jeltsch 2e0d267d2a Update dotnet dependencies and add a dedicated "cargo build" step to reduce risk of timing out. 2024-11-14 20:42:17 +01:00
Sebastian Jeltsch 9bd4f31517 Add a README.md to the TS client for future publications to the package registry. 2024-11-14 16:53:01 +01:00