firionus / opengdtf Goto Github PK
View Code? Open in Web Editor NEWAbandoned! - A starting point for a useful GDTF Rust library
License: MIT License
Abandoned! - A starting point for a useful GDTF Rust library
License: MIT License
parse
-function should be TryFrom
method
Read + Seek
-argument, which is not semantically strong enough (is it zipped or not?, etc.)Vec<HandledProblem>
with a custom type aliasget
that does not result in massive code blocks of Problem::Unexpected
?$ cargo run --release --bin comparison_against_gdtf_parser
Finished release [optimized] target(s) in 0.06s
Running `target/release/comparison_against_gdtf_parser`
parsing 156 example files with both crates and measuring time...
gdtf-parser successfully parsed 155 fixtures
opengdtf successfully parsed 155 fixtures
gdtf-parser took 0.48860416 s
opengdtf took 0.44242147 s
opengdtf relative time to gdtf-parser: 0.9054803181142704
gdtf.name
of type Name
So working with the library as I built it is sometimes pretty cumbersome. Some reasons:
A better way might be:
Problem: How to know the file location in later validation steps? -> Either attach a file location to everything, or use roxmltree and attach an original node reference to everything with which we can later retrieve the position. Or stick with the current architecture, but it is one-way only and hard to later extend to be two-way.
Althought it seems like the first step could be done with quick-xml serde-derive, it (probably?) wouldn't support the lenient error handling of opengdtf. I think we'd have to write our own serde or quick-xml code.
But this might come with its own issues. Just wanted to write down that thought.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.