tursodatabase / tursodatabase/libsql

wasmtime-udf-bindings: use malloc instead of naïve memory.grow

Open
#146 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
17.2k
Forks
531
Avg merge
1h 12m
Merged PRs (30d)
1

Description

Following #145, let's migrate the wasmtime UDF bindings to rely on an exported libsql_malloc function for allocating instance memory for parameters.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the context from #145 and locating the wasmtime UDF bindings and the exported libsql_malloc function. Trace how instance memory for parameters is currently allocated, then verify that the bindings use libsql_malloc instead of naïve memory.grow and that parameter handling still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, wasm
Domain
backend, databases
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.