Chat Logs

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