Submit

Back to the channels

#primate

  1. lioloc hey blue!
  2. phaleth ant migrated to upm https://github.com/theMackabu/ant/pull/143
  3. nevet migrate from libpkg (zig) to upm (ts) by theMackabu · Pull Request #143 · theMackabu/ant
  4. phaleth notice how many lines of code got dropped
  5. blue hi lioloc
  6. 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
  7. phaleth flog 0.1.3 can build bytecode.news site
  8. phaleth blue: naming is hard
  9. blue wow, flog is amazing
  10. 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
  11. phaleth upm looks interesting
  12. phaleth and it's also nice that ant was able to remove all the zig code and get better compatibility with windows
  13. blue flog 0.1.4 is out
  14. 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
  15. blue if flog*
  16. phaleth when `flog lock` is executed does it convert `package-lock.json`?
  17. phaleth there seems to be no equivalent to `flog ci`
  18. blue no, flog lock currently doesn't convert any existing lock files
  19. phaleth ok, the bcn deployment uses `npm ci`
  20. blue the flog equivalent is `flog install`
  21. blue flog install never modifies a lockfile, it just materialises it
  22. phaleth also `flog install --prod` fails to install some shacdn whatever which makes `flog build` fail next
  23. blue ok, let me see if I can see why
  24. phaleth yeah, but the flog.lock is missing and there is only package-lock.json
  25. blue yeah, that's why you run `flog.lock`
  26. blue `flog lock`*
  27. phaleth ok, let me send you the Containerfile
  28. phaleth but flog.lock does not convert so that means it will just look into npmjs.com for versions
  29. blue only when you do `flog lock` the first time. otherwise you commit the flog.lock file alongside
  30. blue ui-primate on master [$?] via  v26.11.1 took 5s flog install
  31. blue installed 616 packages and 0 workspace links (143 cache hits, 473 downloads)
  32. blue ui-primate on master [$?] via  v26.11.1 took 9s flog install --prod
  33. blue installed 138 packages and 0 workspace links (138 cache hits, 0 downloads)
  34. blue selected 0 source workspaces
  35. blue looks good no?
  36. phaleth blue: I've only added flog install steps to this Containerfile https://upaste.de/raw/r3z
  37. phaleth ah, so you have flog locally
  38. blue ya but that Containerfile is unfinished
  39. blue it needs to copy flog.lock
  40. phaleth oh, there is flog.lock in the repo?
  41. blue and drop package-lock.json
  42. blue there isn't, but there should be, as part of the transition
  43. phaleth so flog is not going to support package-lock.json?
  44. phaleth ok
  45. blue not that I intend to
  46. blue I mean, you either use flog or npm to manage the repo, I think
  47. blue mixing is bad
  48. phaleth yeah, but how to adopt flog here
  49. blue `rm package-lock.json && flog lock`
  50. blue that's a one-off migration
  51. blue afterwards the Containerfile can be adapted to copy flog.lock
  52. phaleth ok, let me see if that will make the build faster
  53. phaleth there is also `.npmrc` which I have no clue what it does
  54. blue it contains this
  55. blue @streampack-dev:registry=https://nexus.streampack.dev/repository/npm-group/
  56. nevet Repository - Sonatype Nexus Repository
  57. blue I have no idea what that is
  58. blue possibly for those two deps:
  59. blue "@streampack-dev/clientjs": "^0.2.3",
  60. blue "@streampack-dev/masthead": "^0.5.5",
  61. blue idk, we're gonna have to ask dreamreal what this sonatype nexus shenanigans are
  62. phaleth looks like custom npm repository to me
  63. phaleth does flog support that?
  64. blue don't think so
  65. 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
  66. blue well the question is how do those custom repositories work
  67. blue is it only for certain packages, or all, or?
  68. blue I'll investigate
  69. phaleth well, they should have the same API as npmjs.com
  70. phaleth you remember the move of sheetjs outside of npmjs.com to their own custom npm repository
  71. phaleth or registry or whatever that's called
  72. phaleth and npm as client can handle that
  73. phaleth I've used sheetjs in a project in the past, let me try to find it
  74. blue ya
  75. 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
  76. nevet NodeJS | SheetJS Community Edition
  77. 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
  78. phaleth Error: building at STEP "RUN flog install --prod": while running runtime: exit status 1
  79. phaleth cause of use of alpine container to do the install
  80. phaleth task is already there
  81. phaleth using flog.lock for bytecode.news frontend does not make the installation faster
  82. phaleth I mean the overall container build that now has to use debian slim
  83. phaleth container image build*
  84. phaleth but anyway, big milestone for flog
  85. blue ya
  86. blue phaleth: https://www.npmjs.com/package/@rcompat/fs
  87. blue flog published its first package
  88. blue dreamreal: can you make two corrections to the zig article?
  89. lioloc blue: hey blue, the new @primate/native package is not yet released right?
  90. phaleth blue: nice
  91. dreamreal blue: I can but are you not able to edit it?
  92. blue lioloc: hey, not yet
  93. blue dreamreal: no
  94. blue I don't see an edit button
  95. dreamreal okay, I think I know why - decision about people editing post-approval
  96. dreamreal what edits
  97. blue 11:28 <phaleth> here I think the words stop and start should be switched https://i.imageupload.app/93d34153359774c87400.png
  98. blue 11:29 <phaleth> and here it seems a sentence is unfinished https://i.imageupload.app/a6021d7054a5ff94be58.png
  99. blue so for the second one, phaleth suggests "anything but appreciative", which I agree
  100. blue dreamreal: ^ + ^^ + ^^^
  101. * dreamreal sighs
  102. dreamreal Okay. I do not approve, but I'll make the changes.
  103. blue wait wait
  104. blue the first one is a legit error
  105. blue and why do you not approve of the second one?
  106. dreamreal Because they were your words
  107. blue do you prefer the elliptic style?
  108. dreamreal I actually disagree with the first one, because it's valid either way semantically
  109. phaleth heh
  110. dreamreal and the second: you wrote it. Own it.
  111. phaleth it's immutable like repopack comments
  112. * dreamreal shrugs. It's not. It's a matter of how you view your creative work.
  113. blue I guess you can read it either way
  114. blue fine, leave it
  115. dreamreal Too late
  116. blue well, now you have to implement an edit feature so I can change back it :P
  117. blue change it back*
  118. blue but anyway, next time let's discuss it, if you disapprove. I'm always open to hearing another perspective
  119. 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
  120. dreamreal having been created, I see it as a thing itself, errors and all
  121. blue ya, it's like repopack comments
  122. dreamreal I did not DISAPPROVE
  123. dreamreal I disgareed
  124. dreamreal there's a massive difference
  125. blue you said you do not approve :P
  126. dreamreal Which is not disapproval
  127. blue ok, so let's discuss it anyway next time, even if you don't disagree but only disagree, or not approve
  128. * dreamreal shrugs
  129. blue if you don't disapprove*
  130. dreamreal okay
  131. dreamreal I find the first change (start/stop) a matter of semantics and it works either way
  132. dreamreal the second change sands down your voice
  133. phaleth too funny
  134. blue yeah, and upon rereading I got the point. the first change is from *describing* reality (stop -> start) and *prescribing* it (start -> stop)
  135. 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
  136. dreamreal I'll correct misspellings, most of the time, but ... honestly, my contorted grammar in my earlier writing, that was me
  137. dreamreal still is, and I still write that way sometimes
  138. dreamreal c'est la vie
  139. phaleth the article has soul, that's for sure
  140. 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
  141. * dreamreal is not the author
  142. blue that doesn't mean you can't have an opinion
  143. dreamreal I have a lot of opinions, most of which remain isolated as they should be
  144. blue you're also not the author of primate, and you can also have an opinion, and make suggestions...
  145. * phaleth now thinks his repopack comments have a soul
  146. blue haha
  147. dreamreal You thought they did not?
  148. dreamreal ask martin buber
  149. 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.
  150. dreamreal That's... not entirely correct but close enough
  151. dreamreal but buber did have a lot to say about how people interact with their world
  152. 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
  153. blue there are reasons to keep things as they are, and not purely for an "authentic snapshop of time" reason
  154. 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..."
  155. blue repopack comments are uneditable the exact reason that discussions can always be understood linearly
  156. blue for the exact reason*
  157. blue that is worth the price, I think
  158. blue retconning things always creates danger... there's a reason they say you should never edit migrations, even if they contain nonsense
  159. phaleth migrations containing nonsense is guaranteed, so is development project issues
  160. blue ya
  161. 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
  162. blue what is the information economy?
  163. 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
  164. dreamreal open source shares the value innately, but people take the value and hoard it
  165. blue hm
  166. dreamreal and we end up with crap like php2shell
  167. dreamreal because people don't share back enough: "it's open source, they gave it to me, why should I give back?"
  168. 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
  169. 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
  170. dreamreal Not the point, people relied on it despite its vast suckitude (I despise PHP)
  171. 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
  172. dreamreal Missing the point that we could learn from PHP
  173. dreamreal PHP has been crap since early on: it's entirely accreted with no design
  174. dreamreal zend tried to fix some of it but there's too much momentum
  175. dreamreal would have been worse than python 2 -> 3
  176. dreamreal but you see the same pattern all over the place
  177. dreamreal I've gotten five projects new releases this week, all from simply exchanging information with the maintainers
  178. 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
  179. dreamreal I usually try to share what I found, along with workarounds and why
  180. blue ya
  181. 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
  182. 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
  183. 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
  184. dreamreal phaleth: PHP's problem isn't *versioning*
  185. dreamreal it's design
  186. dreamreal it's accreted by people who didn't have a vision of the core product, so it's highly inconsistent
  187. phaleth well, that too, but you can say the same about JS
  188. dreamreal ... I do
  189. phaleth yeah, it's like every single PHP dev is using different tools, I know
  190. dreamreal Not just different tools, but writing a PHP app means using APis that LOOK LIKE C and LOOK LIKE other things too
  191. dreamreal there's no coherent design, the core API is a chimera
  192. dreamreal it's just the way it is
  193. phaleth yeah, for sure, I mean standard library is also a tool
  194. phaleth but anyway, people will just keep thinking this pays our bills and move on whatever the complexity
  195. phaleth simply shoehorn everything useful back into php 5.4 and that's it
  196. dreamreal or stop using php. I've still got two WP sites, and I'd love to move away from them. :/
  197. 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
  198. blue `flog bump` is coming
  199. phaleth what's a flog bump?
  200. blue well, flog currently detects release-sets, but there's no way to do it before you run `flog publish --dry-run`
  201. blue `flog bump --dry-run` shows you what other packages in a monorepo needs updating
  202. blue and `flog bump` edits the package.json files
  203. phaleth sounds like flog check-updates
  204. phaleth flog npm-check-updates -u
  205. phaleth repopack has 18551 lines of Bourne Shell in 92 files
  206. blue that's `flog upgrade`
  207. blue bump just makes sure your release set is sane
  208. phaleth ok
  209. phaleth robots.txt has a cool icon on repopack website
  210. phaleth can I change repopack's logo and favicon?
  211. blue sure
  212. blue if you rework the logo, I can't promise I'll accept, but you can change it
  213. blue so far the logos have been excellent, for rcompat and flog
  214. phaleth alright
  215. phaleth current logo is boring
  216. blue k
  217. phaleth the situation with templates in repopack project is also kinda crazy
  218. blue how do you mean?
  219. phaleth there are two app.html files that are same
  220. blue lol
  221. lioloc hey blue! Do you have a target release date for 0.43?
  222. 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
  223. blue I might still get lucky and manage to get it out today, but don't count on it
  224. lioloc no worries
  225. blue I know you're waiting for the webview stuff, haven't forgotten about you
  226. lioloc thanks
  227. blue dreamreal is also waiting for some stuff, I'm doing my best :-)
  228. lioloc i completely understand
  229. blue flog 0.1.7 is coming, that should unblock some rcompat bumping, which should unlock the last primate updates before the release
  230. blue lioloc: btw, flog is now openly available via https://flog.run
  231. nevet flog — predictable JavaScript package management
  232. lioloc oh neat!
  233. lioloc will try it now
  234. blue flog 0.1.7 is out!
  235. lioloc For a first project without a lock, create or edit package.json, then make the resolution step explicit:
  236. 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)
  237. blue yes, you run it the first time you start
  238. blue it creates flog.lock
  239. lioloc i'll probably do an flog-init zsh alias that does that
  240. blue flog is a bit different from other package managers. `flog install` does not modify the lock file, it materialises it only
  241. blue flog add / remove do change the lock file
  242. blue add is *not* an alias for install
  243. 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?
  244. blue that creates a lock file for a project without one
  245. blue materialising just means reading whatever is in flog.lock and installing that into node_modules
  246. lioloc oh
  247. lioloc maybe a flog init would be nice
  248. lioloc that would run "flog lock
  249. lioloc git diff -- package.json flog.lock
  250. lioloc flog install"
  251. lioloc anyway I will just create an alias for it for now
  252. blue sounds good, could you create a task at https://repopack.com/project/flog
  253. blue flog init could also create a package.json if missing, with some sane defaults
  254. blue like "type": "module"
  255. lioloc yeah would be nice
  256. 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
  257. blue https://flog.run/docs/release-sets#the-failure-this-prevents
  258. lioloc interesting
  259. lioloc very cool
  260. lioloc i think i created the task (i can't actually see anything on the dashboard)
  261. lioloc wait nvm maybe it was just slow
  262. lioloc yup i see it
  263. blue ya
  264. blue lioloc: what is this for: git diff -- package.json flog.lock ?
  265. lioloc its on the installation instructions, i just realised it wasn't useful either
  266. lioloc https://flog.run/docs
  267. nevet Documentation · flog
  268. blue ok, makes sense
  269. lioloc I just copied pasted it blindly without thinking
  270. lioloc be back later

Search posts