Repository navigation
Import packages as bytecode for mixins - #18
Merged
Merged
Conversation
… complete import paths Programs stop with an out of memory error when they keep more than 3/4 of the computer's memory alive (BURN_MAX_HEAP_MB), on bvm and in native executables. burn lsp caps its own address space at 4 GiB on Linux (BURN_LSP_MEMORY_MB). The language server completes import paths: standard modules, the project's packages and their files, and local files. An ambiguous name no longer also reports that it cannot be found. The VS Code extension finds burnup's ~/.burn/bin/burn and gives the server a PATH that contains it.
…ative executables import "<package>.bvmc" compiles the package to a bytecode library in its build/ folder, again only when its sources change, using the project's lock for its own packages. Native executables now start every embedded bytecode library at startup like bvm does, so a program made only of mixins runs the changed app. burn build -o creates missing output folders.
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.
Apps can now be used by other projects: imported as source, or as bytecode so they can be changed with mixins.
.bvmcimports:import "github.com/you/game.bvmc"compiles the package to a bytecode library in itsbuild/folder, rebuilding only when its sources change. The package's own package imports resolve through the project'sburn.lock. A project importing its own bytecode, or a cycle of bytecode imports, is reported clearly..bararchives already did. Before, a program made only of mixins printed nothing natively, because libraries were only started on the first call into them.burn build -o path/to/filecreates missing folders.cargo test --releasepasses and clippy is clean.This branch is built on #17, so its diff includes #17's commit until #17 is merged. burnlang/ash#3 depends on this PR.
🤖 Generated with Claude Code
https://claude.ai/code/session_01PCXUjgpGnka9y7AHKfnN3w
Generated by Claude Code