json65
mega65-adventure
json65 | mega65-adventure | |
---|---|---|
6 | 1 | |
238 | 12 | |
- | - | |
1.8 | 1.9 | |
about 3 years ago | about 1 year ago | |
C | C | |
zlib License | GNU General Public License v3.0 only |
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.
json65
- A JSON parser in 6502 assembly language
-
Hacker News top posts: Mar 1, 2021
JSON parser written in 6502 assembly language\ (69 comments)
-
JSON parser written in 6502 assembly language
The "Library organization" section [1] explains that the json65.s file is the core of the library and the only code necessary to build the library. The additional C code provides a handy tree structure and a callback to pass to the parsing engine.
However, because SAX is a callback-oriented parsing method, you can design your own data structure and write your own callback functions and do without this tree structure.
The additional C code provides similar nice-to-haves, such as string pool interning, a function to print out the aforementioned tree structure, and a wrapper function to parse json from a file.
[1] https://github.com/ppelleti/json65#library-organization
mega65-adventure
-
The Rise of Rust, the ‘Viral’ Secure Programming Language That’s Taking Over Tech
What are you on about, can you clarify? Rust can compile in no-std/embedded style just as fine (or better) than C can for basically any ARM or RISCV based processor, and quick googling shows this hal for nearly all pi needs and even MEGA65 is "as supported" (read: not at all officially by anything, fan-only) as any current C compiler. Setting up rust for a new target, so long as the code-gen is supported somehow by LLVM, LLVM plugin, LLVM IR transpiler (and maybe libgcc-jit sort of soon) is just as painful or unpainful as setting up a whole team to work via C/C++ with comparable testing harnesses. This doesn't mean easy and is an area Rust is still improving rapidly by the various enterprise agencies (Ferrous systems, Oxide, more I can't remember...) who specifically want to bring rust to such low end hardware because frankly both C and C++ suck with vendor proprietary tool chains and quirks.
What are some alternatives?
6502-emu - A simple 6502 emulator, with I/O via a 6850 UART.
book - The Rust Programming Language
revs-beebasm - Fully documented and annotated source code for Revs on the BBC Micro
lzsa - Byte-aligned, efficient lossless packer that is optimized for fast decompression on 8-bit micros
rapidyaml - Rapid YAML - a library to parse and emit YAML, and do it fast.
acme - ACME 6502/65C02 Assembler
SmallJSONParser - A streaming JSON parser in C using no memory allocations.
wasm3 - 🚀 A fast WebAssembly interpreter and the most universal WASM runtime
c64-bitcoin-miner - C64 Bitcoin miner
stoc - Stochastic superoptimiser targetting the 6502