emsdk
pyscript
emsdk | pyscript | |
---|---|---|
39 | 41 | |
2,850 | 17,449 | |
1.3% | 0.3% | |
7.9 | 9.2 | |
5 days ago | 11 days ago | |
Python | Python | |
GNU General Public License v3.0 or later | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
emsdk
- Software Applications Incorporated
-
How does one get started with unit testing?
One place that I’ve found some real, open source unit tests to look at for an example is in the emsdk for emscripten: https://emscripten.org
-
godot 4.2 apksigner returned with error #2
Your default path was set by emsdk, given where the path is pointing. Your modified path is the path the installer linked in the Godot docs sets, just typically that kind of stuff doesn't override existing variables. This is a good thing to keep in mind in general as if you end up having to use a different version for something else in the future and just install it expecting the installer to update it for you, you will likely run into the same issue.
-
WebAssembly: Building GUI for C++ libraries with Embind
Emscipten C/C++ to WebAssembly compiler.
-
Playing with low-level memory in WebAssembly
I am playing around with Emscipten which wraps around clang to compile C/C++ code in WASM binary and provide some glue-code API to embed WASM binary into JavaScript. Look into MDN Docs and Emscripten SDK to get started.
-
Is there any alternative other than JavaScript to deal with web frontend?
Elm is a different approach that compiles into JavaScript. In the extreme case, you have Emscripten which will compile many language into JavaScript but will feel really clumsy compared to using JavaScript in a lot of cases.
-
What's the "modern" way of creating a native addon for Node.js?
https://emscripten.org/ ?
-
SQLite builds for WASI since 3.41.0
SQLite is a pretty popular database and it's a critical dependency for many different applications. By compiling it to Wasm32-wasi, you can add it to any WebAssembly module.
This enables a new set of possibilities for Wasm and SQLite. For example, now you can run a full WordPress application in the browser [1][2] / server [3] using the same Wasm module. Note that for the browser these projects use Emscripten [4], but in the future the same Wasm32-wasi module will work.
In general, any environment that includes a wasm runtime can potentially run applications that uses SQLite under the hood. Before, it wasn't possible.
- [1] https://wordpress.wasmlabs.dev/
- [2] https://developer.wordpress.org/playground/demo/
- [3] https://wasmlabs.dev/articles/running-wordpress-with-mod-was...
- [4] https://emscripten.org/
-
Noob question: Between WebGL, OpenGL ES and emscripten, what is the recommended usage and relationship between them for creating an interactive browser based graphics app?
The emscripten interface for the assimp library. It runs entirely in the browser, and allows you to import 40+ 3D file formats and access the result in JSON or glTF format. This is not a full port of assimp, but an easy to use interface to access it's functionality.
-
Website with Godot?
Three.js is written in JS and loads like a JS library on a modern website. Godot is a binary application transpiled to WASM (with the help of emscripten), resulting in a pretty large initial payload. Godot provides JS integration, but it feels less "native" with its layers of abstraction.
pyscript
-
RustPython
You are right for the most part. I attended a talk about pyscript[1] (runs python in the browser using wasm which is similar) and there is a 2x performance hit.
[1] https://pyscript.net
-
Python HTTP library 'urllib3' now works in the browser
PyScript maintainer here - I'd love to hear more about this application! Either here, or over on our Discord (invite link is on the GitHub Page [1]).
[1] https://github.com/pyscript/pyscript?tab=readme-ov-file#summ...
-
Convert code from alpha version to latest version. Where to find complete and precise changelogs?
For the first question - why your code previously created an HTML node but now just prints out the literal characters of the HTML - that was a change made in 2022.12.1, in Pull Request 915 to be specific. You can check out the single-line change that caused this, if you want. Essentially, calls to Element.write() or display() have their contents escaped by default, which wasn't the case before.
-
How to access py-click from py-script?
Note that in the current release (2023.03.1 at time of writing), py-[event] listeners are only hooked up once at page-load time, so changing that attribute after the page loads won't do anything. In the upcoming release, py-[event] handlers are dynamically attached and managed each time a py-[event] attribute on the page is changed. (PR 1435)
-
After tearing my hair out writing JavaScript the last few days how close are we to Python in the browser?
PyScript started as a usability layer around Pyodide for those not used to working in JS. It's now working on things like incorporating the Micropython runtime as an alternative, moving the interpreter to a worker thread, adding a plugins ecosystem, easier events API's, and more.
-
Any way to display "working..." while waiting for py-reml to evaluate?
Some answers: https://github.com/pyscript/pyscript/discussions/1414
-
How does PyScript work with 3rd party JS libraries, like Three.js ?
You can also check out the WebGL demo from the PyScript examples, which uses Thee.JS.
-
NameError question
Mainly, the pys-onClick syntax that was present in earlier version in favor of the new py-* syntax, where * is a browser event name. It also takes a string of executable python instead of the name of a Callable. So in your case, you'd use py-click="get_input()". (There's a long-in-progress PR on GitHub with more examples.)
- Intrebare frontend
-
Incorporating Two Languages Within A Project?
PyScript ? This is still experimental.
What are some alternatives?
WASI - WebAssembly System Interface
brython - Brython (Browser Python) is an implementation of Python 3 running in the browser
itk-wasm - High performance spatial analysis in a web browser, Node.js, and across programming languages and hardware architectures
appdaemon - :page_facing_up: Python Apps for Home Automation
website - WebAssembly website
pyodide - Pyodide is a Python distribution for the browser and Node.js based on WebAssembly
webaudio-examples - Code examples that accompany the MDN Web Docs pages relating to Web Audio.
django-readers - A lightweight function-oriented toolkit for better organisation of business logic and efficient selection and projection of data in Django projects.
tictactoe-game-wasm - This is a simple example for creating your first game in web assembly. The logic for this tic-tac-toe game is written in C++.
Home Assistant - :house_with_garden: Open source home automation that puts local control and privacy first.
CLI11 - CLI11 is a command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface.
wasm3 - 🚀 A fast WebAssembly interpreter and the most universal WASM runtime