Re: [sqlite] Go & SQLite asserts

2019-04-29 Thread Russ Cox
On Mon, Apr 29, 2019 at 3:28 PM Richard Hipp wrote: > On 4/29/19, Richard Hipp wrote: > > > > Because assert() can be and is commonly misused, some programming > > language theorists and designers look with disfavor on the whole idea > > of assert(). For example, the Go programming language omit

Re: [sqlite] Go & SQLite asserts

2019-04-29 Thread Richard Hipp
On 4/29/19, Russ Cox wrote: > > Thanks very much for a productive, enlightening discussion, and for making > the changes. > Thanks for bringing up your concerns and helping to make the article better. In case you had not previously noticed, communicating with other humans is not my forte and I c

Re: [sqlite] Go & SQLite asserts

2019-04-29 Thread Richard Hipp
On 4/29/19, Richard Hipp wrote: > > Because assert() can be and is commonly misused, some programming > language theorists and designers look with disfavor on the whole idea > of assert(). For example, the Go programming language omits a built-in > assert(), since the Go developers feel that the h

Re: [sqlite] Go & SQLite asserts

2019-04-29 Thread Richard Hipp
On 4/29/19, Russ Cox wrote: > I were designing a new language, > the question of adding all three - invariant(x), always(x), and never(x) - > as a collective replacement for assert(x) would be an interesting thing to > consider. There are benefits to having invariant(x) as a built-in in the langu

Re: [sqlite] Go & SQLite asserts

2019-04-29 Thread Richard Hipp
On 4/29/19, Russ Cox wrote: > > Because assert() can be and is commonly misused, some programming language > theorists and designers look with disfavor on the whole idea of > assert(). For example, the Go programming language omits a built-in assert, > to eliminate its frequent misuse to mean ALWA

Re: [sqlite] Go & SQLite asserts

2019-04-29 Thread Russ Cox
On Mon, Apr 29, 2019 at 11:49 AM Richard Hipp wrote: > On 4/29/19, Russ Cox wrote: > > > > That page's section 1.1 Philosophy of Assert describes the SQLite > project's > > philosophy about three different kinds of assertions - assert, ALWAYS, > and > > NEVER - which I found very helpful and pri

Re: [sqlite] Go & SQLite asserts

2019-04-29 Thread Richard Hipp
On 4/29/19, Russ Cox wrote: > > That page's section 1.1 Philosophy of Assert describes the SQLite project's > philosophy about three different kinds of assertions - assert, ALWAYS, and > NEVER - which I found very helpful and principled and would consider > pointing other developers at when the to

[sqlite] Go & SQLite asserts

2019-04-29 Thread Russ Cox
Hi all, https://www.sqlite.org/src/wiki?name=Bug+Reports said to send bug reports here; this is a documentation bug report for https://www.sqlite.org/assert.html#philosophy_of_assert_. That page's section 1.1 Philosophy of Assert describes the SQLite project's philosophy about three different kin

Re: [sqlite] althttpd.c check-in: efdc1b8e66

2019-04-29 Thread Warren Young
> On Apr 29, 2019, at 7:18 AM, Richard Hipp wrote: > > On 4/29/19, Jose Isaias Cabrera wrote: >> >> I know I can probably use cygwin to run this tool, but plain Windows is not >> an option, right? >> > > Althttpd is built around fork(). Windows does not support fork(). > The cygwin implement

Re: [sqlite] althttpd.c check-in: efdc1b8e66

2019-04-29 Thread Jose Isaias Cabrera
Thanks, Dr. Hipp. Dr. Richard Hipp, on Monday, April 29, 2019 09:18 AM wrote... On 4/29/19, Jose Isaias Cabrera wrote: > > I know I can probably use cygwin to run this tool, but plain Windows is not > an option, right? > Althttpd is built around fork(). Windows does not support fork(). The cy

Re: [sqlite] althttpd.c check-in: efdc1b8e66

2019-04-29 Thread Richard Hipp
On 4/29/19, Jose Isaias Cabrera wrote: > > I know I can probably use cygwin to run this tool, but plain Windows is not > an option, right? > Althttpd is built around fork(). Windows does not support fork(). The cygwin implementation of fork() is convoluted, and I suspect slow, though I have not

Re: [sqlite] althttpd.c check-in: efdc1b8e66

2019-04-29 Thread Jose Isaias Cabrera
I know I can probably use cygwin to run this tool, but plain Windows is not an option, right? Richard Hipp, on Saturday, April 27, 2019 04:49 PM wrote... On 4/27/19, Jungle Boogie wrote: > > Would you ever consider adding support to list an index of a directory? > http://127.0.0.1/files would

Re: [sqlite] Regarding sqlite3 reliability in using in service oriented architecture

2019-04-29 Thread Lullaby Dayal
((Your post misses a detail which changes the answers to your questions: are these threads each using their own connection or do they share one connection ? )) Please find my test program below. I haven't used any such advanced features in my code unless it is already configured in my prebuilt libr