Skip to content

Switch & upgrade to quickjs-ng 7.0.0 #216

Closed

Description

@p-bakker

quickjs-ng 7.0.0 has been released, so would be nice to update this project to that version

Additionally, it seems that quickjs-ng has much more traction than quickjs, so maybe make quickjs-ng the default?

Activity

  1. justjake commented on Nov 26, 2024

    @justjake
    Owner

    I don’t know how CMake works, so I’m reluctant to add a dependency on CMake to this project. If you want to maintain the quickjs-ng variants I’m happy to accept a PR updating the build process to work with quickjs-ng 7

  2. p-bakker commented on Dec 30, 2024

    @p-bakker
    Author

    Afraid I probably know less than you about how CMake works... :-/

  3. saghul commented on Jan 30, 2025

    @saghul

    @justjake Hey there! Can you point me to where you build quickjs? I can help.

  4. justjake commented on Jan 31, 2025

    @justjake
    Owner

    @saghul id appreciate the support. I template Variant.mk into each variant, then run make per variant to produce the final wasm and/or js files

  5. justjake commented on Jan 31, 2025

    @justjake
    Owner

    Here’s the make rule for quickjs:

    $(BUILD_QUICKJS)/%.o: $(QUICKJS_ROOT)/%.c $(WASM_SYMBOLS) | $(EMCC_SRC)

  6. justjake commented on Jan 31, 2025

    @justjake
    Owner

    I think one issue I encountered trying to adapt newer quickjs-ng is that it’s harder to enable malloc_usable_size and other memory accounting features in quickjs-ng for Emscripten environment. Emscripten appears to provide a malloc_usable_size but perhaps the original authors thought it’s a useless feature in web? Or maybe it has bugs? But between cmake being intimidating and some of the ifdef changes I gave up on quickjs-ng

  7. saghul commented on Feb 3, 2025

    @saghul

    I'll look into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions