I padded my work trip to Portugal with some extra ...
# devlog-together
t
I padded my work trip to Portugal with some extra days off so I could concentrate for 2 days and do a V2 of the editor component. A great success! I switched to floaty window style near the cell, attached it to the correct DOM so it follows the scrolling properly. Got add/remove cells properly working again since the multi-module refactor broke them. Managed to remove several reactivity bugs. Removed some hacks that were working around said bugs. Fixed some low level bugs in the visualizer, causing a few other unexpected bugs to fix themselves coz of that problem.
k
How large is the whole thing at this point?
t
1.4Mb
k
Like in lines of unminified Javascript?
t
I have a d3, plot and code mirror dependency. Do I count them or not?
k
I think a breakdown would be nicest! Helps me visualize concentric circles of what a reader is most concerned with at the start vs might be concerned with in time.
t
When you export, it prints a table of sizes. I guess I care most about mb on the wire as that is the network and storage tax. I AFK but I can show you that breakdown from my phone. Code mirror is a 300kb gzipped filer dependency. Modules are notebook sources, so the exporter itself is biggest at 75kb of unminified JS. The compiler/decompiler is #2 at similar size. That one includes it's test suite. The new editor V2 is quite small at 33kb, but it's what brings in codemirror
They map to observable notebook names if you are curious https://observablehq.com/@tomlarkworthy/observablejs-toolchain
I guess all the names are truncated so it's not possible to read, lol.
k
Thank you!
t
Oh the static file export itself gives a good estimate, excluding the gzipped dependencies which are single base64 lines. The export is designed to be human readable and unminified. The compilation process adds boilerplate so I think maybe it's 1.5x larger than the real source but it's closely related. The last export is 6300 LoC https://github.com/tomlarkworthy/lopecode/blob/main/%40tomlarkworthy_lopepage.html