Apple (programming language)

Apple is a PL/I dialect programming language created by General Motors Research Laboratories for their Control Data Corporation STAR-100 supercomputer.

Apple is a subset of full PL/I, but has been extended to integrate with the Associative Programming Language (APL – not to be confused with APL (programming language) )[1]: p.9 [2]: p.92 

Associative programming features

Data types
Entity "The ENTITY attribute specifies a variable that

may be manipulated by the INSERT, REMOVE, FIND, and FOR EACH statements."[1]: p.94 

Set "The SET attribute defines the name of a data aggregate that

represents an ordered set of entity variables."[1]: p.107 

File_Set  A File_Set is a SET that is contained in an external file.
Statements
Create Create is a synonym for Allocate. It causes storage to be allocated for a based variable. A file or set where the data is to be allocated may be specified.
Delete Delete is a synonym for Free. Delete frees a based variable and optionally removes it from all sets of which it is a member.
Find Locate an entity that is a member of a set or container based on specified conditions. An optional ELSE clause is executed if no entities are found.
For Each Heads a group of statements to be executed for all entities or sets matching a specified condition.
Insert Insert an entity into a specified set. Optionally, the placement of the new entity relative to other elements of the set may be specified.
Let Set a locator variable to reference a specified set.
Remove Remove an entity from a set.
Builtin function
ALL performs various operations on all members of a set, depending on the context in which it appears.
APLESET returns a value indicating whether or not a file-set has been created.
APLEVAR returns a pointer to the entity containing the set specified by its argument, or NULL if the set is a file-set.
APLINDX
APLNUMB
APLOWNI
APLOWRS
APLSNAM
APLTYPE

Other features

An OFFSET variable identifies the relative location of a based variable in the containing file. A DESCRIPTOR variable resembles a pointer variable, but also contains the length of the associated based variable in addition to its address.

The LOCK statement puts a program into "locked status", where all asynchronous events will be queued. A corresponding UNLOCK statement puts the program in "unlocked status", capable of processing asynchronous events. All queued events will be processed.

Asynchronous processing

Apple uses the PL/I EVENT data type to implement asynchronous processing.

An event variable can be associated with an external action, such as a keypress at the user's terminal, by a system call. Each event has a "delay state" and a "completion state" associated with it. When the event associated with the action occurs, the event becomes complete, and remains complete until the program accesses the information associated with the event. Events can also be marked complete with a SIGNAL statement, rather than the PL/I standard assignment to theCOMPLETION pseudovariable. An event can be put into a delay state by the DELAY pseudovariable, and recognition will remain deferred until the program resets the delay state.

Events can be associated with "ON-Units", by the ON EVENT statement, similar to PL/I standard for conditions. The REVERT statement removes the association. When the event is recognized (complete and not delayed) the On-Unit is executed. This ON-Unit can access system information about the event using the ONPTR builtin function, which returns the address of an "Event Completion Block", and sets the event to complete.

Hardware access

The REGISTER storage class and the INLINE builtin subroutine allow access to STAR hardware features.

A scalar arithmetic variable can be declared REGISTER [register-specification]. register-specification can be an unsigned integer constant 0..255 to specify one of the computer's hardware registers. If it is omitted the compiler will assign a register.[citation needed]

The INLINE builtin subroutine inserts an arbitrary machine-language instruction into the compiled code. Except for the function code (operation code) and subcode of the instructions all operands can be numeric constants, variables, or arithmetic constants.

Example:[1]: p.202 

 CALL INLINE("F8", 5, 0, SOURCE, 0, "20", 0, TARGET);

Text replacement

The LITERALLY specification allows the programmer to specify replacement text to be substituted at compile time. The syntax is:

 %DECLARE <identifier> LITERALLY [ (<parameter-list> ) ] <character-constant> ;

If <parameter-list> is not specified the compiler replaces all occurrences of <identifier> throughout the program with <character-constant>.If <parameter-list> is specified, the replacement character string is formed by replacing all occurrences of the parameter name with the corresponding argument.

Example:

 %DECLARE BITS LITERALLY(A1,A2) 'A1*A2*64';
 I = BITS(J,B);

