nevetTesting TS monorepos without a build step with rcompat and proby | Hacker News
blueCool!
phalethyeah, well, the thing about that experiment is that there are two runtimes needed to run the app
phalethQJS might be small
blueyup
blueanyway, the genius thing about this new proby nonsense is that it reuses the customConditions in your tsconfig.json
blueI'd been using those to do jump-to-live-source forever, otherwise you jump to the compiled js
bluephaleth: the redeployment loop on primate website is insane
bluearound 3s
bluegit pull && npm run build && systemctl restart primate-web
blueI have never seen anything like this in the wild
blueobviously 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
phalethyeah, but that deployment is so hacky
blueit's really straightforward. get the git repo, install deps, build necessary packages, build app, run
blueif you got most of those on a hot path, a redeployment boils down to the build app step which is 2-3s
blueso if I only change website content, redeployment is lightning fast
blueif I change packages that apps/website depends on, it might be a bit longer
bluebtw if we use bun to run, we could skip the package build step entirely
bluebun can run ts from node_modules. it's only node that's retarded
phalethyeah, but bun is leaking memory
blueso yeah friggin' sucks
bluebun should really stabilise
blueinstead of putting more effort into nonsense optimisations
phalethheh, building standalone bundle is fine and moving it to server where there is only the JS runtime is also a better idea
blueoh yeah let's optimise Response(null) to be a million times faster
blueyeah, and primate already supports that
blueif the node devs weren't such idiots and agreed to run ts in node_modules, all of this wouldn't be even needed
blueyou'd publish ts to npm, done
blueI like it how the argumentation was "but you then don't know which ts version". that's not an argument, node strips types
phalethbun'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
bluethat friggin' sucks
phalethv8 should support TS, makes no sense to strip types
blueso I was thinking that the JS parser I'm writing for flog, it should just support TS natively
blueso yeah, what you're saying for v8 essentially
bluewhat we really need though is a new language, like valuescript
bluethat if I just function foo(a: string): string, that nonsense is actually guaranteed in runtime instead of being stripped away
blueif I just do*
bluewhich is kinda funny, because javascript already maintains this information. it has a type system otherwise typeof wouldn't work in runtime
bluephaleth: looking good for primate 0.37 today
blueeaster primate :)
bluenot quite the bunny you'd expect, but close enough
phalethok, hopefully that release contains something usable for repopack
blueyes, the db migrations, the appfacade#env
bluethe revised modules are also a boon
bluein short, all ofit
phalethcool
bluewelp, release is ready
blueI'm gonna head out to the store and cut it when I'm back
chovyhow many stars on gh are you guys up to now?
chovyi would love for this to be successful and topple everyone else
chovybut i didn't see that happening.
dreamrealblue: 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.
dreamrealprimate's gonna get front billing monday morning.
dreamrealunless something unusual happens, I suppose, but that's the PLAN.
phalethchovy: 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
phalethmyself 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
dreamrealI don't think so.
phalethwell at least everyone can see how terrible that cli is
chovydreamreal: "Front Billing" wdym?
chovyphaleth: is their code bad??? lol
chovyfucking enterprise closed source garbage
phalethyeah, most likely
dreamrealWhat do you mean? I'm not sure what that response is saying.
dreamrealI 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.
dreamrealClaude's code is THEIRS. How is this any different?
chovynot sure what you're getting at dreamreal
chovyi have been working in silicon valley for 30 years as an engineer and ALL corporate codebases are a fucking disaster.
chovyat least with foss you know its clean
dreamrealchovy: it's their code. What does its state matter? I've been in the industry for a minute, too.
dreamrealReally?
dreamrealI mean, I've seen a lot of FOSS...
chovyat chegg we had a User.js file that was 100k lines of code no modules
chovysorry no that was fuckign IBM lol
chovywe rewrite that shit after 1 year
chovyired
dreamrealI mean... so?
chovywe rewrite that shit after 1 year of being acquired
dreamrealThis is a matter of ownership and ethics.
chovywho is goinna read a 100k file?
dreamrealDunno! Does it matter?
dreamrealAn AI probably would, and man, that'd be fun
dreamrealIf something is MINE, what right do you have to it unless I give it to you?
chovyi 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
dreamrealI mean... who cares?
dreamrealThat's not bad advice (to keep files short) but ... so what? What does that have to do with claude?
bluechovy: 280ish, I believe
bluechovy: in 2026, we're *still* the only framework that supports js as a first-class citizen
bluedreamreal: primate 0.37 is coming out today. if you want to publish a story, THAT is way more important than the rcompat thingy
bluealso it's Easter Primate
dreamrealreleasing on SATURDAY? fsck, that IS something you need to write
chovydreamreal: nothing. now. ai is far better than the people i ever worked with
bluedreamreal: not ANY Saturday. EASTER Saturday!
dreamreal... I feel like we're having different conversations, chovy
dreamrealblue: 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
dreamrealeaster saturday isn't relevant for me, but shabbat is and even so, here I am :D
bluedreamreal: I don't care about that, and you know that
blueI'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
dreamrealI do, but it's worth making the decision deliberately. I'd *love* to have primate releases announced on BCN, for what it's worth
dreamrealif it's today, today it is.
bluethere are people waiting for features, I'm not gonna block them for marketing purposes
dreamrealSo what does 0.37 add? the rcompat stuff I already queued for monday, I guess, but ...
* nevet joined #primate
* blue!~blue@user/blue changed the topic to: https://primate.run | this channel is mirrored to the Primate discord, channel #irc
blueI'd like to support oracle, but for that I'd need to setup an oracle db locally
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?
blueyes
bluewell it's still strings. it's just uuid strings
dreamrealSo if I WANTED a pk of "dreamreal" it'd have to be a UUID with a unique index on a name field?
blueprobably, yes. it just means that key.primary and key.foreign won't allow you to use p.string
bluenot 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
nevetYouTube: The Diary Of Jane | Breaking Benjamin - Topic
skillbot04,01► 14,01YouTube :: The Diary Of Jane
bluedreamreal: ya?
dreamrealhold on, revising
dreamrealI tell you what, I'm gonna be low-key pissed if BCN never takes off :D
bluewhy shouldn't it
dreamrealmarketing, actual appeal, people don't read
blueI have mostly stopped caring about what people think
dreamrealmonetization is also a factor: it's a passion project for now, but passion only carries so much
dreamrealif I'm the only one rowing the boat, it ain't gonna go far
dreamrealI'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
bluewell, people suck
blueI'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
dreamrealI hear you (one of those stars is mine, for the record)
dreamrealokay, you on google docs or anything like that?
blueyes, potentially
chovydreamreal: i guess so...idk
chovythought we were just talking
chovynot debating
chovyanyway i trust oss more
dreamrealchovy: we were, I just don't think we were talking about the same things
bluechovy, he just means you're talking past each other
chovythat's the main reason i use it over anything proprietary
bluechovy: it's not the main reason, it's the master reason!
blue:P
chovyi like the foss+cloud model
dreamrealblue: check DM
dreamrealI do too but I also like to eat and have a roof over my head
dreamrealIt's a decision I make deliberately to use open source as a distribution model, or CC-by-SA
dreamrealbut the thing is: if I lost my day job, BCN goes away.
dreamrealBecause 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"
dreamrealblue: that article draft is NOT formatted for google docs, obviously
blueya
dreamrealediting that doc isn't going to help me much, but comments sure would since they'd give me a delta to work with
chovyso 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
chovyor mobile apps
chovyor desktops or clis
bluechovy: what's web extensions?
blueand of course you can do that with primate. next isn't doing anything in particular that makes it mobile or deskopt ready
blueyou're probably using sometihng else like react native or so
chovyyou don't uswe next on mobile or web extensions
chovyjust react
chovyi use electroin for desktop
chovyyes react native
chovyfor mobile
chovyi can build tuis with react now lol
chovythat shit is everywhere!!
chovyclaude won't let you work more than 12 hours at time before they temp ban you
chovyhow you gonna become a billionaire working 12 hours a day?
blueI thought you hated next chovy
bluewhy are people using that nonsense, it's so terrible
bluelike even if you don't use primate, there are *better* alternatives
chovyblue: i don't write code anymore so who cares