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

[WIP] Proof of concept for versioning the standard library #8309

Closed
wants to merge 23 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
0c79e1a
[WIP] Proof of concept for versioning the standard library
andralex Oct 31, 2021
128ee79
Rename v2 to v2alpha to clarify the transitioning process
andralex Nov 2, 2021
65d135f
Use std2xalpha instead of std.v2alpha
andralex Nov 3, 2021
db8e81f
Move unittests inside the canon template, make binaryFun available to…
andralex Nov 4, 2021
554757e
Make everything in std.algorithm.comparison versionable, except equal…
andralex Nov 4, 2021
50986af
Work around compiler bugs that cause linker errors
andralex Nov 6, 2021
adf1070
Pass the style checker
andralex Nov 8, 2021
fe51fb5
Stopped using v1 in unittest as per MoonlightSentinel's comment
dukc Dec 1, 2021
7af0af0
Add unittests to std2xalpha front and popFront
andralex Dec 7, 2021
88cde3e
Some unittests must be versioned to not run in betterC mode
andralex Dec 8, 2021
d2edb66
Get rid of most std.functional imports
andralex Dec 8, 2021
286c79b
Reset unittesting counter due to multiple possible versions
andralex Dec 8, 2021
97f89ab
Disable unittest in NoAutodecodeStrings version
andralex Dec 9, 2021
ce5dd97
Add stub for std2xalpha.algorithm.iteration
andralex Dec 13, 2021
5b0203c
Workaround for issue 22596
andralex Dec 13, 2021
5c358c6
Add popBack and ElementType to the symbols redefined in std2xalpha. M…
andralex Dec 15, 2021
564bc56
Add cacheBidirectional and back()
andralex Dec 15, 2021
f7aeb1d
Add hasLength and isRandomAccessRange
andralex Dec 16, 2021
afd6ef0
Canonicalize std.range.primitives, but not yet all imports within.
andralex Dec 16, 2021
702b974
Use manual aliasing for std.algorithm.comparison as well
andralex Dec 17, 2021
10d43ab
Redefine walkLength
andralex Dec 17, 2021
1f6ec6d
Version all unittests inside std.range.primitives.canon to not run un…
andralex Dec 17, 2021
50c3a72
Only run one unittest for std but not for std2x
andralex Dec 17, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions posix.mak
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ STD_PACKAGES = std $(addprefix std/,\
experimental/allocator/building_blocks experimental/logger \
format math net uni \
experimental range regex windows)
# std2x additions
STD_PACKAGES += std2xalpha $(addprefix std2xalpha/, algorithm \
range)

# Modules broken down per package

Expand Down Expand Up @@ -238,6 +241,10 @@ PACKAGE_std_regex = package $(addprefix internal/,generator ir parser \
backtracking tests tests2 thompson kickstart)
PACKAGE_std_uni = package
PACKAGE_std_windows = charset registry syserror
# std2x additions
PACKAGE_std2xalpha = functional meta traits typecons
PACKAGE_std2xalpha_algorithm = comparison iteration
PACKAGE_std2xalpha_range = primitives

# Modules in std (including those in packages)
STD_MODULES=$(call P2MODULES,$(STD_PACKAGES))
Expand Down
Loading