Re: Fixed-point scaling and lookup tables

2017-05-28 Thread Enrique Sánchez
Hi Lindsay, yes, Picolisp has been a great tool for me as well to explore algorithms and datastructures. You used the high level implementation of fastNth (took around 15 seconds) instead of the low level implementation (it took 3 seconds). In fact, taken both implementations in isolation

Re: Fixed-point scaling and lookup tables

2017-05-26 Thread Lindsay John Lawrence
> > For a much faster solution than the idx mechanism, look at this: > http://www.mail-archive.com/picolisp@software-lab.de/msg05199.html > > This is a very interesting idea. Thanks for pointing it out. Is there a formal name for the algorithm? For some more general purpose data structures I am

Re: Fixed-point scaling and lookup tables

2017-05-26 Thread Enrique Sánchez
For a much faster solution than the idx mechanism, look at this: http://www.mail-archive.com/picolisp@software-lab.de/msg05199.html It would be nice if Picolisp had this generic fastNth function, in order to solve this kind of lookup accesses. Enrique.

Re: Fixed-point scaling and lookup tables

2017-05-26 Thread Alexander Burger
Hi Lindsay, > implementation; from the performance benefit point of view. At least for > the two tables I cared most about.. multiplication and division. An idx, > while impressively fast, comes nowhere near native multiplication. True > In the meantime I thought I would share the code below

Re: Fixed-point scaling and lookup tables

2017-05-25 Thread Lindsay John Lawrence
nt once >>> you understand how they work. Still, it would be great to get more >>> scientific functions without have to link an external math lib, and get >>> 'real-time' performance when needed as well. >>> >>> http://wilsonminesco.com/16bitMathTables/

Re: Fixed-point scaling and lookup tables

2017-04-02 Thread Dean Gwilliam
nminesco.com/16bitMathTables/ is a nice write-up (link found >> on hacker news) of what you can do with fixed point, scaling and lookup >> tables... Also has links to code to generate the tables. >> >> I think the concepts and technique will transfer quite nicely to >> picolisp. We'll see... >> >> /Lindsay >> >> >

Re: Fixed-point scaling and lookup tables

2017-04-01 Thread Joh-Tob Schäg
et more scientific > functions without have to link an external math lib, and get 'real-time' > performance when needed as well. > > http://wilsonminesco.com/16bitMathTables/ is a nice write-up (link found > on hacker news) of what you can do with fixed point, scaling and lookup > tables..

Fixed-point scaling and lookup tables

2017-04-01 Thread Lindsay John Lawrence
://wilsonminesco.com/16bitMathTables/ is a nice write-up (link found on hacker news) of what you can do with fixed point, scaling and lookup tables... Also has links to code to generate the tables. I think the concepts and technique will transfer quite nicely to picolisp. We'll see... /Lindsay