will generate the statement:

 I=J*8*64;

Omitted PL/I features

Some features of standard PL/I are not included in Apple. The most significant are:[1]

  • The CONTROLLED and AREA storage attributes are not supported. FILE and FILESET have many of the characteristics of AREA.
  • List-directed and data-directed input and output are not supported.
  • Record input-output statements, including READ, WRITE, REWRITE, LOCATE, and DELETE. DELETE is used as a synonym for FREE when deleting ENTITY variables.

References

  1. ^ a b c d e Krull, Fred; Marcotty, Michael; Pickrtt, Mary; Thomas, James; Zeilinger, Ronald (1972). Apple Reference Manual (PDF). General Motors Research Laboratories. Retrieved June 29, 2024.
  2. ^ Bachman, Charles (January 2006). An interview with Charles W. Bachman. doi:10.1145/1141880.1141882. ISBN 978-1-4503-1771-9. Retrieved June 29, 2024 – via ACM Digital Library."George [Dodd] built a very attractive IDS like system, called 'Associative Programming Language' (APL) which was integrated with PL/1. General Motors used it extensively in the graphic design system for automotive development. IBM latter asked GM to give up the initials, APL, so they could use them with their, 'A Programming Language.'”

Read other articles:

Hochschule Nordhausen Motto Persönlich – Innovativ – Vielfältig Gründung 1997 Trägerschaft staatlich Ort Nordhausen Bundesland Thüringen Land Deutschland Präsident Jörg Wagner Studierende 2035 (Wintersemester 2022/23)[1] Mitarbeiter ca. 300 davon Professoren 52 (mit Vertretungsprofessuren am 3. November 2023)[2][3] Jahresetat 10 Mio. €[4] Website www.hs-nordhausen.de Die Hochschule (HS) Nordhausen – University of Applied Sciences (auch: HSN), bis...

 

Hardeep Singh NijjarNijjar pada 2020Lahir(1977-10-11)11 Oktober 1977Bhar Singh Pura, Jalandhar, Punjab, India[1][2]Meninggal18 Juni 2023(2023-06-18) (umur 45)Surrey, British Columbia, KanadaSebab meninggalBeberapa tembakanWarga negaraIndia (sampai 2007)Kanada (dari 2007)OrganisasiSikhs for JusticeGerakan politikKhalistan Hardeep Singh Nijjar (11 November 1977 – 18 Juni 2023) adalah seorang pemimpin separatis Sikh Kanada[3] yang terlibat dengan...

 

Jeunes filles indiennes en 2006. Une jeune fille en salwar à Delhi. La condition des femmes en Inde a énormément fluctué au gré de l'histoire multimillénaire de ce pays[1],[2], et de façon diversifiée selon leur groupe religieux d'appartenance. D'une relative égalité avec les hommes aux temps anciens[3] à l'émergence, réforme après réforme, des droits des femmes, l’histoire des femmes indiennes a connu de multiples bouleversements. Dans l’Inde d'aujourd'hui, les femmes occu...

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (أبريل 2023)   لمعانٍ أخرى، طالع بين (توضيح). بين   معلومات شخصية اسم الولادة (بالكورية: 이은영)‏  الميلاد 30 يوليو 1991 (32 سنة)  إنتشون  مواطنة كوريا الجنوبية  ...

 

artikel ini tidak memiliki pranala ke artikel lain. Tidak ada alasan yang diberikan. Bantu kami untuk mengembangkannya dengan memberikan pranala ke artikel lain secukupnya. (Pelajari cara dan kapan saatnya untuk menghapus pesan templat ini) Long March 2A Long March 2A, juga dikenal sebagai Chang Zheng 2A, CZ-2A dan LM-2A, adalah roket pembawa orbital Cina. Ini diluncurkan dari Peluncuran 2B area di Jiuquan Satellite Launch Centre. Itu adalah roket 2 tahap, dan terbang hanya sekali, pada tangg...

 

