Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figure serialization (remove capnproto?) #48

Closed
3 tasks
breznak opened this issue Aug 7, 2018 · 6 comments
Closed
3 tasks

Figure serialization (remove capnproto?) #48

breznak opened this issue Aug 7, 2018 · 6 comments
Assignees

Comments

@breznak
Copy link
Member

breznak commented Aug 7, 2018

Also in https://github.com/chhenning/nupic.core/pull/4/commits
Replace with plain stream writes?

  • remove zlib (minimal, non-breaking change)
  • remove capnp & replace with << bitstream backups
    • validate tests

Part of #47

@dkeeney
Copy link

dkeeney commented Aug 7, 2018 via email

@breznak
Copy link
Member Author

breznak commented Aug 7, 2018

The Yaml is more readable and we need Yaml for parameter processing anyway.

Could you point me to the param handling code? Actually, I'd like to replace all the individual setXX, setXY setters/getters with a {json: "style"} format and a factory. So a config can be saved in separate file and passed to other algorithms (useful for param optimization, etc)

everything else uses plain binary stream writes. It is fast, non-invasive, but not platform independent.

I'd like to ask about your thoughts on capnp? I dislike it for it bloats so much of the codebase, on the other hand, there's already a lot of code written and it works.

@dkeeney
Copy link

dkeeney commented Aug 7, 2018 via email

@breznak
Copy link
Member Author

breznak commented Aug 9, 2018

looked at replacing it with simple JSON because it would be much simpler (and we could remove the last dependency) but I think we would break a lot of people's existing implementations. In the forums people talk about their setup in ModelParams.yaml. And I think it might also break OPF if we removed this.

https://codebeautify.org/yaml-to-json-xml-csv

I'd still consider that scenario (shifting from yaml to json), what do you think about asking people for one-time automated conversion of their config?

This was referenced Aug 9, 2018
@dkeeney
Copy link

dkeeney commented Aug 13, 2018

I will take on removing capnproto. My branch will be "remove_capnproto"

@breznak
Copy link
Member Author

breznak commented Aug 13, 2018

Awesome, I'm looking forward! Please open a PR even if you have some WIP, so we can review incrementally.

@breznak breznak mentioned this issue Aug 29, 2018
@breznak breznak added this to the Dependencies_redux milestone Nov 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants