Re: Pseudo Random Number Generation across PicoLisp implementations

2015-04-26 Thread Alexander Burger
H Christophe, final static long initSeed(Any x) { Means it gives back a signed 64 bits integer for anything we threw at it (called x). Yes. long n; for (n = 0; x instanceof Cell; x = x.Cdr) n += initSeed(x.Car); Is a recursive trick that walks through x (if walkable, ie Cell) and

Re: MySQL native C wrapper

2015-04-26 Thread Jakob Eriksson
Good initiative - the more ways to connect, the better, IMHO. On 26/04/15 23:00, Henrik Sarvell wrote: Hi list, I'm announcing this at a very early stage, earlier than I would like to, in case someone else is also thinking about doing a MySQL wrapper, to avoid duplicate work. I'm not doing

MySQL native C wrapper

2015-04-26 Thread Henrik Sarvell
Hi list, I'm announcing this at a very early stage, earlier than I would like to, in case someone else is also thinking about doing a MySQL wrapper, to avoid duplicate work. I'm not doing this because I think that MySQL is in any way a better alternative than the native DB functionality, rather

Re: Pseudo Random Number Generation across PicoLisp implementations

2015-04-26 Thread Christophe Gragnic
On Sun, Apr 26, 2015 at 5:48 PM, Alexander Burger a...@software-lab.de wrote: Hi Christophe, […] return n=0? n*2 : -n*2+1; This ensures the return value is non negative (?). But why would not the result overflow? Yes, it may overflow. The above operation is to keep the sign bit in bit

Re: MySQL native C wrapper

2015-04-26 Thread Alexander Williams
Henrik this is great!! I've been looking for something like this but it was a little lower on my priority list. Thank you! I find it interesting that you wrote some C to initiate the mysql connection Would it be easier to do it in PicoLisp and simply use libmysqlclient.so ? On 2015-04-27, at