『こんな私に誰がした』(こんなわたしにだれがした)は、フジテレビ系列で1996年10月15日 - 12月17日に放送されたテレビドラマ。 放送時間は火曜21:00 - 21:54だが、初回と最終回は22:14までの拡大版。また12月10日放送の第9話は、19:00 - 21:54に音楽特別番組『1996 FNS歌謡祭』が編成されたので、1時間繰り下げて22:00 - 22:54で放送した。 あらすじ この節にあるあらすじは作品内容

Artikel ini sebatang kara, artinya tidak ada artikel lain yang memiliki pranala balik ke halaman ini.Bantulah menambah pranala ke artikel ini dari artikel yang berhubungan atau coba peralatan pencari pranala.Tag ini diberikan pada Oktober 2022. Ada usul agar artikel ini digabungkan dengan Etika sektor publik. (Diskusikan) Etika Publik adalah pencerminan tentang norma yang menentukan benar atau salah, baik atau buruk perilaku, tindakan dan keputusan dalam merumuskan kebijakan publik dengan tuj...

 

Araña Ficha técnicaDirección Andrés WoodProducción Alejandra GarcíaGuion Guillermo Calderón Andrés WoodMúsica Antonio PintoFotografía M. I. Littin-MenzMontaje Andrea ChignoliProtagonistas Mercedes Morán María Valverde Marcelo Alonso Pedro Fontaine Felipe Armas Gabriel Urzúa Caio Blat María Gracia Omegna Mario Horton Ver todos los créditos (IMDb)Datos y cifrasPaís ChileArgentinaBrasilAño 2019Género Thriller políticoDuración 100 minutosIdioma(s) EspañolFicha en IMDbFicha en...

 

Pemerahan susu sapi, contoh penggunaan hewan secara praktisPatung kucing dari Mesir Kuno, contoh penggunaan hewan secara simbolis Hewan nonmanusia telah menjadi bagian penting dalam kehidupan manusia sejak zaman dahulu kala. Interaksi antara manusia dan hewan menjadi intens sejak manusia mendomestikasi hewan. Hewan-hewan kemudian dimanfaatkan secara praktis, misalnya dijadikan sumber makanan dan bahan pakaian, serta dimanfaatkan secara simbolis, misalnya dijadikan objek dalam karya seni dan d...

American politician and lawyer Arch MooreMoore in 196928th and 30th Governor of West VirginiaIn officeJanuary 14, 1985 – January 16, 1989Preceded byJay RockefellerSucceeded byGaston CapertonIn officeJanuary 13, 1969 – January 17, 1977Preceded byHulett SmithSucceeded byJay RockefellerChair of the National Governors AssociationIn officeSeptember 12, 1971 – June 4, 1972Preceded byWarren HearnesSucceeded byMarvin MandelMember of the U.S. House of Repre...

 

Cet article est une ébauche concernant une personnalité vietnamienne. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. Trần Tiểu VyBiographieNaissance 23 août 2000 (23 ans)Hội AnNationalité vietnamienneActivité MannequinAutres informationsYeux Brun (d)modifier - modifier le code - modifier Wikidata Trần Tiểu Vy, née le 23 août 2000, est une mannequin vietnamienne couronnée Miss Vietnam 2018....

 

