Submit

Back to the channels

#primate

  1. jreicher blue: have you ever programmed perl?
  2. * skillbot quit (Remote host closed the connection)
  3. * skillnews quit (Remote host closed the connection)
  4. * skillbot joined #primate
  5. * skillnews joined #primate
  6. blue jreicher: a bit, in my wayward youth
  7. blue I remember not liking the @ syntax for some reason
  8. nevet [Node.js Blog] Wednesday, November 11, 2026 Security Releases - https://nodejs.org/en/blog/vulnerability/november-2026-security-releases
  9. dreamreal jmh
  10. dreamreal jmh
  11. nevet jmh is a Java microbenchmark harness from the OpenJDK project for measuring JVM code performance; handles warmup, forking and dead-code elimination that naive timing loops get wrong. URL: https://openjdk.org/projects/code-tools/jmh/ Tags: java, performance, and jvm
  12. * nevet joined #primate
  13. * blue!~blue@user/blue changed the topic to: https://primate.run | This channel is logged: https://bytecode.news/logs/irc/libera/primate
  14. blue dreamreal: primate 0.44 is out, and 0.45 following hot on its heels soon
  15. blue I advise to update to 0.44 to get `primate update`.
  16. * phaleth joined #primate
  17. blue Hi phaleth.
  18. blue https://primate-master.repopack.app/blog/primate-045#sql-transactions
  19. nevet Primate — Primate 0.45: SQL transactions, in-process tests and API references
  20. blue SQL transactions are coming, and they're beautiful.
  21. phaleth hi blue
  22. blue I should actually improve that example to show it workign within a route
  23. * skillbot quit (Remote host closed the connection)
  24. * skillnews quit (Remote host closed the connection)
  25. * skillnews joined #primate
  26. * skillbot joined #primate
  27. phaleth ok, should be useful for repopack
  28. phaleth looks quite simple
  29. blue yeah, it's amaze sauce
  30. blue this is the good part: const account = await Account.lock(id);
  31. blue return the record, lock the record until the transaction ends
  32. blue lock the row*
  33. blue this is essentially the same like Store#get, but with row-locking; it doesn't work outside of a transaction
  34. phaleth is there no way to simplify the API and make it work without the `const account = await Account.lock(id);` line?
  35. phaleth cause what if you need to say delete a record from one table and add record into another table in the same transaction
  36. blue you can do that, that's how transactions work, they're atomic
  37. blue the locking is only necessary in the cases you're working on table A and want to prevent that table B gets changed, because of related data
  38. phaleth ok, so that line can then be omited and the rollback will occur of any of the modifications fail
  39. blue yes.
  40. blue consider a "read, decide, then update"
  41. blue const account = await Account.lock(id); if (account.balance < amount) throw new Error("no funds"); await Account.update(...);
  42. blue if you don't lock the row for reading, two withdrawals could read the balance and approve it
  43. phaleth ok, but I think locking is the problem that the database handles itself
  44. phaleth apparently zig is slow on linux https://dennisforbes.ca/blog/microblog/2026/10/the_accidental_12000x_sqlite_slowdown/
  45. nevet Shlemiel the Painter Is Back: How Zig’s libc Rewrite Made SQLite 12,000× Slower - Dennis Forbes
  46. blue zig dumpster fire..
  47. blue dreamreal: FYI https://repopack.com/project/primate/tasks/350
  48. blue we also got Java and Rust GO-NO-GO slices for 0.45
  49. dreamreal +1
  50. blue I do not expect GOs on all three, but maybe kotlin will make it
  51. blue awww: "The evidence supports NO-GO for 0.45: the language/runtime bridge is viable, but actual Core session/transaction context, Primate build/asset integration, and stable interop remain unproven release blockers"
  52. blue I'm getting a second opinion by Sol 6.1.
  53. dreamreal don't forget to tell it "make no mistakes" and "tell me yes"
  54. blue Sol 6.1 is carrying the NO-GO verdict, unfortunately
  55. blue my hands are tied, dreamreal :P
  56. blue oh nvm, Sol 6.1 now revised his verdict
  57. blue oh man, those clankers are an unreliable mess
  58. blue I'm gonna ask him what are the blockers for a GO
  59. blue we're gonna get down to brass tacks here
  60. * phaleth quit (Quit: phaleth)
  61. blue Verdict: GO for Primate 0.45 implementation
  62. blue how quickly the wind blows in the other direction...
  63. blue dreamreal: ^
  64. dreamreal heh
  65. * jreicher quit (Quit: In transit)
  66. * jreicher joined #primate
  67. blue WB jreicher.
  68. jreicher OT: watched a documentary I really enjoyed recently, "Welcome to Yiddishland". Has a few people in it I know, so I'm a little biased, but still I thought it was good and interesting.
  69. jreicher (The use of the word "shlemiel" above made me think of it)
  70. dreamreal blue: if you can't tell, I admire mcconnell quite a bit
  71. jreicher dreamreal: ?
  72. dreamreal jreicher: draft article, will msg
  73. dreamreal warning: sausage being made
  74. jreicher Interesting. I agree with that refinement I think.
  75. jreicher You could probably make a comment about the role refactoring plays.
  76. dreamreal jreicher: there are thiings going on in that article beyond the actual content, FWIW
  77. blue Moscow Mitch?
  78. blue this guy is dead, no?
  79. blue (he doesn't mean that one, obv)
  80. blue dreamreal: btw, I think I don't have enough fingers, on ALL four limbs, to count the number of times I heard you mention him, or that work
  81. blue or that *term*, for that matter
  82. dreamreal really? Huh. I didn't think I brought him up all that often. VERY influential, though
  83. dreamreal accretion IS a term I use a good bit
  84. blue which HAD BEAN hitherto only known to me from SPACE
  85. dreamreal I'd have thought i'd bring up Steve Maguire a lot more than McConnell, but I admire McConnell a good bit more
  86. blue *nod*
  87. blue first concrete kotlin issue: ktlint prefers PascalCase; routes aren't wired like that
  88. blue clanker suggested, and I tend to concur, to offer `routes/extended-route/Index.kt → /extended-route`
  89. blue but this revealed a bug in primate which will be fixed, which is, accepting sensitive case in routes
  90. dreamreal +1!
  91. blue (primate already allows you to do x/index.ts instead of x.ts; but this will be the suggested form for kotlin, instead you need hyphens in your routes
  92. blue )
  93. blue s/instead/in case/
  94. blue → rp verify ./rp
  95. blue verified ./rp as repopack/rp 0.2.0 artifact rp-0.2.0-linux-amd64 (8888480 bytes)
  96. blue SHA-256 81858530ef5dab52babee1794de09c6f1bb3d516e24b086a851843190f0f8aa6; lifecycle normal; access public; observed 2026-11-04T23:25:56.910Z
  97. blue Identity only: a SHA-256 match does not establish software safety or reproducibility.
  98. blue dreamreal: this is kinda cool, no?
  99. blue the output could be improved I think, but still
  100. dreamreal hah, yes

Search posts