Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #45030
| Subject | Re: I need a real big data stack |
|---|---|
| References | (5 earlier) <87egdapyff.fsf@nightsong.com> <e5b31655-626f-4e0d-ade6-f239c1b92a01@googlegroups.com> <56a18230$0$23726$e4fe514c@news.xs4all.nl> <0666b1fc-e354-460b-b9b4-69303acd2549@googlegroups.com> <56a247db$0$23739$e4fe514c@news.xs4all.nl> |
| Newsgroups | comp.lang.forth |
| From | "Elizabeth D. Rather" <erather@forth.com> |
| Organization | FORTH, Inc. |
| Date | 2016-01-22 09:07 -1000 |
| Message-ID | <NemdnUB9o7F34D_LnZ2dnUU7-cWdnZ2d@supernews.com> (permalink) |
On 1/22/16 5:16 AM, Albert van der Horst wrote: > hughaguilar96@gmail.com writes: > >> On Thursday, January 21, 2016 at 6:13:22 PM UTC-7, Albert van der Horst wro= >> te: >>> lehs <skydda.barnen@gmail.com> writes: >>>> But as Elizabeth Rather wrote, the proper way is to sort in an array. >>> =20 >>> The proper way is to use libraries as much as one can. >>> If the stack is addressable, you can apply SORT-X (sorting cells) >>> to it. > >> It is unusual that your data consist of integers. Maybe this comes up in nu= >> mber-theory problems. Most of the time, the data that you are sorting is go= >> ing to be a struct of some kind --- this would be put in a data-structure -= >> -- I would expect most code-libraries to involve data-structures containing= >> structs. > > Of course you're right. One can have an array of pointers to structs, > or an array of like-size structs, and I;ve to pass an execution token > to my QSORT. I didn't want to complicate matters with that. > >> Our problem statement as presented by Elizabeth Rather is: "Sort an array o= >> f integers." For the most part, these kinds of problems are textbook exerci= >> ses --- like WJ's programming challenges, these don't represent real-world = >> programming. > >> Of course, I haven't worked as a programmer in quite a while, so I'm not ex= >> actly an expert on real-world programming --- most of the programs in my no= >> vice-package (such as LowDraw poker analysis) don't really represent real-w= >> orld programming either. > > I could brag about some real world progams I've worked on, but I don't > think I can earn your respect. Well, I didn't "present" this problem, I was responding to a request for sorting items on the data stack, and just suggested that the items to be sorted should be in an array. A stack is designed for last-in-first-out access, which is inappropriate for any known sort algorithm. That said, in over 40 years of programming (30 of which used Forth) I found very few requirements for sorting. That may be more characteristic of "data processing" or "IT" applications, whereas most of my experience involved scientific analysis, instrumentation, and control applications. Cheers, Elizabeth -- ================================================== Elizabeth D. Rather (US & Canada) 800-55-FORTH FORTH Inc. +1 310.999.6784 5959 West Century Blvd. Suite 700 Los Angeles, CA 90045 http://www.forth.com "Forth-based products and Services for real-time applications since 1973." ==================================================
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
I need a real big data stack lehs <skydda.barnen@gmail.com> - 2016-01-20 10:19 -0800
Re: I need a real big data stack "Elizabeth D. Rather" <erather@forth.com> - 2016-01-20 09:45 -1000
Re: I need a real big data stack lehs <skydda.barnen@gmail.com> - 2016-01-20 12:33 -0800
Re: I need a real big data stack anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-01-21 13:53 +0000
Re: I need a real big data stack lehs <skydda.barnen@gmail.com> - 2016-02-13 09:41 -0800
Re: I need a real big data stack anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-02-14 15:09 +0000
Re: I need a real big data stack lehs <skydda.barnen@gmail.com> - 2016-02-14 11:11 -0800
Re: I need a real big data stack Coos Haak <chforth@hccnet.nl> - 2016-02-14 20:41 +0100
Re: I need a real big data stack lehs <skydda.barnen@gmail.com> - 2016-02-14 14:24 -0800
Re: I need a real big data stack Whammo <sidciavic@gmail.com> - 2016-01-20 11:46 -0800
Re: I need a real big data stack lehs <skydda.barnen@gmail.com> - 2016-01-20 12:36 -0800
Re: I need a real big data stack Whammo <sidciavic@gmail.com> - 2016-01-21 19:12 -0800
Re: I need a real big data stack lehs <skydda.barnen@gmail.com> - 2016-01-22 02:25 -0800
Re: I need a real big data stack lehs <skydda.barnen@gmail.com> - 2016-01-20 12:38 -0800
Re: I need a real big data stack Pablo Hugo Reda <pabloreda@gmail.com> - 2016-01-20 12:04 -0800
Re: I need a real big data stack Jan Coombs <jenfhaomndgfwutc@murmic.plus.com> - 2016-01-20 20:15 +0000
Re: I need a real big data stack lehs <skydda.barnen@gmail.com> - 2016-01-20 12:40 -0800
Re: I need a real big data stack Jan Coombs <jenfhaomndgfwutc@murmic.plus.com> - 2016-01-21 00:00 +0000
Re: I need a real big data stack Paul Rubin <no.email@nospam.invalid> - 2016-01-20 17:42 -0800
Re: I need a real big data stack Albert van der Horst <albert@spenarnc.xs4all.nl> - 2016-01-21 10:45 +0000
Re: I need a real big data stack Paul Rubin <no.email@nospam.invalid> - 2016-01-21 10:41 -0800
Re: I need a real big data stack "Elizabeth D. Rather" <erather@forth.com> - 2016-01-21 09:02 -1000
Re: I need a real big data stack hughaguilar96@gmail.com - 2016-01-21 16:42 -0800
Re: I need a real big data stack lehs <skydda.barnen@gmail.com> - 2016-01-21 15:24 -0800
Re: I need a real big data stack Albert van der Horst <albert@spenarnc.xs4all.nl> - 2016-01-22 01:13 +0000
Re: I need a real big data stack hughaguilar96@gmail.com - 2016-01-21 17:53 -0800
Re: I need a real big data stack Julian Fondren <julian.fondren@gmail.com> - 2016-01-21 19:09 -0800
Re: I need a real big data stack Albert van der Horst <albert@spenarnc.xs4all.nl> - 2016-01-22 15:24 +0000
Re: I need a real big data stack Albert van der Horst <albert@spenarnc.xs4all.nl> - 2016-01-22 15:16 +0000
Re: I need a real big data stack "Elizabeth D. Rather" <erather@forth.com> - 2016-01-22 09:07 -1000
Re: I need a real big data stack Coos Haak <chforth@hccnet.nl> - 2016-01-22 15:03 +0100
Re: I need a real big data stack Albert van der Horst <albert@spenarnc.xs4all.nl> - 2016-01-21 10:36 +0000
Re: I need a real big data stack anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-01-21 13:32 +0000
Re: I need a real big data stack Ron Aaron <rambamist@gmail.com> - 2016-01-21 15:51 +0200
Re: I need a real big data stack lehs <skydda.barnen@gmail.com> - 2016-01-21 15:20 -0800
Re: I need a real big data stack anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-01-22 15:28 +0000
csiph-web