Der Titel dieses Artikels ist mehrdeutig. Zum Titularerzbistum siehe Titularerzbistum Marcianopolis. Marcianopolis – Lage in Bulgarien Dewnja – Bulgarien – Nachbarorte: Warna, Baltschik, Dobritsch, Kardam, Kaspitschan, Schumen, Preslaw, Karnobat, Ajtos, Burgas Die Stadt Marcianopolis (auch Markianopolis; griechisch Μαρκιανούπολις Markianoupolis; bulgarisch Марцианопол Marzianopol) war in der Antike Hauptstadt der römischen Provinz Moesia inferior (Niedermösien...

Not to be confused with Bukit Batok Bus Depot. This article relies largely or entirely on a single source. Relevant discussion may be found on the talk page. Please help improve this article by introducing citations to additional sources.Find sources: Bukit Batok Bus Interchange – news · newspapers · books · scholar · JSTOR (September 2017) 1°35′0″N 103°53′46″E / 1.58333°N 103.89611°E / 1.58333; 103.89611 Bukit Batok...

 

Barbara BroccoliLahirBarbara Dana BroccoliPekerjaanProduser film Barbara Dana Broccoli OBE (lahir 18 Juni 1960) merupakan seorang produser film asal AS. Ia merupakan putri dari produser legendaris film James Bond, Albert R. Broccoli. Dana, begitu biasa ia dipanggil, merupakan alumni dari Loyola Marymount University bidang studi produksi film dan acara TV. Ia menjadi salah satu tokoh kesuksesan film James Bond sejak ia masuk menjadi asisten sutradara dalam film Octopussy di 1983, di mana saat ...

 

Unincorporated community in Illinois, United StatesWoodburn, IllinoisUnincorporated communityWoodburnShow map of IllinoisWoodburnShow map of the United StatesCoordinates: 39°02′51″N 90°00′43″W / 39.04750°N 90.01194°W / 39.04750; -90.01194CountryUnited StatesStateIllinoisCountyMacoupinEstablished1834Elevation640 ft (195 m)Population (1911) • Total175Time zoneUTC-6 (Central (CST)) • Summer (DST)UTC-5 (CDT)ZIP code62014Ar...

Uruguay en los Juegos Olímpicos Bandera de UruguayCódigo COI URUCON Comité Olímpico Uruguayo(pág. web)Juegos Olímpicos de Londres 1948Deportistas 61 en 11 deportesMedallasPuesto: 26 0 1 1 2 Historia olímpicaJuegos de verano 1924 • 1928 • 1932 • 1936 • 1948 • 1952 • 1956 • 1960 • 1964 • 1968 • 1972 • 1976 • 1980 • 1984 • 1988 ...

 

Pakistani field hockey player (1927–2019) Abdul Hamid HamidiCaptain of Pakistan field hockey team Abdul Hamid Hamidi at the victory stand of the 1960 Olympics field hockey tournament. Pakistan clinched gold, India silver and Spain bronze medal.Personal informationNationality British Indian (1927-1947) Pakistani (1947-2019)Born(1927-01-07)7 January 1927Ghoriwala, Bannu, British IndiaDied11 July 2019(2019-07-11) (aged 92)Rawalpindi, Punjab, Pakistan (laid to rest at Tarang Graveyard, Ban...

 

Book by Herbjørg Wassmo Hudløs himmel First editionAuthorHerbjørg WassmoCountryNorwayLanguageNorwegianPublished1986PublisherGyldendalAwardsNordic Council's Literature Prize of 1987 Hudløs himmel is a 1986 novel by Norwegian author Herbjørg Wassmo. It won the Nordic Council's Literature Prize in 1987.[1][2] References ^ Literature Prizewinners 1962 - 2013 — Nordic cooperation. Archived from the original on 2016-03-19. Retrieved 2014-12-17. ^ Nordic Council Literature Pri...

American football player and coach (born 1977) Jamey ChadwellChadwell at 2017 Sun Belt Media DayCurrent positionTitleHead coachTeamLibertyConferenceC-USARecord13–0Annual salary$4 millionBiographical detailsBorn (1977-01-10) January 10, 1977 (age 46)Caryville, Tennessee, U.S.Playing career1995–1999East Tennessee State Position(s)QuarterbackCoaching career (HC unless noted)2000–2003East Tennessee State (QB/RB/TE)2004–2008Charleston Southern (OC/RC)2009–2011North Greenville2012Del...

 

Questa voce o sezione sull'argomento trasporti non cita le fonti necessarie o quelle presenti sono insufficienti. Puoi migliorare questa voce aggiungendo citazioni da fonti attendibili secondo le linee guida sull'uso delle fonti. Segui i suggerimenti del progetto di riferimento. Lunotto di una Topolino Il lunotto è la parte finestrata posteriore dei veicoli. Indice 1 Introduzione 2 Vocabolo 2.1 Derivazioni 3 Utilità 4 Materiali 5 Voci correlate 6 Altri progetti Introduzione Per lunotto...

 

Strategi Solo vs Squad di Free Fire: Cara Menang Mudah!