Transcrypt
krustlet
Our great sponsors
Transcrypt | krustlet | |
---|---|---|
16 | 21 | |
2,808 | 3,532 | |
0.4% | 0.3% | |
3.2 | 3.1 | |
9 months ago | 7 months ago | |
Python | Rust | |
Apache License 2.0 | 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.
Transcrypt
- Ask HN: Why don't browsers just build a non-JS interpreter?
-
How does PyScript actually work?
This is the primary difference between Pyodide and projects like Transcrypt or Brython: rather than transpiling to JavaScript, you get the real-deal CPython interpreter running client-side in the user's browser. There are a few things that don't work out of the box, since CPython usually runs on a computer and the Browser environment has some unique restrictions (lack of low-level access to networking, for one), but most things do just work.
-
alternatives to the javascript ecosystem
In the past, I've personally used GWT to transpile Java to JavaScript in order to share some complex code modules that we needed to use on both the server and client for an enterprise application. In more recent years, I've been using Transcrypt to develop React/MUI applications that are coded in Python. So I'm able to use JS libraries that are proven to work great in a web browser, but use my preferred language to code to the API of those libraries. This approach is certainly not for everyone, but it can be a viable option in some cases.
-
What's your Python story?
I now use Python everywhere. Desktop (PySide), embedded (MicroPython), web dev (React via Transcrypt), mobile (Kivy), and just general scripting. I love the versatility of Python, the ease of reading it without the visual cruft of other languages, and the availability of existing libraries that do just about everything you can think of. I also agree with the OP on the welcoming attitude of the Python community. The fact that Python is used in so many different areas leads to many new learning experiences when talking to other Python developers.
-
After tearing my hair out writing JavaScript the last few days how close are we to Python in the browser?
Transcrypt is pretty usable for this.
-
What do you guys use python for?
Transcrypt transpiles Python into JavaScript in the same way that TypeScript gets transpiled into JavaScript. It lets Python code word with JavaScript libraries that can then be run in a web browser.
-
Graphs in Python web app
There are options for writing Python and transpiling it into JavaScript but, frankly, they suck (https://www.transcrypt.org/).
-
React JSX vs react with HMTL
Lol, I'll tell you but you're not gonna like it - I write React applications in Python using a Python-to-JS transpiler called Transcrypt, and the source needs to be valid lintable Python code, so no JSX.
-
What is the best way to parse python code?
The Python AST module exists for this purpose and works by tokenizing individual pieces of the source code. It's also how transpilers such as Transcrypt work their magic to convert Python code to other languages.
-
We've been lied to: JavaScript is fast
https://github.com/qquick/Transcrypt
krustlet
-
WASM Instructions
Oh it’s certainly looking like that IMO.
You can run wasm in k8s: https://krustlet.dev/
Docker itself can run wasm: https://wasmlabs.dev/articles/docker-without-containers/
There are a few serverless runtimes based on wasm: https://wasmcloud.com/
A lot of those are powered by wasmtime or WasmEdge.
If you’re wanting to be able to just pull down a random app and run it as wasm, that’s inherently harder with wasm, because you have to recompile, and amazing compiling stuff is always harder than it should be. For example I compiled jq to wasm to other day, so you dont have to worry (as much) about the CVEs that was issued recently. https://github.com/rockwotj/jq-wasi
- The advantage of WASM compared with container runtimes
-
Crafting container images without Dockerfiles
It can, kubevirt is a project for running VMs https://kubevirt.io/ and there have been more esoteric things like WASM (https://github.com/krustlet/krustlet).
- The Python Paradox
-
I Don’t wanna use Docker or kubernetes
Or you can run Krustlet instead of Kubelet. That makes it so you can only run WebAssembly on the cluster - so no Go, no Python, only Rust!
-
Why did the Krustlet project die?
But the project seems to have died: https://github.com/krustlet/krustlet/graphs/contributors
-
Does anybody have a use-case for Scala WASM compilation target?
There are some cloud providers that are starting to offer wasm support. Docker is currently working on wasm https://docs.docker.com/desktop/wasm/ There is also krustlet https://krustlet.dev/ which lets you run wasm in kubernetes
- How I got involved in the Rust community
-
Are V8 isolates the future of computing?
> If one writes Go or Rust, there are much better ways to run them than targeting WASM
wasm has its place, especially for contained workloads that can be wrapped in its strict capability boundaries (think, file-encoding jobs that shouldn't access anything else but said files: https://news.ycombinator.com/item?id=29112713).
> Containers are still the defacto standard.
wasmedge [0], atmo [1], krustlet [2], blueboat [3] and numerous other projects are turning up the heat [4]!
[0] https://github.com/WasmEdge/WasmEdge
[1] https://github.com/suborbital/atmo
[2] https://github.com/krustlet/krustlet
[3] https://github.com/losfair/blueboat
[4] https://news.ycombinator.com/item?id=30155295
- Krustlet: Kubernetes Kubelet in Rust for Running WASM
What are some alternatives?
brython - Brython (Browser Python) is an implementation of Python 3 running in the browser
miniflare - 🔥 Fully-local simulator for Cloudflare Workers. For the latest version, see https://github.com/cloudflare/workers-sdk/tree/main/packages/miniflare.
pyodide - Pyodide is a Python distribution for the browser and Node.js based on WebAssembly
youki - A container runtime written in Rust
sqlglot - Python SQL Parser and Transpiler
yew - Rust / Wasm framework for creating reliable and efficient web applications
python-functions
jupyterlite - Wasm powered Jupyter running in the browser 💡
awesome-paas - A curated list of PaaS, developer platforms, Self hosted PaaS, Cloud IDEs and ADNs.
onelinerizer - Shamelessly convert any Python 2 script into a terrible single line of code
ffi-overhead - comparing the c ffi (foreign function interface) overhead on various programming languages