This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| constexpr bool is_digit(char32_t c) noexcept { | |
| return c >= '0' && c <= '9'; | |
| } | |
| constexpr bool is_alpha(char32_t c) noexcept { | |
| return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z'); | |
| } | |
| constexpr bool is_alphanum(char32_t c) noexcept { | |
| return is_digit(c) || is_alpha(c); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <cmath> | |
| #include <future> | |
| #include <chrono> | |
| struct Moon | |
| { | |
| int pos = 0; | |
| int vel = 0; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # syntax stuff | |
| # declare type kind | |
| deftype Integer as | |
| { | |
| int8 or | |
| int16 or | |
| int32 or | |
| int64 or | |
| int128 or |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <vector> | |
| #include <unordered_map> | |
| #include <set> | |
| #include <memory> | |
| #include <iostream> | |
| #include <type_traits> | |
| #include <atomic> | |
| #include <cassert> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <string> | |
| #include <cstring> | |
| #include <vector> | |
| #include <unordered_map> | |
| #include <tuple> | |
| #include <iostream> | |
| #include <iomanip> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| char32_t getuchar() | |
| { | |
| int inp = getchar(); | |
| if (inp == EOF) | |
| return 0; | |
| if (!(inp & 0x80)) | |
| return (char32_t)inp; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Processor Information: | |
| Vendor: AuthenticAMD | |
| CPU Family: 0x15 | |
| CPU Model: 0x2 | |
| CPU Stepping: 0x0 | |
| CPU Type: 0x0 | |
| Speed: 4000 Mhz | |
| 8 logical processors | |
| 8 physical processors | |
| HyperThreading: Unsupported |