<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/subex/main.go
Commit message (Collapse)AuthorAgeFilesLines
* Changes the implementation of Atomise and Compound to no longer use goroutinesCharlie Stanton2023-04-211-4/+9
| | | | This results in a massive performance boost, ~4x speedup
* Changes the parsing API for subex to be more suitable to being part of a ↵Charlie Stanton2023-04-191-1/+6
| | | | larger program
* Replaces a few instances of SubexStates with pointers as they should beCharlie Stanton2023-04-191-1/+1
| | | | This potentially avoids bugs/errors and also improves the performance of pruning
* Replaces the parent/child implementation for operators like store and sum ↵Charlie Stanton2023-04-191-13/+47
| | | | | | | | | with an output stack Previously a store state was a parent of another state machine that it would run inside of itself in order to capture the output to be stored. This was limited as the greedyness of the child would not be transferred to the parent. The new implementation gives states more control over the output state and turns it into a stack. By pushing to the stack before the child and popping afterwards, all of the child's output can be retrieved while the child is very much part of the complete machine.
* Adds casting strings to numbers in the sum operatorCharlie Stanton2023-04-191-1/+5
|
* Creates functions for compounding atoms back into values in the walk module ↵Charlie Stanton2023-04-181-73/+19
| | | | and uses them in subex/main
* Renames TransducerOutput to OutputContent (and related types) and moves into ↵Charlie Stanton2023-03-051-23/+0
| | | | main/subexstate.go
* Changes the slot map so only runes can be used as slotsCharlie Stanton2023-03-051-6/+4
|
* Renames walk.Datum to walk.AtomCharlie Stanton2023-03-051-32/+34
|
* Replace append with walk.ConcatData in many places to fix bug to do with ↵Charlie Stanton2023-02-261-2/+2
| | | | | | semantics of append When doing append, be very careful as it does make changes in place to the underlying array of the slice which may affect other slices
* Converts subex output back into WalkValues and prints for easier debuggingCharlie Stanton2023-02-261-3/+60
|
* Modify subex to take JSON split into "data"Charlie Stanton2023-02-221-29/+60
| | | | | | Currently no way to reassemble the data on the other side Much of the potential data cannot be interacted with meaningfully, only the string functionality is implemented Should rename data to something else
* Introduces subex processingCharlie Stanton2023-02-191-0/+114
Doesn't integrate it at all yet