Submit

Back to the channels

#primate

  1. dreamreal blue: updating primate on BCN now
  2. dreamreal and deployed
  3. blue dreamreal: nice, and all the issues are fixed?
  4. dreamreal It's live.
  5. dreamreal Looks good so far.
  6. blue Lines changed: 302 additions & 1530 deletions
  7. blue dreamreal: we love see that
  8. blue phaleth: hi
  9. phaleth hi
  10. blue phaleth: primate 0.43 was completely published by flog, btw
  11. blue flog has thus shown production readiness, after taking over rcompat and primate management
  12. phaleth that means it's done
  13. phaleth no more development
  14. blue we're only getting started. `flog format` and `flog lint` are coming next, following closely by `flog test` and `flog test --coverage`
  15. blue flog will do everything that dog won't do
  16. phaleth heh, ok
  17. blue dog will be developed in cit
  18. blue (yes, that's a pun)
  19. phaleth cit?
  20. phaleth no project freeze for dog either?
  21. phaleth might need to wait for better clanker
  22. blue yeah, cit. this is my new systems language replacement for zig
  23. blue I think you'll love it phaleth
  24. phaleth :D
  25. phaleth so you read the article from the encore website and realized golang has limits
  26. blue well, let's talk plainly
  27. blue go has a runtime and poorly interfaces with c++/c
  28. blue rust is no-go
  29. blue zig is a dumpster fire, as the BCN article has demonstrated
  30. blue that leaves us with c++ (another can of worms) or c (too primitive)
  31. blue so we need cit
  32. phaleth well, but did you look into other so called c killers?
  33. blue I didn't, but honestly, I always wanted to do my own language so this is fine. the flog experiment has shown you can move faster than others and produce *better* software
  34. phaleth writing a programming lang and including useful enough standard lib targetting all platform is a huge undertaking
  35. blue I have features in flog I've wanted for years in pnpm, and the pnpm team didn't care
  36. blue also, remember I'm a hands-on guy. cit will only target linux/x64 for now
  37. blue I'm not interesting in optimising anything else
  38. blue interested*
  39. phaleth ok, but still, you might wanna take a look around
  40. blue if need a port, like freebsd/x64, that can be arranaged as well
  41. phaleth there is not only zig out there
  42. blue but we're not doing darwin or arm or windows. I'm simply not interested
  43. blue it just needs to run fast on servers
  44. blue also write now the cit prototype for dog is promising. dog in cit can now use both v8 and quickjs. one of the things I wanted for dog is the ability to switch engines
  45. blue right now*
  46. blue for dog/cit 0.1, I want to target v8/jsc/qjs
  47. blue I'm not yet sure if I'm actually going to release dog-v8, dog-jsc and dog-qjs, or make the engines dynamically loadable at runtime
  48. blue but those decisions are mostly operative
  49. phaleth targetting just v8 is fine, only that is actually useful
  50. phaleth and that's also huge undertaking
  51. blue jsc is pretty useful as well, as bun has shown
  52. blue and qjs for embedded
  53. blue I'm also realistic. after spending about two weeks on writing an engine for dog, I realised that was a waste of time and pivoted
  54. phaleth great
  55. blue phaleth: lioloc: dreamreal: flog 0.1.9 has been released
  56. blue flog can now seamlessly switch installation channels back-and-forth.
  57. blue flog update --channel unstable|stable
  58. blue default is stable (0.1.9). unstable builds automatically from master on every commit
  59. blue the capability used here isn't flog-specific; repopach has recently gained rolling release channels, and the ability to advertise channel lists
  60. blue repoopack*
  61. blue curl -fsS https://repopack.com/project/flog/releases/flog/channels
  62. blue curl -fsS https://repopack.com/project/flog/releases/flog/channels | jq '{default_channel, channels: [.channels[] | {id, name, kind, url}]}'
  63. blue pretty nice :)
  64. blue a release product can set a default channel; this is the mechanism used by flog to default to the stable channel
  65. blue channels are identified by both their name, and id; ids are stable, names might not be. consumers (like flog) are advised to record ids and use them to verify that has a channel hasn't been renamed and another channel of the same name has been created in its stead
  66. blue repopack will accept legacy channel use until dec 1, after which it will switch to enforcing providing an id when listing channels' contents (releases)
  67. blue this is denoted as well in the curl request I just showed
  68. blue "identity_required_after":"2026-12-01T00:00:00Z"
  69. blue that gives everyone enough time to upgrade to flog 0.1.9 until dec; flog 0.1.9 and master already use ids when querying channels for releases
  70. blue dreamreal: once I actually manage to get in most features that I need, I *might* actually release a flog major v1
  71. phaleth how do I set release channel when installing via trust me bro installer?
  72. blue FLOG_CHANNEL, but it's not yet supported, soon will be
  73. phaleth cool
  74. blue phaleth: fixed; you can now install directly from the unstable channel
  75. blue curl -fsSL https://flog.run/install | FLOG_CHANNEL=unstable sh
  76. phaleth nice, no more bothering with FLOG_VERSION
  77. blue nice
  78. blue dreamreal: article idea for BCN... how do deal with known unknowns, and how to backpatch properly. a problem I often encounter: I need a certain mechanism, but the current version of x doesn't support it yet; I *could* release a new version of x which will support the (say, update) mechanism going forever, but version current - 1 is borked
  79. blue I'm facing this problem with JSON schemas for the repopack api right now. I'd like to advertise the docs, programmatic (API) description, and expiredness, but I can *not* change the already public schema itself.
  80. blue with web requests, I think I've solved it pretty elegantly: I'll be using *headers* to communicate this data; I'm not touching the schema itself, I'm talking *about* the schema
  81. blue so I'll be sending things like Repopack-Schema-Expires: <isodate> and Repopack-Schema-Next: <number>
  82. blue whether the client respects them is another q, but it gives the client a way forward at least
  83. blue s/going forever/going forward/
  84. blue the advantage of using headers it that they are flexible; I can leave Repopack-Schema-Next out when there's no new schema yet
  85. dreamreal article How to deal with known unknowns
  86. nevet Idea session started: "How to deal with known unknowns". Use 'content <text>' to add body paragraphs, 'includeai' to enable AI summary/tags, 'done' to save, or 'cancel' to discard.
  87. dreamreal logs 20m
  88. nevet Added 14 log messages (last 20m) as content block #1.
  89. dreamreal includeai
  90. nevet AI summary enabled for "How to deal with known unknowns". On 'done', a generated summary and suggested tags will be appended to the draft.
  91. dreamreal So how is that different from versioned headers in the first place?
  92. blue idk what versioned headers are
  93. dreamreal https://dev.to/abhivyaktii/api-versioning-using-headers-a-clean-and-flexible-approach-218p
  94. blue also, http isn't always available in every scenario
  95. dreamreal not really solving the same problem
  96. dreamreal of course
  97. dreamreal I'm just trying to understand the problem space
  98. blue also, in my case, everything is anyway running under the /v0 namespace. the problem is even more nuanced; I want to version every JSON schema consumed / returned by an API call, separately. specifically in this case, listing channels even isn't part of the /v0 api route, but the concern is the same
  99. blue (and maybe it should be, but /v0 generally requires a token right now)
  100. dreamreal Well, okay, so restate the problem like I'm five.
  101. blue given a version of something is already out in the wild, how to communicate a new version without breaking it, and without requiring an update for that something
  102. blue as a generalised, non-specific concept
  103. bot Idea session timed out. Saved draft: "How to deal with known unknowns" (1 content block)
  104. dreamreal Okay. There's nuance there: is the update *additive* or demonstrative? Does it actually break what's already there?
  105. dreamreal screw you, nevet, will reload
  106. dreamreal does graphql or anything like that handle it?
  107. blue the update *can* be additive, but additive updates do not promise that side-effects won't happen. for example, if a client does a closed schema validation, additive updates will break it
  108. dreamreal blue: sure, and that's important but now always ESPECIALLY important for some formats like JSON
  109. dreamreal for gRPC or XML, obviously, yes
  110. blue closed schema validations can be a bad design, but we're not discussing the client design. we're discussing a universal system for telling you need to update. http headers could be a thing, but they're limited to http
  111. dreamreal okay, so what transports are in use for consideration?
  112. dreamreal if you don't have transport control - if you're actually doing transport neutrality - that's great, but then you're mutating the datastream itself to add context, like deciding JSON comments are real (they should be, but JSON, amirite?) or specifically adding data fields to JSON or ... whatever
  113. dreamreal SGMLs have this out of the box, which is why they are so strong, but then you're talking about a lot of verbosity and we all know that programmers despise verbosity even when it saves them from themselves
  114. systemfault Even if it would be nice... I think that allowing JSON in comments would only lead to shit...
  115. systemfault People would start using comments as serialization/validation metadata...
  116. dreamreal well, that's the problem. And JSON *does* allow comments... in the right variants of the sets of specs.
  117. dreamreal The various JSON comment specs *may even* be compatible with each other!
  118. systemfault Is there any valid spec beside the ECMA one and the RFC? (My knowledge may be outdated)
  119. dreamreal blue: I think this is a good idea for an article, FWIW
  120. dreamreal systemfault: valid spec for... what
  121. systemfault JSON
  122. dreamreal *agh*
  123. dreamreal yes
  124. dreamreal RJSON, JSON-LD, JSON5, a host of them, really
  125. systemfault They're all non-standard
  126. dreamreal it depends on what your definition of "standard" is
  127. systemfault I meant something like ECMA 404 or RFC 8259
  128. dreamreal RJSON, JSON5, JSON-LD are all quite easy to find in the wild
  129. systemfault They're derivative of JSON, not JSON.
  130. systemfault I'm fine with those
  131. dreamreal I hear you but that's like saying "are there any variants of the 2025 mazda 6 that are compatible with being the 2025 mazda 6 but aren't actual 2025 mazda 6s?"
  132. dreamreal "the spec" is the spec, and it's vastly insufficient, which is why things like JSON-LD, RJSON, JSON5 exist as separate variants
  133. dreamreal dang it, phaleth distracted blue
  134. systemfault </sad-trombone> :/
  135. phaleth blue: release a separate migrator tool, then error when encountering old version of the schema using the tool that produces the data in the first place
  136. phaleth mention the migrator tool in the error message
  137. blue I'm sorry dreamreal, life came up. I might be asking for something that's impossible: knowing in advance that you're gonna need to change things, and advertising that. I just wish there were side-channel capabilities that allowed you to do that even if you forgot to so to begin with, and already commited something to the public space
  138. dreamreal blue: yeah, in my experience that's almost entirely limited to the transport OR for things with placeholders already like SGML
  139. dreamreal whichi s NOT to say that it wouldn't be VERY nice to have
  140. blue imagine you had a standard where, you take the sha256 of an *executable*, and go with it somewhere. `go.forward.run?sha=<sha256>`
  141. blue but that requires people using it, and also a way to identify ownership of the sha256, so that the original author can add that info to the website
  142. dreamreal Yeah, and assumes that the sha256 is verifiable
  143. dreamreal and attested (verifiable is easy, attested not so much)
  144. blue yes. but such an idea, if it would work, would allow me to release a binary and then inform about upgrade paths *after the fact*, even if the binary has mechanisms for that, built-in
  145. blue it mostly raises coordination and security implications, I feel
  146. blue has no mechanisms*
  147. dreamreal *nod*
  148. blue one idea that could work is having, for example, repopack.com, as the publisher of the binary, provide such a mechanism. but that requires trust in repopack.com, and a way to proven that the binary was signed with repopack's key, which requires planning in advance
  149. blue however, if repopack can enforce binary signing, it could at least offer that forward pahth always, for binaries created on it
  150. blue (I'm specifically NOT talking about *rp* itself here; but about users creating and publishing binaries via repopack)
  151. dreamreal blue++ I'm trying to work out how to make this a useful article
  152. nevet blue now has karma of 5.
  153. blue dreamreal: yeah, it's hard

Search posts