Community
Chat Logs
Sunday, March 22, 2026
- phalethtime to say farewell to the edge runtime https://images4.imagebam.com/95/eb/b9/ME1BIGIR_o.png it's memory consumption started at 137M over a day and half ago
- bluephaleth: lol
- bluephaleth: https://github.com/primate-run/primate/issues/262
- nevetProposal: Introduce `p.uuid()` as a first-class Pema type 路 Issue #262 路 primate-run/primate
- phalethI think mysql supports uuids and turns them into 16 byte long binaries
- phalethwhich it can then easily compare and so use as primary keys
- phalethnot sure why it's a 12-byte length for MongoDB, sounds odd
- phalethah, it's not UUID, it's some mongo objectid thing
- phalethin any case, having database compare strings/texts is a horrible idea
- phalethand also ordered is always much much better, that's already there in the proposal
- blueyes, phaleth
- bluethis mostly closes a gap I've been annoyed with for a while
- blueand mongo ObjectId is some proprietary nonsense, but it's the most effective way to do primary indexing in mongo
- blueI'm incling to say that p.uuid (datatype: "uuid") will map to that, while the bespoke types "uuid_v4" and "uuid_v7" will use uuids,which mongo db cannot effectively index, so perhaps we'll add a warning for that in the mongodb driver
- blue"uuid" as a datatype should mean, "use the best UUID approximation you have". sqlite doesn't have one, it's just TEXT. so it's logical that for mongodb, that would be ObjectId.
- bluephaleth: do you mean this?
- bluehttps://dev.mysql.com/doc/refman/8.4/en/miscellaneous-functions.html#function_uuid-to-bin
- phalethyeah, if uuid is used as primary key, mysql and all the other dbs that support uuids should automatically sort records by that primary key after insertion
- phalethI guess then for mongodb you will have to make an exception
- phalethbut overall the idea sounds good
- bluephaleth: https://github.com/primate-run/primate/issues/262#issuecomment-4106146943
- nevetProposal: Introduce `p.uuid()` as a first-class Pema type 路 Issue #262 路 primate-run/primate
- bluethat's a follow-up with your mysql idea
- blueclanker also ack'd, so looks good
- bluephaleth: can I restart the vps? arch has linux 6.19 out
- phalethyeah, sure
- phalethbye bye blue
- bluephaleth: well, it's restarted, but primate.run is dead :(
- blueoh, now it's working
- blueI guess it took the haproxy podman container some time to boot up
- phalethsystemd is prolly slow
- blueya
- phalethhaproxy is on the host OS
- blueit's a podman container though, right?
- phalethhaproxy is installed on archlinux host OS directly
- phalethnot a container
- blueoh, gotcha
- blueI thought it used to be an nspawn container
- phalethit used to be, yeah
- blueis it easier to have it on host?
- phalethit's just a bit more convenient
- phaleththere is less NAT translations happening when haproxy is not in container
- phaleththe reason I've put haproxy into container was that I used to do custom builds
- phalethbut the archlinux build of haproxy has everything needed
- phalethso there is no reason to slow things down anymore
- phalethand also of course archlinux or whoever maintains the haproxy package makes sure it's up to date
- bluegotcha
- bluemakes sense
- phalethhaproxy's setup is mostly about it's configuration (haproxy.cfg) and that one is exactly the same as it used to be
- blueya
- bluein the future I do intend for servers to regularly update and restart, but that's a load-balancing issue
- blueyou shortly reroute all machines on server 1 to server 2 (assuming you got redundancy on server 2), update server 1, put them back, then update server 2
- phalethheh, ok