Re: efficient comparison
CBFalconer <cbfalconer@xxxxxxxxx> writes:
bob@xxxxxxxxxxxxxx wrote:
Let's say you have a set of names called set A. You also have a
different set of names called set B. What is the most efficient
way of comparing the sets?
By comparison, I mean finding the names that need to be added to
set B and deleted from set B to form set A.
Use Pascal, and then those are all primitive operations. I kid you
not.
Lots of languages have sets but Pascal's sets used to be so limited as
to be almost useless of general versions of the above problem. Does
modern Pascal have sets of anything more flexible that enumerated
types?
--
Ben.
.
Relevant Pages
- Re: acceptance of forth
... JIT compiler, compression and cryptology libraries, etc. ... Comparing one language to another based on nothing but size is ... size of Forth compared to scripting languages, ... predominate domain for Forth is embedded systems. ... (comp.lang.forth) - Re: Glasgow haskell vs. Lispworks
... Object identity is a notion specific to object-oriented languages like ... For example comparing two things by identity is much faster ... a large compound data structure you could replace ... of list equality includes ordering too, ... (comp.lang.functional) - Re: a potential lisp convert, and interpreting the shootout
... i took a look at SPEC--it seems definitive, indeed, but for comparing ... computer systems, not languages. ... set of benchmarks) -- it looks rather cool! ... (comp.lang.lisp) - Re: advantages of forth over other languages
... But that doesn't make it any less of a disadvantage to the person evaluating it. ... My point is simply that you can't approach comparing languages in terms of absolutes. ... When a Forther proudly declares that with Forth you can have direct access to the hardware, that's a clear advantage for embedded systems programming, but is little advantage to someone doing web-applications. ... Three of the most common features of Forth that people point to when comparing against C is interactivity, extensibility, and the ability to do run-time evaluation. ... (comp.lang.forth) - Re: Delph Superior to New D Language
... There is nothing wrong with discussing other languages, seeing improvements ... and comparing them to Delphi. ... (borland.public.delphi.non-technical) |
|