Comments (7)
Roc has encoding and decodin abilities. Do you think It would be a good idea to write a simple en-/decoder using those abilities?
from book-of-examples.
Thank you for the links. I am aware of the current limitations, but maybe we can implement the missing methods by the time the book is released. On the other hand, dec and float don't have to be part of the chapter.
I was also thinking of doing a BSON encode formatter. Like "We have this for JSON, let's see how we would do this in a similar binary format".
from book-of-examples.
That would be a great place to start, and then we could see how to expand it (e.g., show readers what we would do if we didn't already have those capabilities and had to implement some parts ourselves). Would you like to take this one?
from book-of-examples.
Yes please add me.
I think we currently don't even have a binary encode formatter, just json, so this might even lead to an actual usable package.
from book-of-examples.
It's been on my todo list for a while to build one of these. Folkert suggested I look at https://postcard.jamesmunns.com/wire-format.html as that is something similar and works well with rust. It's not something I have spent much time investigating, just thought I would share in case that helps.
from book-of-examples.
Also for reference here is a conversation topic about some missing functions we need to implement in builtins to build out the full functionality. Basically we can't do floats rn, but I guess for the sake of the book article those could be left unimplemented.
from book-of-examples.
Thanks @FabHof - please create a subdirectory under the project root called binary
and put your code there, along with an index.md
file with notes to yourself. Cheers - Greg
from book-of-examples.
Related Issues (20)
- infrastructure proposal: create a blog for this book HOT 4
- topic proposal: discrete event simulator HOT 5
- topic: continuous integration HOT 2
- topic proposal: machine learning from first principles HOT 2
- topic proposal: property-based testing framework HOT 3
- topic proposal: a parser with useful error messages
- topic proposal: pseudorandom number generators HOT 1
- topic: regex pattern matching HOT 1
- topic proposal: Redis-like key value store with write-ahead log HOT 7
- topic: JSON ADT and codecs HOT 5
- topic proposal: Parser combinator library HOT 5
- proposal: Prohibit external packages HOT 9
- topic: compression
- proposal: use Jekyll/GitHub Pages _temporarily_ to build a website for this material HOT 2
- Topic proposal: A transpiler to JavaScript HOT 3
- meeting 2024-04-10 HOT 1
- discuss: how to manage inter-chapter dependencies? HOT 1
- topic: package manager
- topic: pretty-printing library HOT 2
- add link to rendered site
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from book-of-examples.