-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
F1 Spec to Markdown / tex->png utility #3299
Comments
I personally prefer this to remain a pdf, with implementation notes / details maintained separately in a markdown format alongside the code. I do like reading pdfs though ;) It allows the spec for what we implement to be specific, and whats in the paper to be more general. We need to specify and justify the actual inflation algorithms, commission bounds, what features are enabled which aren't, separately from what the algorithm can do. Another example is explaining that the F1 specs validator iteration in the implementation does not "come for free" since it can't re-use the same staking validator / delegation structs. (Due to the SDK's lack of support for cross-module leaf-combining / column hashing) |
I prefer leaving it in the current format as well. |
The main thing is that we are consistent here... |
Yeah I think we need to stay consistent - I'm not totally opposed to converting all the specs to LaTex, but I do think in the long run it will be:
With regards to having the |
./ValarDragon [Yesterday at 11:56 PM] 14 replies fp4k [2 hours ago] Also sent to the channel From my perspective, the actual F1 scheme is really simple, so maybe it isn't really an academic contribution to the space. The fact that all delegate/withdraw/slash operations can be done with no iteration isn't immediate, but is also not that complex. I think making it a published paper would be nice if we think its a meaningful contribution to the space of fee distribution mechanisms. fp4k [24 minutes ago] cwgoes [12 minutes ago] fp4k [11 minutes ago] |
What about Pandoc? That's capable of converting Markdown to LaTeX, and the output looks decent (I've used it before). I agree about separate algorithmic / implementation specs. I think the former are more important. |
My main concerns/evaluations are as follows:
|
Didn't we come up with something good here for the ICS repo @cwgoes ? |
The ICS repo uses Markdown and occasional LaTeX for diagrams. Future papers will be written in Markdown, then converted to PDFs with |
closing this issue as outdated |
we ought to stay consistent with our specs and maintain them in a common format - thus the (great) F1 spec should be converted into markdown.
As a part of this process, the spec should be broken out into separate markdown files as described in
docs/spec/SPEC-SPEC.md
- I imagine due to the scope and layout of F1 we may choose to adapt theSPEC-SPEC.md
(as well as the other specs) to be more in line with some of the features of the current F1 spec if we find there are superior sectionings during this conversion.One of the nice things about the F1 spec is the use of
.tex
formulas I'd recommend that we include all these formulas in the markdown document in the form of png images - however we should also include all the formulas in the original.tex
format in the spec as well and simply build a.tex
->.png
conversion script which could exist in the spec document - this way one would not need to have LaTex installed to update the equations.This script could be whipped up as a golang program using ImageMagick. See:
https://tex.stackexchange.com/questions/35690/how-to-export-a-equation-as-a-image-without-background
https://github.com/gographics/imagick
CC @ValarDragon @cwgoes
The text was updated successfully, but these errors were encountered: