Submit

Back to the channels

#primate

  1. * jreicher quit (Quit: In transit)
  2. * skillbot quit (Remote host closed the connection)
  3. * skillnews quit (Remote host closed the connection)
  4. * skillnews joined #primate
  5. * skillbot joined #primate
  6. * jreicher joined #primate
  7. blue WB jreicher.
  8. jreicher Howdy
  9. blue jreicher: Kotlin WASM support is coming in Primate 0.45. With a bit of luck, we're gonna get hotreloading baked in as well.
  10. blue If this pilot proves successful, I'm gonna target Java WASM for 0.46. I haven't added new backends in a while time
  11. blue Just to be clear what I mean with hot-reloading. When you change routes in Primate, during development, it rebuilds the running server and then replaces it. So you don't need to restart the server to see any changes you make to routes or backend logic.
  12. blue With the wasm boundary, that's a bit more complicated: you need to rebuild .wasm files, too, but ideally only those that are affected. This is supported in Go, Ruby and Python for Primate. The Kotlin backend will likely create one big .wasm file, which might make hotreloading a bit slower at first. I might possibly have to switch to compiling many small files for dev, and one monolith for production.
  13. blue But the effects are pretty cool: you edit a .kt file, primate refreshes the browser and you can use the changed backend
  14. blue dreamreal: I *LOVE* that I can write something like this: "Q: now that repopack is migrated completely to `key`, we can inform flog#225 to take action appropriately, correct?", and clanker GETS it.
  15. dreamreal yeah, they're getting better about context
  16. blue dreamreal: also, it REALLY loves saying "failed closed". So much so that I started adopting it when telling it to review stuff, as in, "the state of the task must be left in a conclusive state"
  17. blue I'm totally misusing the term there, but so does it, and I so don't care
  18. blue "Whilst you're reviewing: a few things. FINDINGS.md and other results from the GNG study must disappear. Also, the task must stack upon the docs reorg at 356, to be its tip. At its current state, it must fail closed at REVISION."
  19. blue dreamreal: ^ is this parsable to you as a human?
  20. dreamreal Not to me without enough context, on first read, no, but i don't think that matters
  21. blue k, good to know
  22. blue the context is: the kotlin task started as a GO-NO-GO study, before transitioning into full impl. And '356' is just another docs reorganisation task that moved around a few docs that the Kotlin task would also be changing, hence the restacking. But clanker GETS it, because context!
  23. dreamreal *nod*
  24. nevet [Node.js Blog] Notable V8 changes from Node.js 26 to 27 (Alpha) - https://nodejs.org/en/blog/announcements/notable-v8-changes-from-node-js-26-to-27-alpha
  25. systemfault Oh, Iterator#zip, what a surprise...
  26. systemfault Told Voldemort 3+ years ago that it would be a worthwhile addition...
  27. blue systemfault: and did Voldemort listen? of course not
  28. systemfault blue: I actually took 2 minutes to check the TC39 proposals to see if he was the one behind it.
  29. systemfault Of course not.
  30. blue that guy lost it when he started banning people from #js for not being part of his crazy progressive agendas
  31. blue I remember talking to him in private about `master` vs `main`. He acknowledge the move was stupid, but said "if one black guy feels bad about it, it's good enough for me"
  32. blue what an idiot, by God
  33. blue good riddance that I don't have to interact with him any longer
  34. systemfault I'm "generally" more against performative progressivism than progressivism itself...
  35. systemfault I haven't gone back to his channel since the day he kicked me... from both the node and js channels
  36. blue yeah, terrible :/
  37. blue I found it a certain irony that the guy who advocates for keeping backcompat for nearly forever (in his packages, he supports node 0.4!), has no qualms about a git change that broke everyone's flows...
  38. blue but of course, blue tribe, no brain, what I can say
  39. nevet [Node.js Blog] Notable V8 changes from Node.js 26 to 27 (Alpha) - https://nodejs.org/en/blog/announcements/notable-v8-changes-from-node-js-26-to-27-alpha
  40. blue dreamreal: why did nevet post it again? or did the node people mess up something in their feed?
  41. dreamreal Yeah, it showed up as a new entry somehow
  42. dreamreal You would be surprised - or maybe not - at how bad people are at RSS
  43. dreamreal i had to do a whole update to help sanitize feeds that don't do base urls properly, or use *internal urls* - one site has localhost:3000 as the host/port for their PUBLIC FEED
  44. dreamreal And yes, I've tried to tell them
  45. blue ouch
  46. blue this is kinda bad though, RSS is a wonderful technologuy
  47. blue technology*
  48. dreamreal it's a good idea with a set of atrocious specs but eh
  49. blue dreamreal, clanker is really struggling with me demanidng that kotlin hot reload should be <1s
  50. blue it's currently apparently at 5-7s. am I asking for too much?
  51. blue idk it just doesn't appear a very nice experience to wait 5 seconds for your app to reload
  52. dreamreal Depends on the codebase size, the compiler is not super-fast
  53. blue with Go/Python/Ruby it's immediate
  54. blue I don't know that it should take that long with Kotlin
  55. blue "It is not WASM initialization alone: standalone initialization measured roughly 7–21 milliseconds. A warmed, unchanged Gradle invocation previously took 1.84 seconds."
  56. blue hm
  57. blue 1.84 seconds??????????????????????
  58. blue this is like, 20 lines of code
  59. blue it should take 1.84 milliseconds :(
  60. dreamreal yes. Are you using build.gradle.kts or build.gradle?
  61. blue build.gradle.kts
  62. * dreamreal is not esp a fan of gradle, but it may be the right solution here
  63. blue https://repopack.com/project/primate/tasks/350
  64. dreamreal so you're invoking the compiler chain *twice*
  65. dreamreal once to verify the build, once to RUN it
  66. blue damn
  67. blue "There’s a real concern, but “compiling twice” is misleading.
  68. blue build.gradle.kts is Kotlin code, so Gradle must compile the build script—but normally caches that compilation. It does not mean every edit compiles your routes twice."
  69. dreamreal yes, but it has to *check*
  70. dreamreal it will cache if it can
  71. blue Before switching to Groovy or replacing Gradle, #350 should measure:
  72. blue 1. Where that no-op invocation spends its time.
  73. blue 2. Whether Gradle’s configuration cache materially reduces it.
  74. blue 3. Whether development is unnecessarily using expensive production compilation/link settings.
  75. blue Groovy?????
  76. * blue is losing it
  77. dreamreal patience, young padawan
  78. dreamreal problems are things to be solved, not endured
  79. blue I have no idea out of which butt it pulled that one, but it seems concerning
  80. dreamreal be a programmer
  81. * blue patiences
  82. dreamreal build.gradle = groovy, build.gradle.kts = kotlin
  83. blue groovy as in the apache groovy we talked about?
  84. dreamreal the groovy and kotlin interfaces are *materially* the same, but kotlin gives you typesafety in your build, etc
  85. blue oh
  86. * blue doesn't know a lot, very small
  87. dreamreal yes, gralde is the PRIMARY place people still write groovy
  88. blue why not use makefiles?
  89. dreamreal as far as I know, at least
  90. dreamreal because invoking the entire build chain via make is an utter drag
  91. blue I hear makefiles solve everything, if you only allow yourself to have a psychosis every time you look at them
  92. dreamreal theer you go
  93. dreamreal if you're okay with psychosis, make or cmake or just win
  94. * blue is def not okay with psychosis
  95. * blue leaves psychosis to the clankers
  96. dreamreal I actually use just+[maven|gradle|make] quite a bit myself: just gives me broad profiles for invoking the build tools the way I want
  97. dreamreal just I have stuff like `just mr-watch 1117` to watch the gitlab CI/CD run, or `just coverage-view` to run the coverage profile and then open the summary pages, etc
  98. blue well, sol 5.6 is busy profiling kotlin wasm builds
  99. dreamreal my team has those files (they're in teh repos) but don't use them, so I tend to run circles around them even in basic tasks
  100. blue I see. just seems cool, I never had need for it though, I think
  101. dreamreal they'll reload the gitlab CI/CD pages on their own, and I'm like "... why"
  102. dreamreal it's a lot like make with better syntax
  103. dreamreal you could do everything just does WITH make
  104. blue I feel like reinventing make isn't a really good pattern, given uh, the aforementioned psychosis angle
  105. dreamreal well, okay: but look at how make handles propagation. just isn't trying to BE make, it's trying to be make for the *absurdly* common cases
  106. dreamreal if you need advanced substitution patterns, etc., make is still better and everyone knows it and expects how it works
  107. blue my point is, that this is a broader pattern. scripting languages often feel like a bandaid for building stuff. that's something I liked about zig: you use the language itself to build stuff
  108. dreamreal sure
  109. blue I do wish the zig people had thought this through and made zig equally capable of building anything, but they mostly focus on zig/c
  110. * nevet joined #primate
  111. * blue!~blue@user/blue changed the topic to: https://primate.run | This channel is logged: https://bytecode.news/logs/irc/libera/primate
  112. blue WASM executable generation/linking 2.31–2.63s
  113. nevet [Flog releases] Flog 0.1.14 - https://repopack.com/api/v0/projects/flog/releases/products/flog/versions/0.1.14
  114. nevet [Flog releases] Flog 0.1.13 - https://repopack.com/api/v0/projects/flog/releases/products/flog/versions/0.1.13
  115. nevet [Flog releases] Flog 0.1.12 - https://repopack.com/api/v0/projects/flog/releases/products/flog/versions/0.1.12
  116. * skillbot quit (Remote host closed the connection)
  117. * skillnews quit (Remote host closed the connection)
  118. * skillbot joined #primate
  119. * skillnews joined #primate
  120. * phaleth joined #primate
  121. * phaleth quit (Remote host closed the connection)
  122. * phaleth joined #primate
  123. * phaleth quit (Quit: phaleth)
  124. blue systemfault: did gurrr or someone complain about that meme?
  125. systemfault The one on the TS channel? No. I did.
  126. blue ya
  127. systemfault I would have said the same has it been a pro-democrat one.
  128. blue ya, I get the point, you're trying to keep it professional
  129. blue it's a pity our leftist friends don't give us the same courtsey...
  130. systemfault I'm fine with political "discussions" TBH as long as people remain civil.
  131. systemfault But I'm not sure about just posting memes
  132. blue yeah I totally get, this is no criticism
  133. blue I noticed the schwifty guy kind of got quiet after you don't him you don't think the US are particular great either :P
  134. blue you told him*
  135. blue (which is true, btw)
  136. blue in other news... I'm 42 today
  137. blue not getting any better I fear, the rest :P
  138. systemfault Oh, happy B day
  139. blue thank you :)
  140. systemfault Yeah, I'm now 44... we're getting old
  141. blue yeah :/ I don't *feel* old, it's a weird thing. In my mind I'm still in my 20s...
  142. jreicher Old people give being old a bad name
  143. blue heh
  144. blue but my wife got me a lego set of the Space Shuttle
  145. blue I'll probably spend most of tomorrow assembling it, I'm a sucker for these things
  146. jreicher 12 year old me is really jealous right now. Can I come round to your house?
  147. blue sure jreicher
  148. blue systemfault: import defer * as X is ugly, but it is exciting because it solves the circular dependency problem...
  149. systemfault Yeah, looks useful
  150. systemfault I didn't know it was a proposal until now
  151. blue me neither...
  152. blue but it solves the User imports Post (hasMany) imports User (hasMany - author)
  153. blue hasOne - author*

Search posts