Search found 36 matches

by speech impediment
Tue Nov 17, 2009 9:15 pm
Forum: Common Lisp
Topic: Common Lisp on the Iphone/Ipod Touch
Replies: 4
Views: 5314

Common Lisp on the Iphone/Ipod Touch

I plan on getting an Ipod Touch and would like to learn to program on it for fun. It seems development is slow. I see things concerning ECL and Nu, but I have no idea what the experience is like. Anyone doing any Lisp programming directly on Iphones (or even Android phones)?
by speech impediment
Sat Oct 24, 2009 11:39 am
Forum: Common Lisp
Topic: Fibonacci recursion -argh
Replies: 11
Views: 12973

Re: Fibonacci recursion -argh

Once again, thank you everyone for all your time and help. I am glad that I can move forward. I hope not to be stuck again on another topic. I will probably come back when I hit object orientation. ;)
by speech impediment
Fri Oct 23, 2009 8:48 am
Forum: Common Lisp
Topic: Fibonacci recursion -argh
Replies: 11
Views: 12973

Re: Fibonacci recursion -argh

I thought this is pretty interesting in the Hyperspec: Although the order of evaluation of the argument subforms themselves is strictly left-to-right, it is not specified whether the definition of the operator in a function form is looked up before the evaluation of the argument subforms, after the ...
by speech impediment
Wed Oct 21, 2009 8:18 pm
Forum: Common Lisp
Topic: Fibonacci recursion -argh
Replies: 11
Views: 12973

Re: Fibonacci recursion -argh

Thank you gugamilare. :) I appreciate the correction. I can see now that it works on the left main branch first. I wonder where I can find a comprehensive description of Lisp evaluation order. Perhaps the Hyperspec... Well, I installed SBCL again after reinstalling XP for the millionth time. Finally...
by speech impediment
Tue Oct 20, 2009 9:05 pm
Forum: Common Lisp
Topic: Fibonacci recursion -argh
Replies: 11
Views: 12973

Fibonacci recursion -argh

Recursion is slowing me down immensely in my learning of Common Lisp. Recursion is simple, but I have a hard time visualizing the cycle flow. I tried drawing flow charts, but flow charts don't visualize accumulation very well. For me, it seems that evaluation code flow works best for understanding r...
by speech impediment
Fri Jun 19, 2009 5:06 pm
Forum: Common Lisp
Topic: incorrect simple floating point math
Replies: 28
Views: 32275

Re: incorrect simple floating point math

Since someone mentioned financial calculations: Never do financial calculations with floats! ... If you have precise fractions, don't use floats. The simplest way in Common Lisp is to use rationals, and convert input with RATIONALIZE and output for display with FLOAT. You know, the RATIONALIZE and ...
by speech impediment
Thu Jun 18, 2009 3:36 pm
Forum: Common Lisp
Topic: incorrect simple floating point math
Replies: 28
Views: 32275

Re: incorrect simple floating point math

If these kinds of floating point errors are actually a problem, you have the option of avoiding floating point all together. You could use rational number arithmetic. Wow... is this how most programmers program mathematically when using numbers with decimal points? If not, how does one generally pr...
by speech impediment
Thu Jun 18, 2009 11:43 am
Forum: Common Lisp
Topic: incorrect simple floating point math
Replies: 28
Views: 32275

incorrect simple floating point math

I am using Lisp-in-a-box (Clisp) and it is a hit and miss kind of thing with doing simple math. Sometimes I would get the correct answer and other times I get odd results. Here are a few examples of what I actually typed: Correct: (+ 2 2.4 5.1) 9.5 Wrong: (+ 2 4.2 8.4) 14.599999 Any idea what is goi...
by speech impediment
Wed Jun 17, 2009 6:48 pm
Forum: The Lounge
Topic: How Do You Teach Yourself Programming?
Replies: 13
Views: 21373

Re: How Do You Teach Yourself Programming?

Heh, I'm half way through Touretzky's book as well, but I think you are progressing faster than I am. For reference, I use the Hyperspec. There are some useful chapters from "Practical Common Lisp", but the example programs are pretty advanced though. I think a better book after Touretzky'...
by speech impediment
Fri Jun 12, 2009 6:59 pm
Forum: Common Lisp
Topic: Lisp and GPU computing
Replies: 3
Views: 6435

Lisp and GPU computing

I seem to have trouble finding anything substantial about this topic. The closest thing that I could find is GPUlib, but I didn't find the word 'lisp' relating to it. A search on this forum mentions nada about CUDA etc. It seems to me that there is hardly any interest in GPU computing with Lisp. I m...