assemblyscript
crates.io
Our great sponsors
assemblyscript | crates.io | |
---|---|---|
29 | 660 | |
16,372 | 2,768 | |
0.9% | 1.9% | |
7.6 | 10.0 | |
17 days ago | 1 day ago | |
WebAssembly | 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.
assemblyscript
-
Let's Write a Malloc
Incidentally, itβs also what AssemblyScript uses: https://github.com/AssemblyScript/assemblyscript/blob/main/s...
-
Gentle Introduction To Typescript Compiler API
Use it as a Front-End for other low-level languages.
-
TypeScript Is Surprisingly OK for Compilers
> MHO typescript could just cut loose from its javascript compatibility. Why not compile it to wasm instead of transpiling it to javascript?
Check out AssemblyScript which is exactly that:
-
Do you think typescript will ever have native support on brosers? Or we will have only the JS type annotations?
If you're curious, check out AssemblyScript, that might describe better what needs to be cut from TypeScript to make it possible to be compiled to WASM.
-
Ezno's checker (a Javascript type checker and compiler written in Rust) is now open source
This is kinda the idea behind AssemblyScript, but IIRC it's more of a low-level typescript-ish syntax for WebAssembly.
-
Emerging Rust GUI libraries in a WASM world
Exactly, WASM was designed to be very very lightweight... you can put a lot of logic into a very small amount of WASM, but you need a good compiler to do that, or write WASM by hand to really feel the benefit. If you just compile Go to WASM, with its GC, runtime and stdlib included in the binary, yeah it's going to be pretty heavy... Rust doesn't have a runtime but as you said, for some reason, produces relatively large binaries (not the case only in WASM by the way). Probably, the best ways to create small WASM binaries is to compile from C or from a WASM-native language like AssemblySCript (https://www.assemblyscript.org).
-
Dan Abramov responds to React critics
Well we have all the new ECMA standards that will be introduced in 5 years now. It's looking more like Java actually. its accessor and typing patterns match it the most. TypeScript has had quite the profound influence over future ECMA design. There is a not so well known project called AssemblyScript which I think has a promising future. Since future ecma standards closely resembles it and TypeScripts popularity has exploded I have a feeling it may become a real standard as well.
-
Do any engines or optimizers product TS-specific performance gains?
If you can guarantee that Typescript type hints will always be followed, you can turn it into more optimised code. Unfortunately, this means you've got to break Javascript semantics, so this means creating a new language, but people have done it. For example, AssemblyScript is a language that is designed as a strict subset of Typescript that compiles directly down to WebAssembly instead of Javascript, producing much more efficient code (most of the time). The tradeoff is that it has some slightly different semantics to Javascript, which means your existing codebase β and most of the libraries you use β will probably require some adaption before running correctly in AssemblyScript.
-
Announcing TypeScript 5.0
If you have heard of WASM, AssemblyScript allows you to use specific integer/floating point types and I think it's cool that they're using TypeScript syntax.
-
[AskJS] You have mastered writing JavaScript from scratch, why use TypeScript?
You can write the source code in C, C++, Rust, AssemblyScript, or something like this https://www.assemblyscript.org/.
crates.io
-
Migrating a JavaScript frontend to Leptos, a Rust framework
So, be sure to double-check your critical libraries and be sure their alternatives exist in the Rust ecosystem. Thereβs a good chance the crates you need are available in Rust's crates.io repository.
-
Learning Rust: A clean start
The previous section was very simple, this section is also very simple but introduces us to cargo which is Rust's package manager, as a JS dev my mind goes straight to NPM.
-
Rust π¦ Installation + Hello World
Before proceeding, let's check https://crates.io/, the official Rust package registry.
-
Underestimating rust for my Project.
The most thrilling aspect has been the joy of writing the backend. It's like every struct, enum, and method in Rust forms this interconnected Multiverse of code , which you can see in crates.io which is best Documentation experience I Ever Had.
-
Top 10 Rusty Repositories for you to start your Open Source Journey
5. Crates.io
-
Cargo has never frustrated me like npm or pip has. Does Cargo ever get frustrating? Does anyone ever find themselves in dependency hell?
It's more that crates.io gets frustrating. When you end up with a pile of duplicated 3rd party transitive dependencies. Or find that something you foolishly chose as a dep has been abandoned. Or both.
Vendoring your packages was very tedious to even remotely get to work with Cargo. I spent a very long time getting Cargo to work together with cargo-local-registry. We vendor crates from crates.io and a custom internal registry.
-
How did I need to know about feature rwh_05 for winit?
So this is my question: Which way was the right to find it out? There is no info about this feature on crates.io. I also have no clue what exactly it does and why it is named rwh_05.
-
15,000 Go Module Repositories on GitHub Vulnerable to Repojacking Attack
Rust does it so much better with https://crates.io . I don't know why Go can't (or won't) do something similar.
-
Proxy gRPC to gRPC
Are there any crates that do this? If yes, I'd love to know about them, however, I'm doubtful as I've searched crates.io and found no luck.
What are some alternatives?
rust-ffmpeg-wasi - ffmpeg libraries precompiled for WebAsembly/WASI, as a Rust crate.
Lua - Lua is a powerful, efficient, lightweight, embeddable scripting language. It supports procedural programming, object-oriented programming, functional programming, data-driven programming, and data description.
docs.rs - crates.io documentation generator
plotters - A rust drawing library for high quality data plotting for both WASM and native, statically and realtimely π¦ ππ
interface-types
ffmpeg.wasm - FFmpeg for browser, powered by WebAssembly
reference-types - Proposal for adding basic reference types (anyref)
Cargo - The Rust package manager
trunk - Build, bundle & ship your Rust WASM application to the web.
gtk4-rs - Rust bindings of GTK 4
rust - Empowering everyone to build reliable and efficient software.
deno - A modern runtime for JavaScript and TypeScript.