Commit Graph

4 Commits

Author SHA1 Message Date
Brummel f1621ed1ac Update data_stream_print.myc 2026-03-30 10:54:48 +02:00
Brummel 0ef5faed91 Remove unused Propa example
The `Propa.myc` example was not being used and has been removed to clean
up the examples directory.
2026-03-30 10:31:45 +02:00
Brummel 9b13546609 feat: Add pipe parameter validation and fix VM call frame
Adds a check within the `PipeHook` to ensure the number of input streams
provided to a `pipe` operation matches the number of parameters expected
by the associated lambda function. This prevents runtime errors and
provides a clearer compile-time diagnostic.

Additionally, this commit corrects the order in which a `CallFrame` is
pushed onto the VM's frame stack. By pushing the frame earlier, it
ensures that slow-path `unpack` operations have access to a valid frame,
preventing "No call frame" errors.
2026-03-30 09:43:58 +02:00
Brummel 1f68371920 Add symbol-based cache eviction
Introduces a reference counting mechanism for symbols within the
`FileCache`. When a `SymbolChunkIter` is created, it increments the
reference count for its symbol. When the iterator is dropped, the
reference count is decremented. If a symbol's reference count drops to
zero, all cached data associated with that symbol is evicted from the
cache, freeing up memory. This prevents stale data from being held
indefinitely when no active iterators are using it.
2026-03-29 21:40:30 +02:00