Search found 447 matches

by findinglisp
Tue Sep 14, 2010 4:38 pm
Forum: The Lounge
Topic: Question about parentheses
Replies: 27
Views: 54050

Re: Question about parentheses

Since I've posted I've discovered Racket which has "{" and "[" all equivalent to "(". Which is nice because I can use either at the same time so it allows me to organize my code more. Personally, this is a nightmare for me. When editing, you're bound to get something u...
by findinglisp
Mon Sep 06, 2010 8:10 am
Forum: Common Lisp
Topic: Will LISP be more useful than Java for this problem??
Replies: 7
Views: 6078

Re: Will LISP be more useful than Java for this problem??

Tom makes a good point. If you already know one or the other of the languages and you really want to be productive from the get-go, then the best answer is probably to write it in the language that you're already familiar in. We tend to forget that in discussing languages. Yea, in a perfect world, y...
by findinglisp
Mon Sep 06, 2010 8:07 am
Forum: The Lounge
Topic: Question about parentheses
Replies: 27
Views: 54050

Re: Question about parentheses

EDIT: To clarify, my typing is weird only on QWERTY keyboards. On Colemak I often look away from both the screen and the keyboard, and I type fairly quickly. That sounds reasonable. My problem is that it pretty much botched me on everything and it was painful every time I had to get it done. I real...
by findinglisp
Sun Sep 05, 2010 9:49 am
Forum: Common Lisp
Topic: Will LISP be more useful than Java for this problem??
Replies: 7
Views: 6078

Re: Will LISP be more useful than Java for this problem??

Lisp will score over Java in at least two areas: First, you typically don't have a write a bunch of data structure code with Lisp. Many problems just reduce to using lists, which are obviously very well supported in the language. With Java, you'll probably have to code up a bunch of classes to repre...
by findinglisp
Sun Sep 05, 2010 9:42 am
Forum: The Lounge
Topic: Question about parentheses
Replies: 27
Views: 54050

Re: Question about parentheses

(I'd probably learn Colemak now, for the compatibility with left-handed Ctrl-Z, -X, -C, which was a definite problem with standard Dvorak). Colemak is poesgoed. I'm much faster, more efficient, and RSI is no longer looming over my left hand. The Kinesis helps, too. I got back to my QWERTY speed fai...
by findinglisp
Sun Sep 05, 2010 9:34 am
Forum: Common Lisp
Topic: mapcar or notmapcar
Replies: 11
Views: 9633

Re: mapcar or notmapcar

gugamilare wrote:Rationals also might grow up a lot (in used space) if you use lots of multiplications.
Yes, but if I remember right, implementations are required to reduce them if possible. In other words, they might be large, but not necessarily naively large.
by findinglisp
Sun Sep 05, 2010 6:08 am
Forum: Common Lisp
Topic: mapcar or notmapcar
Replies: 11
Views: 9633

Re: mapcar or notmapcar

Why would you want floats/decimal numbers? Depends on the code. Floats will generally be handled with greater performance by the hardware; rationals are Lisp-only concepts that have to be manipulated in software, with many extra steps. But as you point out, rationals will keep better precision thro...
by findinglisp
Sat Sep 04, 2010 11:45 am
Forum: Common Lisp
Topic: Do any Common Lisp implementations work well on VPSes?
Replies: 2
Views: 3849

Re: Do any Common Lisp implementations work well on VPSes?

It highly depends on how the Lisp implementation works and how the VPS is implemented. The short description of the problem is that some Lisps (SBCL) make a lot of assumptions about the address space they are going to be loaded into, such as what address ranges are used. They optimize their load tim...
by findinglisp
Sat Sep 04, 2010 7:09 am
Forum: The Lounge
Topic: Question about parentheses
Replies: 27
Views: 54050

Re: Question about parentheses

I use a non-standard dvorak varient called Programmers Dvorak http://www.kaufmann.no/roland/dvorak/ . I further modified it by swapping 'u' and 'i', and making CAPSLOCK just a third CTRL button. My parenthesis are under keys '5' and '8', but I don't have to hold shift to get them. I have considered...
by findinglisp
Mon Aug 30, 2010 3:31 pm
Forum: Common Lisp
Topic: stuck
Replies: 14
Views: 11732

Re: stuck

Here are 5 ways of doing it. I added timing for SBCL on my computer without tweaking any optimization stuff. (time (dotimes (i 1000)(odd-count1 *data*))) ;; 0.038 seconds (time (dotimes (i 1000)(odd-count2 *data*))) ;; 0.023 seconds (time (dotimes (i 1000)(odd-count3 *data*))) ;; 0.048 seconds (tim...