Submit

Back to the channels

#primate

  1. * phaleth joined #primate
  2. phaleth new-linker? naming is hard https://ziglang.org/devlog/2026/?2026-05-30#2026-05-30
  3. nevet Devlog ⚡ Zig Programming Language
  4. * phaleth joined #primate
  5. blue hi phaleth
  6. phaleth hi blue
  7. blue what's up?
  8. phaleth watching go tutorial
  9. phaleth can you restart the VPS again?
  10. phaleth it should start containers on boot now
  11. blue ya
  12. * blue joined #primate
  13. blue mise ERROR Failed to install tools: aqua:npm/cli@latest, npm:pnpm@11
  14. blue mise is just pure and utter nuclear waste
  15. phaleth yeah, 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. blue great, more nonsense
  18. blue anyway, website is ported now, phaleth
  19. phaleth oh, cool
  20. blue https://github.com/primate-run/primate/commit/09ffcfccc2ec0b16b39ce651c11f673880ab5984
  21. nevet website: port to marko · primate-run/primate@09ffcfc
  22. blue btw, let me show you what I meant earlier
  23. blue https://github.com/primate-run/primate/tree/master/packages/marko/src/private/tags
  24. blue see those marko tags? they are uncompiled
  25. blue https://github.com/primate-run/primate/blob/master/packages/marko/package.json#L38-L39
  26. blue this tells any loader/bundler to use the marko runtime condition with them
  27. blue https://github.com/primate-run/primate/blob/master/packages/marko/src/private/init.ts#L7
  28. blue this tells the primate esbuild bundling process to associate any "marko" runtime key entries with this module (marko)
  29. blue so 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. blue the 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. blue I'm shoving the compilation dept to the end user, which is great
  32. blue debt*
  33. phaleth and if the project does not use fields or forms?
  34. blue then the project doesn't import them and they're not in the bundle
  35. blue this is the case for primate website
  36. phaleth yay
  37. blue I 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. phaleth yeah, cut the release if the deployment goes well
  40. blue so 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. phaleth I'm strugling with a bit of blur https://images4.imagebam.com/ee/15/cd/ME1DI7WG_o.png
  42. blue woah, wth is THIS
  43. blue you got hacked?
  44. phaleth it was a linux update
  45. blue oof
  46. blue anyway, I'm gonna prepare the .39 release. I'll cut it once I have the go from you for the website
  47. phaleth ok, cool
  48. phaleth I'm on it
  49. blue +1
  50. phaleth not sure what to do with this https://upaste.de/raw/7Xm
  51. blue hm
  52. blue fixing
  53. phaleth looks like dinit just has to be built from source
  54. blue oh
  55. blue phaleth: I pushed out a fix
  56. phaleth ok, cool
  57. blue I got the .39 blog post almost done, I think
  58. phaleth `npm start` works
  59. phaleth the docs page is all smashed together
  60. blue did you compile packages?
  61. phaleth yeah
  62. phaleth https://images4.imagebam.com/33/ab/3c/ME1DIAMP_o.png
  63. phaleth prod build is the same
  64. blue that weird, looks good on brave
  65. blue what browser is that?
  66. phaleth librewolf
  67. blue k, lemma install
  68. blue oof, 1.05G
  69. phaleth same on palemoon
  70. phaleth docs page looks good on epiphany
  71. phaleth oh, actually the same problem is on epiphany too
  72. phaleth you can install epiphany using pacman
  73. phaleth just make sure the window is big enough
  74. phaleth https://images4.imagebam.com/ed/c6/7a/ME1DIARE_o.png
  75. blue phaleth: fixed
  76. phaleth display: grid I think
  77. blue the copy button doesn't work, I'm aware of that
  78. blue ya
  79. phaleth ok, cool
  80. phaleth copy button does work for me
  81. blue on the blog?
  82. blue I get
  83. blue and import it in any view:
  84. blue ugh
  85. blue app.js:1633 Uncaught TypeError: Cannot read properties of undefined (reading 'writeText') at snippet.addEventListener.signal.signal (app.js:1633:31)
  86. blue snippet.addEventListener.signal.signal @ app.js:1633
  87. phaleth ok, another one
  88. phaleth go to the guides page and then refresh, the text will get squashed
  89. phaleth similar happens on blog page, but not so bad
  90. blue which browser? librewolf?
  91. phaleth librewolf and palemoon
  92. phaleth I'll try epiphany
  93. phaleth yeah, squashed on epiphany as well after refresh
  94. blue why are you using these ridiculous browsers
  95. blue anyway, looking at it
  96. phaleth for testing mostly
  97. phaleth actually librewolf is my main browser :)
  98. blue I went to the guides page on librewolf and refresh, nothing weird happened
  99. blue refresehd*
  100. phaleth ok, let me try on primate.run then
  101. phaleth works well there
  102. blue do you get any console error on refresh?
  103. phaleth nope
  104. blue btw, the copy bug was me running the website on 0.0.0.0
  105. blue chrome blocks certain APIs like navigator.writeText on that
  106. blue running from 127.0.0.1 worked
  107. blue so that's not a bug, ok
  108. phaleth if I turn off display: grid rule on the guides page then it looks fine
  109. phaleth do you think the previous commit fixed docs but broke guides page? and also blogs page
  110. blue the thing is, I didn't add display: grid
  111. phaleth yeah, I have no problem copying text
  112. blue I just scoped one component which set `display: block` on main and caused havoc
  113. blue let me install epiphany
  114. phaleth epiphany is the best
  115. phaleth heh
  116. phaleth wait, you have edited guides view in that last commit
  117. blue yes
  118. blue I scoped it
  119. blue yeah, hitting f5 countless times on /guides does nothing wrong, on epiphany
  120. blue are you donig npx primate
  121. blue or npx primate build && npx primate build?
  122. blue when you're testing now
  123. blue I tested mostly with npx primate
  124. phaleth npm run build && npm run serve
  125. blue k
  126. phaleth will try npm start
  127. blue oh ok. yes if I refresh the guides page, it shows all black
  128. phaleth when using npm start it's fine
  129. phaleth so only the prod build messed up with styles
  130. blue yeah. so if you access /guides directly, it'll be messed up
  131. phaleth right
  132. blue anywy I fixed it locally. will push in a moment. apparently the marko scoped styles are botched
  133. blue I don't really get it, it's related css modules, but it's also not important enough for me to care
  134. blue related to*
  135. phaleth yeah, css does not need to be split too much
  136. blue anyway, pushed
  137. blue I also pushed out the blog post already because, why not
  138. blue realy nice bundle size at 71K there
  139. blue really*
  140. phaleth ok, take a note of https://pagespeed.web.dev/analysis/https-primate-run/2kwdd4vhoi?form_factor=mobile
  141. blue ok, for comparison?
  142. phaleth right
  143. phaleth well, new error
  144. blue oh no ;;
  145. phaleth https://upaste.de/raw/aLV
  146. blue wait, Error.svelte?
  147. blue oh right
  148. phaleth yeah, no clue
  149. blue it's in +error.ts
  150. blue can you fix it locally?
  151. blue routes/+error.ts
  152. blue just change to .marko
  153. phaleth my IDE shows blur
  154. phaleth but I will try
  155. blue I can fix it for you if you wat
  156. phaleth yeah, that'd be better
  157. blue done
  158. phaleth it needs to be commited anyway
  159. blue ya
  160. phaleth still getting: ReferenceError: example is not defined
  161. phaleth only the docs page works now
  162. phaleth that commit with the blogpost broke the site
  163. blue it works locally, weird
  164. phaleth there are at least a couple of changes from <style/styles> to <styles> in marko components in that commit
  165. phaleth can you try to prod build?
  166. phaleth the dev build is also broken on frontpage and guides page
  167. phaleth but prod build is giving this error:
  168. phaleth [ERROR] views/Index.marko error: ReferenceError: example is not defined
  169. blue oh ok, I'm getting it as soon as I open a page
  170. blue good
  171. blue pushed a fixed, phaleth
  172. blue fix, even
  173. phaleth ok, nice
  174. phaleth one last thing, can you try prod build, visit the blog page and then refresh?
  175. blue pushed out another commit which fixes the icon distance on blog
  176. phaleth ok, then one sec
  177. blue that probably fixed that, phaleth
  178. phaleth yeah, that's fixed now, cool
  179. blue good
  180. phaleth alright, time to deploy
  181. blue good
  182. phaleth score is better https://pagespeed.web.dev/analysis/https-primate-run/n0qol3q931?form_factor=mobile
  183. phaleth great, there are no mentions of unused JS
  184. phaleth marko is very good it seems
  185. blue ya
  186. phaleth is it now on par with the other 5 frontend frameworks? from the point of view of primate
  187. blue yes
  188. blue https://primate.run/blog/primate-039#marko-6
  189. phaleth oh, the post is up
  190. phaleth nice
  191. blue yeah, gonna cut the release soon
  192. phaleth I guess then docs are not fully up to date yet, such as this comparison table https://primate.run/docs/frontend#overview
  193. phaleth about 16kBs gzipped JS is gone, that's a huge drop
  194. blue woah
  195. blue edited the table, will soon commit
  196. phaleth ok
  197. blue commit is out
  198. blue I'm gonna prepare the release
  199. phaleth re-deployed
  200. blue nice
  201. phaleth looks like svelte components can now use TS?
  202. blue yes
  203. blue this has been the case since svelte 5
  204. blue I told you about it during our preprocess discussion
  205. blue so running test:apps now, and if all goes well, will cut the release
  206. phaleth ah, ok, was just wondering cause primate website was not using that
  207. blue true
  208. phaleth but I guess since svelte is gone who cares
  209. blue 100%
  210. blue man those database tests are taking forever
  211. blue I need to setup ci
  212. blue I guess another bullet point for repopack
  213. blue anyway, this release unlocks two things that have blocked me, typed path parametrs in client (for repopack) and marko (for website optimisations)
  214. blue so I'm one happy puppy
  215. phaleth I like crossbuilding, kinda odd for JS
  216. phaleth but that's where JS has gotten
  217. blue yup
  218. blue could you redeploy please? or let me know how to easily redeploy, do we have a script or something?
  219. phaleth sudo 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. blue that's all? cool
  221. phaleth sudo 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. phaleth that's all
  223. blue cool
  224. blue nice, worked
  225. phaleth good
  226. blue ok, all packages published
  227. phaleth big release
  228. blue yup
  229. phaleth I should learn marko :D
  230. blue ha
  231. blue phaleth: I completely forgot about entrypoints. lol
  232. blue I should add that to the blog post
  233. phaleth oh, yeah, me too
  234. blue welp, the 0.40 dev cycle is open

Search posts