Submit

Back to the channels

#primate

  1. * dreamreal joined #primate
  2. blue WB dreamreal.
  3. dreamreal restarted weechat for an update :D
  4. dreamreal how was your weekend
  5. blue good, mostly repopack work
  6. dreamreal I was living in asciidoc, rust, and yardwork
  7. blue for your blog?
  8. blue also, rust ewww
  9. dreamreal no, for work
  10. blue oh
  11. dreamreal My blog already supports asciidoc as input, I just don't use it as much, because the asciidoc wikisyntax support is wonkier than the markdown parser. Plus, obsidian uses markdown, so I have a much richer toolset support system for markdown than for asciidoc. Better mousetraps are awesome - but they have to be on the market to make any difference.
  12. dreamreal Work has some extra requirements for *any* document format, so we'd actually chosen myst (markdown for sphinx) but that's a 600MB artifact to support in sphinx; asciidoctor's a good bit smaller, and we have physical transport requiremnts to consider.
  13. dreamreal (that 600MB is actually *good* - what we use weasyprint to convert html to pdf. Actually generating the PDF would have been better but would have meant a 2.1G deliverable, and noooo.)
  14. blue I see. 600MB for converting markdown to html?
  15. dreamreal errr... if you want to put it that way, sure
  16. dreamreal sphinx is a documentation system, it uses markdown and yaml as input and creates HTML, so sure
  17. blue repopack on master [$✘!?] via 🥟 v1.3.14 du -sh node_modules/marked/
  18. blue 460K node_modules/marked/
  19. blue just puttig it out there, no judgment >_>
  20. dreamreal what is that?
  21. blue marked?
  22. blue it's an npm package to convert markdown to html
  23. blue not sure why someone would need 600mb to convert markdown to html
  24. * dreamreal sighs
  25. dreamreal because that's not all that it's doing
  26. blue so the rest of what it's doing is 600mb - 460kb?
  27. blue that's still, uh, a lot
  28. dreamreal no, that's the docker image
  29. blue oh
  30. blue well, what's it do other than markdown to html?
  31. dreamreal it's a documentation system: organization, validation, etc., so the image has to be a docker image + OS + python + our stuff
  32. dreamreal plus we have to include stuff to convert to PDF as well
  33. blue mhm
  34. dreamreal the "right way to do that" is to use sphinx + latex, but that's the 2.1G image
  35. blue holy heck
  36. dreamreal latex is not small
  37. blue 2.1G is a dumpster fire
  38. * dreamreal shrugs. latex is a cannon and our problem is more ... tiny
  39. dreamreal It's actually impressive that Word covers most of what you'd need latex for
  40. blue shooting sparrows with cannons, I see
  41. dreamreal that's why we went with weasyprint: far fewer features but we're not represnting complex maths, for example
  42. blue mhm
  43. * jreicher joined #primate
  44. jreicher blue: why does the 2.1G surprise you?
  45. blue jreicher: because that's a buttload of bytes
  46. jreicher Yes it is, but it sounds like you were expecting less? Why?
  47. blue because I expect my software to be lean, not to consume gigabytes of space
  48. blue for something to be 2.1G and justify, it means to do more than 'organisation, validation, etc.'
  49. blue justify it*
  50. jreicher It's not just software.
  51. jreicher In fact the majority of those bytes isn't software, I think.
  52. blue Well, yeah; Containerfile are ridiculous large, too, and that's unacceptable too
  53. jreicher Not that either.
  54. blue So what then?
  55. jreicher Fonts

Search posts