Submit

Back to the channels

#primate

  1. phaleth https://primate.run/blog/typescript-monorepos-with-proby
  2. blue phaleth: yes!
  3. blue proby is not outclassing vitest / jest
  4. blue is now*
  5. phaleth it's cool that node supports ts
  6. blue it's been so for a while with a flag, but they deflagged in 24 and 23 (backported)
  7. blue phaleth: if you don't mind, could you post the rcompat blog post to HN?
  8. phaleth some nice ideas about server side TS are also here https://github.com/elixir-volt/quickbeam/blob/master/README.md
  9. phaleth I can try
  10. blue cool
  11. blue ooh, zig
  12. blue phaleth: https://github.com/elixir-volt/quickbeam/tree/master/priv/c_src
  13. blue it uses quickjs :P
  14. blue I should known by the name...
  15. phaleth yeah, take a look at the bottom of that readme how it handles npm packages
  16. blue should have*
  17. blue oh cool
  18. blue maybe we should add erlang/elixir support to primate's backend
  19. blue it would be somewhat the same as that
  20. phaleth upvote https://news.ycombinator.com/item?id=47636948
  21. nevet Testing TS monorepos without a build step with rcompat and proby | Hacker News
  22. blue Cool!
  23. phaleth yeah, well, the thing about that experiment is that there are two runtimes needed to run the app
  24. phaleth QJS might be small
  25. blue yup
  26. blue anyway, the genius thing about this new proby nonsense is that it reuses the customConditions in your tsconfig.json
  27. blue I'd been using those to do jump-to-live-source forever, otherwise you jump to the compiled js
  28. blue phaleth: the redeployment loop on primate website is insane
  29. blue around 3s
  30. blue git pull && npm run build && systemctl restart primate-web
  31. blue I have never seen anything like this in the wild
  32. blue obviously in real conditions you'd do ab it more, like pnpm install and potentially pnpm build for the dependents, but with a caching enabled, that'd be still 3s unless any package changed / dep updated
  33. phaleth yeah, but that deployment is so hacky
  34. blue it's really straightforward. get the git repo, install deps, build necessary packages, build app, run
  35. blue if you got most of those on a hot path, a redeployment boils down to the build app step which is 2-3s
  36. blue so if I only change website content, redeployment is lightning fast
  37. blue if I change packages that apps/website depends on, it might be a bit longer
  38. blue btw if we use bun to run, we could skip the package build step entirely
  39. blue bun can run ts from node_modules. it's only node that's retarded
  40. phaleth yeah, but bun is leaking memory
  41. blue so yeah friggin' sucks
  42. blue bun should really stabilise
  43. blue instead of putting more effort into nonsense optimisations
  44. phaleth heh, building standalone bundle is fine and moving it to server where there is only the JS runtime is also a better idea
  45. blue oh yeah let's optimise Response(null) to be a million times faster
  46. blue yeah, and primate already supports that
  47. blue if the node devs weren't such idiots and agreed to run ts in node_modules, all of this wouldn't be even needed
  48. blue you'd publish ts to npm, done
  49. blue I like it how the argumentation was "but you then don't know which ts version". that's not an argument, node strips types
  50. phaleth bun's only goal was to win the benchmark that the guy on youtube keeps doing, and bun won that benchmark, usability is not what bun is concerned about
  51. blue that friggin' sucks
  52. phaleth v8 should support TS, makes no sense to strip types
  53. blue so I was thinking that the JS parser I'm writing for flog, it should just support TS natively
  54. blue so yeah, what you're saying for v8 essentially
  55. blue what we really need though is a new language, like valuescript
  56. blue that if I just function foo(a: string): string, that nonsense is actually guaranteed in runtime instead of being stripped away
  57. blue if I just do*
  58. blue which is kinda funny, because javascript already maintains this information. it has a type system otherwise typeof wouldn't work in runtime
  59. blue phaleth: looking good for primate 0.37 today
  60. blue easter primate :)
  61. blue not quite the bunny you'd expect, but close enough
  62. phaleth ok, hopefully that release contains something usable for repopack
  63. blue yes, the db migrations, the appfacade#env
  64. blue the revised modules are also a boon
  65. blue in short, all ofit
  66. phaleth cool
  67. blue welp, release is ready
  68. blue I'm gonna head out to the store and cut it when I'm back
  69. chovy how many stars on gh are you guys up to now?
  70. chovy i would love for this to be successful and topple everyone else
  71. chovy but i didn't see that happening.
  72. dreamreal blue: just published a *different* thing on BCN - I'm holding the primate post for Monday. Today's post is about something that's a bit crap IMO, and I was using it to test something in the rendering.
  73. dreamreal primate's gonna get front billing monday morning.
  74. dreamreal unless something unusual happens, I suppose, but that's the PLAN.
  75. phaleth chovy: claude code CLI published it's source maps recently and so nowadays people are busy starring all those reconstructed github repos called claw code or whatever and that's where all all the github stars go
  76. phaleth myself I do not understand why would a CLI need source maps in the first place, but I guess it's always good when code gets leaked
  77. dreamreal I don't think so.
  78. phaleth well at least everyone can see how terrible that cli is
  79. chovy dreamreal: "Front Billing" wdym?
  80. chovy phaleth: is their code bad??? lol
  81. chovy fucking enterprise closed source garbage
  82. phaleth yeah, most likely
  83. dreamreal What do you mean? I'm not sure what that response is saying.
  84. dreamreal I mean, I respect work product: if you worked on something and *sent me your code*, awesome. If you worked on something and asked me to use it and it worked well... and you didn't send me the code? I'm not going to go grasping for it. It's YOURS.
  85. dreamreal Claude's code is THEIRS. How is this any different?
  86. chovy not sure what you're getting at dreamreal
  87. chovy i have been working in silicon valley for 30 years as an engineer and ALL corporate codebases are a fucking disaster.
  88. chovy at least with foss you know its clean
  89. dreamreal chovy: it's their code. What does its state matter? I've been in the industry for a minute, too.
  90. dreamreal Really?
  91. dreamreal I mean, I've seen a lot of FOSS...
  92. chovy at chegg we had a User.js file that was 100k lines of code no modules
  93. chovy sorry no that was fuckign IBM lol
  94. chovy we rewrite that shit after 1 year
  95. chovy ired
  96. dreamreal I mean... so?
  97. chovy we rewrite that shit after 1 year of being acquired
  98. dreamreal This is a matter of ownership and ethics.
  99. chovy who is goinna read a 100k file?
  100. dreamreal Dunno! Does it matter?
  101. dreamreal An AI probably would, and man, that'd be fun
  102. dreamreal If something is MINE, what right do you have to it unless I give it to you?
  103. chovy i hear what you're saying but in reality most code is just fucking spaghetti. not saying i'm any beteter but i try not to go over 100 lines in a file
  104. dreamreal I mean... who cares?
  105. dreamreal That's not bad advice (to keep files short) but ... so what? What does that have to do with claude?
  106. blue chovy: 280ish, I believe
  107. blue chovy: in 2026, we're *still* the only framework that supports js as a first-class citizen
  108. blue dreamreal: primate 0.37 is coming out today. if you want to publish a story, THAT is way more important than the rcompat thingy
  109. blue also it's Easter Primate
  110. dreamreal releasing on SATURDAY? fsck, that IS something you need to write
  111. chovy dreamreal: nothing. now. ai is far better than the people i ever worked with
  112. blue dreamreal: not ANY Saturday. EASTER Saturday!
  113. dreamreal ... I feel like we're having different conversations, chovy
  114. dreamreal blue: If you're trying to minimize impressions, that's a good way to do it :D even my programming-obsessed friends are taking today off, it's morons like me who're still paying attention
  115. dreamreal easter saturday isn't relevant for me, but shabbat is and even so, here I am :D
  116. blue dreamreal: I don't care about that, and you know that
  117. blue I'm not a marketing guy, not in this life, nor will I ever become, and I'm not gonna try, if the release is done I'm gonna release it
  118. dreamreal I do, but it's worth making the decision deliberately. I'd *love* to have primate releases announced on BCN, for what it's worth
  119. dreamreal if it's today, today it is.
  120. blue there are people waiting for features, I'm not gonna block them for marketing purposes
  121. dreamreal So what does 0.37 add? the rcompat stuff I already queued for monday, I guess, but ...
  122. blue dreamreal: https://primate.run/blog/primate-037
  123. nevet Primate — Primate 0.37: Revised modules, database migrations, and typed environment access
  124. dreamreal Do you support oracle or db2?
  125. blue no, since I don't know how to run them myself
  126. blue I'd like to support oracle, but for that I'd need to setup an oracle db locally
  127. dreamreal *nod* there are docker containers - derby is an implementation of db2 in java, not sure how good oracledb support would be. The PK stuff - it sounds like strings ARE NOT valid primary keys any more?
  128. blue yes
  129. blue well it's still strings. it's just uuid strings
  130. dreamreal So if I WANTED a pk of "dreamreal" it'd have to be a UUID with a unique index on a name field?
  131. dreamreal FWIW: container-registry.oracle.com/database/free:latest
  132. blue probably, yes. it just means that key.primary and key.foreign won't allow you to use p.string
  133. blue not using uuid means a can of worms of "how do I generate new pks" or "user has to do it manually". it could be a use case, but not one I find particularly attractive unless convinced otherwise
  134. dreamreal sure, it's an opinionated thing
  135. skillnews 12Primate 0.37: Revised modules, database migrations, and typed environment access - https://primate.run/blog/primate-037
  136. nevet Primate — Primate 0.37: Revised modules, database migrations, and typed environment access
  137. blue if key.{primary,foreign} were ever to support to p.string again, it'd have to come with a generation strategy
  138. dreamreal Oh, THAT's why nevet took forever! It wasn't quoting US, it was quoting skillnews!
  139. blue so, key.primary(p.string, () => { /* return unique new string */ });
  140. blue that being said, nothing stops you from using p.string without key.primary and setting the index in the db manually
  141. blue you just don't participate in orm goodness in that world
  142. blue or well, pk-based orm goodness
  143. dreamreal Do you want to see what I drafted before I publish? I have thoughts, and you might not like them, but it's your project.
  144. dreamreal (and there's time: I still don't want to publish this TODAY.)
  145. dreamreal I am going to put it on social media, I think, and I'm not goingto say "two days ago I published..."
  146. blue release song: https://www.youtube.com/watch?v=Ci_h4nJRga0
  147. nevet YouTube: The Diary Of Jane | Breaking Benjamin - Topic
  148. skillbot 04,01► 14,01YouTube :: The Diary Of Jane
  149. blue dreamreal: ya?
  150. dreamreal hold on, revising
  151. dreamreal I tell you what, I'm gonna be low-key pissed if BCN never takes off :D
  152. blue why shouldn't it
  153. dreamreal marketing, actual appeal, people don't read
  154. blue I have mostly stopped caring about what people think
  155. dreamreal monetization is also a factor: it's a passion project for now, but passion only carries so much
  156. dreamreal if I'm the only one rowing the boat, it ain't gonna go far
  157. dreamreal I've had a few people say "ooo that'd be great to be published there" and when I say "yeah, write it up" it's crickets
  158. blue well, people suck
  159. blue I've been the only one rowing the boat on primate for like 2 years and it's only got a handful of stars on gh, I recently stopped caring
  160. dreamreal I hear you (one of those stars is mine, for the record)
  161. dreamreal okay, you on google docs or anything like that?
  162. blue yes, potentially
  163. chovy dreamreal: i guess so...idk
  164. chovy thought we were just talking
  165. chovy not debating
  166. chovy anyway i trust oss more
  167. dreamreal chovy: we were, I just don't think we were talking about the same things
  168. blue chovy, he just means you're talking past each other
  169. chovy that's the main reason i use it over anything proprietary
  170. blue chovy: it's not the main reason, it's the master reason!
  171. blue :P
  172. chovy i like the foss+cloud model
  173. dreamreal blue: check DM
  174. dreamreal I do too but I also like to eat and have a roof over my head
  175. dreamreal It's a decision I make deliberately to use open source as a distribution model, or CC-by-SA
  176. dreamreal but the thing is: if I lost my day job, BCN goes away.
  177. dreamreal Because if I were to go to a "hey, I gotta eat" model for it, nobody would pay for it REGARDLESS of value: they'd say "aw man, I sure wish someone would pay the author to create such great stuff" without ever once thinking "hey, why didn't *I* pay the author to create such great stuff"
  178. dreamreal blue: that article draft is NOT formatted for google docs, obviously
  179. blue ya
  180. dreamreal editing that doc isn't going to help me much, but comments sure would since they'd give me a delta to work with
  181. dreamreal chovy: https://bytecode.news/posts/2026/04/layoffs-at-oracle
  182. blue dreamreal: ACK, good write-up
  183. blue I don't really have any comments, it's pretty much the gist of the release, the evaluation is also par for the course
  184. dreamreal Okay, cool. It's going to get pride of place on monday, I think.
  185. blue Easter Monday? :P
  186. dreamreal Is that a thing?
  187. dreamreal But yes
  188. dreamreal people here work on monday after easter, it's not that kind of holiday
  189. dreamreal later
  190. blue so in germany, easter friday to monday are typically free
  191. dreamreal should i wait until tue?
  192. blue no
  193. blue if easter monday ain't a thing in the us, then publish
  194. blue actually publish it whenver you want
  195. blue I'd publish it now :P
  196. bot [Primate Blog] Primate 0.37: Revised modules, database migrations, and typed environment access - https://primate.run/blog/primate-037
  197. dreamreal https://bytecode.news/posts/2026/04/primate-0-37-migrations-typed-env-and-a-cleaner-module-api
  198. blue dreamreal: awesome!
  199. dreamreal gave me a chance to flesh out a lot of factoids, too
  200. blue https://x.com/primate_run/status/2040447712659722314
  201. blue https://tboteproject.com/systemdfindings/
  202. nevet systemd birthDate Merge: Corporate Filings, Conflicts of Interest, and Governance Failure
  203. blue this is pretty crazy
  204. onosendi blue: have you tried liquid dnb? https://www.youtube.com/watch?v=s17e_5zK21s
  205. nevet YouTube: #304 KushSessions (Liquid Drum & Bass Mix) | KushSessions
  206. skillbot 04,01► 14,01YouTube :: #304 KushSessions (Liquid Drum & Bass Mix)
  207. blue onosendi: I haven't!
  208. blue trying now
  209. blue not bad
  210. chovy so this is why i switched from primate to next/react i can build any app with any interface on any platform using that stack. i don't think you can do web extensions with primate
  211. chovy or mobile apps
  212. chovy or desktops or clis
  213. blue chovy: what's web extensions?
  214. blue and of course you can do that with primate. next isn't doing anything in particular that makes it mobile or deskopt ready
  215. blue you're probably using sometihng else like react native or so
  216. chovy you don't uswe next on mobile or web extensions
  217. chovy just react
  218. chovy i use electroin for desktop
  219. chovy yes react native
  220. chovy for mobile
  221. chovy i can build tuis with react now lol
  222. chovy that shit is everywhere!!
  223. chovy claude won't let you work more than 12 hours at time before they temp ban you
  224. chovy how you gonna become a billionaire working 12 hours a day?
  225. blue I thought you hated next chovy
  226. blue why are people using that nonsense, it's so terrible
  227. blue like even if you don't use primate, there are *better* alternatives
  228. chovy blue: i don't write code anymore so who cares
  229. chovy i use what works

Search posts