ballercat / ballercat/walt

Port simple heap for closure plugin

Open
#70 1 comment 0 reactions 0 assignees View on GitHub
easy good first issue help wanted
Dominant language
JavaScript
Stars
4.6k
Forks
119
PR merge metrics
No merged PRs in 30d

Description

# Goal
Stabilize closure plugin.

## Overview
Built-in closure plugin doesn't manage memory for closures. I wrote a basic [simple-heap](https://github.com/ballercat/wasm-utils/blob/master/lib/simple-heap.js) in JavaScript a long time ago for emulated `malloc/free` calls. It should be trivial to port it to a walt file.

## Acceptance Criteria

- [ ] Implement actual `malloc` and `free`
- [ ] Write some tests

Contributor guide

Open the contributing guide

Research direction

Start by reading the linked lib/simple-heap.js implementation and locating the built-in closure plugin's Walt source. Port the heap behavior there, implement malloc and free, and add tests that demonstrate both operations work as requested.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, wasm
Domain
compilers
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.