Skip to content

Conversation

@zharinov
Copy link
Member

@zharinov zharinov commented Jan 14, 2026

Summary

  • Bytecode v2: compute section offsets from counts (removes 8 explicit offset fields)
  • Add str_blob_size and regex_blob_size to header for blob storage
  • Reserve has_predicate bit in Match instruction for text filtering
  • Delete TypeMetaHeader (counts now in main header)

Why

Foundation for predicates — filtering nodes by text content:

(identifier == "foo")       ; exact match
(identifier ^= "get")       ; starts with
(identifier =~ /^test_/)    ; regex match

This PR prepares the bytecode format; parser/compiler/VM follow in separate PRs.

@zharinov zharinov changed the title refactor: Bytecode v2 header with computed offsets feat: Bytecode v2 header for predicate support Jan 14, 2026
@zharinov zharinov merged commit d12c163 into master Jan 14, 2026
3 checks passed
@zharinov zharinov deleted the refactor/bytecode-v2-header branch January 14, 2026 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants