A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vitusb/txiki.js below:

vitusb/txiki.js: A tiny JavaScript runtime, based on the most famous QuickJS

txiki.js — The tiny JavaScript runtime

My binary builds of "txiki.js" 😎

These are my binary builds of "txiki.js", based on a very interesting conversation here "Windows build - info/discussion". "txiki.js" is very very promising, because it has some important features that "QuickJS" lacks. My builds are initially based on the variant of cross compiling "txiki.js" by using Debian MinGW on my Debian-Live image. These builds are not yet completely statically bound ...

txikia (basque): small, tiny.

txiki.js is a small and powerful JavaScript runtime. It's built on the shoulders of giants: it uses QuickJS as its JavaScript engine, libuv as the platform layer, wasm3 as the WebAssembly engine and curl as the HTTP / WebSocket client.

It targets ECMAScript 2020 and implements many web platform features.

See it in action here:

First head over to building and build the runtime.

$ ./build/tjs eval "console.log('hello world')"
hello world
$

If you want to run a script you can use tjs run:

$ ./build/tjs run examples/hello_world.js
hello world
$

Explore all the options:

Support for the ES2020 specification plus some ES2020+ features like top level await.

(1): All of them are async.

(2): No subtle support.

(3): No tables, globals or memory support.

See the full API documentation.

Other extras:

The following modules compose the standard library:

CMake is necessary.

NOTE: The txiki.js build depends on a number of git submodules (libffi, libuv and wasm3). If you didn't already clone this repository recursively, make sure you initialize these submodules with git submodule update --init before proceeding to the build.

Install dependencies (libcurl, build-essential, cmake):

# On Debian / Ubuntu
sudo apt install libcurl4-openssl-dev build-essential cmake

Install dependencies (cmake, autoconf):

brew install cmake autoconf
# Get the code
git clone --recursive https://github.com/saghul/txiki.js --shallow-submodules && cd txiki.js
# Compile it!
make
# Run the REPL
./build/tjs
Windows support it's currently considered beta. Tests do pass, but building it is not as easy as it should be.

Building has only been tested in 64bit Windows.

First make sure you have MSYS2 installed. The mingw64 and clang64 environments are currently tested.

Then install the required dependencies:

pacman -S git make pactoys
pacboy -S curl-winssl:p toolchain:p cmake:p ninja:p

These commands must be run in a MinGW64 or clang64 shell.

This will build the executable just like on Unix. Note that at this point there are a number of dynamically linked libraries, so if you want to use the executable on a different system you'll need to copy those too. Check the list with ldd build/tjs.exe.

Make sure these commands are run from Windows Terminal (mintty, what MSYS2 provides is not supported).

At this time txiki.js uses calendar versioning with the form YY.MM.MICRO.

Built with ❤️ by saghul and these awesome contributors.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4