Posts
Factoids
RSS Reader
Karma
Logs
Tags
Atlas
Back to the channels
#primate
Previous day
31 May 2026 (America/New_York)
Next day
01:26 * phaleth joined #primate
03:56 phaleth new-linker? naming is hard https://ziglang.org/devlog/2026/?2026-05-30#2026-05-30
03:56 nevet Devlog ⚡ Zig Programming Language
05:33 * phaleth joined #primate
06:24 blue hi phaleth
06:25 phaleth hi blue
06:26 blue what's up?
06:27 phaleth watching go tutorial
06:27 phaleth can you restart the VPS again?
06:27 phaleth it should start containers on boot now
06:31 blue ya
06:39 * blue joined #primate
06:42 blue mise ERROR Failed to install tools: aqua:npm/cli@latest, npm:pnpm@11
06:42 blue mise is just pure and utter nuclear waste
06:54 phaleth yeah, stuff does not work
07:09 blue [master 53c2aa52] merge i18n into general config, add i18n to marko 144 files changed, 1430 insertions(+), 944 deletions(-)
07:09 blue great, more nonsense
07:11 blue anyway, website is ported now, phaleth
07:11 phaleth oh, cool
07:11 blue https://github.com/primate-run/primate/commit/09ffcfccc2ec0b16b39ce651c11f673880ab5984
07:11 nevet website: port to marko · primate-run/primate@09ffcfc
07:11 blue btw, let me show you what I meant earlier
07:12 blue https://github.com/primate-run/primate/tree/master/packages/marko/src/private/tags
07:12 blue see those marko tags? they are uncompiled
07:12 blue https://github.com/primate-run/primate/blob/master/packages/marko/package.json#L38-L39
07:12 blue this tells any loader/bundler to use the marko runtime condition with them
07:13 blue https://github.com/primate-run/primate/blob/master/packages/marko/src/private/init.ts#L7
07:13 blue this tells the primate esbuild bundling process to associate any "marko" runtime key entries with this module (marko)
07:14 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
07:15 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)
07:15 blue I'm shoving the compilation dept to the end user, which is great
07:15 blue debt*
07:16 phaleth and if the project does not use fields or forms?
07:16 blue then the project doesn't import them and they're not in the bundle
07:16 blue this is the case for primate website
07:17 phaleth yay
07:18 blue I kinda feel like making a version of it. I had other stuff planned but this has grown out of proportion
07:18 blue "full marko 6 support" is good enough I think
07:18 phaleth yeah, cut the release if the deployment goes well
07:19 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
07:19 phaleth I'm strugling with a bit of blur https://images4.imagebam.com/ee/15/cd/ME1DI7WG_o.png
07:21 blue woah, wth is THIS
07:21 blue you got hacked?
07:21 phaleth it was a linux update
07:23 blue oof
07:24 blue anyway, I'm gonna prepare the .39 release. I'll cut it once I have the go from you for the website
07:26 phaleth ok, cool
07:26 phaleth I'm on it
07:27 blue +1
07:35 phaleth not sure what to do with this https://upaste.de/raw/7Xm
07:40 blue hm
07:47 blue fixing
08:21 phaleth looks like dinit just has to be built from source
08:22 blue oh
08:39 blue phaleth: I pushed out a fix
08:41 phaleth ok, cool
08:42 blue I got the .39 blog post almost done, I think
08:42 phaleth `npm start` works
08:44 phaleth the docs page is all smashed together
08:45 blue did you compile packages?
08:45 phaleth yeah
08:45 phaleth https://images4.imagebam.com/33/ab/3c/ME1DIAMP_o.png
08:46 phaleth prod build is the same
08:46 blue that weird, looks good on brave
08:46 blue what browser is that?
08:46 phaleth librewolf
08:46 blue k, lemma install
08:46 blue oof, 1.05G
08:46 phaleth same on palemoon
08:47 phaleth docs page looks good on epiphany
08:48 phaleth oh, actually the same problem is on epiphany too
08:48 phaleth you can install epiphany using pacman
08:49 phaleth just make sure the window is big enough
08:52 phaleth https://images4.imagebam.com/ed/c6/7a/ME1DIARE_o.png
08:59 blue phaleth: fixed
09:00 phaleth display: grid I think
09:00 blue the copy button doesn't work, I'm aware of that
09:00 blue ya
09:00 phaleth ok, cool
09:01 phaleth copy button does work for me
09:03 blue on the blog?
09:04 blue I get
09:04 blue and import it in any view:
09:04 blue ugh
09:04 blue app.js:1633 Uncaught TypeError: Cannot read properties of undefined (reading 'writeText') at snippet.addEventListener.signal.signal (app.js:1633:31)
09:04 blue snippet.addEventListener.signal.signal @ app.js:1633
09:05 phaleth ok, another one
09:05 phaleth go to the guides page and then refresh, the text will get squashed
09:05 phaleth similar happens on blog page, but not so bad
09:06 blue which browser? librewolf?
09:06 phaleth librewolf and palemoon
09:06 phaleth I'll try epiphany
09:06 phaleth yeah, squashed on epiphany as well after refresh
09:06 blue why are you using these ridiculous browsers
09:07 blue anyway, looking at it
09:07 phaleth for testing mostly
09:07 phaleth actually librewolf is my main browser :)
09:07 blue I went to the guides page on librewolf and refresh, nothing weird happened
09:07 blue refresehd*
09:08 phaleth ok, let me try on primate.run then
09:09 phaleth works well there
09:11 blue do you get any console error on refresh?
09:12 phaleth nope
09:12 blue btw, the copy bug was me running the website on 0.0.0.0
09:12 blue chrome blocks certain APIs like navigator.writeText on that
09:12 blue running from 127.0.0.1 worked
09:12 blue so that's not a bug, ok
09:13 phaleth if I turn off display: grid rule on the guides page then it looks fine
09:13 phaleth do you think the previous commit fixed docs but broke guides page? and also blogs page
09:13 blue the thing is, I didn't add display: grid
09:13 phaleth yeah, I have no problem copying text
09:14 blue I just scoped one component which set `display: block` on main and caused havoc
09:14 blue let me install epiphany
09:15 phaleth epiphany is the best
09:15 phaleth heh
09:15 phaleth wait, you have edited guides view in that last commit
09:15 blue yes
09:15 blue I scoped it
09:16 blue yeah, hitting f5 countless times on /guides does nothing wrong, on epiphany
09:17 blue are you donig npx primate
09:17 blue or npx primate build && npx primate build?
09:17 blue when you're testing now
09:17 blue I tested mostly with npx primate
09:17 phaleth npm run build && npm run serve
09:18 blue k
09:18 phaleth will try npm start
09:18 blue oh ok. yes if I refresh the guides page, it shows all black
09:18 phaleth when using npm start it's fine
09:19 phaleth so only the prod build messed up with styles
09:19 blue yeah. so if you access /guides directly, it'll be messed up
09:20 phaleth right
09:20 blue anywy I fixed it locally. will push in a moment. apparently the marko scoped styles are botched
09:21 blue I don't really get it, it's related css modules, but it's also not important enough for me to care
09:21 blue related to*
09:22 phaleth yeah, css does not need to be split too much
09:23 blue anyway, pushed
09:23 blue I also pushed out the blog post already because, why not
09:23 blue realy nice bundle size at 71K there
09:23 blue really*
09:23 phaleth ok, take a note of https://pagespeed.web.dev/analysis/https-primate-run/2kwdd4vhoi?form_factor=mobile
09:24 blue ok, for comparison?
09:24 phaleth right
09:25 phaleth well, new error
09:25 blue oh no ;;
09:26 phaleth https://upaste.de/raw/aLV
09:26 blue wait, Error.svelte?
09:27 blue oh right
09:27 phaleth yeah, no clue
09:27 blue it's in +error.ts
09:27 blue can you fix it locally?
09:27 blue routes/+error.ts
09:27 blue just change to .marko
09:27 phaleth my IDE shows blur
09:27 phaleth but I will try
09:27 blue I can fix it for you if you wat
09:28 phaleth yeah, that'd be better
09:28 blue done
09:28 phaleth it needs to be commited anyway
09:28 blue ya
09:30 phaleth still getting: ReferenceError: example is not defined
09:31 phaleth only the docs page works now
09:32 phaleth that commit with the blogpost broke the site
09:34 blue it works locally, weird
09:35 phaleth there are at least a couple of changes from <style/styles> to <styles> in marko components in that commit
09:35 phaleth can you try to prod build?
09:36 phaleth the dev build is also broken on frontpage and guides page
09:37 phaleth but prod build is giving this error:
09:37 phaleth [ERROR] views/Index.marko error: ReferenceError: example is not defined
09:38 blue oh ok, I'm getting it as soon as I open a page
09:38 blue good
09:41 blue pushed a fixed, phaleth
09:41 blue fix, even
09:42 phaleth ok, nice
09:44 phaleth one last thing, can you try prod build, visit the blog page and then refresh?
09:44 blue pushed out another commit which fixes the icon distance on blog
09:44 phaleth ok, then one sec
09:44 blue that probably fixed that, phaleth
09:44 phaleth yeah, that's fixed now, cool
09:45 blue good
09:45 phaleth alright, time to deploy
09:50 blue good
09:52 phaleth score is better https://pagespeed.web.dev/analysis/https-primate-run/n0qol3q931?form_factor=mobile
09:53 phaleth great, there are no mentions of unused JS
09:54 phaleth marko is very good it seems
09:54 blue ya
09:54 phaleth is it now on par with the other 5 frontend frameworks? from the point of view of primate
09:54 blue yes
09:55 blue https://primate.run/blog/primate-039#marko-6
09:56 phaleth oh, the post is up
09:56 phaleth nice
09:57 blue yeah, gonna cut the release soon
09:57 phaleth I guess then docs are not fully up to date yet, such as this comparison table https://primate.run/docs/frontend#overview
09:58 phaleth about 16kBs gzipped JS is gone, that's a huge drop
10:00 blue woah
10:02 blue edited the table, will soon commit
10:04 phaleth ok
10:06 blue commit is out
10:06 blue I'm gonna prepare the release
10:07 phaleth re-deployed
10:08 blue nice
10:08 phaleth looks like svelte components can now use TS?
10:09 blue yes
10:09 blue this has been the case since svelte 5
10:09 blue I told you about it during our preprocess discussion
10:10 blue so running test:apps now, and if all goes well, will cut the release
10:10 phaleth ah, ok, was just wondering cause primate website was not using that
10:10 blue true
10:10 phaleth but I guess since svelte is gone who cares
10:11 blue 100%
10:11 blue man those database tests are taking forever
10:12 blue I need to setup ci
10:12 blue I guess another bullet point for repopack
10:12 blue anyway, this release unlocks two things that have blocked me, typed path parametrs in client (for repopack) and marko (for website optimisations)
10:12 blue so I'm one happy puppy
10:14 phaleth I like crossbuilding, kinda odd for JS
10:14 phaleth but that's where JS has gotten
10:14 blue yup
10:16 blue could you redeploy please? or let me know how to easily redeploy, do we have a script or something?
10:17 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 "
10:17 blue that's all? cool
10:17 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
10:18 phaleth that's all
10:18 blue cool
10:22 blue nice, worked
10:24 phaleth good
10:25 blue ok, all packages published
10:31 phaleth big release
10:36 blue yup
10:38 phaleth I should learn marko :D
10:38 blue ha
10:44 blue phaleth: I completely forgot about entrypoints. lol
10:45 blue I should add that to the blog post
10:47 phaleth oh, yeah, me too
11:08 blue welp, the 0.40 dev cycle is open
Search posts