Chat Logs

  1. * jreicher joined #primate
  2. * blue joined #primate
  3. * nevet joined #primate
  4. * blue!~blue@user/blue changed the topic to: https://primate.run | this channel is mirrored to the Primate discord, channel #irc
  5. * jreicher joined #primate
  6. * phaleth joined #primate
  7. bluehi phaleth
  8. blueI just pushed out a few things, amongst which: reverting markdown db, adding entrypoints and converting the website to use that
  9. blueyour pr might be obsolete by that
  10. blueyou can redeploy the website, and the memory footprint should go back to normal
  11. bluethis was a bad pivot on my part
  12. blueit'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
  13. blueI'm standing down from the markdown db, at least for now
  14. phalethhi blue
  15. phalethoh, right, there are conflicts
  16. phalethwow, everything is gone
  17. blueI'm not sure your pr is needed
  18. blueya
  19. blueyou don't need to copy snippets/docs anymore, so you can revert the Containerfile to how it was before
  20. phalethoh, you've added entrypoints, that's why
  21. blueyes
  22. phaleththat's cool, lets try that
  23. blueworks locally
  24. phalethgetting these errors with npm run serve
  25. phaleth[ERROR] Markdown document backend not found
  26. phaleth[ERROR] Markdown document index not found
  27. phalethpages are not showing
  28. phalethyeah, so I should rebuild core and so on
  29. bluethat's old stuff
  30. bluethat's markdown db
  31. bluenpm run build:packages
  32. phalethnice, the site works quite well
  33. blueyes
  34. blueand memory hogging should be gone
  35. bluemarkdown db was a majorbutt time waste
  36. bluewell, at least perf metrics caught it
  37. phalethyeah, I mean that's fine, you have to experiment
  38. blueI 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
  39. bluebuild should be the heavylifter, serve should be optimising for memory consumption
  40. blue158MB was *already* much for serving what is essentially a static website
  41. blueunacceptable, really. should be in the lower 10s
  42. blueI really need to work on dog/flog because all modern js runtimes are memory hogs to no end
  43. phalethat least now you know a little more about how to get closer to having most of everything done at buildtime
  44. phalethalso me, I know that primate is very flexible :D
  45. bluewell, I'm glad this detour birthed entrypoints, because we were missing flexibility there
  46. blueso, good job there
  47. bluestatic is now a dumbed-down dir
  48. blueso we got less magic
  49. blueat some point, we'll arrive in reality :P
  50. phalethyeah, just wondering if there is anything else where primate website really needs a dynamic server
  51. bluenot really at this stage. it's essentially a static website, we just need target=static to be spitting out html pages
  52. blueentrypoints 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
  53. phalethinline into html? prolly a good idea, yeah
  54. phalethalso if you could add defer attribute that'd be great, cause the other app js bundle might need that
  55. blueso { in: p.string, defer: p.boolean.default(false), inline: p.boolean.default(false) }, ya?
  56. phalethI think there is one more attribute to the script tag that could be useful
  57. phalethlet me dig
  58. phalethasync https://javascript.info/script-async-defer#async
  59. phalethmaybe you could make those two referable by script.async and script.defer
  60. bluemhm
  61. phalethso there is also a smaller chunk of css with colors, that's cool
  62. phaleththat means there should really be no flash even when the website opens on a toaster
  63. blueya