ByteCode.NewsSubmit
Use quotes for an exact word.

Subscribe

RSSPodcast
Log in

Chat Logs

  1. jreicherblue: 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. bluejreicher: a bit, in my wayward youth
  7. blueI 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. dreamrealjmh
  10. dreamrealjmh
  11. nevetjmh 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. bluedreamreal: primate 0.44 is out, and 0.45 following hot on its heels soon
  15. blueI advise to update to 0.44 to get `primate update`.
  16. * phaleth joined #primate
  17. blueHi phaleth.
  18. bluehttps://primate-master.repopack.app/blog/primate-045#sql-transactions
  19. nevetPrimate — Primate 0.45: SQL transactions, in-process tests and API references
  20. blueSQL transactions are coming, and they're beautiful.
  21. phalethhi blue
  22. blueI 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. phalethok, should be useful for repopack
  28. phalethlooks quite simple
  29. blueyeah, it's amaze sauce
  30. bluethis is the good part: const account = await Account.lock(id);
  31. bluereturn the record, lock the record until the transaction ends
  32. bluelock the row*
  33. bluethis is essentially the same like Store#get, but with row-locking; it doesn't work outside of a transaction
  34. phalethis there no way to simplify the API and make it work without the `const account = await Account.lock(id);` line?
  35. phalethcause what if you need to say delete a record from one table and add record into another table in the same transaction
  36. blueyou can do that, that's how transactions work, they're atomic
  37. bluethe 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. phalethok, so that line can then be omited and the rollback will occur of any of the modifications fail
  39. blueyes.
  40. blueconsider a "read, decide, then update"
  41. blueconst account = await Account.lock(id); if (account.balance < amount) throw new Error("no funds"); await Account.update(...);
  42. blueif you don't lock the row for reading, two withdrawals could read the balance and approve it
  43. phalethok, but I think locking is the problem that the database handles itself
  44. phalethapparently zig is slow on linux https://dennisforbes.ca/blog/microblog/2026/10/the_accidental_12000x_sqlite_slowdown/
  45. nevetShlemiel the Painter Is Back: How Zig’s libc Rewrite Made SQLite 12,000× Slower - Dennis Forbes
  46. bluezig dumpster fire..
  47. bluedreamreal: FYI https://repopack.com/project/primate/tasks/350
  48. bluewe also got Java and Rust GO-NO-GO slices for 0.45
  49. dreamreal+1
  50. blueI do not expect GOs on all three, but maybe kotlin will make it
  51. blueawww: "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. blueI'm getting a second opinion by Sol 6.1.
  53. dreamrealdon't forget to tell it "make no mistakes" and "tell me yes"
  54. blueSol 6.1 is carrying the NO-GO verdict, unfortunately
  55. bluemy hands are tied, dreamreal :P
  56. blueoh nvm, Sol 6.1 now revised his verdict
  57. blueoh man, those clankers are an unreliable mess
  58. blueI'm gonna ask him what are the blockers for a GO
  59. bluewe're gonna get down to brass tacks here
  60. * phaleth quit (Quit: phaleth)
  61. blueVerdict: GO for Primate 0.45 implementation
  62. bluehow quickly the wind blows in the other direction...
  63. bluedreamreal: ^
  64. dreamrealheh
  65. * jreicher quit (Quit: In transit)
  66. * jreicher joined #primate
  67. blueWB jreicher.
  68. jreicherOT: 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. dreamrealblue: if you can't tell, I admire mcconnell quite a bit
  71. jreicherdreamreal: ?
  72. dreamrealjreicher: draft article, will msg
  73. dreamrealwarning: sausage being made
  74. jreicherInteresting. I agree with that refinement I think.
  75. jreicherYou could probably make a comment about the role refactoring plays.
  76. dreamrealjreicher: there are thiings going on in that article beyond the actual content, FWIW
  77. blueMoscow Mitch?
  78. bluethis guy is dead, no?
  79. blue(he doesn't mean that one, obv)
  80. bluedreamreal: 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. blueor that *term*, for that matter
  82. dreamrealreally? Huh. I didn't think I brought him up all that often. VERY influential, though
  83. dreamrealaccretion IS a term I use a good bit
  84. bluewhich HAD BEAN hitherto only known to me from SPACE
  85. dreamrealI'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. bluefirst concrete kotlin issue: ktlint prefers PascalCase; routes aren't wired like that
  88. blueclanker suggested, and I tend to concur, to offer `routes/extended-route/Index.kt → /extended-route`
  89. bluebut 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. blues/instead/in case/
  94. blue→ rp verify ./rp
  95. blueverified ./rp as repopack/rp 0.2.0 artifact rp-0.2.0-linux-amd64 (8888480 bytes)
  96. blueSHA-256 81858530ef5dab52babee1794de09c6f1bb3d516e24b086a851843190f0f8aa6; lifecycle normal; access public; observed 2026-11-04T23:25:56.910Z
  97. blueIdentity only: a SHA-256 match does not establish software safety or reproducibility.
  98. bluedreamreal: this is kinda cool, no?
  99. bluethe output could be improved I think, but still
  100. dreamrealhah, yes