Re: [fricas-devel] Haskell, Functor, Monad, Maybe

2016-10-19 Thread Bill Page
On 19 October 2016 at 14:51, Kurt Pagani wrote: > A great source where my half-baken knowledge about monads comes from is: > > https://ncatlab.org/nlab/show/monad > https://ncatlab.org/nlab/show/monad+%28in+computer+science%29 > > Especially the section "For imperative programs in functional progr

Re: [fricas-devel] random from IntegerNumberSystem

2016-10-19 Thread Kurt Pagani
PI->NNI ? Awkward indeed. In other langs: C++ int rand (void); Returns a pseudo-random integral number in the range between 0 and RAND_MAX . Python import randomprint(random.randint(-9,9)) PHP int *rand* ( int $min , int $max ) CL (where Fricas' random is

Re: [fricas-devel] Re: Viewports, Draw

2016-10-19 Thread Kurt Pagani
Thank you for the hint. I wasn't aware of and it's useful anyway. > As a principle, is it better to use the lisp or to (hand) translate to spad? I can't say in general, but IMO math related code in spad, UI/tools related things in lisp. I rate the lisp background as a merit ;) On 19 October 20

Re: [fricas-devel] Re: Viewports, Draw

2016-10-19 Thread Kurt Pagani
You're perfectly right. I recognized too late that only 27 Colors are available: (1) -> color(28) >> Error detected within library code: Color should be in the range 1..27 Still, it's a mystery. In the first place I thought it was HSV, but "hue" here seems to me entirely unrelated. Now I g

Re: [fricas-devel] Haskell, Functor, Monad, Maybe

2016-10-19 Thread Kurt Pagani
A great source where my half-baken knowledge about monads comes from is: https://ncatlab.org/nlab/show/monad https://ncatlab.org/nlab/show/monad+%28in+computer+science%29 Especially the section "For imperative programs in functional programming" in the page of the last link will describe what I m

Re: [fricas-devel] Re: Viewports, Draw

2016-10-19 Thread Mark Clements
Quicklisp has cl-colors; see also https://github.com/tpapp/cl-colors. Dependencies include anaphora, alexandria and let-plus. As a principle, is it better to use the lisp or to (hand) translate to spad? -- Mark On 10/19/2016 05:06 AM, oldk1331 wrote: >> I'm trying to map draw options to frontend