Utf8Json
wazero
Utf8Json | wazero | |
---|---|---|
5 | 57 | |
2,248 | 5,484 | |
- | 1.2% | |
0.0 | 8.1 | |
about 3 years ago | 3 months ago | |
C# | Go | |
MIT License | 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.
Utf8Json
-
Runtime code generation and execution in Go
This looks like a fun project but for serious work, if you need runtime codegen, you should use .NET which has been successfully using reflection and IL emit for more than a decade:
- Regex https://github.com/dotnet/runtime/blob/main/src/libraries/Sy...
- Json https://github.com/neuecc/Utf8Json/tree/master?tab=readme-ov... (this project is archived but nonetheless impressive and continues to show good numbers despite obsoletion)
- LINQ to DB query compilation https://github.com/dotnet/efcore/blob/main/src/EFCore/Query/...
-
Utf8Json VS Utf8JsonAsyncStreamReader - a user suggested alternative
2 projects | 10 May 2023
-
Branchless Exercise
While I posted a solution that would do this, I'd call this premature optimization. The only time I'd even consider doing this is in a hot path. Here's a good reason to focus on branchless programming: https://github.com/neuecc/Utf8Json.
-
Tried system.text.json instead of Newtonsoft.json for a personal project, resulted in a 10x throughput in improvement
Now try Utf8Json.
-
Runtime communication with C# applicaiton
If my game state was smaller I would go for https://github.com/neuecc/Utf8Json and serde_json combination. Would save me some time with rmp_serde customization.
wazero
-
Poor Man's Back End-as-a-Service (BaaS), Similar to Firebase/Supabase/Pocketbase
There was also this wrapper of sorts to make the wazero thing genuinely easier to do and it was on r/golang but I don't remember its name but I do think it is semi popular.
[1]wazero:https://wazero.io/
-
WebAssembly on Kubernetes
Wazero, Go-based
- Show HN: Wazero compiler ported to 4 new OSes
-
Exploring Goja: A Golang JavaScript Runtime
While I'm sure Goja is great for just JavaScript, using something like wazero allows your app to support more languages (anything that compiles to WASM) while keeping the benefits of CGO.
https://wazero.io/
I've used Wazero myself on C++ -> WASM code but I'm sure you could use Emscripten or something to compile JavaScript to WASM.
-
Runtime code generation and execution in Go
and for reference see how it's done in wazero https://github.com/tetratelabs/wazero/blob/c397a402ad17e495a...
-
Wazero: The zero dependency WebAssembly runtime
https://github.com/tetratelabs/wazero/releases/tag/v1.7.0
This includes the final release of the new optimizing compiler, which is a big improvement over the previous one.
The new version also adds experimental support for threads and snapshot/restore (setjmp/longjmp).
This is already being used by go-pgquery, all will mean that sqlc won't need to ship to almost copies of wazero (these features had been implemented on a friendly fork, and have now been up-streamed).
- Wazero v1.6.0
- Show HN: My Go SQLite driver did poorly on a benchmark, so I fixed it
-
Making Games in Go for Absolute Beginners
> Go actually has one of the best WASM runtimes https://github.com/tetratelabs/wazero
-
WASM by Example
Wazero looks super cool. I saw somewhere that programs can be run with a timeout, which sounds great for sandboxing. The program input is just a slice of bytes [1], so an interesting use case would be to use something like Nats [2] to distribute programs to different servers. Super simple distributed computing!
--
1: https://github.com/tetratelabs/wazero/blob/main/examples/bas...
2: https://natsbyexample.com/examples/messaging/pub-sub/go
What are some alternatives?
Json.NET - Json.NET is a popular high-performance JSON framework for .NET
wasmer - π Fast, secure, lightweight containers based on WebAssembly
LitJSON - JSON library for the .Net framework
wasmtime - A lightweight WebAssembly runtime that is fast, secure, and standards-compliant
Protobuf.NET - Protocol Buffers library for idiomatic .NET
wasmer-go - πΉπΈοΈ WebAssembly runtime for Go