Repository navigation
factor-lang: 0.101 -> 0.102; Switch to pcre2; mark old versions for removal - #573955
Conversation
bc9d1c7 to
3f689c8
Compare
There was a problem hiding this comment.
Thanks for contributing to the documentation.
Follow the documentation style guide, especially:
- Show, don’t tell. Start with a minimal working example. Explain after the code.
- Avoid meta-commentary. Don’t write "This section explains how to…".
- Use present tense, imperative mood, and active voice. For example: "Run the command," not "The user should run the following command."
- Avoid vague references like "this" when the referent is unclear. Write "This command creates a folder," not "This will create a folder."
- Be direct. Avoid "should", "might", "typically", and "usually".
- Cut filler words like "simply", "just", "easily", and "basically". Use "to" instead of "in order to".
For larger changes, such as adding or removing whole sections, ask the NixOS documentation team for review.
|
Converting to draft, as the new factor release is just in! |
|
@spacefrogg tag me on the new 0.102 release to help review/test |
3f689c8 to
30404f0
Compare
30404f0 to
36347e5
Compare
|
@toastal Go ahead! |
|
I’m too tired to review the code, but I applied this PR’s patch via Nixtamal. Thru my overlays, my Factor application, darcs-hooks2, was built to success. @spacefrogg But just the high-level checks from the release notes:
|
| libGL, | ||
| libGLU, | ||
| gtk4, |
There was a problem hiding this comment.
A new GTK4 UI backend, now the default on 64-bit Linux; 32-bit Linux continues to use GTK3, which remains a build option on other supported Linux architectures.
64-bit Linux builds now select GTK4 by default; use -ui-backend=gtk3 when bootstrapping if GTK3 is required. 32-bit Linux uses GTK3 and does not support GTK4.
Seems like we could offer gtk3 as a option for all, but would be required to get it working with the listener for 32-bit.
There was a problem hiding this comment.
Nixpkgs does not support i686-linux on first tier anymore. So, I wouldn't consider it.
There was a problem hiding this comment.
There was a problem hiding this comment.
GTK3 works on 64-bit also if having GTK4 and GTK3 both available was desirable.
There was a problem hiding this comment.
we should be able to add at minimum i686-linux + aarch64-linux without too many changes? Looks like even RISC-V is being aimed at too!
There was a problem hiding this comment.
I wish I had hardware to donate to test these locally (I run Nix on my ARM phone & would run some Factor apps, but I would guess I can’t compile Factor on it given the CPU/RAM constraints)
There was a problem hiding this comment.
I would only consider it when I could also test it. Which I cannot.
There was a problem hiding this comment.
Is there a way to rely on CI passing? Since upstream says aarch64-* is supported, personally I would prefer it be open for someone to try it & if it breaks, they can send a patch. I mean there was that big build bug with assets a few version ago that was actually a long-standing bug we didn’t find til recently… Is this reasonable route?
There was a problem hiding this comment.
I will get to it right after this release. So, we have a whole release cycle for testing and before stabilising in the next release. How does that sound?
There was a problem hiding this comment.
Great. I have been pumped for so long to get aarch64 support.
| )).overrideAttrs | ||
| (oA: { | ||
| meta = (oA.meta or { }) // { | ||
| problems.removal.message = "Package to be removed in release following 26.11"; |
There was a problem hiding this comment.
Q: Is it worth keeping at least 2 versions around??
There was a problem hiding this comment.
(tho ideally stable + next would be those 2 😅)
There was a problem hiding this comment.
We had this conversation last year in a Nixpkgs PR and I also checked with upstream. Old versions do not receive updates. So, in conclusion, they should be retired after a grace period.
There was a problem hiding this comment.
tbh this should be handled like our other compilers and just drop them when new ones are released if there is no support. If people want the old ones, they can just pin a nixpkgs commit. But I digress.
|
POPCNT
It’s normal for this part to take a long time in my experience.
|
Switch to pcre2 and gtk4. Mark old versions for removal in release after next release.
Build staging images ahead of time for re-use during application deployment.
9e7ad81 to
91ba855
Compare
|
Good news! I was able to attack the caching problem for application deployment. Introducing a @mrjbq7 Could you take a look at |
Is this part of the initial installation ? If so, I guess you're doing a "fresh bootstrap"? It could take 90 seconds (Apple M6) or 5+ minutes (slow intel chip). In a terminal, you should not see it stuck, but instead printing |
|
I realized that after the fact (decided to use my power to read for once; deploy does bootstraps everything and the current Nix builder (before |
The deploy tool has cached staging images for common configurations (e.g., io, or io+ui, io+ui+math) so once they are created they can be re-used. Which speeds up deploy (compiling Factor vocabularies to an output executable). This has always been an area that's had less focus than running Factor vocabularies inside of a Factor instance typically executed e.g., by |
|
Nix doesn't cache files created during build time. |
|
That is correct! @mrjbq7 could you, maybe, come up with a small factor application that triggers the generation of all possible staging images. What I do right now (see |
Yes, but can you help me understand why (our current) runtime caching approach doesn't work for Nix? We currently store them in |
|
Nix can’t read/write outside of the (readonly-to-users) Nix store (usually @ |
|
So you can't write anything at run-time to a place that is reliably readable from run-to-run? Edit: it sounds like the primary motivation is shared staging images across multiple users. Edit 2: I guess my other reaction is that this is to make |
|
I guess I should probably get Nix installed and try this myself, it sounds a little funky and I feel like I have to ask basic questions of you guys, sorry. |
|
In Factor 0.103, I added If you'd like to grab and add a patch (factor/factor@60339b1). |
|
If you are setting it up, the official tutorials are a better place to start than random blogs. I get scared thinking about the (anti-)patterns they teach 😂 |
|
As a distribution, we have to think differently than an individual developer.
From a developer's perspective, it is perfectly fine to let Factor write to XDG_CACHE_HOME on occasion. As a distribution, we have to observe build hygiene. We can neither trust data we have not verifiably built ourselves, nor can we put data at users' places, because we cannot imply what users have to do with it. So, we are stuck with our own paths.
Building and caching all staging images is the best thing to do, because it only has to be done once and can be cached across systems. So, effectively, nobody will ever have to do that locally. They will just download the ready-made build product from the nix cache.
|
|
Breaking changes freeze is tomorrow, and we're following through with pcre removal. |
|
This PR is ready to merge from my side. The latest discussion is optimization that can be left for later.
|
|
I have been running this patch for a while & it has been working as is
for me. I can also corroborate that the discussions happening here are
more about things that can be done later (& will be easier after merging
this new base anyhow).
|
|
I'm testing it out, and if works I'll hit the button |
RossSmyth
left a comment
There was a problem hiding this comment.
- factor-lang
- factorPackages-0_102.bresenham
- factor-lang.tests
- factorPackages-0_102.factor-minimal
- factorPackages-0_102.factor-minimal-gui
- factorPackages-0_102.factor-no-gui
- ran
factor-langand played with it for a bit
New Factor release introducing:
Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.