Chat Logs

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