Why SQLite Uses Bytecode
sqlite.org
Why SQLite Uses Bytecode
1–10 of 231 posts
Re: Why SQLite Uses Bytecode
#2Re: Why SQLite Uses Bytecode
#3SQLite's design docs were the first time I had seen a database use a virtual machine instead of walking a tree. I later noticed VMs in libraries, embedded DSLs, and other applications outside of large general-purpose programming languages. That really drove home for me that VMs could be anywhere and were often a useful step in handling a user's expressions.
Re: Why SQLite Uses Bytecode
#4SQLite's design docs were the first time I had seen a database use a virtual machine instead of walking a tree. I later noticed VMs in libraries, embedded DSLs, and other applications outside of large general-purpose programming languages. That really drove home for me that VMs could be anywhere and were often a useful step in handling a user's expressions.
SQLite is the first one I’ve looked at the internals of. Do others walk an AST of the query instead?
Re: Why SQLite Uses Bytecode
#5SQLite's design docs were the first time I had seen a database use a virtual machine instead of walking a tree. I later noticed VMs in libraries, embedded DSLs, and other applications outside of large general-purpose programming languages. That really drove home for me that VMs could be anywhere and were often a useful step in handling a user's expressions.
SQLite is the first one I’ve looked at the internals of. Do others walk an AST of the query instead?
> Tree-Of-Objects → The input SQL is translated in a tree of objects that represent the processing to be done. The SQL is executed by walking this tree. This is the technique used by MySQL and PostgreSQL.
Re: Why SQLite Uses Bytecode
#6Re: Why SQLite Uses Bytecode
#7[flagged]
Re: Why SQLite Uses Bytecode
#8I believe Microsoft SQL Server uses an object tree internally, and yet its query plan output is a table:
https://learn.microsoft.com/en-us/sql/t-sql/statements/set-s...
Re: Why SQLite Uses Bytecode
#9SQLite's design docs were the first time I had seen a database use a virtual machine instead of walking a tree. I later noticed VMs in libraries, embedded DSLs, and other applications outside of large general-purpose programming languages. That really drove home for me that VMs could be anywhere and were often a useful step in handling a user's expressions.
SQLite is the first one I’ve looked at the internals of. Do others walk an AST of the query instead?
Re: Why SQLite Uses Bytecode
#10SQLite's design docs were the first time I had seen a database use a virtual machine instead of walking a tree. I later noticed VMs in libraries, embedded DSLs, and other applications outside of large general-purpose programming languages. That really drove home for me that VMs could be anywhere and were often a useful step in handling a user's expressions.