* skillbot quit (Remote host closed the connection)
* skillnews quit (Remote host closed the connection)
* skillbot joined #primate
* skillnews joined #primate
* jreicher quit (Quit: In transit)
* jreicher joined #primate
liolocmorning !
liolocIs there any way to undo migrations?
bluelioloc: morning, hello
bluelioloc: no, migrations are forwarding breaking by design
blueforward breaking*
bluethe way to deal with it is create another migration that fixes the problem
bluesome orms/db systems do implement reversible migrations, but it's a can of worms: destructible migrations cannot be reserved, and non-destructible are easy to forward-fix. so reverting migrations doesn't gain you much
bluereversed*
liolocah i see
blueso the question is, what is your use case here?
blueit's better to accept migrations as historic evidence and forward-fix than messing with them
liolocif we had a database that operated kind of like git does, with "commits" then it would probably be an easy fix, but there's probably good reasons why that doesn't exist
liolocMy use case was a personal project where I added a migration but decided to revert those changes, nothing crazy
liolocI don't mind adding another migration to revert
blueyes, if you had a database that operated like git, it would be easy to 'revert' migrations. however, you have to remember that databases do not operate in a way; their write operations aren't all gated by acceptance, like commits here, and any user performing an action post-migration already has the expectation that that action is persisted, rather than lost when you 'revert' to the old stage
bluedatabases do not operate in the same way*
liolocah ok
bluegit's graph is visible all the way, databases are generally not ledgers... and even so, the complexity of reconciliating a back-migration with already-persisted changes is too high, I'd say even impossible
bluelioloc: primate 0.44 released, btw
blueit's not a particularly big release like 0.45, but I wanted to `primate update` out already
bluelike 0.43*
blueI'm also adding more features to flog. `flog format` and `flog lint` will hopefully soon arrive, as a fast replacement to eslint. then we'll have `flog test` and `flog test --cover`
bluefinally, `flog typecheck` is planned. it will ts-check your project, but only against modern ts syntax. so erasable syntax only, no namespaces, etc.
bluegenerally speaking this will be replacing eslint + tsc + test runners (like proby)
blueso flog will do everything except run your code
blueI guess there's a lot of text inside? binaries are supposed to be compressed already I thought...
blueanyway I'll see if I can make it smaller
phalethunarchived
blueya
bluewell 9.8M is still ok. but I'll optimise once we get all the features
blueI'm just trying to get rid of all this unreliable dumpster fire tooling that never works for me properly
bluelike I install knip, then it shows a thousand errors where about 99.99% of them are false positive because it doesn't understand node private imports (#)
bluedoes anyone actually test/use those tools?
phalethno, people still use webpack
blueomg webpack
phalethit's always like yeah, dog shit slow, but it's battle tested and it works
bluebattle tested my butt
bluebut tbh, I delimit flog to *my* use cases. like for TS type checks, it's only modern syntax because I don't care about enums or interfaces or all that old garbage
blueso it's just erasable syntax and no interface. it's anyway what the TS more or less recommends today
bluesorry, no namespaces*
blueinterfaces will be fully supported
bluenamespaces was a module-like attempt of TS that predated proper ESM modules, I believe. so anyway you shouldn't be doing it anymore
bluealso no type decorators and so on
phalethI like TS enums
bluethey don't degrade well at all
phaleththey allow string values
phalethlike Java enums, but Java enums look weird
blueyou should just do `const ENUM = { 1: "HI", 2: "BYE"};`
bluethat's as good an enum as you'll get
phalethnamespaces in TS are a failure
blueyes
bluethat's why `flog check types` won't support htem
blueso obviously if you need to check the world, you'd be still using tsc. but for modern projects, flog will be just as good
bluethese are primate's devdeps right?
blueright now:
blue "@rcompat/test": "^0.22.0",
blue "@types/node": "^26.6.4",
blue "@typescript/native": "npm:typescript@^7.0.2",
blue "apekit": "0.0.58",
blue "eslint": "^10.12.0",
blue "proby": "^0.27.0",
blue "typescript": "npm:@typescript/typescript6@^6.0.2"
blueafter flog is done, they'll all be removed
blueit's all tooling upon tooling
blueand I'm sick and tired of it
bluejust need one good tool, (tm)
phalethflog will replace tsc?
blueyes
phalethok
phalethalso isn't proby your thing?
blueyes
blueproby is a test runner. flog will replace it
blue@rcompat/test, that might stay there until primate can switch to std:test and dog
phalethok, well concurrent test runner is better
bluebut all those devdeps are heading to the dumpster yard
bluethey're not really devdeps, they're tooling
bluethe future is flog
blueand not all those dumpster fires
phalethso I've tried to use encore as just a JS runtime and it just wanted me to generate their project from their template and shit I was like hell no
bluelol
bluewhat is encore?
phalethit's like you buy one product from apple and you have to dump everything else into trash to replace it with other apple crap
phalethnot too sure, it's somebody having similar ideas to yours and just kinda replacing everything
phalethbut they wanna lock you in you know, and maybe you will be accused of the same
phalethyou will get comments like you do support TS, but it's not a TS, what it is
blueI don't give a rat's butt
phalethanyway, impossible to keep up with the standards
blueI develop all my tools for myself, others are welcome to partake, if they don't want to, it's their prerogative to use their broken old tools
blueI don't have to carry every backcompat nonsense the TS team feels obliged to. they have semver, they could decide to not do it
bluepeople have apparently forgotten semver was designed so you can freely break stuff, like a bird
blueinstead, people put themselves into self-inflicted prisons, not my problem
phalethnah TS doesn't follow semver
blueif TS doesn't follow semever, then why does it publish new majors? it should just switch to the firefox/chrome model
blueso they kinda follow semver but also they don't
bluealso your argument might hold for TS, but it certainly doesn't hold for node
blueit does follow semver, but also it almost never breaks anything
blueit could break stuff, it just doesn't want to
blueif it broke stuff, people would be forced to update their old rotten software still using fs.write(callback) or whatever it is
blueor stay on older, unsupported versions
bluewhy do open source projects shift the burden of keeping your software uptodate, to themselves? and then complain they have no resource to maintain stuff?
bluedreamreal: ^ honest question
bluejust break forward, like linux does, and you don't need to maintain compat forever
phalethpeople still use express and cjs, and still actually write more cjs than esm server side
phalethand clanker keep supporting that crap too
blueyeah but they do it because they can
phalethso that means node cannot break, period
bluewhen what's his name.. the esm guy, started publishing esm-only packages, people complained, but then they stopped complaining and continued to use his useful tools
bluesindre*
phalethso the thing is node is everywhere where non-browser JS is, I think even electron might use node, but dunno
phalethand so if you wanna invade that space you just have to have everything well integrated, including editor support if you think people should write code
phalethand in that integration sense also well automated, cause when people have to make effort they will not change their tools
phalethit's always the same answer: PHP has already solved those problems
phalethor whatever you put instead of PHP there
phalethalso the biggest problem is mobile
phalethmobile will be the biggest problem also for repopack, cause people like to sit on toilet when writing down ideas for whoever to work on, be it clankers
phalethor lay down in bed or on a couch
phalethlike who's having a desktop PC at home, only total nerds
bluecan use repopack on normiephone too
dreamrealblue: laziness
bluedreamreal: ya but they complain about that one guy in nebraska maintaining it?
blueidk, it just doesn't fit together
dreamrealeveryone wants everything for free
blueopen source should be something you do as a passion, you don't ned to maintain compat beyond what you have time to
bluethat's what I do with primate. it's take it or leave it
dreamreal"you gave it away, why are you not STILL giving it away"
bluebecause I'm not obliged to :P
bluebut no law of man or god
blues/but/by/
bluethe answer is simple to me. the question is why do so many open source maintainers put themselves in this bind
dreamrealsure but people still want everyone ELSE to hold the burden
blueI would never put myself in this bind
dreamrealand since a lot of open source maintainers feel the same they bind themselves
blueunless someone pays me to do primate, I'm not gonna support something I don't have the time, or more importantly, the passion, to support
bluethis is something I will never compromise on
dreamreal+1
blueif I stop enjoying it, I'll stop doing it, I don't care
dreamrealbut definitely fix all of MY issues
blueyour issues are ALL fixed and more!
phalethheh
dreamrealI wasn't being serious anyway :D
blueya, I know
bluephaleth: did I tell you cit is compiling directly to assembly at&t, no libc?
blueI think I also figured out ownership
phalethyeah, so simple
blueso clanker asked, how to deal with a scenario where you have a helper which needs to modify a resource, but also you want to give it back
blueapparently rust has something like &mut or whatever craziness, like temporarily ownership or wahtever
bluecit isn't having any of it, you transfer the ownership with !, and you give it back with ! again if you need to
blueif you need to give it back AND provide more data, you give back a 2-tuple
blue[!resource, bytes_read]
blueit's all very simple, I don't know why rust complicates it so much
blueit's a bit of go, a bit of rust, only the good parts
blueit's very impotant to be able to read code in a linear way
bluea bit like repopack tasks
blueall those pointers are doing nothing good
blueit's like all hidden sideeffects and whatnot. I think this is what zig is trying to avoid, but of course as we all know zig has become a dumpster fire
blueso now we get zig simplicity, with rust-style ownership, and go returns
blueall good and proper
bluedreamreal: see how I actively engage in tikkun olam here?
dreamrealI do, yes
bluegood
phalethblue: you should watch `Async Rust` from tsoding then you will remove rust completely :D
phalethi can actually upload it for you if you want, it's a fun stream