Git Product home page Git Product logo

Comments (4)

zeux avatar zeux commented on July 17, 2024 1

Oops this wasn't supposed to close. We now have a change that allows us to build Repl with Emscripten. I'm going to take a look at integrating this change into the build process, and figure out how to best integrate it with the web site.

The current top two contenders are:

  • Maybe it's feasible to fetch the GH release artifact, directly or using something like jsdelivr
  • Maybe we should make an npm package and just publish new versions of that package; unpkg can be used after that to source the file.

from luau.

MathematicalDessert avatar MathematicalDessert commented on July 17, 2024

Sounds good! Let me know what the end decision is.

from luau.

zeux avatar zeux commented on July 17, 2024

We've tested this lightly and it seems like it should be possible to just load the script from releases, e.g.

<script src="https://github.com/Roblox/luau/releases/download/<TAG>/luau.js"></script>

We could hardcode the tag to latest and make sure we move the tag with each release. Then we can simply upload build artifact with each release as we do with .zip archives for other artifacts.

This leaves the build setup. The only issue with the action that was in the earlier PR was the reliance on a third-party emsdk setup action. Is it possible to simply clone emsdk repository and run install & activate manually? (and maybe use GHA cache to speed this up, although maybe it's already pretty fast?)

from luau.

zeux avatar zeux commented on July 17, 2024

Oh, I should say that I don't know OTOH if the setup above works with .wasm but Emscripten has an option to embed ,wasm into .js so I'm assuming we could use that, which would also make it easier for us as it's just a single file we need to upload with releases.

from luau.

Related Issues (20)

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.