Submit

Back to the channels

#primate

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

Search posts