[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55248] [PATCH v3 8/9] gnu: chez-scheme-for-racket: Fix supported sy
From: |
Liliana Marie Prikler |
Subject: |
[bug#55248] [PATCH v3 8/9] gnu: chez-scheme-for-racket: Fix supported systems. |
Date: |
Mon, 09 May 2022 08:34:44 +0200 |
User-agent: |
Evolution 3.42.1 |
Am Montag, dem 09.05.2022 um 02:02 -0400 schrieb Philip McGrath:
> Once the issues in <https://racket.discourse.group/t/950> are
> resolved, 'chez-scheme-for-racket' and 'racket-vm-cs' will be able to
> run even on systems for which native code generation is not
> supported. It's not clear what behavior would be useful from 'nix-
> system->chez-machine': since the current implementation is flawed and
> easy to misuse, we remove it for now, replacing the remaining uses
> with 'racket-cs-native-supported-system?'.
I think you're again making a wrong assumption here. nix-system->chez-
scheme has purposes outside of solving supported-system.
> +(define* (racket-cs-native-supported-system? #:optional
> + (system
> + (or (%current-target-
> system)
> + (%current-
> system))))
> + "Can Racket's variant of Chez Scheme generate native code for
> SYSTEM?
> +Otherwise, SYSTEM can use only the ``portable bytecode'' backends."
> + (let ((chez-arch (target-chez-arch system))
> + (chez-os (target-chez-os system)))
> + (and (and=> (assoc-ref %chez-features-table chez-os)
> + ;; NOT assoc-ref: supported even if cdr is #f
> + (cut assoc chez-arch <>))
> + #t)))
I think this should rather be explicit in %chez-features-table. You
can prefix features that only work inside racket with 'racket-. Then,
this can be solved with memq just as with chez-scheme's supported-
systems in 7/9.
Cheers
- [bug#55248] [PATCH v3 3/9] gnu: chez-scheme: Update to 9.5.8., (continued)
- [bug#55248] [PATCH v3 3/9] gnu: chez-scheme: Update to 9.5.8., Philip McGrath, 2022/05/09
- [bug#55248] [PATCH v3 1/9] gnu: racket: Update to 8.5., Philip McGrath, 2022/05/09
- [bug#55248] [PATCH v3 4/9] gnu: chez-scheme: Refactor documentation phases., Philip McGrath, 2022/05/09
- [bug#55248] [PATCH v3 5/9] gnu: chez-scheme: Refactor configure phase and fix '--threads'., Philip McGrath, 2022/05/09
- [bug#55248] [PATCH v3 6/9] gnu: stex: Get machine type dynamically., Philip McGrath, 2022/05/09
- [bug#55248] [PATCH v3 7/9] gnu: chez-upstream-features-for-system: Improve implementation., Philip McGrath, 2022/05/09
- [bug#55248] [PATCH v3 7/9] gnu: chez-upstream-features-for-system: Improve implementation., Liliana Marie Prikler, 2022/05/09
- [bug#55248] [PATCH v3 7/9] gnu: chez-upstream-features-for-system: Improve implementation., Philip McGrath, 2022/05/09
- [bug#55248] [PATCH v3 7/9] gnu: chez-upstream-features-for-system: Improve implementation., Liliana Marie Prikler, 2022/05/09
- [bug#55248] [PATCH v3 8/9] gnu: chez-scheme-for-racket: Fix supported systems., Philip McGrath, 2022/05/09
- [bug#55248] [PATCH v3 8/9] gnu: chez-scheme-for-racket: Fix supported systems.,
Liliana Marie Prikler <=
- [bug#55248] [PATCH v3 8/9] gnu: chez-scheme-for-racket: Fix supported systems., Philip McGrath, 2022/05/09
- [bug#55248] [PATCH v3 8/9] gnu: chez-scheme-for-racket: Fix supported systems., Liliana Marie Prikler, 2022/05/09
- [bug#55248] [PATCH v3 8/9] gnu: chez-scheme-for-racket: Fix supported systems., Philip McGrath, 2022/05/12
- [bug#55248] [PATCH v3 8/9] gnu: chez-scheme-for-racket: Fix supported systems., Liliana Marie Prikler, 2022/05/12
- [bug#55248] [PATCH v3 9/9] gnu: chez-scheme-for-system: Adjust for bytecode backend., Philip McGrath, 2022/05/09
- [bug#55248] [PATCH 0/7] gnu: Update Racket to 8.5 and Chez Scheme to 9.5.8., Ludovic Courtès, 2022/05/09
- [bug#55248] [PATCH 0/7] gnu: Update Racket to 8.5 and Chez Scheme to 9.5.8., Philip McGrath, 2022/05/11
- [bug#55248] [PATCH v4 1/9] gnu: racket: Update to 8.5., Philip McGrath, 2022/05/12
- bug#55248: [PATCH 0/7] gnu: Update Racket to 8.5 and Chez Scheme to 9.5.8., Ludovic Courtès, 2022/05/12
[bug#55248] [PATCH v2 1/9] gnu: racket: Update to 8.5., Philip McGrath, 2022/05/08