-
Notifications
You must be signed in to change notification settings - Fork 1
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
(stdlib) Add C++-based stdlib project #407
Conversation
(The CI failure is because of #398; we might have to disable the |
{ | ||
fmt::println("{}", d); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
☝️ This is one of the more important parts in this PR. It features the implementation of the perlang::print()
methods, with various overloads for the different primitive types we support.
4816814
to
bb8eb0b
Compare
9d8b80d
to
7afea32
Compare
# (PERLANG_EXPERIMENTAL_COMPILATION=true) | ||
- name: Rebuild stdlib | ||
run: make stdlib | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This runs the compilation of the stdlib. We could also run the tests, but they are not fully working yet (and even when they are, there will be some more work to get them working on macOS). Let's see if we merge this now already or if we fix this first.
CcTest* prev_; | ||
}; | ||
|
||
#endif // ifndef CCTEST_H_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now, let's be a bit lazy and use the cctest
test helper from https://github.com/google/double-conversion. In the long run, we should switch to https://github.com/catchorg/Catch2.
e1e30ae
to
db46411
Compare
db46411
to
9b5c083
Compare
This is part of the overall #406 issue (
Implement compiled mode for Perlang
). Not ready for merge, but we're getting there, slowly but steadily...