Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh actions sqlite wasm #691

Open
1 task
irthomasthomas opened this issue Mar 5, 2024 · 1 comment
Open
1 task

gh actions sqlite wasm #691

irthomasthomas opened this issue Mar 5, 2024 · 1 comment
Labels
Automation Automate the things code-generation code generation models and tools like copilot and aider Sqlite Sqlite DB and tools

Comments

@irthomasthomas
Copy link
Owner

Title: gh actions sqlite wasm

Description:

<!DOCTYPE html>

<title>Minimal sql.js-httpvfs demo</title>
<!-- DEV: -->
<script src="./dist/bundle.js"></script>
<!-- PROD: -->
<!-- <script src="./bundle.js"></script> -->
<script>

    // Check if WebAssembly is supported for the target browser
    const supported = (() => {
        try {
            if (typeof WebAssembly === "object"
                && typeof WebAssembly.instantiate === "function") {
                const module = new WebAssembly.Module(Uint8Array.of(0x0, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00));
                if (module instanceof WebAssembly.Module)
                    return new WebAssembly.Instance(module) instanceof WebAssembly.Instance;
            }
        } catch (e) {
        }
        return false;
    })();
    console.log(supported ? "WebAssembly is supported" : "WebAssembly is not supported");


    // TODO: Dynamically load bundle.js based on env
    // var isProduction = process.env.NODE_ENV == 'production';
    // var src = isProduction ? "./bundle.js" : "./dist/bundle.js";
    // document.write('<script src="' + src + '"><\/script>');

</script>
<div>Hello World! If you don't see anything probably your browser doesn't support WebAssembly</div>

URL:

GitHub Repository

Suggested labels

@irthomasthomas irthomasthomas added Automation Automate the things code-generation code generation models and tools like copilot and aider Sqlite Sqlite DB and tools labels Mar 5, 2024
@irthomasthomas
Copy link
Owner Author

irthomasthomas commented Mar 5, 2024

Related content

#691 - Similarity score: 1.0

#692 - Similarity score: 0.91

#695 - Similarity score: 0.89

#74 - Similarity score: 0.89

#114 - Similarity score: 0.83

#625 - Similarity score: 0.83

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Automation Automate the things code-generation code generation models and tools like copilot and aider Sqlite Sqlite DB and tools
Projects
None yet
Development

No branches or pull requests

1 participant