Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: Is there any library for converting common English words to its equivalent numeric value in digi
> From: "Steven M. Haflich" <s...@alum.mit.edu>
> Basically, ANSI-CL is an English programming language, like
> nearly every other programming language.  It's unfair, but if we do
> it again let's base it on Esperanto.

Why Esperanto, a totally artificial language nobody knows?
Why not Interlingua, a mixmash of various known languages, an
attempt to make an Esperanto-like language most people would party
recognize?
<http://en.wikipedia.org/wiki/Interlingua>
Interlingua's greatest advantage is that it is the most widely
understood international auxiliary language by virtue of its
naturalistic (as opposed to schematic) grammar and vocabulary,
allowing those familiar with a Romance language, and educated speakers
of English, to read and understand it without prior study. ...
.. There are several active mailing lists, and
Interlingua is also in use in certain Usenet newsgroups, particularly
in the europa.* hierarchy. ...

> We should leave car and cdr alone, but I'd be willing to use
> Esperanto words for first and rest.

English->Interlingua <http://www.interlingua.com/an/ceid>
English->Esperanto <http://dictionaries.travlang.com/EnglishEsperanto/>
When treating a single CONS cell as part of a tree:
* LEFT = leve (I don't like maldekstren)
* RIGHT = dextre (dekstren is almost as good)
When treating a CDR-linked chain of CONS cells as a list:
* FIRST = prime (the "e" is presumably pronounced as in Spanish)
(XXXX Esperanto! You need to know the gender of the
elements in your list!!! unua unue)
* NEXT = sequente (poste isn't bad at all)

IMO unua/unue is the killer. You can't do a runtime type-check on
the first element of the list until you fetch it to inspect it, but
you can't fetch it from the CONS cell until after you know its
gender, a classic Catch-22 blockage. The only way I see this
working is to have two kinds of CONS cells, those whose CAR can
store only male objects, and one whose CAR can store only female
objects, and then polymorphise higher-level code that does a
type-case on the CONS cell to determine whether it's a MALE-CONS or
FEMALE-CONS cell hence whether to call UNUE or UNUA respectively.
No way will I go along with such an absurdity.
(Nevermind how to decide, at system-design time, the gender of each
data type to appear in the software, to avoid later
mis-communication between different programmers on the team.)
(I you think the incompatibility between various kinds of connectors:
- EIA 12+13=25
- EIA 4+5=9
- EIA 5+5+5=15
- DIN
- USB
is a problem, at least you can *see* (or if blind, *feel* by
touch) the physical connectors before you try to plug one type of
plug into another type of socket. My Dell Latitude XPi has one of
each of the first four kinds, but it apparently pre-dated the new
USB type of connector!!)

> I'll leave it to the better minds on this list to derive a system
> of Roman numerology in non-decimal radix.

What's the problem? You scrap all the V stuff, using only I X C M etc.,
except in hexadecimal base you use E for eight in lieu of V for five.
I II III IIII IIIE IIE IE E EI EII EIII EIIII IIIX IIX IX X
XI XII XIII XIIII XIIIE XIIE XIE XE XEI XEII XEIII XEIIII XIIIX XIIX XIX XX
XXI XXII XXIII XXIIII XXIIIE XXIIE XXIE XXE XXEI XXEII XXEIII XXEIIII XXIIIX
..
XXXI XXXII XXXIII XXXIIII XXXIIIE XXXIIE XXXIE XXXE XXXEI XXXEII XXXEIII ...
You can still use L for #x80, and D for #x800.

(format nil "~@R" 5000)
Error in function FORMAT::FORMAT-PRINT-ROMAN:
Number too large to print in Roman numerals: 5,000
Hmm, curious ...
How did the Romans do a census in their day??
I'm sure Rome had more than five thousand citizens??
Maybe slaves don't count?
Or maybe this problem is why the Empire collapsed????

Report this thread to moderator Post Follow-up to this message
Old Post
Robert Maas, see http://tinyurl.com/uh3t
04-03-08 03:57 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Lisp archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 10:15 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.