Vladimir Panteleev
Vladimir Panteleev
> Yes, I know, and the existing Dub xxhash package implements the old old 32 bit algorithm. Meanwhile, there are two new 64 bit modes variants, and a 128bit variant....
> https://github.com/dlang/druntime/blob/master/src/core/internal/hash.d . I'm not sure if this is something even considerable since it will be kind of a breaking change, from a deterministic/reproducibility perspective. That should be fine, and...
> We should use `pkg-config` or similar stuff to manage those dependencies. This is a good option on Linux but is not generally available on some other platforms that D...
> Probably the name is not the best, suggest the others. Probably `writeNew` is better, as none of `write` and `append` have "File" in them. `create` would be even more...
Idea seems good. There is no cross-platform fopen flag to open the file only if it *doesn't* exist. glibc has the 'x' mode as a private extension, but that does...
> Well, read, write and append are quite generic too. Well, yes, but they're already there. `write` has been there since near the beginning, but it's still a nuisance in...
> Btw we could also add something like writeToExisting to ensure that file exists. But then we will need to add appendToExisting too. That would be too many functions. These...
> It can't be expressed with stdio FILE. There's "r+" surely, but it opens for both reading and writing. And "a+" creates file if it does not exist. Yep, I...
A `File` constructor (or `open` / `reopen` overload) which exposes all common POSIX an Windows flags and creates a `FILE*`/`File` using `fdopen` / `windowsHandleOpen` would be nice - it could...
> I guess by adding overload you mean the overload that uses some enum flag set instead of string open mode? Yep > But actually we can just expand string...