Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename FOO.BAR packages to FOO/BAR #831

Closed
wants to merge 1 commit into from
Closed

Conversation

stylewarning
Copy link
Member

@stylewarning stylewarning commented Jul 12, 2022

This is a heavy renaming of all of our foo.bar package names to foo/bar.

The reason is that in old CMUCL and in Allegro CL, the foo.bar notation is for hierarchical packages, a non-standard Lisp feature that gives you nested namespaces. Moreover, the discrepancy between systems using / and packages using . had no good explanation.

This also removes all rename-package and conditionals on package-local-nicknames. We just assume you have it now.

This cleans up some existing nicknames due to issues/conflicts in the packages.lisp file

I'm a little worried I didn't replace everything in various scripts, dockerfiles, etc.

See also (required): quil-lang/qvm#294

@stylewarning
Copy link
Member Author

stylewarning commented Jul 12, 2022

tests won't pass (edit: here on github) because qvm won't be able to load

appleby
appleby previously approved these changes Jul 13, 2022

(defpackage #:cl-quil
(:nicknames #:quil)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sobrave

@@ -1353,7 +1336,7 @@
;;; access "internal" symbols. Having such symbols cataloged here is
;;; preferable to simply accessing any symbol whatsoever via full
;;; qualification, ala the use of package name "quil" with double
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
;;; qualification, ala the use of package name "quil" with double
;;; qualification, ala the use of package name "cl-quil" with double

boom. gottem.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also à la

smh

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

M-x ala-mode

@@ -2,7 +2,7 @@
;;;;
;;;; Author: A.J. Nyquist

(defpackage #:cl-quil.chip-library
(defpackage #:cl-quil/chip-library
(:use #:cl)
(:local-nicknames (:q :cl-quil)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:q -> :quil imho

karlosz
karlosz previously approved these changes Jul 14, 2022
notmgsk
notmgsk previously approved these changes Jul 14, 2022
Copy link
Member

@notmgsk notmgsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree w the great Appleby

@stylewarning
Copy link
Member Author

I'm not convinced this PR is a good idea anymore.

  1. It does a bunch of different changes all in one PR.
  2. It breaks ~/.../ format strings, which can't be fixed without hacks
  3. It's not clear hierarchical packages are actually causing problems per se.

@stylewarning stylewarning deleted the packageslash branch July 26, 2022 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants