web2js

Convert TeX's pascal to javascript (by kisonecat)

Web2js Alternatives

Similar projects and alternatives to web2js

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better web2js alternative or higher similarity.

web2js discussion

Log in or Post with

web2js reviews and mentions

Posts with mentions or reviews of web2js. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-11.
  • The JavaScript Ecosystem Is Delightfully Weird
    4 projects | news.ycombinator.com | 11 May 2023
    When I last looked, it seemed like WASM blobs just take arrays of numbers and return arrays of numbers. No objects, strings, or DOM elements, so I think it'd be tough to do web dev in wasm as it stands. And you need javascript glue if you want anything in the way of side effects.

    There is, however, quite a bit you can do in it. TeX has been compiled to wasm[1], it's about 600kb uncompressed 90k compressed (the memory image with latex loaded is about 6MB compressed though - latex is a beast). I think anything computationally intensive would be a good candidate for wasm (it has int64).

    1: https://github.com/kisonecat/web2js

  • Math Rendering Is Wrong
    7 projects | news.ycombinator.com | 27 Jun 2021
    I implemented a TeX engine in WebAssembly so you really can run TeX in the browser. You can see a demo of this at https://tex.rossprogram.org/ and at https://github.com/kisonecat/web2js you can find a Pascal compiler that targets WebAssembly which can compile Knuth's TeX. Interesting primitives like \directjs are also implemented, so you can execute javascript from inside TeX. The rendering is handled with https://github.com/kisonecat/dvi2html for which I finally fixed some font problems.

    To make it relatively fast, the TeX engine gets snapshotted and shipped to the browser with much of TeXlive already loaded. So even things like TikZ work reasonably well. There is of course a lot more to do! The plan is to convert ximera.osu.edu to this new backend by the fall.

Stats

Basic web2js repo stats
2
111
1.8
almost 3 years ago

kisonecat/web2js is an open source project licensed under GNU General Public License v3.0 or later which is an OSI approved license.

The primary programming language of web2js is xBase.


Sponsored
Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com