Re: multiset ordering



This might sound like heresy to some people (it isn't intended that
way), but if I were you I'd consider interfacing my Prolog with a
language which already has built in support for the things you want -
bags, sets, multisets, etc. To me, the only reasons for
reimplementing all this stuff in Prolog other than educational
purposes (i.e. trying to learn the Prolog language) would be 1) It
isn't practical in your particular application to interface with
another language, for whatever reason, or 2) You are a masochist.
Personally, I quit implementing data structures and what not in
computer languages when I left college. It's a waste of my time. If
the language doesn't have native support for what I need, or doesn't
have high-quality, freely available and easily locatable libraries to
interface with, I interface with another language, or use another
language altogether. Think about it. Your goal isn't to create bags,
sets, multisets, hashes, etc. Your goal is to USE those things to
further your real goal.

To illustrate, it takes 1 line in a language like Smalltalk to declare
a multiset, and use it.

.



Relevant Pages

  • Re: Great SWT Program
    ... not sure what the user interface of 2057 will be like, ... GUIs initially seemed to me. ... The clipboard will probably see big changes; ... difficult to program than in some other language. ...
    (comp.lang.java.programmer)
  • Re: Forth and Unix -- history
    ... Forth, as a language, gives you all the building blocks. ... So does FORTRAN, so does C, so does PERL, so does Python. ... to interface to some free library written in whatever language. ...
    (comp.lang.forth)
  • Re: Forth and Unix -- history
    ... "I would learn PERL better, it is horrible, but it works, there's CPAN, ... Forth, as a language, gives you all the building blocks. ... to interface to some free library written in whatever language. ... reimplement even simple band matrix eigenvalue solver in Forth. ...
    (comp.lang.forth)
  • Re: Darkroom software Help
    ... Apple's computer operating system OS-X includes the Java ... programing language, compiler, and integration software. ... have an Apple this fall. ... Said that, my system is based on a commercial lab interface, the ...
    (rec.photo.darkroom)
  • Re: C and other programming languages
    ... usually wrapping a C function requires manual effort, ... How is it done in you language ... the interface froim Tcl/Tk to C is somehow better, ... the script language. ...
    (comp.lang.misc)