Compare commits
No commits in common. "db75cc9afd21fe991a4b02196144773699b11ae9" and "0c22716635e1261a0cf24ff8516410140851adc7" have entirely different histories.
db75cc9afd
...
0c22716635
12
README.md
12
README.md
|
@ -262,16 +262,6 @@ Overall, I would caution that if you really care about the very far tails of dis
|
|||
|
||||
In fact, squiggle.c does have a few functions for algebraic manipulations of simple distributions at the end of squiggle.c. But these are pretty rudimentary, and I don't know whether I'll end up expanding or deleting them.
|
||||
|
||||
### Results of running clang-tidy
|
||||
|
||||
clang-tidy is a utility to detect common errors in C/C++. You can run it with:
|
||||
|
||||
```
|
||||
make tidy
|
||||
```
|
||||
|
||||
It emits one warning about something I already took care of, so by default I've suppressed it. I think this is good news in terms of making me more confident that this simple library is correct :).
|
||||
|
||||
## Related projects
|
||||
|
||||
- [Squiggle](https://www.squiggle-language.com/)
|
||||
|
@ -284,7 +274,7 @@ It emits one warning about something I already took care of, so by default I've
|
|||
|
||||
- [ ] Think about whether to write a simple version of this for [uxn](https://100r.co/site/uxn.html), a minimalistic portable programming stack which, sadly, doesn't have doubles (64 bit floats)
|
||||
- [ ] Point out that, even though the C standard is ambiguous about this, this code assumes that doubles are 64 bit precision (otherwise the xorshift should be different).
|
||||
- [ ] Document rudimentary algebra manipulations for normal/lognormal
|
||||
- [ ] Document rudimentary algebra manipulations
|
||||
- [ ] Think through whether to delete cdf => samples function
|
||||
- [ ] Think through whether to:
|
||||
- simplify and just abort on error
|
||||
|
|
Binary file not shown.
2
makefile
2
makefile
|
@ -17,5 +17,3 @@ format: squiggle.c squiggle.h
|
|||
$(FORMATTER) squiggle.c
|
||||
$(FORMATTER) squiggle.h
|
||||
|
||||
lint:
|
||||
clang-tidy squiggle.c -- -lm
|
||||
|
|
|
@ -217,7 +217,7 @@ struct box process_error(const char* error_msg, int should_exit, char* file, int
|
|||
exit(1);
|
||||
} else {
|
||||
char error_msg[MAX_ERROR_LENGTH];
|
||||
snprintf(error_msg, MAX_ERROR_LENGTH, "@, in %s (%d)", file, line); // NOLINT: We are being carefull here by considering MAX_ERROR_LENGTH explicitly.
|
||||
snprintf(error_msg, MAX_ERROR_LENGTH, "@, in %s (%d)", file, line);
|
||||
struct box error = { .empty = 1, .error_msg = error_msg };
|
||||
return error;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user