Skip to content

zig + zls but wasm and it's in the browser 🤯🤯🤯

License

Notifications You must be signed in to change notification settings

zigtools/playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zig and ZLS in the browser

Works pretty well in a bunch of browsers, but note the required security headers.

Installing

You can either:

npm install
npm run serve

Enjoy!

Update artifacts

For the time being, the following artifacts have been commited to source control:

  • src/zls.wasm - A build of ZLS (ReleaseSmall, wasm32-wasi, VERSION_TBA)
  • src/zig.wasm - A build of Zig (ReleaseSmall, wasm32-wasi, 0.14.0 with ./zig.patch applied)
  • src/zig.tar.gz - The source code of Zig. Only the lib/std subdirectory is needed.

The ./compile.sh script can be used to create these artifacts:

./compile zls
./compile zig
./compile zig_tarball

Compiling Zig and ZLS may require different Zig compiler versions.

TODOs

  • Stop using SharedArrayBuffers (they're awesome but a nightmare to deploy)

About

zig + zls but wasm and it's in the browser 🤯🤯🤯

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •