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