Submit

Back to the channels

#primate

  1. * phaleth joined #primate
  2. * blue_ joined #primate
  3. blue_ hi phaleth
  4. phaleth hi blue
  5. blue_ so I had a discussion with my brother yesterday about how clankerdom stifles innovation
  6. phaleth there will be less and less people learning all sorts of skills, not just software development
  7. blue_ like, why do people keep using next despite its terrible record with rsc (cve of 10.0!) and the general fact that it's a terrible piece of software
  8. blue_ because the clanker recommends it
  9. blue_ basically at this point you're better off using vanilla js and html than next
  10. phaleth and php and raw sql
  11. phaleth all in a single php script
  12. phaleth :)
  13. blue_ yes, perfect
  14. phaleth in any case nextjs got picked up by many because it had exquisite docs
  15. blue_ anything better than this clanker infested nonsense
  16. phaleth one does really have to think like a junior dev and describe things that way
  17. blue_ look at this nonsense
  18. blue_ phaleth: https://dpaste.com/BZWAEHADJ#wrap
  19. blue_ this is what a vanilla next installation produces
  20. blue_ you can't argue that's sane
  21. blue_ phaleth: https://dpaste.com/GP9BAKEET#wrap
  22. blue_ that's what a comparable primate (+react) installation produces
  23. phaleth looks like they use tailwind
  24. blue_ and the bulk of those bytes are just nonsense headers that my dumb browser sends
  25. blue_ that's why primate takes <0s to load on comp, whilst next is around 2-3s
  26. phaleth nowadays next is obviously able to hide a lot of important details behind their easy to use framework
  27. blue_ if someone has any shred of understanding of security, he would never let rsc run in any of his apps
  28. blue_ the complexity of that is terrible
  29. blue_ and for no gain
  30. phaleth they probably just state next is blazing fast due to having all those rendering strategies and that it
  31. blue_ I don't even understand this chunking nonsense that next does
  32. blue_ the esbuild approach is easier: you chunk only on dynamic imports
  33. blue_ it's kinda funny it's 2026 and people still use subpar software for everything
  34. blue_ anyway, I'm gonna upgrade the RP repo to primate 0.38
  35. blue_ it's still on primate .36 and I wanna continue dev
  36. phaleth it's 2026 and people just want an exe
  37. blue_ phaleth, did you see this
  38. blue_ https://github.com/primate-run/primate/commit/485cba0b86144c60cff81802353156310ae44158
  39. nevet move to tsgo · primate-run/primate@485cba0
  40. phaleth drag and drop it into the browser and it deploys
  41. blue_ lol
  42. phaleth yeah, I did
  43. phaleth I assume that's also not breaking the primate website deployment from master branch
  44. blue_ you assume correct
  45. blue_ in fact, you overassume. apps/website does not use typescript directly
  46. blue_ none of the apps does
  47. blue_ typescript in the primate monorepo is used for two things: compiling packages, which is increasingly rare because I'm using live TS during, and type-checking in the editor
  48. blue_ when you build apps/website, what happens is that esbuild pipes all of the TS into a single JS file
  49. phaleth ok, can you take a look at the PRs then?
  50. blue_ I could, but I wanted to ask you. you've fixed this woff thing a few times, do I keep changing things that it keeps regressing?
  51. blue_ I anyway wanted to find some solution for woff because I keep needing custom code for it and it's annoying me
  52. blue_ https://github.com/primate-run/primate/blob/master/apps/website/config/Website.ts#L18-L28
  53. blue_ I have 100% the same piece of code on repopack's website repo
  54. blue_ I was thinking of maybe adding {loaders": Record} to the config
  55. blue_ so you'd just do {loaders: {woff2: "file"}}
  56. blue_ but that feels like circumventing the module API a bit
  57. blue_ maybe the best way is providing a primate helper
  58. blue_ `import loader from "primate/loader"; ... export default config({ modules: [loader("woff2", "file")] })
  59. blue_ translates interally to a Module, but without all the boilerplate
  60. blue_ but anyway your first PR only makes sense if woff2 is used
  61. blue_ and a part of me feels back about hardcoding woff2 support into the code
  62. blue_ feels bad*
  63. blue_ what does the patch do, create a preload script tag for woff2?
  64. blue_ do we need this? esbuild inlines woff2 with the module I just showed
  65. phaleth you can move that from the core if you want to, that's totally up to you
  66. phaleth I'm just fixing it again, but it's not really a regression
  67. phaleth this time the problem is in a different place
  68. blue_ it just adds a preload script tag, or what does it do?
  69. phaleth yeah, the code for adding that preload tag is fine
  70. phaleth the bug is not there
  71. phaleth I mean the preload tag creation was already there :)
  72. blue_ oh, so what is the bug
  73. phaleth the bug is that woff2 files are ignored by that magical thing dynamically processing assets
  74. phaleth I also think that the build system should take care of pre-rendering the tags, but that'd mean lot of rework
  75. blue_ the script tags?
  76. phaleth think header at least
  77. blue_ it does create script tags
  78. phaleth at build time?
  79. blue_ oh, you want at build to create html files with the script tags already baked in?
  80. phaleth yeah, but don't worry about that now
  81. phaleth it's fine as it, cause it just works
  82. blue_ lol, I just did `npx primate build`, and build/server.js isn't minified
  83. blue_ when did that get lost
  84. phaleth heh

Search posts