docs: add Elixir page (exqlite run-time loading + static compilation for iOS) - #317
Open
AlanMcCann wants to merge 1 commit into
Open
docs: add Elixir page (exqlite run-time loading + static compilation for iOS)#317AlanMcCann wants to merge 1 commit into
AlanMcCann wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
site/using/elixir.mdpage following the existing per-language format, plus the sidebar entry.Covers:
exqlite(enable_load_extension+load_extension) and per-connection loading via Ecto'sload_extensionsconfig.SQLITE_EXTRA_INIT+sqlite3_auto_extension— the only option on iOS, where dynamic code loading is forbidden. References theEXQLITE_EXTRA_SRChook proposed in Add EXQLITE_EXTRA_SRC: statically compile SQLite extensions into the NIF elixir-sqlite/exqlite#355 and notes the two-line Makefile patch as the interim..pack("f*")snippet on the Ruby page).Everything in the page is verified by execution in a production Elixir app: sqlite-vec v0.1.9 statically compiled into exqlite's bundled SQLite (3.51.3 and 3.53.4), known-answer cosine checks (
vec_distance_cosine(vec_f32('[1,0]'), vec_f32('[0,1]')) = 1.0), including an iOS device-SDK static archive with execution verified in the simulator.