ByteCode.NewsSubmit
Use quotes for an exact word.

Subscribe

RSSPodcast
Log in

Chat Logs

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