summaryrefslogtreecommitdiffstats
path: root/lib/evaluator.tcl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* evaluator: Don't claimize patterns with verbsOmar Rizwan2023-10-231-13/+34
| | | | | | Suppresses one weird overeager unification error with sprites vs. shapes drawing (it was doing `/someone/ claims /anyone/ wishes` and all the wildcards lined up with the other statement in a bad way)
* Merge pull request #94 from FolkComputer/osnr/rest-patternsOmar Rizwan2023-10-061-5/+7
|\ | | | | Rest patterns
| * evaluator: Fix key name in collectOmar Rizwan2023-10-031-2/+2
| | | | | | | | Collect is still a bit imperfect
| * WIP: Literal lookups for ...rest (works in Whens sometimes now)Omar Rizwan2023-10-031-3/+5
| | | | | | | | But crashes on unmatch sometimes in production.
* | Merge branch 'main' into osnr/vulkan-displayOmar Rizwan2023-09-271-9/+19
|\|
| * Merge branch 'osnr/peering-with-prefix-match'Andrés Cuervo2023-09-251-3/+12
| |\
| | * evaluator/main: Speed up peering! Pi 4 7fps -> 12fps on average?Omar Rizwan2023-09-241-3/+12
| | | | | | | | | | | | | | | Unify with ...rest patterns. Use for all wishes/claims while peering. Seems much faster.
| * | Add type casts to ckalloc and ckfree in evaluatorCharles Chamberlain2023-09-251-2/+2
| | |
| * | evaluator: Fix a 32-bit thingOmar Rizwan2023-09-241-4/+5
| |/
* | Merge branch 'main' into osnr/vulkan-displayOmar Rizwan2023-09-221-50/+135
|\|
| * evaluator: Handle case where collect is goneOmar Rizwan2023-09-221-0/+3
| |
| * Hack: Avoid infinite loop if we deplete matchesOmar Rizwan2023-09-211-0/+4
| | | | | | | | | | | | (but why are we depleting matches?) TODO: Dump on this abort?
| * evaluator: Defend against null reference to collectOmar Rizwan2023-09-211-2/+4
| |
| * evaluator: Dedupe recollectsOmar Rizwan2023-09-201-18/+38
| |
| * Make metrics non-reactive + put recollect before unmatchOmar Rizwan2023-09-141-2/+2
| | | | | | | | | | We'll take the interim states for now to avoid having to recreate all tags.
| * Finish pqueue usage -- performs ok (300 operations/frame)Omar Rizwan2023-09-061-6/+12
| |
| * WIP: Start work on pqueue-based evaluatorOmar Rizwan2023-09-061-35/+59
| | | | | | | | Need to fix ordering of entries with same priority.
| * Operation log for perf testingOmar Rizwan2023-09-051-6/+32
| |
* | Merge branch 'main' into osnr/vulkan-displayOmar Rizwan2023-09-081-7/+32
|\|
| * Increase log size + some unmatch hackingOmar Rizwan2023-08-161-1/+2
| |
| * Try to fix collect incrementalOmar Rizwan2023-08-151-1/+2
| |
| * Evaluator: better incrementalize collectOmar Rizwan2023-08-151-5/+19
| |
| * evaluator: Add dot and print helpersOmar Rizwan2023-08-151-0/+9
| |
* | c: Start working on field getters. Throw errors from deep in C!Omar Rizwan2023-09-071-11/+3
|/
* Start documenting the evaluatorOmar Rizwan2023-07-141-2/+46
|
* Fix more leaks. This seems pretty goodOmar Rizwan2023-07-041-2/+7
|
* Fix clause memory leakOmar Rizwan2023-07-041-0/+1
|
* WIP: Start on new Commit scheme & syncing schemeOmar Rizwan2023-07-031-0/+3
| | | | | | Elids superfluous commits. Doesn't work yet. Also now Step after idle, so you don't Step in an event handler ever; Steps should coalesce a lot better now
* Fix(?) leak in C-Tcl interfaceOmar Rizwan2023-07-011-5/+8
|
* Fix small memory leakOmar Rizwan2023-07-011-0/+1
|
* Fix minor(?) memory leakOmar Rizwan2023-06-291-0/+1
|
* Remove old Collect after adding new oneOmar Rizwan2023-06-281-14/+17
| | | | | | (May usually fix problem with virtual-program live edit, bc camera won't have to get destroyed/replaced if you edit another virtual program, bc this incrementalizes changes to the set of virtual programs)
* More sharing & dot cleanup/improvement/fixingOmar Rizwan2023-06-191-3/+2
|
* Fix dot and probably sharingOmar Rizwan2023-06-191-15/+11
|
* Use m/s: format for stringifying ids. Make subproc share allOmar Rizwan2023-06-181-5/+11
|
* Do gen increment on removal -- this seems betterOmar Rizwan2023-06-061-2/+4
|
* More fixing evaluator bugs (with reuse)Omar Rizwan2023-06-051-2/+5
|
* Fix pointer incompatibility errors in evaluatorAndrés Cuervo2023-06-021-10/+10
|
* Start on lambda/apply-based environment managementOmar Rizwan2023-06-011-36/+30
| | | | | | | Should hopefully be faster bc we can cache the bytecode representation of each code block Only working on (some of) test/basic right now
* Fix two memory leaksOmar Rizwan2023-05-261-0/+10
|
* Fix dotOmar Rizwan2023-05-241-2/+14
|
* WIP: Resizable edgelists on statements and matchesOmar Rizwan2023-05-241-126/+122
|
* Merging main into c-evaluatorCharles Chamberlain2023-05-091-13/+13
|
* Fix id=0 bug in UnmatchOmar Rizwan2023-04-261-10/+8
|
* Fix some memory leaksOmar Rizwan2023-04-251-12/+15
|
* Move c-statements to lib/evaluator.tcl.Omar Rizwan2023-04-251-0/+1150