Submit

Back to the channels

#primate

  1. * phaleth joined #primate
  2. * jreicher joined #primate
  3. * phaleth joined #primate
  4. blue hi phaleth
  5. phaleth hi blue
  6. phaleth I've been lurking and found https://github.com/railwayapp/railpack which looks like something we might need
  7. nevet GitHub - railwayapp/railpack: Zero-config application builder that automatically analyzes and turns your code into an image
  8. phaleth looks like it builds debian based images
  9. phaleth the idea itself is good I think
  10. phaleth ran into this bug https://github.com/containers/podman/pull/28454 well, actually that's the bugfix, just not released yet
  11. nevet fix(#28429): OCIRuntime field in SpecGenerator is ignored when called through HTTP Rest API by aadi58002 · Pull Request #28454 · containers/podman
  12. phaleth it's good that someone reported the problem
  13. blue what's it do?
  14. blue oh btw yesterday I discovered podman-tui, tried to install via aur, it went straight to go compilation so I ditched it
  15. phaleth lets you choose the container runtime, via CLI that works, it's a bugfix for REST API
  16. blue arch is so bad sometimes, I'm way too old to be compiling software
  17. jreicher blue: k9s?
  18. phaleth yeah, well, I'm trying to avoid CLIs for the automation
  19. blue jreicher: I won't touch kubernetes with a 9-yard-stick
  20. blue phaleth: and yes, the principle behind railpack is essential the same like repopack
  21. blue except of course, using a web app and not spitting out a docker file
  22. blue this is the deal, right? I *still* need to deploy the thing somewhere
  23. phaleth railpack does not output Dockerfile
  24. phaleth it uses buildkit LLB, which I think is something worth taking notes about
  25. blue but we will also have a `rp` cli that does essentially the same, but deploys to rp.com
  26. blue my idea is something like `rp deploy`, then you get `deployed to https://[hash].repopack.app`
  27. blue but we will need something like `rp login` or so because obviously you need some user association there
  28. blue but essentially my dream flow is running just one command in my repo and getting a url that I can open
  29. blue and then rince repeat
  30. phaleth oh, you mean CLI for the enduser, that's for sure gonna be very handy as people want to script things
  31. blue ya
  32. blue btw, phaleth, I was looking at Temporal last night, and oh boy, that is a dumpster fire of complexity
  33. blue so node 26 has it, deno apparently has it too, bun doesn't have it because webkit doesn't have it
  34. blue https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal
  35. nevet Temporal - JavaScript | MDN
  36. blue look at this bible-long garbage
  37. blue it took them 9 years to come up with THIS?
  38. blue the amount of don'ts is terrible
  39. blue "Don't assume that era is a user-friendly string; use toLocaleString() to format your date instead."
  40. blue yeah, good luck giving devs a bunch of don'ts
  41. phaleth yeah, well, dealing with datetimes and timezones has always been a pain
  42. blue I think I will skip that and create @rcompat/time. dates are complex, but this API is *not* a good answer
  43. phaleth nah, just don't bother
  44. blue I have good ideas, and you know how it is when I have good ideas
  45. blue I waste time on them
  46. phaleth just stitch together something quick and dirty and hardcode it to repopack
  47. phaleth if it works out you can create a lib out of that later
  48. blue `import time from "@rcompat/time"; const t = time.ref(Date | string | number); t.stamp();`
  49. blue yeah I don't actually need any of this for RP
  50. phaleth that's good, then no need to bother at all
  51. phaleth for repopack you can always convert time on frontend anyway, will that make the site slower? yes, but who cares, it's a tiny bit slower
  52. blue that's what you should do, anyway
  53. phaleth agreed
  54. blue we will store TIMESTAMPTZ in the postgres db
  55. phaleth new Date().getTimezoneOffset() / 60
  56. blue and we will get a date object
  57. blue because p.date maps to TIMESTAMPTZ
  58. phaleth that should return -2 for you, and timestamps in postgres are all GMT
  59. blue UTC, yes
  60. phaleth yeah
  61. phaleth now you need to figure out how to calc time diffs to be able to add those -2 or whatever and that way you replace the whole library
  62. blue ya
  63. blue but you know, I just want simple APIs. the two mortal sins of CS are caching and overengineering
  64. blue `epochNanoseconds`
  65. blue real use case right there right now. JS in airplanes, coming to your next starport!
  66. blue `Temporal.PlainYearMonth`
  67. blue come ON
  68. blue this is so bad
  69. blue it took them nine years to come up with this monstrosity
  70. blue no thank you, I prefer `Date` over that with all its gotchas
  71. phaleth yeah, waste of time
  72. blue I think they copied some stuff from https://docs.oracle.com/javase/8/docs/api/java/time/temporal/Temporal.html
  73. nevet Temporal (Java Platform SE 8 )
  74. blue I mean, the Java API is its own level of crazy with stuff like `ThaiBuddhistDate`
  75. blue MinguoDate ???
  76. blue why is everything so bad
  77. blue wait till we colonise mars, they'll invent java.time.chromo.MarsTime
  78. blue chrono*
  79. blue anyway, point being, I ain't using Temporal in JS
  80. blue phaleth: given repopack.com/[0]/[1], do you prefer calling 0 org or namespace?
  81. phaleth a participant
  82. phaleth or a member
  83. blue so conceptually it can be a user or an organisation
  84. blue member sounds good to me for now, we can also call it user and have user types
  85. phaleth forgot to say I need to reboot the server
  86. * blue joined #primate
  87. phaleth blue: any clue what's wrong here? https://upaste.de/raw/FDq
  88. blue phaleth: did you restart the server?
  89. phaleth trying to add the --prod flag to pnpm install
  90. phaleth blue: yes, I did, forgot to warn
  91. blue all good
  92. blue I'm just monitoring contabo a bit for reliability
  93. blue hm, that's pnpm being a pain in the butt
  94. phaleth --prod seems to have effect https://upaste.de/raw/m79
  95. blue so the problem is (peer)deps inside the monorepo
  96. blue some imports might point to .js files, but if `npm run build` hasn't been run at least once, those files won't exist
  97. blue pnpm is just a garbage tool, that's all. if you run `npm run build` once inside the repo, the next pnpm install would work
  98. blue maybe we'll switch to bun from pnpm
  99. blue btw I love the new comp
  100. blue I only just now finished configuring niri and the gang, and it's fabulous
  101. phaleth I've tried switching to bun from pnpm but could not figure out how
  102. phaleth new comp?
  103. blue yes, the thinkpad t480 that I'd order like half a year ago
  104. phaleth oh yeah
  105. blue and then I was slowly building up superarch on it
  106. blue it's on gitea
  107. phaleth pnpm install just worked two days ago, nothing has change on primate master since
  108. blue wasn't there the switch to tsgo?
  109. blue oh, this is still on github, I need to move it to gitea
  110. blue https://github.com/superarch-org/config
  111. phaleth the switch to tsgo wasn't a problem two days ago
  112. phaleth and there is no new commit since
  113. blue pnpm sucks
  114. blue is the container running?
  115. phaleth yeah, but bun cannot replace pnpm
  116. blue I can pop in and fix it
  117. phaleth the container is fine
  118. blue so buildctl is failing?
  119. phaleth yeah, image build is failing
  120. blue RUN pnpm approve-builds
  121. blue try this phaleth
  122. blue prior to
  123. blue RUN pnpm install --prod
  124. phaleth ok
  125. blue or just drpo the --prod flag
  126. blue what do you need it for, anyway
  127. blue what's it do?
  128. blue RUN pnpm install
  129. blue RUN pnpm -r build
  130. blue or that other command which builds only the packages relevant for apps/website
  131. phaleth https://upaste.de/raw/AAo
  132. phaleth --prod means it will not bother with devDependencies on pnpm install
  133. phaleth but it was already failing without --prod
  134. blue was that the first link you sent?
  135. phaleth yeah
  136. blue I get the same warnings when I clone locally
  137. phaleth I think there is a new pnpm version
  138. blue anyway the prod flag isn't gonna help you
  139. blue you need TS to build stuff
  140. blue and TS is a devdep
  141. blue if you were an app, it would be OK, because you'd be consuming js from npm or having your bundler transform non-js
  142. blue but here you need the TS devdep
  143. blue just put
  144. blue pnpm install && pnpm -r build
  145. blue into the build
  146. blue that should work
  147. blue with tsgo it's gonna be fast anywy
  148. phaleth right, that's true
  149. phaleth RUN npm install -g pnpm@10 <- avoids the problem
  150. blue yeah, let's pin things to an old version that no one will support anymore
  151. phaleth welcome to the JS ecosystem
  152. blue haha
  153. blue also known as the DS ecosystem
  154. blue dumpster fire script
  155. phaleth that's DFS
  156. blue yes but that's already like depth-first search or some other nonsense
  157. phaleth depth first traversal
  158. blue javascript is a joke, and we all know it
  159. phaleth I mean pnpm 10 works better than bun
  160. blue it's always been a joke to be honest, but the sad thing is that no one's trying to fix it
  161. phaleth you can try to build the monorepo with bun, but then you will have to change things in the repo I guess
  162. blue so the reason I haven't done that is simply that most people currently run node
  163. phaleth yeah, bun just comes with their own solution that comes with it's own problems
  164. blue and I don't *feel* the need to verify that stuff is working on deno/bun, because I have rcompat
  165. blue you have no idea how comfortable it is just to write stuff and know it works on all runtimes
  166. blue using non-crazy APIs
  167. phaleth I wish npm was able to build these monorepos
  168. phaleth the way pnpm screws around in the node_modules dir is very odd
  169. blue yeah, pnpm is doing so odd voodoo magic
  170. blue some*
  171. blue they all do, because the JS ecosystem is like that

Search posts