Submit

Back to the channels

#primate

  1. blue lioloc: hey!
  2. blue https://repopack.com/project/primate/tasks/153
  3. nevet Repopack · Sign in
  4. blue check out that, will be part of 0.43
  5. blue dreamreal: primate 0.42.1 is out, including updates to @primate/core and @primate/marko. It is a security-hardening and stability release, I recommend updating
  6. dreamreal gah, sorry, underway
  7. blue well, you don't need to update *now*
  8. blue it's just a general info
  9. dreamreal I'm bad about enduring old versions when I know a fix is out there
  10. dreamreal ... another reason to vastly dislike windows
  11. blue you know, there's a tension between having a lockfile, and receiving updates. I strive to try to diffuse this tension in some form with repopack, with trusted publishing (npm is also going in that direction), but the fact of the matter is that lockfile prevent you from receiving updates simply by redeploying a service
  12. blue lockiles*
  13. blue which somewhat defeats the purpose of patch updates, as per npm policy
  14. blue npm is generally very problematic from a security point of view, but their solutions never feel like they've thought them through. they are most reactive, much less proactive
  15. blue s/but/and/
  16. dreamreal Trying to update the nextjs repo now, which is always a drag. The dependency audit for nextjs is great fun: "this is a mandatory update but BTW nothing will work if you apply it"
  17. dreamreal gee, I wonder why I agonized over switching to something different for all of 15 ninutes.
  18. blue nextjs is just not worth it
  19. blue I sent you the video by lioloc where he compares them
  20. blue nextjs is very, very heavy
  21. blue lioloc: so cool, your branch can start a desktop app with gtk 4 on linux. but a revision was still requested
  22. lioloc will take a look
  23. blue lioloc: btw https://primate.run/blog/primate-042#production-diagnostics
  24. nevet Primate — Primate 0.42: Virtual route groups, structured forms and production diagnostics
  25. blue this was missing from the original blog post
  26. blue it's kinda nice :)
  27. lioloc neat
  28. lioloc very cool!
  29. blue we're gonna use it on repopack.com, that when an error 5xx is generated, we report it automatically
  30. blue we might show the user an id for reference
  31. lioloc what a great idea
  32. lioloc i'll have to try it myself
  33. blue yup
  34. blue dreamreal: whilst reviewing primate:
  35. blue "Error: cyber_policy: This content was flagged for possible cybersecurity risk. If this seems wrong, try rephrasing your request. If you’re doing authorized security work that requires more cyber permissive safeguards, apply for Daybreak access via https://platform.openai.com/settings/organization/status-and-access before retrying."
  36. blue great, now I can't even review my own OSS code
  37. blue idiots
  38. dreamreal blame aggressive demands by the US government, and idiots trying to use AI to break others' code maliciously
  39. dreamreal Sorry, man
  40. dreamreal hits me too, and that's actually MY INDUSTRY - I have access to models that do not have those safeguards but I literally have to be in a military base to use them
  41. dreamreal and thus I do not use them
  42. blue and the annoying thing is that they now flagged the entire session. which is OK, I can start a new one and rp is pretty good at bootstrapping, but yeah
  43. dreamreal oh, that reminds me: do you want #primate's logs to be public as well?
  44. blue yes, it's ok
  45. blue thanks for asking
  46. dreamreal I actually need to sanitize the logs some
  47. blue but I am bound by these network's policies to advertise that, btw
  48. blue (as are you, if you have it on any of your channels, btw; be advised)
  49. blue best is to put it in the topic, which I will do now
  50. dreamreal hmm, hat might be an interesting feature: "here's the logs, filter for potentially insecure/illegal content and sanitize profanity"
  51. blue dreamreal: https://bytecode.news/logs?provenance=irc%3A%2F%2Flibera%2F%2523primate
  52. nevet #primate, October 7, 2026
  53. blue is this the shortest url I can get?
  54. blue it is rather ugly, I must confess
  55. dreamreal YES, darn it!
  56. blue ok
  57. dreamreal it is ugly, yes, because provenances are ugly
  58. dreamreal hmm
  59. blue nicer: bytecode.news/logs/irc/libera/primate
  60. blue you can map this with a [...].ts route in primate
  61. blue and yes, I know there are # and ## channels, and that is an abomination to map to a url, where # means the hash/anchor
  62. dreamreal yeah, primate's not the only option here, and I'm going to file an issue against all three UIs, and damn it nextjs sucks and I'm considering deprecating it for maintenance
  63. dreamreal there are actually FIVE UIs, but two of them are BADLY outdated because I don't give a single crap about them and they're not even deployed live
  64. blue this is *rather* easy to in primate. create a route as thus described above. then: const `[protocol, server, channel] = request.path.toJSON();`
  65. blue sorry, the opening backtick should be been before the const
  66. blue should have been*
  67. blue dreamreal: https://libera.chat/policies/#public-logging
  68. nevet Network policies
  69. blue just fyi; I will make sure this is properly advertised in the topics of #primate and #repopack; you take care of your flock
  70. blue just so we're transparent about it, the public logging by nevet for this channel is authorised by me (channel owner) until indicated otherwise
  71. dreamreal I'm working on the issue, have a few other things in the queue
  72. blue no worries
  73. blue I'll change the topic as soon as you're up with the prettified url
  74. blue ... or with the non-prettified one if you decide elsewise
  75. dreamreal I'm working on it, issue has been filed and shouldn't be long
  76. blue +1
  77. dreamreal dang it you casually created six issues for streampack :D
  78. blue yes well, you're carrying too many frontends :P
  79. dreamreal Only two issues are in the front ends, nextjs gets ignored for this one
  80. blue what are the other four?
  81. dreamreal but this is WHY I wanted multiple front ends, to get the backend API solid
  82. dreamreal nextjs [deployed, deprecated], primate [deployed and is the 'main site'], spring [pudl, deployed and is sort of the 'admin site'], spring (basic) [undeployed, unmaintained, was the proof for the design as a balance against...], reference (nextjs) [undeployed, was the 'site' before the nextjs 'main site' was built]
  83. blue btw dreamreal, I feel like both things can be true at the same time. repopack exposes an API (for `rp`), *and* it has a very fast direct path for the ui. there is an inherent sync problem that arises from this, but the dividends for the direct path, eliminating the costliness of API requests, and enabling a direct db access essentially, is huge
  84. dreamreal *nod*
  85. blue I'm not saying you *need* to go there, it's your decision. but a two-path'd approach can pay out
  86. blue your design*
  87. blue of course, the fact the backend is written in kotlin makes it very hard for you to port it to primate. hence I was thinking about a @primate/kotlin wasm bridge
  88. dreamreal I'm not sure what you mean: streampack DOES have a direct API. You mean such that UIs have access to the data directly?
  89. blue essentially yes. on repopack.com, the first load is always *one* request; on bytecode.news too, by masked by another fetch request in the background, to the api
  90. blue but masked*
  91. dreamreal Ah, no
  92. dreamreal I totally understand and it WOULD make everything faster
  93. dreamreal NO ARGUMENT THERE at all
  94. blue but it would break your API design, I get it
  95. dreamreal but the intent was NEVER actually for me to maintain UIs that didn't directly interest me
  96. blue ya
  97. dreamreal like, I can see me being directly invested in the pudl UI, but honestly, I'd far rather SOMEONE ELSE maintain the primate API because it's not my strength area
  98. dreamreal and that means trusting users to not be damn fools
  99. dreamreal like, there ARE secrets in the database: they're encoded and you could capture the database without having secrets exposed, BUT someone could THEORETICALLY spend a lot of computing power on those secrets
  100. blue the question here is a matter of coupling. you have a very loose coupling at the moment, but it comes at some price. I am thinking if you can keep it decoupled to your heart's content, and still get the benefits of traditional stronger coupling
  101. dreamreal blue: right, but that comes with TRUST. I could do that with pudl, as the interested maintainer. But not with the other UIs.
  102. dreamreal Right now interactions are pretty fast, and having a common API gives me not only viability tests for the API but common reference points
  103. blue how so? trust that the server implementation isn't compromised, you mean?
  104. dreamreal To be clear: you're wrong exactly 0%
  105. dreamreal no, trust in the maintainers of the UIs
  106. blue but *you* are the maintainer
  107. dreamreal right now there is no trust, and there's no need for it: the UIs can't even pretend to have write access because there is no access
  108. dreamreal right
  109. dreamreal ... of pudl
  110. dreamreal and technically primate as well
  111. dreamreal but I really, really want BCN to have enough critical mass to break that pattern
  112. blue anyway, there are other challenges as well. I'm not sure how much kotlin wasm is ahead, and there are also to my knowledge some limitations with wasm java
  113. blue but I must confess I have been eager to try out java wasm since java 25
  114. dreamreal wait until the next major release comes out
  115. dreamreal the java LTS releases are quite something, compared to the history
  116. blue but 25 is LT
  117. blue LTS, no?
  118. blue supported until 2033
  119. blue the next lts seems to be 29, sept 2027, that's some ways off
  120. dreamreal yes, but the next LTS is gonna *rock*
  121. dreamreal I'm staying on 25 until the next LTS but they keep adding features the community's been wanting and needing since, like, 2006
  122. blue there's also the question of whether it makes sense to do a @primate/java or a @primate/kotlin first
  123. * dreamreal has no recommendation there, not enough experience with WASM in the field
  124. blue ya
  125. dreamreal blue: backend is being merged for release now
  126. blue dreamreal: nice!
  127. dreamreal and now it's being set for deployment
  128. dreamreal primate update following, but it needs backend deployment because the API is changing
  129. blue with the latest primate updates?
  130. blue ah ok
  131. dreamreal and yes, it's going to have the latest primate updates
  132. dreamreal although I'm not migrating the *code* very much
  133. blue there's no code changes in 0.42.1 to be done
  134. blue should be 100% transparent
  135. dreamreal *nod* just being clear, because I'm not using the route groups, etc
  136. blue I know
  137. blue the route groups have got some stability fixes
  138. blue but they're still opt-in, and will remain so
  139. blue dreamreal: https://repopack.com/project/primate/tasks/153
  140. nevet Repopack · Sign in
  141. dreamreal +1
  142. dreamreal Grrrr, trying to get some tuning issues resolved, HOLD ON. One step at a time. The backend deployment needs to work before we progress.
  143. blue there's an asset chunking bug, though it's not surfaced on bytecode.news
  144. dreamreal *nod* Sorry for the join spam, the AI model interaction changed :/
  145. dreamreal it's rejecting "thinking" because I'm not turning it off properly yet
  146. dreamreal golly, it's WORKING now but still not right
  147. dreamreal grrrr
  148. dreamreal Okay, the new AI stuff works, and the openapi endpoints have been cleaned up. Now the primate and pudl updates for the logger entrypoint.
  149. phaleth I thought pudl is just a design lang
  150. dreamreal it's an implementation as well, and in THIS context, it's a UI that uses pudl
  151. dreamreal it's also the most pessimistic consumer of the openapi spec, which is why it's a gate
  152. phaleth ok, I never understood the openapi spec, all I know is that primate has https://openapi.primate.run/manifest.json
  153. phaleth this UI that uses pudl uses pudl at build time I hope
  154. phaleth right?
  155. dreamreal err... no, no
  156. dreamreal the bytecode API that uses openapi is talking to api.bytecode.news
  157. phaleth oh, there is a SwaggerUI, and I was just like curious if you have SwaggerUI and you really do
  158. dreamreal I do, yes
  159. phaleth well, anyway, openapi is like I read odata and microsoft and I'm like "nah, I've had enough of that"
  160. dreamreal it's a drag, yes, but it's probably the best drag available
  161. phaleth I also think that odata is one of the good things that microsoft has done, but still
  162. phaleth bunx is used to run proby in the primate monorepo, that means it's still vendor locked in
  163. dreamreal blue: zeroing in, found a gap in pudl's endpoints
  164. dreamreal backend is stable, so closing the gap and then fixing primate
  165. dreamreal AND THEN https://bytecode.news/logs/irc/libera/primate should work
  166. blue very very good
  167. blue we have a @primare/core patch coming up
  168. dreamreal when and for which? The migration thing?
  169. blue no, a 0.40 thing
  170. dreamreal anything that would affect BCN's deployment?
  171. blue no
  172. blue just optimising network request size
  173. blue trimming fat
  174. dreamreal ok
  175. dreamreal blue: https://bytecode.news/logs/irc/libera/primate
  176. nevet #primate, October 7, 2026
  177. blue awesome
  178. dreamreal and thank you for the suggestion
  179. phaleth dreamreal: the pudl frontend also feels kinda lightweight, which is nice
  180. dreamreal both it and primate are pretty zippy
  181. phaleth yup
  182. dreamreal pudl just uses an application paradigm, which isn't what most users would want or need
  183. dreamreal and then contrast it to nextjs.bytecode.news
  184. dreamreal which isn't sluggish but is *by comparison*
  185. phaleth yeah, these windows are kinda odd on a website
  186. blue dreamreal: you are welcome
  187. dreamreal phaleth: for *writing* it's fantastic, I use the pudl endpoint for all admin access, AND it gives you a console :D
  188. phaleth blue: optimizing network request size?
  189. blue yes, removing the names of chunks from json transfer objects
  190. phaleth dreamreal: cool, I like CLIs
  191. phaleth blue: nice, every byte counts
  192. dreamreal phaleth: see discord, #offtopic
  193. phaleth discord? I'll pass
  194. dreamreal screenshots, tho!
  195. phaleth heh
  196. dreamreal I could paste one here but, um
  197. dreamreal srsly, check it! Just this once!
  198. phaleth maybe later
  199. dreamreal it's the impressive! ... dang it
  200. dreamreal blue: do you see it? Are you not entertained?!?!
  201. blue see what
  202. dreamreal I guess I could use an image pastebin, but I don't know of any
  203. dreamreal blue: discord, primate, #offtopic
  204. blue ah, I saw now, yes
  205. dreamreal When I write on the pudl api, NOT ONLY does it have a "suggest tags" and "update tags" feature in the editor, but I can also just crank up a console and type into it just like I would here
  206. dreamreal calc 42*pi
  207. nevet The result of 42*pi is: 131.94689145077132
  208. dreamreal openapi
  209. nevet openapi is a vendor-neutral, machine-readable spec for HTTP APIs (formerly Swagger): describe the paths and schemas once, generate clients, servers and docs from it. URLs: https://www.openapis.org and https://spec.openapis.org/oas/latest.html
  210. dreamreal (this output is in the screenshot phaleth so CALLOUSLY refuses to see)
  211. dreamreal calendar hebrew
  212. dreamreal caloh
  213. dreamreal today hebrew
  214. nevet Today is Wednesday, 26 Tishrei, 5787 (Hebrew)
  215. dreamreal today
  216. nevet Today is Wednesday, October 7, 2026
  217. dreamreal I'm going to eventually move the factoid suggestion stuff into primate too but it's admin-only, as most of the AI stuff is gated to admins
  218. dreamreal (one aspect of the factoid derivation is heuristic, not AI, but the most useful features leverage AI)
  219. dreamreal I am, BTW, adding a filter for the backend such that it has patterns in URLs to ignore, so I can add "repopack.com/project" and have it not echo those url titles
  220. blue that's AWESOME
  221. blue (however, there is the intention to make some semblance of public projects on repopack.com; although as phaleth noted, we will be limiting the ability of bots to get the entire js bundle from that, and that's a task for primate to solve)
  222. dreamreal Well, the thing is, the intent is to say "ignore urls that match THIS PATTERN" - not just a string, but a pattern - and also ignore urls that have text like "log in" or "sign in"
  223. blue ya
  224. blue phaleth: I've deleted most of my stuff on github, and it'll be moving to repopack soon
  225. blue in particular scld and others I'm going to start creating projects for
  226. blue primate is going to stay for a while, rcompat will move over completely soon (I already closed most issues). rcompat will be archived and eventually deleted
  227. blue I'm gonna commit fully, I don't see a way forward if I don't
  228. phaleth ok, it's up to you, let me know when I should get rid of gitea
  229. dreamreal *nod*
  230. blue soon
  231. phaleth also make sure the UUIDv7s are in the db before anything
  232. blue we're not going to GA any time close, uuidv7s will be in before that
  233. blue but they might need to land in primate first
  234. blue I mean, they already are in primate. I'm just not sure the translation in @primate/postgresql is
  235. phaleth yeah, makes sense
  236. dreamreal blue: check discord, it is to amuse
  237. dreamreal I'm still giggling
  238. dreamreal like, "holy cow, are you ... what... what's wrong with you"
  239. dreamreal I know giggling isn't manly but... come on!
  240. blue yes
  241. dreamreal and that fool knows the history and visibility
  242. dreamreal and apparently hasn't actually thought "gee, when someone says something they MAY ACTUALLY mean it"
  243. blue true
  244. dreamreal It's back! and I'm adding log moderation capabilities to the UIs now
  245. blue Awesome sauce.
  246. blue You're on FIRE on nevet today, dreamreal!
  247. dreamreal blue: can you join #nevet so I can intentionally abuse you and trigger the reports?
  248. dreamreal jreicher: found the problem for openliberty BTW
  249. dreamreal jreicher: https://github.com/OpenLiberty/openliberty.io/issues/4367
  250. nevet Atom feed republishes the ArgoCD drift post with a new id on every site build · Issue #4367 · OpenLiberty/openliberty.io
  251. jreicher And there was indeed a problem?
  252. jreicher Ahah.
  253. dreamreal jreicher: there was, but it wasn't nevet!

Search posts