Submit

Back to the channels

#primate

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

Search posts