Submit

Back to the channels

#primate

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

Search posts