Code Monkey home page Code Monkey logo

kaiseki's Introduction

Kaiseki - 「解析」("analysis")

So you have a serial log from u-boot you need parsed into binary am I right? Well look no further, because your dreams have come true -- in rust as well! No.. No, not really.

That being said, this does do the trick so clean up your output, and get ready to parse some data!

usage: kaiseki <input> <output>

Compiling

It's a rust project managed by Cargo -- what more could you ask for??

Install it like this:

git clone https://github.com/crux161/kaiseki.git
cd kaiseki
cargo b --release
cargo install --path .		# goes to /home/$USER/.cargo/bin most likely

Maybe I'll write a Makefile or some setup script to do this, but for now don't be lazy! It's called copy and paste you heathens! :P

Rust Support via Kaiseki

The original python script in this project has been ported to rust. At least, I did my best trying to understand and recreate the logic. There is no help if something goes wrong in the parsing, it will simply complain and error out enigmatically.. This.. needs to be fixed.

That being said, not everyone has python installed everywhere they need to run this, and being rust you can compile a version for your platform very easily.

Despite being written in rust -- and timing a few seconds ahead of it's python port -- a lot could probably be done to make this thing faster.

But then again, you just let picocom dump data overnight-- what's another 15 seconds waiting to parse ~200MB?

Naming

This contribution of mine is named Kaiseki after the Japanese word 「解析」meaning "analysis"... I thought it was cute anyways. :P

kaiseki's People

Contributors

crux161 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.