Harbour (software)

Harbour (software)

Infobox programming language
name = Harbour

caption =
file_ext =
paradigm =
year =
designer =
developer =
latest_release_version =
latest_release_date =
latest_test_version =
latest_test_date =
typing =
implementations =
dialects =
influenced_by =
influenced =
operating_system = Cross-platform
license = Open source
website = http://www.harbour-project.org/
wikibooks =

Harbour is a modern, fast computer programming language. It is a Clipper-compatible compiler which is cross-platform, running on many operating systems (DOS, Microsoft Windows, Linux (32, 64), Unix (32, 64), Mac OS X, Windows CE, Pocket PC).

The open source Harbour license is similar to the GNU General Public License, with an exception supporting commercial applications, so commercial applications can be produced with Harbour and distributed.

It is designed to use and compile Clipper source code, with Classy style OOP extensions.

Design

Unlike Java which is intended to be write once, run anywhere, Harbour aims to be write once, compile anywhere. As the same compiler is available for all of the above operating systems, there is no need for recoding to produce identical products for different platforms, except when operating system dependent features are used. Cross-compiling is supported with MinGW32.Under Microsoft Windows Harbour is more stable but less well-documented than Clipper, but has multi-platform capability and is more transparent, customizable and can run from a USB flash drive. Under Linux and Windows Mobile, Clipper source code can be compiled with Harbour with very little adaptation.

Harbour can use the following C compilers, among others:Borland C++Microsoft Visual C++ (6, 7, 8)MinGWWatcom C

Harbour can make use of multiple Graphic Terminal emulations, including console drivers, and Hybrid Console/GUIs, such as GTWvt, and GTWvg. Harbour supports external GUIs, both free (e.g. HWGui, MiniGUI) and commercial (e.g. FiveWin, Xailer ). Harbour is 100% Clipper-compatible and supports many language syntax extensions including greatly extended run-time libraries such as OLE, ODBC, MySQL, PostgreSQL, TIpt, TXml, RegEx, HbZip and xbScript. Harbour has an active development community and extensive third party support. Harbour extends the Clipper Replaceable Database Drivers (RDD) approach. It offers multiple RDDs such as DBF, DBFNTX, DBFCDX, DBFDBT and DBFFPT. In Harbour multiple RDDs can be used in a single application, and new logical RDDs can be defined from combination of other RDDs. The RDD architecture allows for inheritance, so that a given RDD may extend the functionality of other existing RDD(s). 3rd party RDDs, like RDDSQL, RDDSIX, RMDBFCDX, Advantage Database Server, and Mediator exemplify some of the RDD architecture features.

Harbour also offers ODBC support by means of an OOP syntax, and ADO support by means of OLE.

Macro Operator (runtime compiler)

One of the most powerful features of xBase languages is the MACRO Operator '&'. Harbour's implementation of the Macro Operator allows for runtime compilation of any valid Harbour expression. Such a compiled expression may be used as a VALUE, i.e. the right side of an assignment, but more interestingly, such a compiled expression may be used to resolve the LEFT side of an assignment, i.e. PRIVATE, or PUBLIC variables, or a database FIELD.

Additionally the Macro Operator may compile and execute function calls, complete assignments, or even list of arguments, and the result of the macro may be used to resolve any of the above contexts in the compiled application. In other words, any Harbour application may be extended and modified at runtime to compile and execute additional code on demand.

Object Oriented Programming

Programming in an OOP style is a broader issue than a specific library or a specific interface, but OOP programming is something many Clipper programmers have come to expect. CA-Clipper 5.2 and especially 5.3 added a number of base classes, and a matching OOP syntax. Libraries such as CLASSy, Fivewin, Clip4Win, and TopClass provide additional OOP functionality.

Harbour has OOP extensions with full support for classes including inheritance, based on CLASSy syntax. OOP syntax in Harbour is very similar to that of earlier Clipper class libraries so it should be possible to maintain legacy Clipper code with minimal changes.

xHarbour comparison

xHarbour is a fork of the earlier Harbour project. xHarbour takes a more aggressive approach to implementing new features in the language, while Harbour is more conservative in its approach, aiming first of all for an exact replication of Clipper behaviours and then implementing new features and extensions as a secondary consideration.

The Harbour developers have attempted to document all hidden behaviours in the Clipper language and test Harbour-compiled code alongside the same code compiled with Clipper to maintain compatibility.

The Harbour developers explicitly reject extensions to the language where those extensions would break Clipper compatibility.

History

The idea of a free software Clipper compiler has been floating around for a long time and the subject has often cropped up in discussion on comp.lang.clipper. Actual work to get something developed started early in 1999 when Antonio Linares started a [http://groups.google.com/group/comp.lang.clipper/msg/5b4996fdf806504f thread] to discuss some ideas about developing a Clipper grammar using Lex and Yacc.

Sailing the Clipper ship to a Harbour port. Clipper is a type of ship. Harbour is a synonym to port (where ship docks) Harbour is out port to the Clipper language.

This is antonio linares assertion:"My wife Sylvia proposed it to me. We were driving in the car with the kids and we were talking about a name for the project. Curiously enough the road was beside the sea, and I told them "ocean" as a possible name. Then she answered: "harbour" :-)Two years before that time, I was highly interested in learning how to build a compiler. A friend of mine introduced me to Lex and Yacc and I built an early prototype that I named "Five". I tried to follow the "Force" compiler (by Sophco) architecture (native xbase. No virtual machine used) and though I did a nice progress, I realized there were a lot of troubles going the "Force" way.By that time Linux was already a huge success and I was reading many articles about cooperative development in Internet. It look quite incredible but I thought that if it worked for Linux, then it could also work for a Clipper compatible compiler.Then I started a new Clipper compatible compiler, using this time a virtual machine, and then I went to comp.lang.clipper to propose to build it in an open source way, cooperative development, like Linux.It was a huge success :-) Lots of developers shown a big interest in the project like Ryszard, Dave Pearson, etc. and started helping to organize the open source project.Then I proposed Harbour (Sylvia's proposal) and it was widely accepted :-)"

See also

* xHarbour

External links

* [http://www.harbour-project.org Harbour project official site]
* [http://www.sourceforge.net/projects/doublesvsoop DoubleS (Super Server Paradigm - Programming without code)]
* [http://sourceforge.net/projects/letodb Letodb Leto is a multiplatform database server or a database management system written in harbour]
* [http://www.viaopen.com ViaCORAL]
* [http://www.oohg.org Object Oriented Harbour GUI (ooHG)]
* [http://www.FiveTechSoft.com FiveWin]
* [http://www.viaopen.com ViaOpen]
* [http://harbour.fm.interia.pl/ HbWxW (wxWidgets Bindings)]


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • Compilador Harbour — Harbour es un compilador del lenguaje de programación xBase (una variante de Clipper) desarrollado como software libre. Su objetivo inicial fue soportar todas las sentencias y extensiones del Clipper 5.2, la versión más popular del compilador,… …   Wikipedia Español

  • Malcolm Harbour — MEP Member of the European Parliament for the West Midlands Incumbent …   Wikipedia

  • List of open source software packages — This is a list of open source software packages: computer software licensed under an open source license. Software that fits the Free software definition may be more appropriately called free software; the GNU project in particular objects to… …   Wikipedia

  • Flagship compiler — FlagShip is both object oriented and procedural programming language, based on the xBase language dialect and conventions. FlagShip is available for and is cross compatible to different computer platforms, such as Linux, Unix and Microsoft… …   Wikipedia

  • Visakhapatnam — Visag redirects here. For the Romanian village, see Victor Vlad Delamarina, Timiş. For the Romanian village of Vişagu, called Viság in Hungarian, see Săcuieu. Visakhapatnam (విశాఖపట్నం) VIZAG   city   …   Wikipedia

  • Microsoft Flight Simulator X — Developer(s) Microsoft Game Studios Publisher(s) Microsoft Game Studios …   Wikipedia

  • environment — environmental, adj. environmentally, adv. /en vuy reuhn meuhnt, vuy euhrn /, n. 1. the aggregate of surrounding things, conditions, or influences; surroundings; milieu. 2. Ecol. the air, water, minerals, organisms, and all other external factors… …   Universalium

  • United States — a republic in the N Western Hemisphere comprising 48 conterminous states, the District of Columbia, and Alaska in North America, and Hawaii in the N Pacific. 267,954,767; conterminous United States, 3,022,387 sq. mi. (7,827,982 sq. km); with… …   Universalium

  • Clipper (lenguaje de programación) — Clipper Desarrollador(es) Nantucket Corporation Información general Paradigma Programación Estructurada Procedural Apareció en 1985 …   Wikipedia Español

  • dBase — Vulcan dBase II Paradigm(s) Imperative, Declarative Appeared in 1979 (1979) Developer C. Wayne Ratliff[1] Infl …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”