Commit Graph

132 Commits

Author SHA1 Message Date
milo df06d07437 webworker handle() should specifically not be an async function 2024-03-09 22:04:04 -05:00
milo 8548784d45 better handling of raw ptrs using NonNull 2024-03-09 18:00:03 -05:00
milo 16a1b12a7a give tidepool its own cargo.lock 2024-03-09 17:58:40 -05:00
milo 4a912b6fe5 add webworker support via wasm-bindgen
Squashed commit of the following:

commit bbb7f2276e
Author: milo <iitalics@gmail.com>
Date:   Sat Mar 9 17:52:07 2024 -0500

    update to wasm-bindgen 0.2.92

commit dd97d3ca03
Author: milo <iitalics@gmail.com>
Date:   Sat Mar 9 17:49:57 2024 -0500

    remove the need for .cargo config file

commit 1b2b330645
Author: milo <iitalics@gmail.com>
Date:   Sat Mar 9 17:47:42 2024 -0500

    simplify config storage, since its never mutated anyways

commit 32d199933c
Author: milo <iitalics@gmail.com>
Date:   Sat Mar 9 17:45:22 2024 -0500

    fix rotation state names

commit f92c586cfc
Author: milo <iitalics@gmail.com>
Date:   Sat Mar 9 17:01:08 2024 -0500

    return ints from suggest() and interpret them in worker.js

commit 4b0f62aa59
Author: milo <iitalics@gmail.com>
Date:   Wed Mar 6 00:46:30 2024 -0500

    out with wee_alloc, in with console_error_panic_hook

commit c59afecba5
Author: milo <iitalics@gmail.com>
Date:   Wed Mar 6 00:33:23 2024 -0500

    useless printing refactor

commit c6fd13f0a4
Author: milo <iitalics@gmail.com>
Date:   Wed Mar 6 00:32:27 2024 -0500

    only return one move

commit 74028e8efe
Author: milo <iitalics@gmail.com>
Date:   Tue Mar 5 20:26:49 2024 -0500

    webworker runs fish bot for suggestions

commit c6a20e2bcd
Author: milo <iitalics@gmail.com>
Date:   Tue Mar 5 19:59:14 2024 -0500

    begin to incorporate actual blockfish library into webworker

commit c66cf45294
Author: milo <iitalics@gmail.com>
Date:   Tue Mar 5 19:42:10 2024 -0500

    initial webworker implementation

commit b8f8cf5de3
Author: milo <iitalics@gmail.com>
Date:   Fri Feb 23 14:47:38 2024 -0500

    experimenting with wasm global state

commit 8b5e562c3d
Author: milo <iitalics@gmail.com>
Date:   Thu Feb 22 20:51:09 2024 -0500

    init some of the wasm scaffolding
