Post #274,004
11/26/06 11:16:55 PM
|
They divide about as neatly into types as the do into tables
[link|http://www.blackbagops.net|Black Bag Operations Log]
[link|http://www.objectiveclips.com|Artificial Intelligence]
[link|http://www.badpage.info/seaside/html|Scrutinizer]
|
Post #274,029
11/27/06 12:30:12 AM
|
Bull, hierarchies cannot do sets without duplication
________________ oop.ismad.com
|
Post #274,031
11/27/06 1:23:52 AM
|
I have no idea what you are talking about
but then I don't think you do either.
Apologies to Dave Letterman
[link|http://www.blackbagops.net|Black Bag Operations Log]
[link|http://www.objectiveclips.com|Artificial Intelligence]
[link|http://www.badpage.info/seaside/html|Scrutinizer]
|
Post #274,160
11/28/06 12:14:06 AM
|
Take sample sets and try to turn them into trees
....You will then see. (I know, polymorphism does not require hierarchies, but in practice usually ends up that way.)
________________ oop.ismad.com
|
Post #274,164
11/28/06 12:42:52 AM
11/28/06 12:43:09 AM
|
Why would I do that?
isSystemGood: sys
| goodSystems badSystems |
goodSystems := #( SunOS Linux) badSystems := #('Windows NT' 'Windows 95')
(goodSystems includes: sys) ifTrue: [^true]. (badSystems includes: sys) ifTrue: [^false]. self error: 'Unknown System'.
[link|http://www.blackbagops.net|Black Bag Operations Log]
[link|http://www.objectiveclips.com|Artificial Intelligence]
[link|http://www.badpage.info/seaside/html|Scrutinizer]
|
Post #274,255
11/28/06 5:44:13 PM
|
Reinventing query languages in Smalltalk again?
\nSELECT OS_Name, IIF(osBase='UNIX','Good','Bad') AS Jugdement\nFROM OperatingSystems\n (Some dialects use WHEN...ELSE...END instead of IIF)
________________ oop.ismad.com
|
Post #274,265
11/28/06 7:19:27 PM
|
Smalltalk queries/collection operations predate SQL
by about 5 years I think.
Smalltalk collections respond to:
select: - provide filtered version of collection ie
#( 1 2 3 4 5 6 ) select: [:each | each isEven]. #(2 4 6)
detect: - first found
#( 1 2 3 4 5 6 ) detect: [:each | each > 3 and: [each isOdd]]. 5
reject: - inverted select #( 1 2 3 4 5 6 ) select: [:each | each isEven]. #(1 3 5)
collect: - used to derive a new collection from an existing one #( 1 2 3 4 5 6 ) collect: [:each | each * 5]. #(5 10 15 20 25 30)
Nothing to reinvent, really. We were here first.
[link|http://www.blackbagops.net|Black Bag Operations Log]
[link|http://www.objectiveclips.com|Artificial Intelligence]
[link|http://www.badpage.info/seaside/html|Scrutinizer]
|
Post #274,309
11/29/06 1:57:56 AM
|
It does not predate OTHER relational languages
________________ oop.ismad.com
|
Post #274,313
11/29/06 4:01:51 AM
|
What are you NUTS?
Smalltalk?
seriously any of the *talk languages...
You are on Drugs.
-- [link|mailto:greg@gregfolkert.net|greg], [link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwetheyFreedom is not FREE. Yeah, but 10s of Trillions of US Dollars? SELECT * FROM scog WHERE ethics > 0;
0 rows returned.
|
Post #274,698
12/3/06 5:51:24 PM
|
First relational languages appeared in the early 70's
and earlier if you count Codd's math notation.
________________ oop.ismad.com
|
Post #274,707
12/3/06 7:15:56 PM
|
Smalltalk was 71
[link|http://www.levenez.com/lang/history.html#03|http://www.levenez.c...g/history.html#03]
Don't bother quoting Codd's math notation. Not implemented == not exists.
You may now put your pipe down.
|
Post #274,708
12/3/06 7:24:49 PM
12/3/06 7:28:35 PM
|
Some context...
Map, Filter, and Reduce are morphisms arising from mathematics. Likely that if you want to find the first use in programming languages, you'd probably find them in Lisp. But then Smalltalk was heavily influenced by Lisp (and Algol), so that wouldn't be surprising.
Map applies a function over a collection. Filter applies a predicate to a collection and returns a subset where the predicate is true. Reduce is a fold of a collection.
Guess I should also reuse my explanation of [link|http://z.iwethey.org/forums/render/content/show?contentid=247589|Higher Order Functions] in an earlier thread.
Edited by ChrisR
Dec. 3, 2006, 07:28:35 PM EST
|