Submit

Back to the channels

#primate

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

Search posts