Submit

Back to the channels

#primate

  1. * skillbot quit (Remote host closed the connection)
  2. * skillnews quit (Remote host closed the connection)
  3. * skillbot joined #primate
  4. * skillnews joined #primate
  5. * lioloc joined #primate
  6. lioloc hey blue!
  7. * phaleth joined #primate
  8. phaleth ant migrated to upm https://github.com/theMackabu/ant/pull/143
  9. nevet migrate from libpkg (zig) to upm (ts) by theMackabu · Pull Request #143 · theMackabu/ant
  10. phaleth notice how many lines of code got dropped
  11. * lioloc quit (Quit: bIRC — https://birc.app)
  12. * lioloc joined #primate
  13. blue hi lioloc
  14. blue phaleth: I know neither libpkg nor upm... but ant is a VERY badly chosen name. there's a buildtool for java called that way
  15. phaleth flog 0.1.3 can build bytecode.news site
  16. phaleth blue: naming is hard
  17. blue wow, flog is amazing
  18. phaleth yeah, the build of the image is slower with flog than with npm/npx by about 34 seconds cause of some dev deps that have to be installed
  19. phaleth upm looks interesting
  20. phaleth and it's also nice that ant was able to remove all the zig code and get better compatibility with windows
  21. blue flog 0.1.4 is out
  22. blue phaleth: is flog is slower than npm, then I won't replace the BCN stuff. flog must be faster than other package managers in all scenarios
  23. blue if flog*
  24. phaleth when `flog lock` is executed does it convert `package-lock.json`?
  25. phaleth there seems to be no equivalent to `flog ci`
  26. blue no, flog lock currently doesn't convert any existing lock files
  27. phaleth ok, the bcn deployment uses `npm ci`
  28. blue the flog equivalent is `flog install`
  29. blue flog install never modifies a lockfile, it just materialises it
  30. phaleth also `flog install --prod` fails to install some shacdn whatever which makes `flog build` fail next
  31. blue ok, let me see if I can see why
  32. phaleth yeah, but the flog.lock is missing and there is only package-lock.json
  33. blue yeah, that's why you run `flog.lock`
  34. blue `flog lock`*
  35. phaleth ok, let me send you the Containerfile
  36. phaleth but flog.lock does not convert so that means it will just look into npmjs.com for versions
  37. blue only when you do `flog lock` the first time. otherwise you commit the flog.lock file alongside
  38. blue ui-primate on master [$?] via  v26.11.1 took 5s flog install
  39. blue installed 616 packages and 0 workspace links (143 cache hits, 473 downloads)
  40. blue ui-primate on master [$?] via  v26.11.1 took 9s flog install --prod
  41. blue installed 138 packages and 0 workspace links (138 cache hits, 0 downloads)
  42. blue selected 0 source workspaces
  43. blue looks good no?
  44. phaleth blue: I've only added flog install steps to this Containerfile https://upaste.de/raw/r3z
  45. phaleth ah, so you have flog locally
  46. blue ya but that Containerfile is unfinished
  47. blue it needs to copy flog.lock
  48. phaleth oh, there is flog.lock in the repo?
  49. blue and drop package-lock.json
  50. blue there isn't, but there should be, as part of the transition
  51. phaleth so flog is not going to support package-lock.json?
  52. phaleth ok
  53. blue not that I intend to
  54. blue I mean, you either use flog or npm to manage the repo, I think
  55. blue mixing is bad
  56. phaleth yeah, but how to adopt flog here
  57. blue `rm package-lock.json && flog lock`
  58. blue that's a one-off migration
  59. blue afterwards the Containerfile can be adapted to copy flog.lock
  60. phaleth ok, let me see if that will make the build faster
  61. phaleth there is also `.npmrc` which I have no clue what it does
  62. blue it contains this
  63. blue @streampack-dev:registry=https://nexus.streampack.dev/repository/npm-group/
  64. nevet Repository - Sonatype Nexus Repository
  65. blue I have no idea what that is
  66. blue possibly for those two deps:
  67. blue "@streampack-dev/clientjs": "^0.2.3",
  68. blue "@streampack-dev/masthead": "^0.5.5",
  69. blue idk, we're gonna have to ask dreamreal what this sonatype nexus shenanigans are
  70. phaleth looks like custom npm repository to me
  71. phaleth does flog support that?
  72. blue don't think so
  73. phaleth I think otherwise one would have to specify something like: "https://nexus.streampack.dev/repository/npm-group/clientjs": "^0.2.3", in package.json
  74. blue well the question is how do those custom repositories work
  75. blue is it only for certain packages, or all, or?
  76. blue I'll investigate
  77. phaleth well, they should have the same API as npmjs.com
  78. phaleth you remember the move of sheetjs outside of npmjs.com to their own custom npm repository
  79. phaleth or registry or whatever that's called
  80. phaleth and npm as client can handle that
  81. phaleth I've used sheetjs in a project in the past, let me try to find it
  82. blue ya
  83. phaleth looks like sheetjs changed the installation process and now explain how to vendor the dep, but there's still some doc https://docs.sheetjs.com/docs/getting-started/installation/nodejs#legacy-endpoints
  84. nevet NodeJS | SheetJS Community Edition
  85. phaleth well, I've tried to provide flog.lock to the bytecode.news project and running into same restrictivity as I've ran in past: flog: error: flog.lock does not match the project: lockfile does not represent current target linux/x64/musl (represented: linux/x64/glibc); run flog lock after reviewing manifest changes
  86. phaleth Error: building at STEP "RUN flog install --prod": while running runtime: exit status 1
  87. phaleth cause of use of alpine container to do the install
  88. phaleth task is already there
  89. phaleth using flog.lock for bytecode.news frontend does not make the installation faster
  90. phaleth I mean the overall container build that now has to use debian slim
  91. phaleth container image build*
  92. phaleth but anyway, big milestone for flog
  93. blue ya
  94. blue phaleth: https://www.npmjs.com/package/@rcompat/fs
  95. blue flog published its first package
  96. * lioloc quit (Ping timeout: 245 seconds)
  97. blue dreamreal: can you make two corrections to the zig article?
  98. * lioloc joined #primate
  99. lioloc blue: hey blue, the new @primate/native package is not yet released right?
  100. phaleth blue: nice
  101. dreamreal blue: I can but are you not able to edit it?
  102. blue lioloc: hey, not yet
  103. blue dreamreal: no
  104. blue I don't see an edit button
  105. dreamreal okay, I think I know why - decision about people editing post-approval
  106. dreamreal what edits
  107. blue 11:28 <phaleth> here I think the words stop and start should be switched https://i.imageupload.app/93d34153359774c87400.png
  108. blue 11:29 <phaleth> and here it seems a sentence is unfinished https://i.imageupload.app/a6021d7054a5ff94be58.png
  109. blue so for the second one, phaleth suggests "anything but appreciative", which I agree
  110. blue dreamreal: ^ + ^^ + ^^^
  111. * dreamreal sighs
  112. dreamreal Okay. I do not approve, but I'll make the changes.
  113. blue wait wait
  114. blue the first one is a legit error
  115. blue and why do you not approve of the second one?
  116. dreamreal Because they were your words
  117. blue do you prefer the elliptic style?
  118. dreamreal I actually disagree with the first one, because it's valid either way semantically
  119. phaleth heh
  120. dreamreal and the second: you wrote it. Own it.
  121. phaleth it's immutable like repopack comments
  122. * dreamreal shrugs. It's not. It's a matter of how you view your creative work.
  123. blue I guess you can read it either way
  124. blue fine, leave it
  125. dreamreal Too late
  126. blue well, now you have to implement an edit feature so I can change back it :P
  127. blue change it back*
  128. blue but anyway, next time let's discuss it, if you disapprove. I'm always open to hearing another perspective
  129. dreamreal There already is an edit feature: it just stops once the thing gets calcified, because the site author has a particular view towards creative work
  130. dreamreal having been created, I see it as a thing itself, errors and all
  131. blue ya, it's like repopack comments
  132. dreamreal I did not DISAPPROVE
  133. dreamreal I disgareed
  134. dreamreal there's a massive difference
  135. blue you said you do not approve :P
  136. dreamreal Which is not disapproval
  137. blue ok, so let's discuss it anyway next time, even if you don't disagree but only disagree, or not approve
  138. * dreamreal shrugs
  139. blue if you don't disapprove*
  140. dreamreal okay
  141. dreamreal I find the first change (start/stop) a matter of semantics and it works either way
  142. dreamreal the second change sands down your voice
  143. phaleth too funny
  144. blue yeah, and upon rereading I got the point. the first change is from *describing* reality (stop -> start) and *prescribing* it (start -> stop)
  145. dreamreal and as a musician, you eventually come to a place where you play what you played, and there it is: fiddling with it endlessly after the fact eventually erodes any hint of soul it might have had
  146. dreamreal I'll correct misspellings, most of the time, but ... honestly, my contorted grammar in my earlier writing, that was me
  147. dreamreal still is, and I still write that way sometimes
  148. dreamreal c'est la vie
  149. phaleth the article has soul, that's for sure
  150. blue but both changes are not something I feel very strongly about. and that's also a personality quirk of mine. there are things I prefer to not have a strong opinion about, because... I don't. so I leave room for others' strong(er) opinion, and I think that's valid. I heard phaleth's side, I think you should allow your side to be heard as well
  151. * dreamreal is not the author
  152. blue that doesn't mean you can't have an opinion
  153. dreamreal I have a lot of opinions, most of which remain isolated as they should be
  154. blue you're also not the author of primate, and you can also have an opinion, and make suggestions...
  155. * phaleth now thinks his repopack comments have a soul
  156. blue haha
  157. dreamreal You thought they did not?
  158. dreamreal ask martin buber
  159. nevet Martin Buber (1878–1965) was an Austrian-Israeli philosopher best known for *I and Thou* (1923), which contrasts treating things as objects ("I–It") with genuine, mutual encounter ("I–Thou"). By his view, your repopack comments could have "soul" if you relate to them as a Thou, not merely an It.
  160. dreamreal That's... not entirely correct but close enough
  161. dreamreal but buber did have a lot to say about how people interact with their world
  162. blue the problems are not dissimilar. someone who has read an older version of the Zig article might post a reply that is now invalidated
  163. blue there are reasons to keep things as they are, and not purely for an "authentic snapshop of time" reason
  164. dreamreal That'd be a particularly anal reader; "no, no, you start at THIS and stop at THAT, it's not the other way around where you STOP at THIS and start at THAT unless you decide you want to look at the two inversely, you know. ACTUALLY..."
  165. blue repopack comments are uneditable the exact reason that discussions can always be understood linearly
  166. blue for the exact reason*
  167. blue that is worth the price, I think
  168. * lioloc quit (Quit: bIRC — https://birc.app)
  169. blue retconning things always creates danger... there's a reason they say you should never edit migrations, even if they contain nonsense
  170. phaleth migrations containing nonsense is guaranteed, so is development project issues
  171. blue ya
  172. dreamreal I'm working on a piece about the information economy, because what I think is happening a lot is that people describe it as an economy while not treating it like one
  173. blue what is the information economy?
  174. dreamreal It's not an it, for one thing, but it's a description of a model where information is value in and of itself
  175. dreamreal open source shares the value innately, but people take the value and hoard it
  176. blue hm
  177. dreamreal and we end up with crap like php2shell
  178. dreamreal because people don't share back enough: "it's open source, they gave it to me, why should I give back?"
  179. blue the alternative worldview, dreamreal, is that php simply sucks, should never have existed as a programming language, and we should retire it out of existence ASAP
  180. dreamreal and it's not just MONEY to give pack - php is drastically underfunded for its userbase, despite being utter crap - it's actual interaction and contribution, which is information and has value itself
  181. dreamreal Not the point, people relied on it despite its vast suckitude (I despise PHP)
  182. blue like, if I tell you of some building material, which is really easy to build with, super friendly, but also it's a dumpster fire that will collapse with the slightest wind, and you build half your infrastructure, and most of your informational infrastructure with it, it's kind of your fault at that stage, and you're get your just deserts
  183. dreamreal Missing the point that we could learn from PHP
  184. dreamreal PHP has been crap since early on: it's entirely accreted with no design
  185. dreamreal zend tried to fix some of it but there's too much momentum
  186. dreamreal would have been worse than python 2 -> 3
  187. dreamreal but you see the same pattern all over the place
  188. dreamreal I've gotten five projects new releases this week, all from simply exchanging information with the maintainers
  189. dreamreal not even "oh it's broke" but just asking questions that I couldn't find the answers to, trivially, when I thought I should be able to
  190. dreamreal I usually try to share what I found, along with workarounds and why
  191. blue ya
  192. phaleth is it like php people thought it'd be a good time to update their legacy php 5.4 projects yet again all the sudden? just give them a few days to realize they don't really know what they are thinking
  193. phaleth I think php 8.2 and onwards is fine and also the use of composer is a good addition, even tho a bit weird
  194. phaleth but where did all the vendoring of deps take all those php 5 people? exactly nowhere and that's btw the majority of those 70% projects running the internet or whatever
  195. dreamreal phaleth: PHP's problem isn't *versioning*
  196. dreamreal it's design
  197. dreamreal it's accreted by people who didn't have a vision of the core product, so it's highly inconsistent
  198. phaleth well, that too, but you can say the same about JS
  199. dreamreal ... I do
  200. phaleth yeah, it's like every single PHP dev is using different tools, I know
  201. dreamreal Not just different tools, but writing a PHP app means using APis that LOOK LIKE C and LOOK LIKE other things too
  202. dreamreal there's no coherent design, the core API is a chimera
  203. dreamreal it's just the way it is
  204. phaleth yeah, for sure, I mean standard library is also a tool
  205. phaleth but anyway, people will just keep thinking this pays our bills and move on whatever the complexity
  206. phaleth simply shoehorn everything useful back into php 5.4 and that's it
  207. dreamreal or stop using php. I've still got two WP sites, and I'd love to move away from them. :/
  208. phaleth well at least WP is easy to update unless you are stuck with some of it's legacy plugins that you necessarily had to vendor at some point in time
  209. * nevet joined #primate
  210. * blue!~blue@user/blue changed the topic to: https://primate.run | This channel is logged: https://bytecode.news/logs/irc/libera/primate
  211. * lioloc joined #primate
  212. * phaleth quit (Quit: phaleth)
  213. * lioloc quit (Quit: bIRC — https://birc.app)
  214. * phaleth joined #primate
  215. * lioloc joined #primate
  216. blue `flog bump` is coming
  217. phaleth what's a flog bump?
  218. blue well, flog currently detects release-sets, but there's no way to do it before you run `flog publish --dry-run`
  219. blue `flog bump --dry-run` shows you what other packages in a monorepo needs updating
  220. blue and `flog bump` edits the package.json files
  221. phaleth sounds like flog check-updates
  222. phaleth flog npm-check-updates -u
  223. phaleth repopack has 18551 lines of Bourne Shell in 92 files
  224. * phaleth quit (Remote host closed the connection)
  225. * phaleth joined #primate
  226. blue that's `flog upgrade`
  227. blue bump just makes sure your release set is sane
  228. phaleth ok
  229. phaleth robots.txt has a cool icon on repopack website
  230. phaleth can I change repopack's logo and favicon?
  231. blue sure
  232. blue if you rework the logo, I can't promise I'll accept, but you can change it
  233. blue so far the logos have been excellent, for rcompat and flog
  234. phaleth alright
  235. phaleth current logo is boring
  236. blue k
  237. phaleth the situation with templates in repopack project is also kinda crazy
  238. blue how do you mean?
  239. phaleth there are two app.html files that are same
  240. blue lol
  241. lioloc hey blue! Do you have a target release date for 0.43?
  242. blue lioloc: hi, yes, today in Elon Musk time. Which means that if I'm lucky, probably sometime next week. I was *aiming* for today, but this is a big release and I need to audit it carefully
  243. blue I might still get lucky and manage to get it out today, but don't count on it
  244. lioloc no worries
  245. blue I know you're waiting for the webview stuff, haven't forgotten about you
  246. lioloc thanks
  247. blue dreamreal is also waiting for some stuff, I'm doing my best :-)
  248. lioloc i completely understand
  249. blue flog 0.1.7 is coming, that should unblock some rcompat bumping, which should unlock the last primate updates before the release
  250. blue lioloc: btw, flog is now openly available via https://flog.run
  251. nevet flog — predictable JavaScript package management
  252. lioloc oh neat!
  253. lioloc will try it now
  254. blue flog 0.1.7 is out!
  255. lioloc For a first project without a lock, create or edit package.json, then make the resolution step explicit:
  256. lioloc what does this mean? You always have to run `flog lock` on new projects? (i deleted node_modules and i'm about to try flog instead of bun)
  257. blue yes, you run it the first time you start
  258. blue it creates flog.lock
  259. lioloc i'll probably do an flog-init zsh alias that does that
  260. blue flog is a bit different from other package managers. `flog install` does not modify the lock file, it materialises it only
  261. blue flog add / remove do change the lock file
  262. blue add is *not* an alias for install
  263. lioloc wait so if it materialises the flog.lock file when you run flog install, why do you need to run flog lock? what does that do?
  264. blue that creates a lock file for a project without one
  265. blue materialising just means reading whatever is in flog.lock and installing that into node_modules
  266. lioloc oh
  267. lioloc maybe a flog init would be nice
  268. lioloc that would run "flog lock
  269. lioloc git diff -- package.json flog.lock
  270. lioloc flog install"
  271. lioloc anyway I will just create an alias for it for now
  272. blue sounds good, could you create a task at https://repopack.com/project/flog
  273. blue flog init could also create a package.json if missing, with some sane defaults
  274. blue like "type": "module"
  275. lioloc yeah would be nice
  276. blue lioloc one thing that flog does which I love, and pnpm and no other package manager does, is release set. it verifies that you can't publish a workspace package in a way that would mess up its dependencies
  277. blue https://flog.run/docs/release-sets#the-failure-this-prevents
  278. lioloc interesting
  279. lioloc very cool
  280. * skillbot quit (Remote host closed the connection)
  281. * skillnews quit (Remote host closed the connection)
  282. * skillbot joined #primate
  283. * skillnews joined #primate
  284. lioloc i think i created the task (i can't actually see anything on the dashboard)
  285. lioloc wait nvm maybe it was just slow
  286. lioloc yup i see it
  287. blue ya
  288. blue lioloc: what is this for: git diff -- package.json flog.lock ?
  289. lioloc its on the installation instructions, i just realised it wasn't useful either
  290. lioloc https://flog.run/docs
  291. nevet Documentation · flog
  292. blue ok, makes sense
  293. lioloc I just copied pasted it blindly without thinking
  294. lioloc be back later
  295. * lioloc quit (Read error: Connection reset by peer)
  296. * phaleth quit (Quit: phaleth)

Search posts