cyclone
json
cyclone | json | |
---|---|---|
8 | 3 | |
809 | 314 | |
- | - | |
8.5 | 7.4 | |
8 days ago | 9 days ago | |
Scheme | Go | |
MIT License | BSD 3-clause "New" or "Revised" License |
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.
cyclone
- Rust vs. Go in 2023
-
Best implementation for standalone + browser executable?
Wow, thanks a lot! I hit a snag running cyclone's repl on a M1 Mac, but found the fix here: https://github.com/justinethier/cyclone/issues/464
-
How to Detect a Cycle in a Linked List
When developing Cyclone Scheme I discovered the latest R7RS Scheme language specification requires that several procedures handle circular lists.
-
Which Scheme for compiling C to use in WASM?
Cyclone Scheme transpiles to C and can run in the browser using WASM.
-
Tail Call Optimization by Base Jumping off the Stack
Over the years various solutions have been developed to meet this requirement such as trampolines, goto's, compiler optimizations, etc. One of the most unusual was proposed by Henry Baker in his paper CONS Should Not CONS Its Arguments, Part II: Cheney on the M.T.A. (PDF).
-
Oldest Scheme Implementations
And its successor, Cyclone, began in 2014, and is actively developed.
-
If you had to pick a Scheme to write a standalone application which would you choose?
Gambit, and consequently Gerbil, are not very mature and still need a bit more of a environment. Stklos could also be interesting, as well as Cyclone.
- Cyclone Scheme: A R7RS Scheme Compiler
json
-
Go: the future encoding/json/v2 module
View on GitHub
-
Rust vs. Go in 2023
https://github.com/BurntSushi/rebar#summary-of-search-time-b...
Further, Go refusing to have macros means that many libraries use reflection instead, which often makes those parts of the Go program perform no better than Python and in some cases worse. Rust can just generate all of that at compile time with macros, and optimize them with LLVM like any other code. Some Go libraries go to enormous lengths to reduce reflection overhead, but that's hard to justify for most things, and hard to maintain even once done. The legendary https://github.com/segmentio/encoding seems to be abandoned now and progress on Go JSON in general seems to have died with https://github.com/go-json-experiment/json .
Many people claiming their projects are IO-bound are just assuming that's the case because most of the time is spent in their input reader. If they actually measured they'd see it's not even saturating a 100Mbps link, let alone 1-100Gbps, so by definition it is not IO-bound. Even if they didn't need more throughput than that, they still could have put those cycles to better use or at worst saved energy. Isn't that what people like to say about Go vs Python, that Go saves energy? Sure, but it still burns a lot more energy than it would if it had macros.
Rust can use state-of-the-art memory allocators like mimalloc, while Go is still stuck on an old fork of tcmalloc, and not just tcmalloc in its original C, but transpiled to Go so it optimizes much less than LLVM would optimize it. (Many people benchmarking them forget to even try substitute allocators in Rust, so they're actually underestimating just how much faster Rust is)
Finally, even Go Generics have failed to improve performance, and in many cases can make it unimaginably worse through -- I kid you not -- global lock contention hidden behind innocent type assertion syntax: https://planetscale.com/blog/generics-can-make-your-go-code-...
It's not even close. There are many reasons Go is a lot slower than Rust and many of them are likely to remain forever. Most of them have not seen meaningful progress in a decade or more. The GC has improved, which is great, but that's not even a factor on the Rust side.
-
Toward the Fastest, Compatible JSON Decoder - Sonnet
Add https://github.com/go-json-experiment/json
What are some alternatives?
hy - A dialect of Lisp that's embedded in Python
sonnet - High performance JSON decoder in Go
cli-command - cli-command template
Cargo - The Rust package manager
r6rs-pffi - Portable Foreign Function Interface (FFI) for R6RS
rebar - A biased barometer for gauging the relative speed of some regex engines on a curated set of tasks.
r7expander - R7RS expander
sonic - A blazingly fast JSON serializing & deserializing library
7GUI - the 7 gui project
v - Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. Supports automatic C => V translation. https://vlang.io
guile-json - JSON module for Guile
datafusion-ballista - Apache Arrow Ballista Distributed Query Engine