Giter VIP home page Giter VIP logo

wasm-astar's Introduction

Welcome!

I'm Jacob Deichert and I'm a software developer from Nanaimo, BC. Thanks for coming to check out my work.

🧰 Most of my experience is based around Node, Go, TypeScript, React and Svelte. For side projects, my favourite stack currently is Rust for the backend (using my custom framework built on top of hyper) and Solid on the frontend. I've also been experimenting with WebAssembly and I'm looking forward to releasing another project soon.

πŸ›  I enjoy building dev tools and automating things. Mask is a CLI task runner which uses a markdown file to define commands. Svelvet was an experiment in building an esm-based compiler for Svelte.

πŸ§ͺ This year I'm hoping to get into IoT and embedded development with Rust.

πŸ“˜ I sometimes write about things on my blog.

πŸ‘‹ You can reach me at [email protected]

wasm-astar's People

Contributors

jacobdeichert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

wasm-astar's Issues

ios and android supported?

i tried cell phone's browser can't get the view of game.
if the mobile browser not supported for wasm?

Large wasm file sizes, potential causes, and how to avoid them?

Seems like there's some gotchas when it comes to what parts of Rust you use and how large it can cause your wasm output to be.

The current wasm output file size is 88kb before wasm-gc and 71kb after. This has been bugging me for a few days and I haven't looked into it until now.

A basic hello world I created was 17kb before wasm-gc and 103 bytes after which sounds much better.

After disabling some code, i've found a few factors that seem to heavily change the wasm output size.

Creating a vec! causes ~8.5kb of file size.

I disabled a bunch of code to get down to this point. I haven't recreated a minimal example yet though.

Indexing a vec! by a random number causes an extra 31kb of file size (totaling ~40kb)
This seems to take up more than half of the final wasm size. If I index the vec by a hard coded number less than the vec's length, the file size remains at ~8.5kb as noted above. But if I hard coded a number >= the vec's length, the file size increases to 40kb too.


I'll post any more findings I have here. Hoping someone can enlighten me on ways to keep the file size down and perhaps as to why indexing a vec costs so much?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.