Skip to content

Commit a7c2c43

Browse files
authored
Update Python and macOS version (#49)
- Update Python to version 3.13 - Update macOS version to macOS 15 (Sequoia)
2 parents e8ef33d + 9221585 commit a7c2c43

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+234
-131
lines changed

.github/workflows/benchmark.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ jobs:
2424
#
2525
# To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list.
2626
matrix:
27-
os: [ubuntu-latest, macos-14]
27+
os: [ubuntu-latest, macos-15]
2828
build_type: [Release]
2929
c_compiler: [clang]
3030
include:
3131
- os: ubuntu-latest
3232
c_compiler: clang
3333
cpp_compiler: clang++
3434
cmake_extra_options: '-GNinja'
35-
- os: macos-14
35+
- os: macos-15
3636
c_compiler: clang
3737
cpp_compiler: clang++
3838
cmake_extra_options: '-GNinja'
@@ -62,7 +62,7 @@ jobs:
6262
uses: actions/setup-python@v5
6363
with:
6464
cache: 'pip'
65-
python-version: '3.12'
65+
python-version: '3.13'
6666

6767
- name: Install dependencies
6868
run: pip install .

.github/workflows/cmake-multi-platform.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- "**.cpp"
1010
- "**.hpp"
1111
- "**.py"
12+
- "**.yml"
1213

1314
pull_request:
1415
branches: ["main"]
@@ -25,10 +26,10 @@ jobs:
2526
#
2627
# To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list.
2728
matrix:
28-
os: [ubuntu-latest, windows-2019, macos-12, macos-13, macos-14]
29+
os: [ubuntu-latest, windows-2019, macos-13, macos-14, macos-15]
2930
build_type: [Release]
3031
c_compiler: [clang, cl]
31-
python_version: ['3.10', '3.11', '3.12']
32+
python_version: ['3.11', '3.12', '3.13']
3233
include:
3334
- os: windows-2019
3435
c_compiler: cl
@@ -41,15 +42,15 @@ jobs:
4142
# - os: macos-latest
4243
# c_compiler: gcc
4344
# cpp_compiler: g++
44-
- os: macos-12
45+
- os: macos-13
4546
c_compiler: clang
4647
cpp_compiler: clang++
4748
cmake_extra_options: '-GNinja'
48-
- os: macos-13
49+
- os: macos-14
4950
c_compiler: clang
5051
cpp_compiler: clang++
5152
cmake_extra_options: '-GNinja'
52-
- os: macos-14
53+
- os: macos-15
5354
c_compiler: clang
5455
cpp_compiler: clang++
5556
cmake_extra_options: '-GNinja'
@@ -58,12 +59,12 @@ jobs:
5859
c_compiler: clang
5960
- os: ubuntu-latest
6061
c_compiler: cl
61-
- os: macos-12
62-
c_compiler: cl
6362
- os: macos-13
6463
c_compiler: cl
6564
- os: macos-14
6665
c_compiler: cl
66+
- os: macos-15
67+
c_compiler: cl
6768
steps:
6869
- uses: actions/checkout@v4
6970

@@ -79,12 +80,12 @@ jobs:
7980
echo "CMAKE_OPTIONS=${{ matrix.cmake_extra_options }}" >> "$GITHUB_ENV"
8081
8182
- name: Set up Homebrew
82-
if: ${{ matrix.os == 'macos-12' || matrix.os == 'macos-13' || matrix.os == 'macos-14' || matrix.os == 'ubuntu-latest'}}
83+
if: ${{ matrix.os == 'macos-13' || matrix.os == 'macos-14' || matrix.os == 'macos-15' || matrix.os == 'ubuntu-latest'}}
8384
id: set-up-homebrew
8485
uses: Homebrew/actions/setup-homebrew@master
8586

8687
- name: Install LLVM
87-
if: ${{ matrix.os == 'macos-12' || matrix.os == 'macos-13' || matrix.os == 'macos-14' || matrix.os == 'ubuntu-latest' }}
88+
if: ${{ matrix.os == 'macos-13' || matrix.os == 'macos-14' || matrix.os == 'macos-15' || matrix.os == 'ubuntu-latest' }}
8889
run: |
8990
brew install llvm ninja
9091
echo "PATH=$(brew --prefix llvm)/bin:$PATH" >> "$GITHUB_ENV"

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ To add a new feature:
3636
```
3737
Steppable/
3838
├── include/fn/
39-
│ └── basicArithm.hpp [ Feature declaration ]
39+
│ └── calc.hpp [ Feature declaration ]
4040
├── src/abc/
4141
│ ├── abcReport.hpp [ Output declaration ]
4242
│ ├── abc.cpp [ Feature definition ]
@@ -48,7 +48,7 @@ To add a new feature:
4848

4949
```diff
5050
// abc.cpp
51-
+ #include "fn/basicArithm.hpp"
51+
+ #include "fn/calc.hpp"
5252
+ #include "abcReport.cpp"
5353
+ #include <...> // Other include files
5454

@@ -77,10 +77,10 @@ To add a new feature:
7777
+ std::string reportAbc();
7878
```
7979

80-
7. Add the following in the `basicArithm.hpp` file:
80+
7. Add the following in the `calc.hpp` file:
8181

8282
```diff
83-
// basicArithm.hpp
83+
// calc.hpp
8484
std::string division(...);
8585
+ std::string abc(const std::string_view& in);
8686
```

Steppable.sublime-project

Lines changed: 2 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -5,65 +5,11 @@
55
"path": ".",
66
},
77
{
8-
"path": "~/Desktop/Steppable.wiki"
9-
},
8+
"path": "../Steppable.wiki",
9+
},
1010
],
1111
"debugger_configurations":
1212
[
13-
{
14-
"type": "lldb",
15-
"request": "launch",
16-
"name": "Add",
17-
"program": "${folder}/build/src/add",
18-
"args": ["1", "9", "+steps", "+profile"],
19-
"cwd": "${folder}/build",
20-
"pre_debug_task": "CMake Build",
21-
},
22-
{
23-
"type": "lldb",
24-
"request": "launch",
25-
"name": "Subtract",
26-
"program": "${folder}/build/src/subtract",
27-
"args": ["32", "19", "+steps"],
28-
"cwd": "${folder}/build/src",
29-
"pre_debug_task": "CMake Build",
30-
},
31-
{
32-
"type": "lldb",
33-
"request": "launch",
34-
"name": "Power",
35-
"program": "${folder}/build/src/power",
36-
"args": ["32", "19", "+steps"],
37-
"cwd": "${folder}/build",
38-
"pre_debug_task": "CMake Build",
39-
},
40-
{
41-
"type": "lldb",
42-
"request": "launch",
43-
"name": "Comparison",
44-
"program": "${folder}/build/src/comparison",
45-
"args": ["4", "5"],
46-
"cwd": "${folder}/build",
47-
"pre_debug_task": "CMake Build",
48-
},
49-
{
50-
"type": "lldb",
51-
"request": "launch",
52-
"name": "Division",
53-
"program": "${folder}/build/src/division",
54-
"args": ["4", "5"],
55-
"cwd": "${folder}/build",
56-
"pre_debug_task": "CMake Build",
57-
},
58-
{
59-
"type": "lldb",
60-
"request": "launch",
61-
"name": "Multiply",
62-
"program": "${folder}/build/src/multiply",
63-
"args": ["4", "5"],
64-
"cwd": "${folder}/build/src",
65-
"pre_debug_task": "CMake Build",
66-
}
6713
],
6814
"debugger_tasks":
6915
[

include/fn/basicArithm.hpp renamed to include/fn/calc.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
**************************************************************************************************/
2222

2323
/**
24-
* @file basicArithm.hpp
24+
* @file calc.hpp
2525
* @brief This file contains functions for basic arithmetic operations on strings.
2626
*
2727
* The functions in this file perform various arithmetic operations on strings, such as absolute value,

include/fn/calculus.hpp

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,23 @@
3131
*/
3232
namespace steppable::__internals::calculus
3333
{
34+
/**
35+
* @brief Calculates the Romberg integration of f.
36+
*
37+
* @param f The function to integrate. It takes in one argument and returns a string.
38+
* @param a Lower bound of integral.
39+
* @param b Upper bound of integral.
40+
* @param max_steps Maximum steps of integral. More steps can produce higher accuracy, but takes a longer time.
41+
* @param decimals The decimals to output.
42+
* @return The result of the integral.
43+
*
44+
* @note The function must take in exactly ONE argument, in the form of std::string. The output must be a
45+
* std::string object. Wrap your function in a lambda expression if it takes more arguments, or outputs in a
46+
* different type.
47+
*/
3448
std::string romberg(const std::function<std::string(std::string)>& f,
3549
const std::string& a,
3650
const std::string& b,
3751
int max_steps,
3852
int decimals);
39-
}
53+
} // namespace steppable::__internals::calculus

lib/bindings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* SOFTWARE. *
2121
**************************************************************************************************/
2222

23-
#include "fn/basicArithm.hpp"
23+
#include "fn/calc.hpp"
2424
#include "fraction.hpp"
2525
#include "number.hpp"
2626

questions

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
1. why you guys decide to do this
2+
2. how long have you been working on this
3+
3. what are your goals / objectives
4+
4. what can i benefit from sponsoring you
5+
5. why is it meaningful for me to sponsor
6+
6. how do you handle failure of this competition
7+
7. what risks are there for me
8+
8. how much do i need to provide
9+
9. how do you spend my money
10+
10. what is so special about your car design and why do you think it will win
11+
11. what are your other sponsors
12+
12. who are your competitors? how much is your advantage?
13+
13. introduce yourself (should be the first, i forgot)
14+
14. why isn’t there a co-founder (yes this is a real question)
15+
15. can i see your finished product?
16+
16. what are your biggest weaknesses
17+
17. what are your biggest strengths
18+
18. how do you describe your product to other sponsors?
19+
19. how do i give you money (answer is to give that to my bank account)
20+
20. if everything goes right, where do you see your team in a year?
21+
21. what if you’re forced to stop doing this?
22+
22. do you have passion and determination?
23+
23. what if you run out of money
24+
24. how do you handle unexpected situations
25+
25. what do you need that you don’t have
26+
26. Do you need regulatory approval or any accreditation?
27+
27. what are the problems you’re facing?
28+
28. why the name “pandurance”
29+
29. how can i find more about you
30+
30. what are you doing to attract more sponsors?

res/translations/atan2.stp_strings

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

res/translations/en-US/atan2.stp_localized

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

res/translations/zh-HK/atan2.stp_localized

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/base/baseConvert/baseConvert.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
#include "argParse.hpp"
3232
#include "baseConvertReport.hpp"
33-
#include "fn/basicArithm.hpp"
33+
#include "fn/calc.hpp"
3434
#include "getString.hpp"
3535
#include "output.hpp"
3636
#include "symbols.hpp"

src/base/decimalConvert/decimalConvert.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*/
2828
#include "argParse.hpp"
2929
#include "decimalConvertReport.hpp"
30-
#include "fn/basicArithm.hpp"
30+
#include "fn/calc.hpp"
3131
#include "getString.hpp"
3232
#include "util.hpp"
3333

src/calc/abs/abs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include "getString.hpp"
3434
#include "util.hpp"
3535

36-
#include <fn/basicArithm.hpp>
36+
#include <fn/calc.hpp>
3737
#include <iostream>
3838
#include <string>
3939

0 commit comments

Comments
 (0)