summaryrefslogtreecommitdiffstats
path: root/lib (follow)
Commit message (Collapse)AuthorAgeFilesLines
* dirty loadlib fixprinter-configs-ol2024-05-251-3/+4
|
* Finish refactor (GPU, util libs). Remove laptop.tcl. Fix calibrate.Omar Rizwan2024-05-142-0/+364
| | | | Fix folk.tcl calibrate.
* Cleanup: Move c-utils into lib and auto-source it; remove play/Omar Rizwan2024-05-091-0/+22
|
* Make loadlibLd, filter by architecture if multiple candidatesOmar Rizwan2024-03-192-2/+12
| | | | Fixes https://discord.com/channels/956758212152025098/956758650700046366/1202431317971570728
* Merge pull request #86 from FolkComputer/ac/editorAndrés Cuervo2024-01-301-0/+6
|\ | | | | Add keyboard editor claim
| * Merge branch 'main' into ac/editorAndrés Cuervo2023-11-282-0/+6
| |\
| * \ Merge branch 'main' into ac/editorAndrés Cuervo2023-11-211-0/+12
| |\ \
| * \ \ Merge branch 'main' into ac/editorAndrés Cuervo2023-10-274-21/+78
| |\ \ \
| * \ \ \ Merge branch 'main' into ac/editorAndrés Cuervo2023-10-107-135/+299
| |\ \ \ \
| * | | | | Add vec2 mult/div, nearly-there cursorboxAndrés Cuervo2023-09-221-0/+6
| | | | | |
* | | | | | name conflict i n CCristóbal Sciutto2023-12-081-2/+2
| | | | | |
* | | | | | free!Cristóbal Sciutto2023-12-081-2/+10
| | | | | |
* | | | | | add tests, take furthest, remove best logicCristóbal Sciutto2023-12-081-7/+21
| | | | | |
* | | | | | Merge branch 'main' of github.com:FolkComputer/folk into cs/regions-in-cCristóbal Sciutto2023-12-083-0/+18
|\ \ \ \ \ \ | | |_|_|_|/ | |/| | | |
| * | | | | Clear mailbox of unmatched processesNaveen Michaud-Agrawal2023-11-232-0/+6
| | |_|_|/ | |/| | |
| * | | | newRegion -> fromRectAndrés Cuervo2023-11-211-1/+1
| | | | |
| * | | | Region helper to create a new region center on x yNaveen Michaud-Agrawal2023-11-211-0/+12
| | |_|/ | |/| |
* | | | wrong signCristobal Sciutto2023-11-041-2/+2
| | | |
* | | | fix convex-hull algorithm, handle empty return casesCristobal Sciutto2023-11-031-22/+49
| | | |
* | | | handle no pointsCristobal Sciutto2023-11-031-1/+11
| | | |
* | | | points are floatsCristobal Sciutto2023-11-031-6/+7
| | | |
* | | | back to tclCristobal Sciutto2023-11-031-9/+70
| | | |
* | | | v0 for region initializationCristobal Sciutto2023-11-031-17/+59
| | | |
* | | | 2D arrays in CFFICristobal Sciutto2023-11-031-9/+27
| | | |
* | | | infrastructure for testingCristobal Sciutto2023-10-311-0/+37
|/ / /
* | | c: Allow passing direct structs as pointer args (cheap)Omar Rizwan2023-10-251-0/+12
| | |
* | | 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 branch 'main' into osnr/multiple-on-process-blocksOmar Rizwan2023-10-131-14/+14
|\ \ \ | | |/ | |/|
| * | trie: Fix statementClauseToId pdf!Omar Rizwan2023-10-071-14/+14
| | | | | | | | | | | | Fix trie dot labeling; use ptrs as node ids while we're at it.
* | | dict getdef -> dict_getdef. Much, much fasterOmar Rizwan2023-10-061-21/+2
| | |
* | | display: WIP: Refactor into files; use wishes, not Display::Omar Rizwan2023-10-062-11/+42
| | | | | | | | | | | | | | | | | | | | | | | | Expose shader stuff to user programs for the first time. Mostly works, but display thread and main thread run much slower (28fps display, 70fps main). Also introduce dict getwithdefault (helpful for rest options).
* | | Merge branch 'main' into osnr/multiple-on-process-blocksOmar Rizwan2023-10-062-6/+54
|\| |
| * | Merge pull request #94 from FolkComputer/osnr/rest-patternsOmar Rizwan2023-10-062-6/+54
| |\ \ | | | | | | | | Rest patterns
| | * | evaluator: Fix key name in collectOmar Rizwan2023-10-031-2/+2
| | | | | | | | | | | | | | | | Collect is still a bit imperfect
| | * | trie: Fix lookupLiteral. I think this works?Omar Rizwan2023-10-031-3/+1
| | | |
| | * | WIP: Literal lookups for ...rest (works in Whens sometimes now)Omar Rizwan2023-10-032-4/+54
| | | | | | | | | | | | | | | | But crashes on unmatch sometimes in production.
* | | | process: Allow running multiple On process blocks on processOmar Rizwan2023-10-061-6/+18
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | Turn off share wishes/claims default for subprocesses, so you (for now) have to explicitly specify sharing if you want any to happen. On process now only spawns process if it doesn't exist but always runs the code block (which now happens through a statement instead of directly on init).
* | | c: uint8_t rtype to get rid of warningOmar Rizwan2023-10-041-0/+1
| | |
* | | main,display: Version the Folk heap; evict stale/unused images.Omar Rizwan2023-09-303-25/+31
| | | | | | | | | | | | | | | This at least keeps camera slices from crashing the system. TODO: Don't draw stale images.
* | | language: Backport fully lexical fnOmar Rizwan2023-09-291-3/+6
| | |
* | | Merge branch 'main' into osnr/vulkan-displayOmar Rizwan2023-09-274-47/+95
|\| |
| * | Merge pull request #90 from FolkComputer/fix/region-mathOmar Rizwan2023-09-251-22/+24
| |\ \ | | | | | | | | Some small fixes to region math
| | * | math/region move: Allow unitless scaling again, convert % to thatOmar Rizwan2023-09-251-2/+8
| | | | | | | | | | | | | | | | Check direction separately and report error if not valid
| | * | math/region scale: Allow stacking multiple scale actions againOmar Rizwan2023-09-251-6/+6
| | | |
| | * | Fix percentage move and allow region moves of 0x0Naveen Michaud-Agrawal2023-09-241-4/+0
| | | |
| | * | Don't rescale twiceNaveen Michaud-Agrawal2023-09-241-11/+11
| | | |
| * | | Merge branch 'osnr/peering-with-prefix-match'Andrés Cuervo2023-09-253-19/+64
| |\ \ \
| | * | | 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.
| | * | | trie: Add support for /..rest/ matchingOmar Rizwan2023-09-242-12/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not really supported in Whens yet, though -- only for direct trie queries like findMatches. Also make assert more tolerant of weird expressions.
| | * | | trie: Clean up unused stuff, documentOmar Rizwan2023-09-241-7/+5
| | | |/ | | |/|