forked from cadey/xesite
ninja-edit
This commit is contained in:
parent
a029b3c1aa
commit
fb969353ae
|
@ -358,32 +358,6 @@ _libcurl provides for free_.
|
||||||
I wasn't expecting it to have HTTP support out of the box, but even then I still
|
I wasn't expecting it to have HTTP support out of the box, but even then I still
|
||||||
feel disappointed.
|
feel disappointed.
|
||||||
|
|
||||||
## Random Number Generation
|
|
||||||
|
|
||||||
Randomness is important for programming languages to get right. Here is how V
|
|
||||||
implements randomness:
|
|
||||||
|
|
||||||
```
|
|
||||||
module rand
|
|
||||||
|
|
||||||
#include <time.h>
|
|
||||||
// #include <stdlib.h>
|
|
||||||
fn seed() {
|
|
||||||
# time_t t;
|
|
||||||
# srand((unsigned) time(&t));
|
|
||||||
}
|
|
||||||
|
|
||||||
fn next(max int) int {
|
|
||||||
# return rand() % max;
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
I mean I guess this is technically a valid implementation of randomness, but
|
|
||||||
this is how you get security vulnerabilities because people
|
|
||||||
[thought random values were random](https://www.rapid7.com/db/vulnerabilities/openssl-debian-weak-keys).
|
|
||||||
A correct implementation is commented out. Yay.
|
|
||||||
|
|
||||||
## Suggestions for Improvement
|
## Suggestions for Improvement
|
||||||
|
|
||||||
I would like to see V be a tool for productive development. I can't see it doing
|
I would like to see V be a tool for productive development. I can't see it doing
|
||||||
|
@ -424,9 +398,6 @@ back your claim. If there is no code to back it up, you have backed yourself
|
||||||
into a corner where you are looking like you are lying. I would have loved to
|
into a corner where you are looking like you are lying. I would have loved to
|
||||||
benchmark V's web framework against Nim's Jester and Go's net/http, but I can't.
|
benchmark V's web framework against Nim's Jester and Go's net/http, but I can't.
|
||||||
|
|
||||||
Please fix the implementation of randomness. Holy crap that is a billion
|
|
||||||
security bugs waiting to happen.
|
|
||||||
|
|
||||||
Thanks for reading this far. I hope this feedback can help make V a productive
|
Thanks for reading this far. I hope this feedback can help make V a productive
|
||||||
tool for programming. It's a shame it seems to have been hyped so much for
|
tool for programming. It's a shame it seems to have been hyped so much for
|
||||||
comparatively so little as a result. The developer has been hyping and selling
|
comparatively so little as a result. The developer has been hyping and selling
|
||||||
|
|
Loading…
Reference in New Issue