Submit

Back to the channels

#primate

  1. blue hi phaleth
  2. phaleth hi blue
  3. blue so I was moving all the repos to my new comp, and I figured out it be a good time to switch to biome since eslint is so slow
  4. blue and lo and behold, it's 2026 and you still can't write custom rules with biome, what a dumpster fire
  5. blue but it's written in rust!!!
  6. phaleth as far as I know eslint is superior and incomparable to any other linter even the ones not specific to JS/TS
  7. blue indeed
  8. blue biome is missing a few important rules I rely on, like no shadow or no implicit booleans, it's a no go
  9. phaleth I've managed to run nginx on battle tested secured kernel https://upaste.de/raw/6xh
  10. phaleth nginx has to use epoll cause there is no io_uring
  11. blue linux 4.19?
  12. phaleth I think nginx still uses epoll by default, but anyway, super secure
  13. phaleth yeah, weird, right?
  14. blue that's like nearly a decade old
  15. phaleth you can write issue on biome's tracker, no reason to contribute
  16. blue linus cycles the major number roughly every 3 years
  17. blue I could, but I believe it's on their map and I don't like rust anyway, so zero motivation for me to contribute
  18. phaleth it's cause that nginx service is wrapped with gvisor
  19. blue I would say though, correctness/completeness goes over performance with a linter
  20. blue actually, drop "with a linter"
  21. phaleth and gvisor is trimming down the kernel in userspace, which is a great idea I think
  22. blue yeah, would still be nice to be running something a bit newer than a stone age kernel :P
  23. phaleth maybe in another 10 years
  24. blue I was going to author a piece about rcompat slash JS runtime interoperability. so I either put it on theanswerisc, the primate blog or I contribute a piece to dreamreal's website
  25. blue get a load of this
  26. blue https://github.com/rcompat/rcompat/tree/master/packages/symbol
  27. phaleth nobody knows about the url https://theanswerisc.repopack.app/ so I just keep testing stuff with that site
  28. nevet The Answer Is C
  29. blue yes, but I do intend to update it at some point
  30. blue update as in, write something
  31. blue did you know that in svelte 5, if you await the render function (imported from "svelte/render"), magical stuff happens?
  32. blue so apparently they had this brilliant idea that awaiting stuff triggers some sort of 'ditch this compat layer'
  33. blue which must count as the brightest idea in the history of CS
  34. blue const { html, head } = render(view, props); // works, if the svelte component did not have top-level await
  35. blue const { html, head } = await render(view, props); // throws when you later try to use html, you are a baddie and the new API uses `body`
  36. blue const { body, head } = await render(view, props); // works
  37. blue rich harris, too smart for this world
  38. phaleth yeah, well, might as well try to not depend on svelte
  39. blue they already massively lost in respect when pulling a react with their runes shtick
  40. blue also note, generally speaking, returning two different shapes on sync and async is bad bananas black voodoo magic
  41. blue the only way I can imagine that happening is them returning a promise that's been monkey-patched to work sync as well, but with the older API
  42. blue I can't think of a way to write more terrible JS, though
  43. phaleth all these frontend frameworks are endless bother
  44. blue const p = new Promise(resolve => {}); p.html = "hi"; p.html
  45. blue try this in your node repl :P
  46. blue great stuff
  47. phaleth looks like a garbage code
  48. blue or I should say really, try THIS
  49. blue const p = new Promise(resolve => resolve({ html: "bye" })); p.html = "hi"; [p.html, (await p).html]
  50. blue that's just mad
  51. blue and that is probably what `render` does
  52. blue another thing I've noticed is svelte projects uploading .svelte files to npm
  53. blue which I'm conflicted about. it's bad because it's not generally consumeable, but also the bundler comes last
  54. blue esbuild can deal with it quite well, but node can't
  55. blue not without an --import flag, anyway
  56. phaleth yeah, bundlers will remain forever it seems
  57. blue they also revised their API https://nodejs.org/docs/latest/api/module.html#moduleregisterspecifier-parenturl-options
  58. nevet Modules: `node:module` API | Node.js v26.0.0 Documentation
  59. blue used to be async, now sync
  60. blue oh, they released node 26 yesterda
  61. blue y
  62. blue Temporal API, not bad
  63. blue `Temporal is a modern date/time API for JavaScript that provides a more robust and feature-rich alternative to the legacy Date object`
  64. blue I wouldn't call it legacy per se, people are gonna use Date until the rest of time, with all its quirks
  65. blue that's just a java inheritance that's never gonna go away properly
  66. phaleth yeah, once java.util.Date dissapears lot of people get will screwed
  67. blue I haven't looked at Temporal for a while. but my initial impressions of it was overegineered, I might wrong though
  68. blue do you think that's ever gonna happen? I don't follow the java dev process so closely but I don't think they're gonna remove java.util.Date
  69. phaleth no clue, but everywhere you can read that java.util.Date should not be used anymore
  70. blue bun/jsc has no Temporal
  71. blue so that's a no-go for now
  72. blue I'm not faking it in rcompat, the surface is too large and also I'm not even sure I like the api
  73. phaleth there will be an attempt from anthropic to rewrite bun in rust
  74. blue I was thinking of creating `@rcompat/time` anyway or so
  75. blue you know, date stuff is one of those things which I think might be better in an std rather than built in
  76. phaleth and so bun will prolly end up being even a bigger pile of trash than it is
  77. blue fair
  78. blue how would that work with bun maintaining their own copy of zig because zig doesn't accept ai contributioos?
  79. blue I guess that goes away then
  80. phaleth https://github.com/oven-sh/bun/blob/claude/phase-a-port/docs/PORTING.md
  81. blue why? that's the incentive?
  82. blue what's*
  83. phaleth to show andrew he should take AI seriously or to show once and for all that AI can only come up with garbage
  84. blue but bun is a zig foundation contributor?
  85. blue oh man, poor andrew
  86. blue I don't like the guy, but still, bun dying on that hill is dumb
  87. blue "Zig's no-AI policy may be embarrassing for Anthropic, which acquired Bun in late 2025 and uses it for Claude Code."
  88. blue so this is just 100% politics
  89. phaleth bun has always been an experiment
  90. blue Zig doesn't like AI, claude bought bun, claude hating on zig, and out of spite forcing a rust rewrite
  91. blue it's almost like everyone is stupid
  92. phaleth AI is 100% politics
  93. blue this is beyond funny stupid
  94. phaleth yeah, politics is dumb
  95. blue at this point I'm gonna put a "Hustler" token next to Sumner's name
  96. blue 10000% increase in `new Response(null)` thoroughput? check. rewriting bun in rust because your investor overlords said so? check
  97. phaleth hehe
  98. phaleth well, anthropic can just replace Jarred if needed
  99. phaleth and he's got a high paying job there
  100. blue true
  101. blue also, https://ladybird.org/posts/adopting-rust/
  102. nevet Ladybird adopts Rust, with help from AI - Ladybird
  103. blue so here's the pitch
  104. blue rust has been around long enough to be clankerable, so people doing exactly that
  105. blue zig is moving fast and breaking, that's largely incompatible with the regressiveness inherent to AI
  106. phaleth it's all the same clowns
  107. blue sorry, I think I'm gonna take andrew's side here
  108. blue the AI contributions thing make sense, bytenews had a piece on it lately
  109. phaleth yeah, as for andrew, I think he's different
  110. blue makes*
  111. phaleth will he loose the bun money? prolly, but he should not care
  112. blue he already lost the github contributors money
  113. blue gotta appreciate the ideological clarity here
  114. blue codeberg was the wrong choice, but that doesn't invalidate the gh ditch
  115. phaleth yeah, everyone has ideals
  116. phaleth btw, did you check the merge requests I've opened against primate?
  117. blue no, I forgot
  118. blue both merged now
  119. blue https://superarch.org/gh.png
  120. blue look at this stupid nonsense
  121. blue gh has been doing this lately and it absolutely gets on my nerves
  122. blue we gotta get away fro mit
  123. phaleth ok, cool, I'll redeploy primate website soon
  124. phaleth yeah, that bug has been there forever
  125. phaleth people behind github do not care
  126. blue more reason to put RP
  127. blue I actually don't have a whole lot on my table right now for 0.39, so I think I'll dedicate the weekend to RP
  128. phaleth sounds good
  129. phaleth one thing that should change for RP is that we will be using gvisor to be able to run arbitrary code
  130. phaleth that means rootless will not work because of networking
  131. blue didn't we say we're gonna have KVM for that
  132. phaleth crun and pasta simply cannot be used
  133. phaleth and also the REST HTTP API of podman will most likely not work even as sudo
  134. blue we do have to start worrying about proper isolation at some point, but that point is for me when people pay
  135. phaleth nope, we're not gonna use VMs cause they lead to you having to pay for dedicated servers
  136. phaleth and we already migrated from a VDS
  137. phaleth it's too much money spent
  138. blue well, we need podman either way
  139. blue my idea was that you scale to the size of the customer
  140. phaleth no, we have to worry about all that kernel security complexity
  141. blue obviously doesn't mean you can forfeit security, but there's only so much we're gonna do on the free $5 plan
  142. phaleth cause otherwise we'd end up with a lot of migration burden
  143. phaleth kinda like fly.io did
  144. blue fair
  145. blue but just note that the podman API is central to the automateability of the platform
  146. phaleth we will use podman for sure, just not with crun and pasta
  147. blue that's your concern, I will follow your advice on that
  148. phaleth ok, cool
  149. phaleth yeah, just be aware that not everything is doable via podman API
  150. phaleth and the podman API may not work
  151. blue network management in particular is something that podman API seems to be doing incredibly well
  152. phaleth I'd just play it safe and use CLIs as not only podman CLI is needed anyway
  153. blue k
  154. blue well, my idea is that we get primate website on the new system first
  155. blue then stuff like socialcloud and the other containers
  156. blue then we can see if we can open alpha or beta or whatever
  157. phaleth also for automation I'd like to use podman-compose and podman quadlets
  158. blue I'm gonna pretend I know what that means
  159. phaleth compose.yml files and sort of systemd unit files
  160. blue oh, ok
  161. blue but in terms of features, I'm pretty sure RP doesn't need 0.39
  162. phaleth I will have to test podman quadlets against freebsd
  163. blue 0.39 is going to be a lot of 'cosmetics' like path/query/cookies/headers schemas
  164. phaleth then that's awesome, just freeze primate at 0.38.x
  165. blue and maybe finally "primate/openapi", which RP would benefit from
  166. blue what I'm saying is that it will be a small release anyway I think
  167. blue I've done a few bigger ones, time for some calm
  168. phaleth cool
  169. blue https://github.com/primate-run/primate/issues/257
  170. nevet Proposal: Virtual route groups · Issue #257 · primate-run/primate
  171. blue this is something RP would benefit from as well
  172. blue seeing as it has a somewhat complex fs structure
  173. blue but yeah, I think I got primate in a somewhat sweet spot where I can let it cook for a bit
  174. blue and when I use it myself, I notice things that can be improved and then it flows back
  175. phaleth the site is fast again https://tools.pingdom.com/#677f26a403c00000
  176. blue very nice
  177. blue gh is 79, page size 4.4mb, oof
  178. blue requests... 108
  179. dreamreal phaleth: kinabalu was looking for you here
  180. dreamreal he's west coast so it's still pretty early for him though
  181. blue dreamreal: the bun rust rewrite is probably newsworthy for bytenews
  182. dreamreal It's not a commitment, though
  183. dreamreal I read about it, did the research
  184. dreamreal It's like a "hey, can we?" spike
  185. blue it doesn't really matter, it's a bit
  186. dreamreal and not a "we're doing it"
  187. blue besides, it's a great followup to your zig ai news
  188. dreamreal i guess, it didn't compel ME, if someone else wrote it up well I'd publish it
  189. blue because it's obviously related
  190. dreamreal it felt like a storm in a teacup to me, but I'm only one view
  191. blue you're underestimating how much a PR campaign and not much else bun is
  192. dreamreal Am I.
  193. blue yes
  194. dreamreal I doubt it. I was using node when bun came out, and evaluated it, and passed on it.
  195. phaleth blue: the podman rest API is still usable with sudo
  196. phaleth example: sudo curl --silent --unix-socket /run/podman/podman.sock http://d/v1.0/libpod/info | jq
  197. blue oh ok. but we're doing rootless podman, no?
  198. phaleth dreamreal: ok
  199. phaleth blue: nope, doing rootful for now
  200. phaleth it's not so difficult to switch
  201. blue mhm
  202. dreamreal blue: that's not to say it didn't get considered strongly, but here's the thing: BCN is not meant to be MY BLOG. I'm the editor. That's pretty much what I intend for my role to be, and the idea was always that people would write up what they thought was interesting (as would I) and it'd get hammered into shape.
  203. dreamreal I post on it because I'm the editor and it needs content, but it's not *mine* in that sense. I still have my blog for stuff that's my direct interests.
  204. blue ya, I still think it's newsworthy, but you can wait to see if Sumner is being an idiot again or not
  205. phaleth dreamreal: I should be there in the evening, but US west is 9 hours late
  206. dreamreal I mean... why not write it yourself?
  207. dreamreal phaleth: he should be around soon
  208. dreamreal blue: I can't have a valid perspective on everything and can't pretend to
  209. phaleth blue: I'm not sure if podman pods still work, will have to try that, only tried a solo container so far within a podman network
  210. blue it's an all abstraction to me if I use the podman api, right
  211. blue dreamreal: my perspective would be way too negative!
  212. * dreamreal shrugs. That's what an editor is for, maybe. :D
  213. blue quite possibly
  214. phaleth blue: yeah, you don't have to worry about underlying runtime and network interface used
  215. blue what's primate-website even running, bun?
  216. blue bun-linux-64
  217. blue didn't you say it was leaking mad
  218. blue I still have a hard time getting over the fact bun is 98M
  219. phaleth yeah, bun at the moment
  220. phaleth it tends to go to about 205M
  221. phaleth but then stops there
  222. blue I'm looking at btop
  223. blue java, 659M
  224. phaleth in any case I'm just testing bun with the website, the container that it runs in also has node, npm, pnpm, etc.
  225. blue grafana, 344M
  226. blue this is like a free for all or smth
  227. blue php-fpm, two processes 130M each
  228. blue what is this madness
  229. phaleth no resource limits if that's what you mean
  230. blue yep
  231. phaleth socialcould prolly
  232. blue this btop stuff is real, feels like a video game
  233. blue you hit esc, get a menu, how wild is that
  234. phaleth btop is nice
  235. blue how do I sort by memory?
  236. phaleth very easily customizeable
  237. phaleth press left/right arrows
  238. blue great, thx
  239. blue ok so at some point we will need to tell containers their limits
  240. phaleth that's also another reason for sudo
  241. blue mongodb, 42 threads, 161M
  242. blue it's even more than java
  243. blue why is java such a memory hog
  244. blue postgres, 42M
  245. phaleth we should just ban usage of JVM
  246. blue ya
  247. blue bbiab
  248. phaleth blue: I've updated https://gitea.repopack.app/repopack/provision/src/commit/7bea48339b348cfd1486cdf8e19e3958af6eef7b/podman/pods/theanswerisc.md quite a bit
  249. phaleth it's not possible to use podman pods as networking won't work
  250. phaleth and also podman build only works with --runtime flag, for which there is no way to pass it to the REST API
  251. phaleth or at least I could not find a way
  252. blue cool, phaleth
  253. blue phaleth: do you have a good idea for the url hierarchy of RP?
  254. blue I find the github one attractive, but also arbitarily confusing
  255. blue sourcehut uses ~/[namespace]/[project], but ~ is a bit weird
  256. blue also putting orgs at the toplevel means you might need to reclaim some actions later, or have a blacklist, neither of which is nice
  257. blue so if someone creates an org "register", obv you don't want that
  258. blue maybe simply u:[user], o:[org]
  259. blue I'll just go with /p, the pramatic choice for now
  260. kinabalu phaleth: hey
  261. phaleth hi kinabalu
  262. phaleth blue: what does /p stands for?
  263. kinabalu phaleth: DM?
  264. blue phaleth: project
  265. phaleth ok, but won't there be a public part of the website?
  266. phaleth like people may want to expose to the public some parts of what they are working on
  267. blue we will maintain a public/private distinction
  268. blue I'm only looking to diffuse the confusing "org are top-level actions" in GH
  269. phaleth ok then lets not harm SEO with acronyms
  270. blue so say you have primate
  271. blue the gh style would be
  272. blue repopack.com/primate/primate
  273. phaleth long urls are fine, if someone is bothered they can use url shortener
  274. blue my prosposal would be repopack.com/p/primate/primate
  275. blue and you'd like that to be called /project ?
  276. blue it's also kinda annoying in that that to edit the namespace/org itself, you need yet another url strucutre
  277. phaleth well I thought there is user or organization first
  278. blue yes, the first 'primate' is the user/org/ns
  279. blue let's do another example
  280. blue repopack.com/phaleth/primate
  281. blue that's the gh style
  282. phaleth organization goes first, then project, then repo
  283. blue and it's a pain because some urls need to be blacklisted (/register, /login), and others might be to be future-reclaimed
  284. phaleth or whatever else is the resource under the project
  285. blue ok and what's the page to edit an org's setting?
  286. phaleth blacklisting is part of life on the interwebz
  287. blue can't do repopack.com/phaleth/settings, because 'settings' could be a valid project name
  288. phaleth repopack.com/phaleth/settings/edit
  289. phaleth then ban it :)
  290. blue yes but that's indistinguishable from a project url
  291. phaleth sounds like a situation for an nasty branching logic I know, and I recommend to process that dynamically
  292. blue so you can cleanly map it if you concede that orgs cannot be toplevel
  293. phaleth you can think about making some database calls cacheable later, once there are too many hits
  294. blue repopack.com/phaleth/~/settings
  295. blue or so
  296. phaleth ok, so how about this
  297. phaleth you are on a project page, then start with /project
  298. phaleth you are on user page, then start with /user
  299. phaleth and so on, quite distinct from how github does it, but as long as SEO is good then everything is good
  300. blue the main problem with that is that a user can't go to repopack.com/phaleth/my-zig-fork, drop 'my-zig-fork', and get to your page
  301. blue or rather, repopack.com/project/phaleth/my-zig-fork, I mean
  302. phaleth you could have it both ways, pretty links and ugly but fast links
  303. blue so sourcehut does something like ~/phaleth/my-zig-fork
  304. phaleth somebody hits a pretty link, that is not a pre-existing page like /project or /user, the logic first leads to a router that will figure it all out
  305. phaleth or return 404
  306. phaleth without need to do a full redirect of course
  307. phaleth all frameworks do that nowadays
  308. phaleth good example is wordpress
  309. blue wdyt about repopack.com/p/[hash]/[project]
  310. blue hash would be like 8 hex chars
  311. blue and user is just user. repopack.com/u/phaleth (or /user)
  312. phaleth https://stackoverflow.com/users/14512005/phaleth
  313. nevet User phaleth
  314. phaleth stackoverflow uses the resource name there "users" so they can look it up quickly
  315. phaleth does table exist? kinda thing
  316. blue so my most seo friendly is obv repopack.com/phaleth
  317. blue and putting the projects under it, so it flows naturally
  318. phaleth yes, cause people like me are used to type in out of memory https://github.com/terrablue.keys
  319. blue but then we're back to blacklisting and reclaiming territory
  320. phaleth and that .keys url pattern is kinda standard
  321. blue what's that .keys url pattern?
  322. phaleth call it blacklisting and reclaiming territory, but essentially you need a router
  323. phaleth github prolly does all this routing at HAProxy level to make it most efficient
  324. blue yes I know, but you know what I mean. someone registers "jobs" as an org, suddenly you have to force rename him because you didn't consider it in your blacklist
  325. phaleth blue: just open that link and I think you will understand
  326. blue oh, that's cool, Ididn't know that existed
  327. blue it gives you the pubkeys?
  328. phaleth yeah, someone registers as idiot, same old still, welcome to the interwebz
  329. blue lol
  330. phaleth pubkeys yes
  331. phaleth in Java terms you always have all sorts of enumerations that you need to check, putting those to database and even having API endpoints on top of those at first is fine
  332. blue fyi, the server build of apps/angular in dev mode is 33K
  333. blue that means I can essentially do server hotreload forever before I run out of room
  334. phaleth you might think you can come up with a finite enum, but you will eventually expand there
  335. blue I guess you gotta put into your terms "any user/org is reclaimable at any time without notice, do not impersonate"
  336. blue probably gh has something like that in their terms
  337. blue yes, let the lawyers deal with it
  338. blue great
  339. blue I'm going to release a patch for 0.38 because my manifest strategy massively degraded server hotreloading
  340. phaleth anything you see on this website is subject to change, welcome to the interwebz, period
  341. blue now it's back to normal, I had severe hangs and v8 stack deaths and what not
  342. phaleth cool
  343. blue long story short. the route imports on the client side do some type-juggling where they get a client instead of the real route, which is great in TS, because that's what you want to have
  344. phaleth yup, that's the router to use
  345. blue in runtime, I was generating a manifest json file for the client, but that sucked, as it turned out
  346. blue so now I'm back to actually importing `client.browser.ts` via runtime keys, and stubbing all primate/store, primate/response (which would be otherwise pulling in node:fs)
  347. blue imagine you don't stub stores on the client, you convert them to fetch calls too
  348. blue but we don't want that, you could be circumventing security and so on
  349. blue I believe chovy once asked me if it's possible to call stores on the client
  350. blue those things are technically possibly and at the same time a total security nightmare
  351. blue not to mention stores could return things like bigints, which aren't JSON-serializable
  352. phaleth yeah, the constant need for computers reading into each others memories will always be there
  353. phaleth thinking of platforms and languages and runtimes is too much of a hassle
  354. phaleth and so idiots will keep on generating components server side
  355. blue ya
  356. blue my point is though, stubbing primate/store on the client is generally not a bad idea
  357. phaleth yeah, but that's how nextjs got their highest scoring CVE this year
  358. phaleth anyway, if the website is small, which the website should be small in any case, then just do full refresh
  359. phaleth why would the website be big
  360. blue they got their highest scoring CVE by having RSC
  361. blue which is a solution looking for a problem
  362. blue using tsc on 0.38 is taking forever
  363. phaleth yeah, like having too big of a framework on frontend is also like a solution looking for a problem
  364. phaleth VDOM is also one of those solutions
  365. blue yes
  366. blue I've only switched to tsgo like two days ago and I already cannot deal with tsc
  367. phaleth tsrust is the next big thing
  368. phaleth 100% clankered
  369. blue hahaha
  370. phaleth I've recently found that vitepress is still not migrated to vite 8.0, they just do not trust their own rust experiments
  371. phaleth cause they know it's all a huge buggy mess
  372. phaleth but one would think that vitepress would be the first project to adopt latest vite even well before being stable
  373. blue yeah, well
  374. blue yes
  375. phaleth memory.reservation sounds very nice, so that we can tell for example bun to clean up after itself https://images4.imagebam.com/2c/c0/64/ME1CULP3_o.png
  376. phaleth also cpu.shares is great
  377. blue podman limits?
  378. phaleth yeah
  379. phaleth can also limit pids to protect against fork bombs
  380. phaleth and limit IO rates too
  381. blue sweetbutt

Search posts