You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ The simdjson library is an open project written in C++. Contributions are invite
5
5
agree to the project's license.
6
6
7
7
We have an extensive list of issues, and contributions toward any of these issues is invited.
8
-
Contributions can take the form of code samples, better documentation or design ideas.
8
+
Contributions can take the form of code samples, better documentation or design ideas.
9
9
10
10
In particular, the following contributions are invited:
11
11
@@ -32,6 +32,17 @@ We discourage the following types of contributions:
32
32
33
33
In short, most code changes should either bring new features or better performance. We want to avoid unmotivated code changes.
34
34
35
+
36
+
Specific rules
37
+
----------
38
+
39
+
We have few hard rules, but we have some:
40
+
41
+
- Printing to standard output or standard error (`stderr`, `stdout`, `std::cerr`, `std::cout`) in the core library is forbidden. This follows from the [Writing R Extensions](https://cran.r-project.org/doc/manuals/R-exts.html) manual which states that "Compiled code should not write to stdout or stderr".
42
+
- Calls to `abort()` are forbidden in the core library. This follows from the [Writing R Extensions](https://cran.r-project.org/doc/manuals/R-exts.html) manual which states that "Under no circumstances should your compiled code ever call abort or exit".
43
+
44
+
Tools, tests and benchmarks are not held to these same strict rules.
45
+
35
46
General Guidelines
36
47
----------
37
48
@@ -43,7 +54,6 @@ Contributors are encouraged to :
43
54
- Tools may report "problems" with the code, but we never delegate programming to tools: if there is a problem with the code, we need to understand it. Thus we will not "fix" code merely to please a static analyzer if we do not understand.
44
55
- Provide tests for any new feature. We will not merge a new feature without tests.
45
56
46
-
47
57
Pull Requests
48
58
--------------
49
59
@@ -68,7 +78,7 @@ intimidation. Everyone is welcome to contribute. If you have concerns, you can r
68
78
69
79
We welcome contributions from women and less represented groups. If you need help, please reach out.
70
80
71
-
Consider the following points when engaging with the project:
81
+
Consider the following points when engaging with the project:
72
82
73
83
- We discourage arguments from authority: ideas are discusssed on their own merits and not based on who stated it.
74
84
- Be mindful that what you may view as an aggression is maybe merely a difference of opinion or a misunderstanding.
auto force_implementation = available_implementations[force_implementation_name];
583
-
if (!force_implementation) {
584
-
fprintf(stderr, "SIMDJSON_FORCE_IMPLEMENTATION environment variable set to '%s', which is not a supported implementation name!\n", force_implementation_name);
auto force_implementation = available_implementations[force_implementation_name];
132
-
if (!force_implementation) {
133
-
fprintf(stderr, "SIMDJSON_FORCE_IMPLEMENTATION environment variable set to '%s', which is not a supported implementation name!\n", force_implementation_name);
0 commit comments