Submit

Back to the channels

#primate

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

Search posts