TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Sdoman on July 17, 2006, 03:12:04 PM

Title: Pronouncing AutoLISP
Post by: Sdoman on July 17, 2006, 03:12:04 PM
Just for geeky fun, how do you pronounce these AutoLisp function names when your reading code to yourself? 

cdr
cadr
lambda
logior
lsh
princ
progn
terpri

Here's what I've been using:

Cdr: I use to pronounce C-D-R, but a book I've been reading says that the correct pronunciation is Coulder.

Cadr: C-A-D-R or should that be Car-Coulder?

Lambda:  Lamb-duh?

Logior: Log-gee-or?

Lsh: I have no idea.  Never used this anyway but is an interesting pronunciation challenge.

Princ: Prince or Prin-Cee?

Progn: Prog-N or Prog-Nin?

Terpri: Terminal-Print?




Title: Re: Pronouncing AutoLISP
Post by: MP on July 17, 2006, 03:59:47 PM
These are more the way I hear 'em in my head --

cdr    • could-rrr
cadr   • cad-rrr
lambda • bleet, bleet
logior • log-i-orrr
lsh    • left shift (true story)
princ  • prin-see
progn  • prog-n
terpri • ter-pri


Title: Re: Pronouncing AutoLISP
Post by: CADaver on July 17, 2006, 04:36:02 PM
cdr    • C-D-R
cadr   • cad-rrr
lambda • lamb-duh
logior • log-Eyor (as in Pooh's donkey friend)
lsh    • lish (short I, rhymes with FISH)
princ  • prin-see ("See, there it prints".)
progn  • proggin' (rhymrs with noggin')
terpri • ter-print

Title: Re: Pronouncing AutoLISP
Post by: T.Willey on July 17, 2006, 04:46:59 PM
I have to admit first that I don't read whole words most of the time, so I make up words for things.

cdr = c-d-r
cadr = cad-r
lambda = lam-ba-da (like the dance)
logior = log-i-or
lsh = lish (I guess I would use)
princ = prince
progn = pro-nog
terpri = tear-pre
Title: Re: Pronouncing AutoLISP
Post by: Kerry on July 17, 2006, 05:43:34 PM
Same as MP except for the bleet, bleet .. lamb-dah
Title: Re: Pronouncing AutoLISP
Post by: CAB on July 17, 2006, 05:59:22 PM
cdr = c-d-r
cadr = c-a-d-r
lambda = lamb-dah
logior = logical-or
lsh = logical-shift
princ = print-c
progn = pro-gen
terpri = tera-print
Title: Re: Pronouncing AutoLISP
Post by: Sdoman on July 18, 2006, 08:39:56 AM
The functions CDR, CADR, CADDR, etc,  are the most awkward for me to read as a word.  That's why I just spell them out C-D-R, C-A-D-R.  I've never really been happy with that pronunciation however.  COULDER seems even more awkward to me. 

It finally dawned on me that LAMBDA is from the Greek alphabet.

Logical shift make sense

Print-see or Print-cee sounds good.  But I wonder what the "C" is for?  Where is Print-A and Print-B?

I guess the "N" in Progn confused me.  Group N lines?

Since programming languages are read often yet rarely spoken, it is interesting to see what pronunciation people use while reading to themselves.  Thanks for replies.

Title: Re: Pronouncing AutoLISP
Post by: Mark on July 18, 2006, 09:25:24 AM
Great thread!

How about these?

atof  = a-t-o-f
getkword = get key word *yawn*
itoa = i-t-o-a

and don't even try the vl- and vlax- functions! :-)


Quote from: MP
lambda • bleet, bleet
What the ... :-)
Title: Re: Pronouncing AutoLISP
Post by: MP on July 18, 2006, 09:31:29 AM
Quote from: MP
lambda • bleet, bleet
What the ... :-)

(http://www.theswamp.org/screens/mp/lambduh.gif)

:)
Title: Re: Pronouncing AutoLISP
Post by: Sdoman on July 18, 2006, 12:56:12 PM

Great thread!

How about these?

atof  = a-t-o-f
getkword = get key word *yawn*
itoa = i-t-o-a


atof  = perhaps it would have been more appropriate for the authors of AutoLISP to have named this function stor for string-to-real

itoa = likewise, itos for integer-to-string would have been better imo.

Title: Re: Pronouncing AutoLISP
Post by: LE on July 18, 2006, 01:06:58 PM
atof  = perhaps it would have been more appropriate for the authors of AutoLISP to have named this function stor for string-to-real

itoa = likewise, itos for integer-to-string would have been better imo.

Maybe, maybe, something like this (note: before you use the code below, make sure you are using a test drawing):  :-)

