Submit

Back to the channels

#primate

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

Search posts