Results 238 comments of Aleksey Khudyakov

Generating floats in [0,1] (without saying whether 0 is included or not) is long standing convention. So it fallsright into > Random instance that generates complex ring and unit disk...

Rectangle at least has advantage of working same way as tuples.

I agree that documentation is rather confusing and assumes that reader is familiar with `memcpy`/`memmove` and their corresponding gotchas > **copy** > Copy a vector from source to destination. Both...

AFAIU R uses PRNG with global state. It's not a problem since R is single threaded. But in haskell you'll have to guard PRNG state with lock which will lead...

Connection is just a few layers of newtypes over bare `Ptr` which is malloc'd by sqlite during `open` and freed in `close` Challenge in adding "closed" flag I think is...

Every database operation should check whether connection is already closed or not. Otherwise it will start working with already free chunk of memory and _will_ wreak malloc's data structures. Original...

IORef won't give you thread safety. If connection is used in multiple threads it's still possible to get use after free. For example two threads racing ``` Th1. [ Check...

`direct-sqlite` is rather thin wrapper over C so it looks fair to just add warning in documentation and let user deal with it. It's in the spirit of C I...

I want to point out that `(a -> m a) -> t a -> m (t a)` is not isomorphic to `(a -> m a) -> Mutable t a ->...

I want to stress that linear API is not going to _replace_ non-linear API, it's going to exists alongside. And _this_ PR expands nonlinear API so concerns about linear API...