Submit

Back to the channels

#primate

  1. blue hi phaleth
  2. blue I just pushed out a few things, amongst which: reverting markdown db, adding entrypoints and converting the website to use that
  3. blue your pr might be obsolete by that
  4. blue you can redeploy the website, and the memory footprint should go back to normal
  5. blue this was a bad pivot on my part
  6. blue it's two different use cases: a docs website benefits immensely from bundling in the mds. and will later use target=static. a dynamic website can just save the .mds in a db, render them on request and/or cache the rendered out if necessary
  7. blue I'm standing down from the markdown db, at least for now
  8. phaleth hi blue
  9. phaleth oh, right, there are conflicts
  10. phaleth wow, everything is gone
  11. blue I'm not sure your pr is needed
  12. blue ya
  13. blue you don't need to copy snippets/docs anymore, so you can revert the Containerfile to how it was before
  14. phaleth oh, you've added entrypoints, that's why
  15. blue yes
  16. phaleth that's cool, lets try that
  17. blue works locally
  18. phaleth getting these errors with npm run serve
  19. phaleth [ERROR] Markdown document backend not found
  20. phaleth [ERROR] Markdown document index not found
  21. phaleth pages are not showing
  22. phaleth yeah, so I should rebuild core and so on
  23. blue that's old stuff
  24. blue that's markdown db
  25. blue npm run build:packages
  26. phaleth nice, the site works quite well
  27. blue yes
  28. blue and memory hogging should be gone
  29. blue markdown db was a majorbutt time waste
  30. blue well, at least perf metrics caught it
  31. phaleth yeah, I mean that's fine, you have to experiment
  32. blue I don't mind experimenting, but the empirical data was clear. a 3x memory increase isn't acceptable, and also I don't like shifting stuff from build to serve
  33. blue build should be the heavylifter, serve should be optimising for memory consumption
  34. blue 158MB was *already* much for serving what is essentially a static website
  35. blue unacceptable, really. should be in the lower 10s
  36. blue I really need to work on dog/flog because all modern js runtimes are memory hogs to no end
  37. phaleth at least now you know a little more about how to get closer to having most of everything done at buildtime
  38. phaleth also me, I know that primate is very flexible :D
  39. blue well, I'm glad this detour birthed entrypoints, because we were missing flexibility there
  40. blue so, good job there
  41. blue static is now a dumbed-down dir
  42. blue so we got less magic
  43. blue at some point, we'll arrive in reality :P
  44. phaleth yeah, just wondering if there is anything else where primate website really needs a dynamic server
  45. blue not really at this stage. it's essentially a static website, we just need target=static to be spitting out html pages
  46. blue entrypoints might getting extended syntax with { in: "file.ts", inline: true }, just to make sure that colorscheme stuff is processed as quickly as possible, those bytes are't a huge price to pay per html
  47. phaleth inline into html? prolly a good idea, yeah
  48. phaleth also if you could add defer attribute that'd be great, cause the other app js bundle might need that
  49. blue so { in: p.string, defer: p.boolean.default(false), inline: p.boolean.default(false) }, ya?
  50. phaleth I think there is one more attribute to the script tag that could be useful
  51. phaleth let me dig
  52. phaleth async https://javascript.info/script-async-defer#async
  53. phaleth maybe you could make those two referable by script.async and script.defer
  54. blue mhm
  55. phaleth so there is also a smaller chunk of css with colors, that's cool
  56. phaleth that means there should really be no flash even when the website opens on a toaster
  57. blue ya

Search posts