Submit

Back to the channels

#primate

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

Search posts