Chat Logs

  1. * phaleth joined #primate
  2. phalethnew-linker? naming is hard https://ziglang.org/devlog/2026/?2026-05-30#2026-05-30
  3. nevetDevlog ⚡ Zig Programming Language
  4. * phaleth joined #primate
  5. bluehi phaleth
  6. phalethhi blue
  7. bluewhat's up?
  8. phalethwatching go tutorial
  9. phalethcan you restart the VPS again?
  10. phalethit should start containers on boot now
  11. blueya
  12. * blue joined #primate
  13. bluemise ERROR Failed to install tools: aqua:npm/cli@latest, npm:pnpm@11
  14. bluemise is just pure and utter nuclear waste
  15. phalethyeah, stuff does not work
  16. blue[master 53c2aa52] merge i18n into general config, add i18n to marko 144 files changed, 1430 insertions(+), 944 deletions(-)
  17. bluegreat, more nonsense
  18. blueanyway, website is ported now, phaleth
  19. phalethoh, cool
  20. bluehttps://github.com/primate-run/primate/commit/09ffcfccc2ec0b16b39ce651c11f673880ab5984
  21. nevetwebsite: port to marko · primate-run/primate@09ffcfc
  22. bluebtw, let me show you what I meant earlier
  23. bluehttps://github.com/primate-run/primate/tree/master/packages/marko/src/private/tags
  24. bluesee those marko tags? they are uncompiled
  25. bluehttps://github.com/primate-run/primate/blob/master/packages/marko/package.json#L38-L39
  26. bluethis tells any loader/bundler to use the marko runtime condition with them
  27. bluehttps://github.com/primate-run/primate/blob/master/packages/marko/src/private/init.ts#L7
  28. bluethis tells the primate esbuild bundling process to associate any "marko" runtime key entries with this module (marko)
  29. blueso we're gonna publish .marko files to npm, and what I meant earlier with "leaf compilation" is that they're only going to be compiled to js during a primate app build
  30. bluethe most obvious benefit here is that I don't need to precompile them on an older version of marko that may be missing optimisations, and also I don't need to precompile them twice (once for server, once for client)
  31. blueI'm shoving the compilation dept to the end user, which is great
  32. bluedebt*
  33. phalethand if the project does not use fields or forms?
  34. bluethen the project doesn't import them and they're not in the bundle
  35. bluethis is the case for primate website
  36. phalethyay
  37. blueI kinda feel like making a version of it. I had other stuff planned but this has grown out of proportion
  38. blue"full marko 6 support" is good enough I think
  39. phalethyeah, cut the release if the deployment goes well
  40. blueso one thing I noticed is that the smallish icon next to the blog poster's name is slightly off. need to see what happened there, but otherwise sohuld be identical
  41. phalethI'm strugling with a bit of blur https://images4.imagebam.com/ee/15/cd/ME1DI7WG_o.png
  42. bluewoah, wth is THIS
  43. blueyou got hacked?
  44. phalethit was a linux update
  45. blueoof
  46. blueanyway, I'm gonna prepare the .39 release. I'll cut it once I have the go from you for the website
  47. phalethok, cool
  48. phalethI'm on it
  49. blue+1
  50. phalethnot sure what to do with this https://upaste.de/raw/7Xm
  51. bluehm
  52. bluefixing
  53. phalethlooks like dinit just has to be built from source
  54. blueoh
  55. bluephaleth: I pushed out a fix
  56. phalethok, cool
  57. blueI got the .39 blog post almost done, I think
  58. phaleth`npm start` works
  59. phaleththe docs page is all smashed together
  60. bluedid you compile packages?
  61. phalethyeah
  62. phalethhttps://images4.imagebam.com/33/ab/3c/ME1DIAMP_o.png
  63. phalethprod build is the same
  64. bluethat weird, looks good on brave
  65. bluewhat browser is that?
  66. phalethlibrewolf
  67. bluek, lemma install
  68. blueoof, 1.05G
  69. phalethsame on palemoon
  70. phalethdocs page looks good on epiphany
  71. phalethoh, actually the same problem is on epiphany too
  72. phalethyou can install epiphany using pacman
  73. phalethjust make sure the window is big enough
  74. phalethhttps://images4.imagebam.com/ed/c6/7a/ME1DIARE_o.png
  75. bluephaleth: fixed
  76. phalethdisplay: grid I think
  77. bluethe copy button doesn't work, I'm aware of that
  78. blueya
  79. phalethok, cool
  80. phalethcopy button does work for me
  81. blueon the blog?
  82. blueI get
  83. blueand import it in any view:
  84. blueugh
  85. blueapp.js:1633 Uncaught TypeError: Cannot read properties of undefined (reading 'writeText') at snippet.addEventListener.signal.signal (app.js:1633:31)
  86. bluesnippet.addEventListener.signal.signal @ app.js:1633
  87. phalethok, another one
  88. phalethgo to the guides page and then refresh, the text will get squashed
  89. phalethsimilar happens on blog page, but not so bad
  90. bluewhich browser? librewolf?
  91. phalethlibrewolf and palemoon
  92. phalethI'll try epiphany
  93. phalethyeah, squashed on epiphany as well after refresh
  94. bluewhy are you using these ridiculous browsers
  95. blueanyway, looking at it
  96. phalethfor testing mostly
  97. phalethactually librewolf is my main browser :)
  98. blueI went to the guides page on librewolf and refresh, nothing weird happened
  99. bluerefresehd*
  100. phalethok, let me try on primate.run then
  101. phalethworks well there
  102. bluedo you get any console error on refresh?
  103. phalethnope
  104. bluebtw, the copy bug was me running the website on 0.0.0.0
  105. bluechrome blocks certain APIs like navigator.writeText on that
  106. bluerunning from 127.0.0.1 worked
  107. blueso that's not a bug, ok
  108. phalethif I turn off display: grid rule on the guides page then it looks fine
  109. phalethdo you think the previous commit fixed docs but broke guides page? and also blogs page
  110. bluethe thing is, I didn't add display: grid
  111. phalethyeah, I have no problem copying text
  112. blueI just scoped one component which set `display: block` on main and caused havoc
  113. bluelet me install epiphany
  114. phalethepiphany is the best
  115. phalethheh
  116. phalethwait, you have edited guides view in that last commit
  117. blueyes
  118. blueI scoped it
  119. blueyeah, hitting f5 countless times on /guides does nothing wrong, on epiphany
  120. blueare you donig npx primate
  121. blueor npx primate build && npx primate build?
  122. bluewhen you're testing now
  123. blueI tested mostly with npx primate
  124. phalethnpm run build && npm run serve
  125. bluek
  126. phalethwill try npm start
  127. blueoh ok. yes if I refresh the guides page, it shows all black
  128. phalethwhen using npm start it's fine
  129. phalethso only the prod build messed up with styles
  130. blueyeah. so if you access /guides directly, it'll be messed up
  131. phalethright
  132. blueanywy I fixed it locally. will push in a moment. apparently the marko scoped styles are botched
  133. blueI don't really get it, it's related css modules, but it's also not important enough for me to care
  134. bluerelated to*
  135. phalethyeah, css does not need to be split too much
  136. blueanyway, pushed
  137. blueI also pushed out the blog post already because, why not
  138. bluerealy nice bundle size at 71K there
  139. bluereally*
  140. phalethok, take a note of https://pagespeed.web.dev/analysis/https-primate-run/2kwdd4vhoi?form_factor=mobile
  141. blueok, for comparison?
  142. phalethright
  143. phalethwell, new error
  144. blueoh no ;;
  145. phalethhttps://upaste.de/raw/aLV
  146. bluewait, Error.svelte?
  147. blueoh right
  148. phalethyeah, no clue
  149. blueit's in +error.ts
  150. bluecan you fix it locally?
  151. blueroutes/+error.ts
  152. bluejust change to .marko
  153. phalethmy IDE shows blur
  154. phalethbut I will try
  155. blueI can fix it for you if you wat
  156. phalethyeah, that'd be better
  157. bluedone
  158. phalethit needs to be commited anyway
  159. blueya
  160. phalethstill getting: ReferenceError: example is not defined
  161. phalethonly the docs page works now
  162. phaleththat commit with the blogpost broke the site
  163. blueit works locally, weird
  164. phaleththere are at least a couple of changes from <style/styles> to <styles> in marko components in that commit
  165. phalethcan you try to prod build?
  166. phaleththe dev build is also broken on frontpage and guides page
  167. phalethbut prod build is giving this error:
  168. phaleth[ERROR] views/Index.marko error: ReferenceError: example is not defined
  169. blueoh ok, I'm getting it as soon as I open a page
  170. bluegood
  171. bluepushed a fixed, phaleth
  172. bluefix, even
  173. phalethok, nice
  174. phalethone last thing, can you try prod build, visit the blog page and then refresh?
  175. bluepushed out another commit which fixes the icon distance on blog
  176. phalethok, then one sec
  177. bluethat probably fixed that, phaleth
  178. phalethyeah, that's fixed now, cool
  179. bluegood
  180. phalethalright, time to deploy
  181. bluegood
  182. phalethscore is better https://pagespeed.web.dev/analysis/https-primate-run/n0qol3q931?form_factor=mobile
  183. phalethgreat, there are no mentions of unused JS
  184. phalethmarko is very good it seems
  185. blueya
  186. phalethis it now on par with the other 5 frontend frameworks? from the point of view of primate
  187. blueyes
  188. bluehttps://primate.run/blog/primate-039#marko-6
  189. phalethoh, the post is up
  190. phalethnice
  191. blueyeah, gonna cut the release soon
  192. phalethI guess then docs are not fully up to date yet, such as this comparison table https://primate.run/docs/frontend#overview
  193. phalethabout 16kBs gzipped JS is gone, that's a huge drop
  194. bluewoah
  195. blueedited the table, will soon commit
  196. phalethok
  197. bluecommit is out
  198. blueI'm gonna prepare the release
  199. phalethre-deployed
  200. bluenice
  201. phalethlooks like svelte components can now use TS?
  202. blueyes
  203. bluethis has been the case since svelte 5
  204. blueI told you about it during our preprocess discussion
  205. blueso running test:apps now, and if all goes well, will cut the release
  206. phalethah, ok, was just wondering cause primate website was not using that
  207. bluetrue
  208. phalethbut I guess since svelte is gone who cares
  209. blue100%
  210. blueman those database tests are taking forever
  211. blueI need to setup ci
  212. blueI guess another bullet point for repopack
  213. blueanyway, this release unlocks two things that have blocked me, typed path parametrs in client (for repopack) and marko (for website optimisations)
  214. blueso I'm one happy puppy
  215. phalethI like crossbuilding, kinda odd for JS
  216. phalethbut that's where JS has gotten
  217. blueyup
  218. bluecould you redeploy please? or let me know how to easily redeploy, do we have a script or something?
  219. phalethsudo curl --silent --unix-socket /run/podman/podman.sock -X POST "http://d/v1.0/libpod/local/build?t=localhost/primate-site-runtime&localcontextdir=/opt/podman/primate-site/runtime&nocache=true"
  220. bluethat's all? cool
  221. phalethsudo podman stop 000000-primate-site-runtime-2 && sudo podman rm 000000-primate-site-runtime-2 && sudo podman run --detach --name=000000-primate-site-runtime-2 --runtime=runsc --network=000000-primate-site --ip=192.168.2.6 --publish=127.0.0.1:24431:6161 --cpus 1 --oom-score-adj -1000 --restart=always localhost/primate-site-runtime
  222. phaleththat's all
  223. bluecool
  224. bluenice, worked
  225. phalethgood
  226. blueok, all packages published
  227. phalethbig release
  228. blueyup
  229. phalethI should learn marko :D
  230. blueha
  231. bluephaleth: I completely forgot about entrypoints. lol
  232. blueI should add that to the blog post
  233. phalethoh, yeah, me too
  234. bluewelp, the 0.40 dev cycle is open