Code: [Select]
(pragma '((unprotect-assign stor)))
(setq stor atof)
(pragma '((protect-assign stor)))

(pragma '((unprotect-assign atof)))
(setq atof nil)

Then in the command line:

Quote
Command: (stor  "3")
3.0
Title: Re: Pronouncing AutoLISP
Post by: Sdoman on July 18, 2006, 03:02:30 PM
That's cool LE.  I wasn't aware of the unprotect-assign function.  As an example it's interesting.  Of course, if someone was to redefine native lisp functions, they would break any old code that expects those functions to exist. 

Pragma : Prag-Ma
Title: Re: Pronouncing AutoLISP
Post by: Bob Wahr on July 18, 2006, 03:07:19 PM
atof  = perhaps it would have been more appropriate for the authors of AutoLISP to have named this function stor for string-to-real

itoa = likewise, itos for integer-to-string would have been better imo.
Does list use s for something other than string like maybe Single?
Title: Re: Pronouncing AutoLISP
Post by: LE on July 18, 2006, 03:11:57 PM
That's cool LE.  I wasn't aware of the unprotect-assign function.  As an example it's interesting.  Of course, if someone was to redefine native lisp functions, they would break any old code that expects those functions to exist. 

Pragma : Prag-Ma

I never had tried.... but I would guess that if you saved your routine inside of a protected namespace VLX, it might work....

Actually by simple calling:

Code: [Select]
(pragma '((unprotect-assign stor)))
(setq stor atof)
(pragma '((protect-assign stor)))

And kept the built-in functions alone....
Title: Re: Pronouncing AutoLISP
Post by: Sdoman on July 18, 2006, 03:18:41 PM
Does lisp use s for something other than string like maybe Single?

Bob: Not that I know of.  But then, I don't know it all :)

I never had tried.... but I would guess that if you saved your routine inside of a protected namespace VLX, it might work....

Good point Luis!
 
Title: Re: Pronouncing AutoLISP
Post by: zoltan on July 29, 2006, 03:48:32 PM
itoa - Integer to Atom
atof - Atom to Float

(i think)
Title: Re: Pronouncing AutoLISP
Post by: jonesy on July 31, 2006, 12:48:20 PM
Great thread!

How about these?

atof  = a-t-o-f
getkword = get key word *yawn*
itoa = i-t-o-a

atof = hat off
getkword= get keyword
itoa = iota

(not that I do any programming... I just look at other peoples to see if I can figure out what does what)
Title: Re: Pronouncing AutoLISP
Post by: Sdoman on August 02, 2006, 08:04:32 AM
itoa - Integer to Atom
atof - Atom to Float

(i think)

Another variant:
atof - Ascii to Floating, meaning convert string to real (floating point) number
Title: Re: Pronouncing AutoLISP
Post by: Sdoman on August 02, 2006, 08:11:46 AM

atof = hat off
getkword= get keyword
itoa = iota

(not that I do any programming... I just look at other peoples to see if I can figure out what does what)

Hat Off and Iota !  Thanks for the great humor Jonesy.
Title: Re: Pronouncing AutoLISP
Post by: daron on August 02, 2006, 08:58:18 AM
Most of the previous one's I'd pronounce as others have stated, except:
princ = prink
Title: Re: Pronouncing AutoLISP
Post by: Lee Mac on June 09, 2013, 02:36:20 PM
Just stumbled across this great thread and thought I'd add my own pronunciations for some common AutoLISP functions:

cdr        = C-D-R
cadr       = C-A-D-R
cdar       = C-D-A-R
etc.

atof       = a-tov
atoi       = A-toy
itoa       = I-T-O-A
rtos       = R-toz
distof     = diss-tov

defun      = D-fun
setq       = set-Q
mapcar     = map-car
lambda     = lamb-dah
logior     = log-I-or
progn      = prog-n

princ      = prink
prin1      = prin-one
terpri     = terr-pree
textscr    = text-screen

strcase    = string-case
strcat     = string-cat
strlen     = string-length
substr     = sub-string
wcmatch    = W-C-match

tblnext    = table-next
tblobjname = table-object-name
tblsearch  = table-search

vlax-*     = V-lax (as in relax)
vl-*       = V-L
vlr-       = V-L-R


Print-see or Print-cee sounds good.  But I wonder what the "C" is for?  Where is Print-A and Print-B?

Since princ is designed to output data that is 'intended to look good for people (http://www.lispworks.com/documentation/HyperSpec/Body/f_wr_pr.htm#princ)', I would guess that the 'c' stands for 'console', i.e. print to console?

I guess the "N" in Progn confused me.  Group N lines?

I believe progn is the nth extension of the prog1 & prog2 (http://www.lispworks.com/documentation/HyperSpec/Body/m_prog1c.htm#prog1) functions found in Common LISP, to evaluate all n supplied expressions.

atof  = perhaps it would have been more appropriate for the authors of AutoLISP to have named this function stor for string-to-real

itoa = likewise, itos for integer-to-string would have been better imo.

As suggested by others, I understood atof to be a shortening of ASCII to float; similarly, itoa as integer to ASCII; however, for me, the inconsistency lies with the rtos & distof functions... by the same logic, I would have thought rtos (real to string) should be ftoa (float to ASCII), or that either distof (distance to float I presume?) or atof should instead be stor (string to real) as you've suggested.

Interesting thread  :-)