Submit

Back to the channels

#primate

  1. * jreicher joined #primate
  2. * jreicher joined #primate
  3. * phaleth joined #primate
  4. * phaleth joined #primate
  5. blue phaleth: hi
  6. blue did you hear the news?
  7. phaleth hi blue
  8. blue btw, I used the two commands you gave me, and I can't update the website
  9. phaleth FreeBSD should work on my PC?
  10. blue 356520dbded0 localhost/primate-site-runtime:latest deno --allow-env ... 5 minutes ago Up 5 minutes 127.0.0.1:24430->6161/tcp 000000-primate-site-runtime
  11. blue 7f5425307900 localhost/primate-site-runtime:latest deno --allow-env ... About a minute ago Up About a minute 127.0.0.1:24431->6161/tcp 000000-primate-site-runtime-2
  12. blue I guess we're using primate-site-runtime and I'm updating the wrong container?
  13. phaleth I just updated the website 5 mins ago
  14. blue yeah but I had a new commit pusehd out like 3 mins ago
  15. blue with entrypoint docs
  16. phaleth yeah, I dropped the -2 from those commands
  17. blue oh ok
  18. blue let me rerun it without the -2
  19. blue and also remove the -2 container
  20. blue did anything else change?
  21. phaleth ok
  22. blue any port?
  23. phaleth I'll observe :D
  24. phaleth hmm, actually port and IP addrress also changes
  25. blue oh, 24430 instead of 31
  26. phaleth the doc is in the provision repo at podman/deployments/primate-site.md
  27. phaleth so what's the news
  28. phaleth has podman fixed the oci_runtime flag for the REST API?
  29. phaleth nope, the fix is not in stable version
  30. blue ok, redeployed, looking good
  31. blue https://primate.run/blog/primate-039#client-entrypoints
  32. blue anyway, for the news
  33. phaleth FreeBSD 15.1 also isn't out as stable yet
  34. blue bun 1.3.14 will be the last bun zig version
  35. blue the clanker rewrite has been merged, bun is now fully vapourware
  36. phaleth yeah, that I know
  37. phaleth drop bun support?
  38. blue "probably most of this is going to be thrown away" - sumner
  39. blue gosh I hate that guy
  40. blue we're not going to drop bun support, but we have to push harder for flog
  41. blue I think the dog implementation will be postponed, and I'll start with a flog version that's based on qjs
  42. phaleth yeah, but we still have primate website optimizations to do
  43. phaleth and so we can do repopack website then
  44. blue reoppack web is coming along pretty well
  45. blue the point is, we can't rely on bun
  46. blue it's full throttle vapourware
  47. phaleth don't worry about all these garbage JS runtimes, if one of them does not work well we switch and that's what we did a few times already
  48. blue don't tell me you can just clankerrewrite that entire codebase and say you're bugfree just because you switched to rust, which is practically the worst programming language on planet earth
  49. blue yes I know, but we can only do that because it's primate
  50. blue the rest of the ecosystem needs a hero, and it's not going to be bun
  51. phaleth Sumner was told many times he's irresponsible
  52. blue besides, I've been itching to write "std:" imports for a while
  53. blue yes
  54. blue so the order of business is now, we get repopack to work, and then we streamline projects ON repopack itself
  55. blue and gradually move away completely from github
  56. blue dreamreal: isn't the clankerrewrite news for bytenews?
  57. blue btw I think crosscompiling on flog could be nice, because the binary will be so small
  58. blue last time I did it in c, the binary was 2.1MB
  59. phaleth dropping 1m lines of code is just beyond dumb
  60. blue kinda makes you wonder why modern runtimes need to be 100MB in size
  61. blue oh yeah, 100%
  62. blue so now sumner got his new toy, opus, and he's just wreaking havoc with it
  63. blue which is absolutely pity because bun had potential
  64. blue until he decided he needs to optimise `new Response(null)`
  65. blue this guy, I swear... ridiculous
  66. blue https://github.com/mason-org/mason-registry/pull/15293
  67. nevet Add marko-language-server by terrablue · Pull Request #15293 · mason-org/mason-registry
  68. blue I PR'd the mason team to add marko
  69. blue I asked on marko's discord server and no one wanted to do it
  70. blue anyway
  71. blue are we done with website optimisations for now until we have a static target, or is there anything else you wanna do?
  72. phaleth yeah, well, for primate website it does not matter so much, but I think for a bigger web app code splitting per route should help greatly
  73. phaleth even for primate website code splitting per route should help, client side
  74. blue well I intend to move repopack/web to marko
  75. blue not right now, but as a longer term thing
  76. phaleth but the thing is that there is this root of the component tree hidden deep in primate
  77. phaleth and so there is no control over what some call lazy components, not sure if marko has those
  78. phaleth in other words, for primate website there are 4 routes essentially
  79. phaleth frontpage, docs, guides, blogs
  80. phaleth frontpage also has guides so it's like combined, but the code is loaded all together in the app bundle also for docs and blogs
  81. phaleth and I know it's a SPA and there are rendering strategies and whatnot
  82. blue you want a different bundle for each one of them?
  83. phaleth but just imagine this approach on a huge app
  84. blue but then you need to postload components and it's a dumpster fire
  85. phaleth yeah, postload components
  86. phaleth I mean codesplit the tree essentially
  87. phaleth or it's branches
  88. blue that's what chunking does, and I'm not sure it's worth the complexity. maybe for a larger app
  89. phaleth just docs and blogs are the two branches loaded lazily
  90. dreamreal blue: what?
  91. phaleth well if you have an idea how to do that then it'd be great to test it on the primate website, but what I'm saying is that it should be done in controlled fashion, not just blind split per route
  92. phaleth like the developer, or in otherwords the person using the framework has to tell, ok this is not really a frontpage branch of component, lets load that lazily
  93. blue phaleth: the sensible way would be to accept routes in entrypoints, in config/app.ts
  94. blue is that what you're going for?
  95. phaleth so I'm saying MPA > SPA for large app and also take a look at what gitea is doing, the vue part of gitea is much smaller than handlerbars
  96. blue not really sure what gitea is doing in terms of js though
  97. blue dreamreal: bun has been clankerrewritten in rust, that is worthy news for bytenews
  98. phaleth yeah, splitting the huge tree into multiple trees is the way to go, so entrypoints is a good approach
  99. phaleth but they are used in the app.html, not per route
  100. phaleth currently
  101. dreamreal blue: yeah, I saw that, but wasn't sure how to write it up: I'm not really bun-aware, so writing out of ignorance felt stupid
  102. blue phaleth: we have options
  103. blue the main question we need to clarify is, do we go per route or per view
  104. blue I suppose view hits it better, since we're talking about clientside?
  105. phaleth oh, sorry, I mean per view or per template or per page
  106. phaleth just imagine a very simple example, repopack has admin area, which is involved, should bloat the JS bundle quite a bit cause of forms and tables and maybe graphs and whatnot, but majority of visitors are not admin
  107. phaleth that means MPA is teh correct approach and that's what gitea is going for
  108. blue ya
  109. dreamreal blue: my thought is: someone who groks bun and the ecosystem is a better person to write it up: otherwise *I* am going to have to defer to a clanker to actually contribute "insight" or else it's just "oh bun's rewritten in rust, good luck out there"
  110. blue dreamreal: the heuristics here are, do you believe a clanker can drop a >1m LOC commit of essentially rewriting your code from somehwat complex language to a terribly complex language, and come out scot free?
  111. blue because if this answers goes lim(0), then bun is vapourware
  112. blue answer*
  113. * dreamreal ponders how to write that well
  114. dreamreal there're actually a LOT of things queued up in part for BCN, work is having a release and my time's been slammed for actual paying gigs
  115. dreamreal and an OLD paying gig called me up this morning and said "heyyyyyy don't you wanna do THIS again?"
  116. blue phaleth: I have an idea, hear me out, it's controverisal
  117. dreamreal I've been having a lot of arguments over ontologies and definitions at work :/
  118. blue controversial, even, if I could type
  119. blue we map route groups to chunks
  120. phaleth alright
  121. blue so if you want routes/docs.ts to become a chunk of its own, we do something like routes/(docs)/docs.ts
  122. blue next & friends just create a chunk for each route which is uniquely terrible
  123. blue we don't want that
  124. blue but route groups are good for that, I would think
  125. blue dreamreal: ontologies often masquerade as bikeshedding!
  126. phaleth well, the thing is to give the developer the responsiblity, if they split too much then there will overall be more JS than needed
  127. dreamreal I'm sure they do, but there's a meaningful difference between attribution scanning and attribute scanning
  128. blue phaleth: with route groups, you give the dev the responsibility. route groups do not participate in routing per se, but they create virtual partitions where you can put a separate +layout.ts etc.
  129. dreamreal #java had a long discussion about schema vs ontologies not too long ago
  130. phaleth ok
  131. blue and also, dreamreal, I've discovered that terminology really doesn't matter a whole lot as long as everyone understands what you're talking about. my math prof used to say that, I should've listened
  132. dreamreal blue: ... says the guy who corrects "controversial" in IRC, eh
  133. blue yes
  134. phaleth dreamreal: do you know any other JS runtime or a bundler? then you do know the terms
  135. dreamreal and you're not wrong; communication is more than correctness. But in our case, what they actually want is attribution scanning while doing nothing to create the circumstances in which it can happen
  136. blue like take the term 'associative array' in PHP. everybody hates it, python calls it dict, js calls it map and object, ruby calls it hash, it's also generally known as hashmap
  137. dreamreal phaleth: not a bundler her, I'm familiar with node, bun, and a LITTLE of deno, I'm not really a JS developer
  138. blue but it's the damn same thing
  139. phaleth bundler is also trying to be a sort of HTTP API framework dealing with databases
  140. dreamreal BBIAF
  141. blue so phaleth, what's your take on abusing route groups for that
  142. blue is that wise
  143. phaleth I'm not aware of route groups, but if that works, also the filepath routes/(docs)/docs.ts seems weird
  144. blue it's not a thing yet
  145. phaleth I mean bun, not bundler :s
  146. phaleth ok :D
  147. blue https://github.com/primate-run/primate/issues/257
  148. nevet Proposal: Virtual route groups · Issue #257 · primate-run/primate
  149. blue it's described here
  150. blue I think we might need though to deprecate strings in response.view, for that
  151. blue import SomeView from "#view/SomeView"; ... ; return response.view(SomeView); // statisically analysable
  152. blue return response.view("SomeView.svelte"); // need to call the handler, and even then, you can't be sure the path will be taken
  153. blue you get what I'm saying? if we want to partition by routes -- which is the sane choice -- we need to get rid of strings in response.view
  154. blue statically*
  155. blue I've been eyeing deprecating strings in response.view for a while now
  156. phaleth I like the term partition and also the term chunk
  157. phaleth or subset
  158. phaleth but group does not necessarily mean part or portion of something
  159. phaleth so the term group is confusing
  160. phaleth also instead of the term virtual would be better to use calculated or dynamic or non-resource-specific
  161. blue I don't really care how we call it
  162. phaleth but I guess virtual is also understandable
  163. blue the question is whether they should be used for chunking
  164. phaleth if it's technically possible then sure
  165. blue because you're lumping together things like +layout etc. so you're kinda naturally making a miniapp out of it, so MPA
  166. blue it's technically only possible if we deprecate strings in response.view
  167. phaleth yeah, like a branch of the whole
  168. blue yeah
  169. phaleth I think it's not a problem to just do breaking changes
  170. phaleth no need to deprecate
  171. phaleth you can think differently once you have 1m of code :)
  172. blue yeah, just break
  173. dreamreal blue: I'm still thinking about what you said about the conversion. isn't that what comprehensive test suites are for?
  174. dreamreal and it SORT of is, but it doesn't actually address the problem. Dang it.
  175. dreamreal blue: you there?
  176. blue dreamreal: yes, now
  177. blue dreamreal: to my knowledge, the clanker busted the test suite during the conversion
  178. dreamreal It didn't from what I understand. You're on google docs, yeah?
  179. blue yes. the thing is, it's easy, if albeit a bit conspiratorial, to map this as PR by anthropic. the thing is, they've been doing these PR gags ALL the time recently, so it's hard to not see a pattern
  180. dreamreal Check the draft, pls
  181. blue all this, we think claude is alive, it has feelings, blablabla
  182. blue it fits the pattern, that's the problem. the nonsense PR pattern
  183. dreamreal pffft I don't think any LLM has feewings
  184. dreamreal please don't read this, siri
  185. blue it doesn't matter what you think, it matters those idiots out there who believe in this nonsense keep up the conversation and talk about anthropic
  186. dreamreal I know :D
  187. blue did you send me a link somewhere
  188. blue oh, discord
  189. dreamreal blue: how large is bun's executable? Do you have it installed? can you ls -l it?
  190. blue dreamreal: 92752752 bytes
  191. dreamreal is that the rust or the zig version?
  192. blue that would be the last zig version, to my knowledge
  193. blue the rust version is the next one
  194. dreamreal This was in fact inspired by your conversation point here
  195. dreamreal FWIW
  196. dreamreal and it's really annoying that *I* wrote it when it's got your fingerprints on it
  197. dreamreal thoughts? concepts? observations?
  198. blue dreamreal: sorry, wife stuff, now back
  199. dreamreal like THAT's important geez
  200. blue :P
  201. dreamreal some people - SOME people - need priorities
  202. blue ha
  203. blue I'm gonna finish reading it, it looks good so far. And yeah, it's ok it's got my fingerprints on it: but you're the writer. I actually pretty much hate technical writing because I'm bad at it
  204. dreamreal not pointing any fingers or anything, obv
  205. dreamreal This isn't technical writing. But the point is: I don't like claiming credit when it's not deserved
  206. dreamreal and this definitely has your fingerprints on it and you deserve credit for it, but I can't really say "this was someone else's thought" without being able to cite it properly. The Todd Smith reference is like that and I'm considering yanking that because that was a private conversation
  207. blue conceptualise it this way: *I* the idiot french complaining about how my country sucks and I have no freedoms. YOU are the brit who actually took a boat to sail across the pond, so make of it what you will
  208. blue I am*
  209. dreamreal well, I guess, but even so
  210. blue if I can contribute ideas, that's *still* better than nothing
  211. dreamreal tikkun olam in motion, yes, but the workman is worth his hire, as the saying goes
  212. blue well, you've published me and my stuff on BCN, that's enough for me to give a bit back
  213. dreamreal Pffft, that's not the right metric
  214. dreamreal the thing is: you had a good point to make. I disagree with part of it - I think I'm more neutral in evaluation than you are - but that's not the point
  215. blue yes but most of my points are not publishable, anyway. this is because I make an effort to present them in the most unforgiving way, which is technically not how you do journalism
  216. dreamreal I'm actually not especially impressed by the bun port
  217. blue unless you're the nyt, obv
  218. dreamreal I think the NYT is busy abandoning journalism
  219. dreamreal they want clicks too badly
  220. blue yes
  221. blue it's SUPER cynical to present it this way, but I *do* think sumner is a drifter. there is nothing in bun's history he has done that made me convinced otherwise. he's not concerned with ecosystem health, he's concerned with moving fast, breaking stuff and making money, leading a trail of destruction behind it. that's why it's SO hard to see this port through faithful eyes
  222. blue s/drifter/grifter/
  223. dreamreal I have a journalistic commitment to avoid saying that out loud, though
  224. dreamreal I totally understand the sentiment
  225. blue and I understand that
  226. dreamreal I had to wrestle with talking about bluesky's firehose
  227. dreamreal which ... maybe I'm not a great journalist, I've never claimed to be one, but I struggle to point damning fingers unless it's really clear that it's deserved
  228. blue this is the problem, right. the guy is competent, not a fool. so he wouldn't step in the manure in a way that could provably say he's a grifter. those are the worst apples to deal with, in my experience
  229. blue and bun HAS done a few good things, that's the problem, as well
  230. blue not in bun, in the ecosystem -- it forced node's hands in supporting ts as a first-class citizen
  231. dreamreal I have never seen bun as being viable for me personally
  232. blue it also forced node to support cjs and esm in conjunction, which node had claimed for years was impossible
  233. dreamreal the changes from node were always a porting issue, and the license also made me think "is it asking me for money? WILL it ask me for money?" -- I don't mind such things but it was never made clear to me
  234. blue so it did good in raising the stakes for node, through its endless hype
  235. blue but all the rest is just... scrotched earth
  236. blue scorched, even
  237. dreamreal yeah, well, anthropic seems like the best outcome for it but porting to rust feels very... lateral, esp given the approach
  238. blue and don't get me wrong, there's absolutely nothing wrong in wanting to make good or big bucks, I'm all for it. but his way about it is damaging for the ecosystem
  239. blue it created even more divergence, forced more repetition of code instead of unifying or at least presending a unifying path for js runtimes
  240. blue presenting*
  241. dreamreal well, that's bun altogether
  242. dreamreal it's always felt like churn
  243. blue and also, the scope is unrealistically big. there's no reason bun should include a filesystem router
  244. dreamreal when it first came out i was working on a product that delivered on node: you'd think bun would have been *awesome* for us
  245. blue that's user land
  246. blue ya
  247. blue filesystem routers are *not* general purpose js or even programming tools
  248. dreamreal we evaluated it but there was so much lack of clarity and direction we shrugged and stayed on node
  249. blue ya
  250. blue dreamreal: so I don't wanna be priding myself too much here, but one of the advantages of primate that we can simply switch seamlessly. we used to have the primate website on node, then bun, now it's deno, which it has proven very stable and low on the memory footprint
  251. blue is that*
  252. dreamreal Oh, I totally get it
  253. blue dreamreal: re the article. this also boils down to a discussion we had about an ai idea I had: give it a test suite and force it to write the implementation. it's a chicken-and-egg problem, because a test suite cannot prove more than external behaviour, and clankers tend to totally fake impls in a way that they would simply pass, by hardcoding stuff
  254. dreamreal yep
  255. dreamreal When I use LLMs I actually review what the hell is going on
  256. dreamreal they can be amazingly lazy
  257. blue terribly so
  258. dreamreal I have rules: no mocks, vary inputs and outputs, SHOW ME THE DAMN CODE
  259. blue this is where *intent* comes. they lack that concept, so they will take things at face value. the test tests that 2 + 2 = 4 can be easily just work with an impl that accepts only these two inputs
  260. blue comes in, even
  261. * jreicher joined #primate

Search posts