Hi!

29-Апр-2008 22:26 [EMAIL PROTECTED] (Eric Auer) wrote to
freedos-devel@lists.sourceforge.net:

>> I'm sure Euphoria is the best interpreted
>> language available for DOS today...
EA> How about Perl (bloated) or Reginarexx for example?  ;-)

     Euphoria is more C-like; its structures (sequences) are unrestricted
either in growing by size and by items content; it declares 10-100 more
speed over other interpreted languages like Lua, Caml, REXX, Perl, etc. All
of this should be very great advantages for C and Pascal programmers, which
tired to code single-run tasks and program prototypes in static languages.

     About unrestricted sequences. Euphoria provides module for dealing with
(own) databases. Each database contains none, one or many tables; each table
contains (reasonably unlimited) amount of records; each record consist two
(only two) parts - key and data. Either may be anything - numeric or
(unrestricted) sequence/string. Records searched by key or by current record
order number in table. "Anything" mean really "anything", records in one
table may have different structure.

     Why I mention this. I have formalize, how I see "database" for catalogs
(of books, compact disks, etc), which is enough convenient and enough
flexible to reflect variable nature of catalogued data. In short, catalog
is hierarchical tree (similar to file system - FS), where each record have
name/type and contains unrestricted set of records and fields/files.
Example of book in library:

book [
  author: "James Fenimore Cooper"
  name: "Last of the Mohicans" format: novel translator: "Grits T."
  publisher: ... publishing date: 1982 ISBN: ...
  .content [
    .introduction [ author: ... name: "Cooper and his beloved hero" ]
  ]
]

Each book may contain different set of fields (only in translated books need
"translator" field), books content is very variable (one solid works, one
works with parts like chapters, multiple works of one or different authors),
book may be part of multi-volume series (which also may be treated as
"super-book"). As you see, this not much fits into strict bounds of
relational model tables. With Euphoria, this should fit to its included
database module definition, where record is free set of fields, field is
pair of name and content, content is final value (numeric, string) or
sequence itself.

EA> It would be interesting to try this with FreeBASIC  :-)

     BASIC offers neither dynamic structures nor modules. Don't know about
FreeBASIC, but original basic not provides even routines. The more so,
Euphoria supports co-routines (cooperative multitasking), which present in
Modula, and I wonder why they missed C.

>> will need a lot of complcated memory allocation code.
EA> Makes me think of Delphi or Java  ;-) .

     Do you have interpreted and fast Delphi or Java for DOS?

EA> Or of course use
EA> C or C++ and a 32bit compiler... Still you have your
EA> point: Automatically sized strings are not exactly a
EA> thing in which C is strong...

     I should say even more - there is not much things, in which C is
strong.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to