Git Product home page Git Product logo

Comments (5)

billywhizz avatar billywhizz commented on June 8, 2024

this project isn't active anymore @Mupli. the thing i am working on currently is here.

not aiming for node.js compat for this low level library but plan on implementing as many of the WinterCG/Node.js api's on top of this at some point, if there is any interest.

from just.

Mupli avatar Mupli commented on June 8, 2024

too bad this project was 4th in the world if is about performance.
https://www.techempower.com/benchmarks/#hw=ph&test=composite&section=data-r22

What was missing was the compatibility with the vast spectrum of js libraries that could be installed via npm.

I was looking into lo and it is too low level for me.
If there could be some wrapper that could make things easier and allow to use npm libs.

from just.

McSneaky avatar McSneaky commented on June 8, 2024

You can use NPM packages, just not packages that rely on some Node specific stuff

from just.

Mupli avatar Mupli commented on June 8, 2024

how you mean that i would need to:

  1. install just to system.
  2. npm init
    3.. modify package.json with start: just app.js

Btw. why just is not in npm repository ?

from just.

billywhizz avatar billywhizz commented on June 8, 2024

hi @Mupli

the just-js/just project is not actively maintained anymore. just-js/lo is the current thing i am working on and, at some point, i may "resurrect" just-js/just as a more "batteries included" and "standard JS" compliant runtime built on top of lo.

https://github.com/just-js/lo

if lo looks interesting, feel free to raise an issue on that repo and we can discuss. lo module resolution is not compatible with node/npm right now but, as an embedder, you can override module resolution and roll your own however you want. this would allow building something npm or jsr compatible on top of lo.

there's an example that should be working with latest lo here. if you run

$ lo loader.js lib/asm/asm.js

LO_CACHE=1 lo loader.js lib/asm/asm.js
lib/asm/asm.js
fetching https://raw.githubusercontent.com/just-js/lo/0.0.15-pre/lib/asm/asm.js for lib/asm/asm.js from loader.js
1135
lib/asm/assembler.js
fetching https://raw.githubusercontent.com/just-js/lo/0.0.15-pre/lib/asm/assembler.js for lib/asm/assembler.js from loader.js
13327
lib/asm/compiler.js
fetching https://raw.githubusercontent.com/just-js/lo/0.0.15-pre/lib/asm/compiler.js for lib/asm/compiler.js from loader.js
1590
Assembler,Compiler,Registers

this will load the module over http from github and any modules it depends on. right now http (using libcurl) is synchronous/blocking but there will be a native async-compatible implementation of fetch ready soon. 🙏

from just.

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.