2024-03-09 17:54:18 -05:00
milo 5b0eda58ad improve Bot::think() api 2024-02-23 14:47:51 -05:00
milo a257743f8b no default features for ahash to remove getrandom dep 2024-02-22 19:50:45 -05:00
milo c0a06ecd00 create dedicated Rating type to replace awkward (bool,i32) pair 2024-02-22 18:53:47 -05:00
milo a6f893e448 get rid of some useless pub(crate) syntax 2024-02-22 18:25:42 -05:00
milo 938bed05fc minor code cleanup particularly in TransTable 2024-02-22 18:21:52 -05:00
milo 096957cce3 update versions of deps; remove num_cpus() dep 2024-02-22 17:56:21 -05:00
tali 75f2eafc4c all the tidepool config file to be JSON 2023-04-16 20:24:52 -04:00
tali c8c2573e30 half-assed fix for newlines in tidepool 2023-04-16 20:11:36 -04:00
tali 6e7d6213aa fix bug with handling early exits by breaking out of the correct loop 2023-04-16 19:56:37 -04:00
tali 0ab1cf2200 tidepool::main spring cleaning 2023-04-16 19:56:37 -04:00
tali 4ad8f38341 move "is_terminal" and "is_better" logic from node.rs into bot.rs 2023-04-16 19:15:55 -04:00
tali 9067459eb1 output bot metrics data in tidepool with "-M" flag 2023-04-16 19:09:33 -04:00
tali 52d339747a add instrumenting support to Bot, returns basic info about algorithm 2023-04-16 19:04:47 -04:00
tali 1784647146 recognize clearing the bottom matrix row in evaluator 2023-04-16 18:33:34 -04:00
tali 082fa62add fix lints in fish benches 2023-04-16 17:59:10 -04:00
tali a9b86e03c4 fix lints in fish 2023-04-16 17:59:10 -04:00
tali e673198704 some inconsequential refactors to tidepool::main 2023-04-16 17:48:35 -04:00
tali cf9fd27ca0 add comment about copy_queue (non-)usage 2023-04-16 16:38:13 -04:00
tali 04dddcdaa8 drop useless TODO 2023-04-16 15:54:57 -04:00
tali 73467f4627 reduce default number of iters since deduplication is in effect 2023-04-16 15:37:01 -04:00
tali 0fb79906be implement a node transposition table 2023-04-16 15:37:00 -04:00
tali 588d673ad0 panic if queue is too big 2023-04-16 15:35:53 -04:00
tali e15637f0dd add benchmark for think() 2023-04-16 15:35:53 -04:00
tali bd840d5705 refactor how suggestion-updates are propagated to Bot and logged 2023-04-16 15:35:50 -04:00
tali 7bb551b362 iteration counter is stored in the Bot, and incr for each evaluation 2023-04-16 03:12:55 -04:00
tali 27e5394a8c more placement info in Node fmt::Debug 2023-04-16 03:12:55 -04:00
tali 51c8d72711 fix reexport of heuristic functions so they can be used by benches 2023-04-16 03:12:55 -04:00
tali 78f4c80e8e remove useless TODO 2023-04-16 03:01:47 -04:00
tali 6a08775a83 add weights configuration to tidepool config 2023-04-15 18:30:26 -04:00
tali 3445f9e44a add Features and Weights types to fish::eval 2023-04-15 18:25:27 -04:00
tali 32f66bb423 create Evaluator type that manages ratings; compute score relative to root 2023-04-15 18:24:48 -04:00
tali df1913d8f3 impl Display for Queue, impl Debug for Node 2023-04-15 17:29:10 -04:00
tali e439e1cb73 add Output::did_complete() to clarfiy some comparisons 2023-04-15 17:19:43 -04:00
tali 60cde45eea use casts instead of transmute in mino::Mat::new() 2023-04-14 20:27:44 -04:00
tali 5e069cf3ff refactor flood fill to use a more optimal algorithm 2023-04-14 20:27:44 -04:00
tali 5f653db2c9 add criterion benchmarking support, plus some benches 2023-04-14 18:53:21 -04:00
tali 84ba4d8145 shrimplify: find_locations() is not generic 2023-04-14 18:31:30 -04:00
tali ac487eec38 make Queue::new() a const fn 2023-04-14 17:33:38 -04:00
tali 82311fc9b6 panic=abort 2023-04-14 15:31:51 -04:00
tali d2e315d73b implement multithreaded runner for tidepool 2023-04-14 15:29:40 -04:00
tali 8b60c03232 add SummaryStats util type to tidepool 2023-04-14 15:28:20 -04:00
tali 517a64156a add fancy progress bar :D 2023-04-14 13:25:29 -04:00
tali 04197d4256 fix comment in downstacking.rs that was being treated as a doctest 2023-04-13 20:27:14 -04:00
tali da6885466c cargo update 2023-04-13 20:27:14 -04:00
tali cd73e8c592 more sophisticated syncronization in tidepool, enables graceful C-c 2023-04-13 20:27:14 -04:00
tali d1af51e204 make the output JSON for rotations more compact 2023-04-13 20:16:54 -04:00