Category Archives: Komputer dan Teknologi

Seluruh artikel yang berhubungan dengan dunia komputer

Pengertian Layer pada Photoshop

Photoshop seperti yang kita ketahui bersama adalah suatu program untuk mengolah foto, dengan adobe photoshop kamu bisa memanipulasi foto menjadi sangat aneh, lucu, dan unik. Software ini merupakan aplikasi yang paling banyak dipakai oleh photo manipulator atau designer grafis di seluruh penjuru dunia dikarenakan fitur2 yang ditawarkan sangat menarik. Namun untuk orang yang awam akan sangat sulit sekali belajar software photoshop ini.

Disini saya akan mencoba untuk mengajarkan konsep layer yang ada di adobe photoshop ini.

Nah jika kamu melihat ke pojok kanan bawah dari layar photoshop kamu, maka kamu akan melihat tampilan seperti dibawah ini :

Kamu bisa melihat di gambar tersebut terdapat 3 buah layer (lapisan)

1. layer 2

2. layer 1

3. background

jika kamu membayangkan sebuah layer, coba kamu bayangkan sebuah gambar yang digambar diatas plastik transparan. Layer pada photoshop bisa dianalogikan seperti demikian. Layer yang paling atas (layer 2) akan berada diatas layer dibawahnya dan seterusnya, sehingga apabila kamu menggambar sesuatu di layer paling atas itu akan menutupi gambar yang berada di layer bawahnya.

Dengan fitur layer seperti ini kita bisa dengan mudah memanipulasi gambar pada layer yang satu dan layer yang lain tanpa mempengaruhi satu sama lain.

Misal : kamu bisa membuat tulisan dengan efek blur di layar 1 dan kamu bisa membuat tulisan dengan efek bercahaya di layer 2, dan seterusnya.

Kamu juga bisa mengatur opacity dan fill untuk masing2 layer, itu akan mengatur tingkat ketransparanan dari suatu layer..

sisanya kamu bias coba2 sendiri… tapi intinya sih seperti itu.. cukup bayangkan suatu gambar pada layer 1 merupakan gambar yang ada di suatu plastik transparan.. semoga berguna :)

Tentang android

android

Android, kamu semua pernah denger kan sekarang lagi terkenal banget yang namanya android ?

Android itu adalah sistem operasi yang dikeluarin sama Google (pernah denger kan ?) untuk (mayoritas) dipake sama perangkat Handphone atau Tab, persis kayak windows di komputer atau Macintosh di Apple Komputer.

Trus kenapa sih istimewanya android ?

Sekarang kan ada beberapa sistem operasi untuk mobile device kayak Ios untuk perangkat keluaran dari Apple, Windows Mobile untuk aplikasi yang dipakai Nokia, Symbian yang dipakai juga untuk nokia, RIM untuk perangkat Blackberry, dll.

Nah keistimewaan android itu adalah karena dia opensource sehingga mudah untuk dioprek sama orang2 (tentu aja yang bisa oprek2 android bukan orang awam, karena butuh pengetahuan IT yang lumayan)

Tapi untuk orang awam keistimewaannya adalah banyaknya aplikasi yang bisa didownload dari android, mulai dari game yang kualitasnya setara dengan PS2, sampai aplikasi aneh2 juga ada. Enaknya lagi, kita semua bisa download langsung dari android market atau download dari internet (bertebaran banyak situs yang nyediain link aplikasi android gratisan)

Aplikasi android juga dijual dengan harga yang relatif murah, kayak game terkenal Cut The Rope dijual seharga +- 9000 rupiah doang. Selain itu android bisa untuk menjalankan emulator game kayak gameboy advance, sega, PlayStation, dll
Bayangin deh, ada HP yang kemampuannya ngejalanin emulator game ?? Kalo dulu kita ngejalanin emulator game dari komputer, sekarang kita bisa ngejalanin dari HP ?? canggih banget ya ? :)

Oh iya yang paling penting dari android itu tentang Root atau Rooting.

Apa sih yang dimaksud Root Android ??

Jadi gini Bos, android itu kan dibikin sama perusahaan besar kayak google, nah di sistem operasi android yang diinstal itu dibatasin hak aksesnya sama si google biar pengguna itu gak asal akses trus ngapus2 file sistem yang penting. Nah karena dibatasin itu kan jadi gak enak kan ya ?? misal kita gak bisa instal aplikasi kayak Titanium Backup (aplikasi buat ngebackup dan restore aplikasi yang ada di HP/Tab kita), gak bisa buat overclock (ngubah kecepatan CPU), dan banyak lagi yang lainnya.

Cara ngeroot tuh gmn sih ??

wah banyak bos, beda2 HP/Tab, beda juga caranya

cuma intinya Ngeroot android itu kayak ngejailbreak kalo di Apple yang bisa bikin kita memiliki hak akses penuh sama perangkat yang kita punya. Nanti kalo udah berhasil ngeroot bakalan muncul aplikasi yang namanya Superuser

Trus katanya Root Android itu ngerusak garansi ya ??

Yoi bener banget, jadi si penjual HP atau Tab macem samsung, HTC, dan lain lain ngancem pembeli kalo diubah2 bakalan ngerusak garansi, abisan kan jengkel juga bos kalo ada orang yang sotoy2 ngapus file sistem di android karena misalnya lagi galau trus diapus2in semua filenya trus jadi ngehang HP-nya apa gimana.. makanya sekalian aja diancem kalo ngeroot android bakalan ngerusak garansi… hehe

Tapi tenang bos, kalo udah diroot misal ada kenapa2 yah tinggal dibalikin aja lagi ke setinggan awal HP waktu kita beli, jadi gak keliatan lagi deh HP android kita itu di root atau enggak.. jadi cara biar HP android kita yang udah diroot bisa diklaim atau gak hangus garansinya yah segampang itu doang bos :)

Gimana ?? udah ngerti belum nih ?? kalo ada yang bingung tanya aja ya.. biar sama2 belajar, soalnya saya punya android juga baru nih, abis beli smartfren andro trus langsung dioprek abis2an instal aplikasi aneh2.. hehhe

Nah, nyaris lupa.. tentang aplikasi android itu ekstensinya tuh .APK kepanjangan dari Android Package

jadi kalo mau cari game misal Cut The Rope, nama filenya yang kita download Cut The Rope.Apk

atau mau download game Batman 2012, makanya kita harus download Batman2012.Apk

Tapi biasanya sih kalo game HD (high definition) gitu selain .apk harus ada “data”nya

jadi nanti kita harus download Batman2012.apk sama data-nya yang harus dipindahin (biasanya) sih di sdcard/android/data

gitu aja sih kayaknya tentang android… sorry kalo ada salah2 kata nih ya bos :)

Menyembunyikan Blog Ketika JavaScript Dimatikan

Tak ada bokong gading yang tak terbelah retak. Semua hal tentu memiliki kelemahan. Begitu juga dengan Anti Klik Kanan yang hanya memakai JavaScript. Tentu tidak akan berfungsi jika JavaScriptnya dinonaktifkan pada pengaturan browser. Karena itulah aku membuat trik ini. Simple, setidaknya sedikit berguna dan menjadi solusi untuk mencegah pencurian content blog.

Untuk demo, aku rasa tidak perlu. Cukup aku deskripsikan saja. Ketika seseorang mengunjungi blog kalian dengan mematikan JavaScript pada browsernya, maka yang akan tampil di blog kalian hanyalah halaman kosong, seperti blank page pada browser. Tidak ada isinya. Sehingga membuat pengunjung sedikit bingung karena dia tidak melihat apapun disana. OK, mari kita mulai!

1. Pertama Sign in terlebih dahulu ke account blogger kalian. Pada halaman Dashboard, kalian klik Design/Rancangan.
2. Selanjutnya klik Edit HTML.
3. BackUp template kamu untuk berjaga-jaga jika terjadi kesalahan dalamalam pengeditan ini.
4. Kamu copy script dibawah ini:

Letakkan script tersebut diatas kode
5. template kamu.

Blogger Punya Widget Favicon Sendir

Ucapkan horeee buat Blogger. Sekarang blogger udah punya aplikasi untuk upload favicon kita sendiri. Jadi untuk yang masih pakai trik Mengubah Favicon Blogger, mending dihapus aja deh… Sekarang udah jamannya pakai Favicon sendiri!

Waktu aku buka blog nih, lagi asyik nglanjutin artikel penjiplakan nama Dark Ard yang makin kacau (sialan, nama gw ama blog gw dijiplak… Udah gitu anaknya gak ngaku apalagi tanggung jawab),

Gak sengaja nengok Halaman RANCANGAN pada blogger.
Busyet, sangat terkecjut ketika ku melihat ada tempat buat upload Favicon!

Gw tentunya ya jadi senyam senyum.. Haha… Ok deh, langsung gw praktekin:

Pertama, kamu kudu pake Blogger Draft, ato http://draft.blogger.com/ sebagai blog service utama kamu.

Kedua, kamu masuk ke bagian RANCANGAN, lalu kamu klik EDIT pada Favicon di kiri atas

Lalu kamu Browse, dan pilih Favicon kamu,

Setelah terupload, klik simpan, selesai. Lihat blog kamu.

Tapi sayangnya…

Favicon dari Blogger ini, baru muncul setelah Loading blog selesai.
Jadi kalau loading blog kalian lama, maka faviconnya lama juga keluarnya, jadi mending pake cara manual aja :P

GIMP

Dimalam yang sedingin ini aku iseng-iseng aja deh buat posting blog yang isinya merupakan…. apa hayo….Yups engga salah lagi seperti yang sudah ana tuliskan diatas kita akan membahas GIMP. Lets cekedotttt gan…..

Gimp adalah GNU Image Manipulation Program atau Program Pengolah Gambar GNU

Dalam dokumentasi resmi begini bunyinya:

GIMP is a

multi-platform photo manipulation tool. GIMP is an acronym for GNU Image Manipulation Program. The GIMP is suitable for a variety of image manipulation tasks, including photo retouching, image composition, and image construction.

It has many capabilities. It can be used as a simple paint program, an expert quality photo retouching program, an online batch processing system, a mass production image renderer, an image format converter, etc.

(GIMP adalah alat pengolah gambar multi-platform. GIMP adalah singkatan dari GNU Image Manipulation Program. GIMP cocok untuk berbagai pekerjaan pengolahan gambar, termasuk perbaikan foto, penggabungan dan pembuatan gambar. GIMP memiliki berbagai kemampuan. Software ini dapat digunakan untuk program paint sederhana, program perbaikan foto berkualitas tinggi, sistem pemrosesan batch online, produksi massal render gambar, konverter format gambar dll)

Maksudnya multi-platform adalah bisa dijalankan di berbagai sistem operasi. Saat ini GIMP sudah bisa dijalankan di GNU/Linux, Apple MacOS-X, Microsoft Windows, OpenBSD, NetBSD, FreeBSD, Solaris, SunOS, AIX, HP-UX, Tru64, Digital UNIX, OSF/1, IRIX, OS/2 dan BeOS.

INI DIA NIH TAMPILAN GIMPNYA :

Gimana?????? menarik, lucu, katro or simple…. what ever lah.

Di dalam GIMP kita juga dapat menemukan efek2 yang bermacam – macam. Penasaran kan… lanjutkan

Efek gambar yang dapat digunakan untuk mengubah tampilan gambar terbagi menjadi tiga
jenis, yaitu efek pada Filters, efek pada Phyton-Fu, dan efek pada Script-Fu. Tentu saja,
setiap efek memiliki kegunaan dan karakteristik yang berbeda-beda.

A. PENGGUNAAN FILTERS
Pada menu Filters terdapat 16 pilihan efek yang dapat Anda gunakan untuk mengubah
atau menghias tampilan gambar.Efek-efek yang tersedia berupa penambahan atau
penghapusan objek gambar, pengaturan tingkat pencahayaan, atau transformasi secara
total suatu menjadi objek baru.
1.. Bllurr
Gambar yang terlalu jelas menampakkan detail gambar kadangkala justru menunjukkan
detil-detil buruk pada objek gambar itu sendiri. Disinilah efek Blur dibutuhkan, yaitu agar gambar menjadi agak buram sehingga detil-detil objek gambar yang tidak dikehendaki dapat disembunyikan.
2.. Collorr
Analogi untuk efek ini adalah seperti gambar yang tertutup oleh plastik transparan
berwarna. Misalnya Anda menggunakan plastik berwarna merah, maka akan terlihat
semua objek gambar bersemu merah. Pilihan warna yang tersedia cukup bervariasi.
3.. Noiise
Efek yang diberikan kepada suatu gambar sehingga gambar terlihat seolah-olah dalam
keadaan terurai atau pecah menjadi banyak bagian. Proses pemberian efeknya dapat
berupa penambahan dan pengurangan bercak-bercak berwarna (noise). Semakin besar nilai Random seed, semakin banyak noise yang ditempelkan sehingga
gambar terlihat semakin terurai.
4.. Edge Dettectt
Edge adalah efek yang diberikan kepada suatu gambar dengan memperhatikan setiap titik
dan garis yang membentuk gambar. Dengan pilihan ini dapat dibuat siluet gambar atau
sketsa gambar yang sudah ada.
5.. Enhance
Dengan memberikan efek Enhance, maka detail gambar akan mengalami pengurangan.
Hasil akhir yang diperlihatkan dari penggunaan efek ini adalah gambar semakin jelas dan
terang. Hal ini terjadi karena GIMP menghapus beberapa pixel gambar yang dianggap
tidak perlu.
6.. Generriic
Efek untuk menambahkan intensitas cahaya sehingga gambar terlihat lebih terang dan
jelas. Biasanya efek Generic yang diberikan berupa efek-efek instan secara langsung
tanpa perlu mengedit properties efek gambar.
7.. Gllass Effffectt
Efek gambar yang memperlihatkan tampilan gambar jika dilihat dari balik gelas atau
berbagai bentuk lensa. Lensa tersebut dapat berbentuk cekung, cembung, datar, atau
kombinasi dari 3 bentuk tesebut. Perbedaan bentuk lensa akan menimbulkan efek spesial yang menarik bagi tampilan gambar.
8.. Liightt Effffectt
Jika Glass Effect memperlihatkan efek tampilan gambar jika dilihat dari barik kaca, maka Light Effect memperlihatkan tampilan gambar jika disinari berbagai jenis cahaya. Tampilan gambar akan tergantung dari kekuatan cahaya, arah cahaya, dan struktur cahaya yang diberikan.
9.. Diisttorrtt
Dengan efek distort ini maka bentuk gambar akan berubah sesuai dengan pengaturan efek gambar. Sebagian besar efek yang disediakan didalam keluarga distort ini adalah untuk menampilkan gambar dalam bentuk 3 dimensi.
10.. Arrttiisttiic
GIMP menyediakan fasilitas untuk mengubah gambar bitmap biasa menjadi sebuah karya
lukisan yang bernilai seni tinggi. Efek Artistic ini memungkinkan sebuah gambar berubah menjadi sebuah lukisan dengan berbagai aliran yang berbeda, misalnya menjadi sebuah karya dengan aliran realisme, cubisme, naturalisme, ataupun berupa karya abstrak yang penuh makna.
11.. Map
Penggandaan objek gambar dan menempatkannya diberbagai tempat yang berbeda
sehingga menampilkan efek gambar yang tidak biasa, itulah yang dikerjakan oleh efek
Map. Jumlah objek yang digandakan, ukuran objek, dan tingkat transparansi objek
semakin memperkuat kemampuan efek Map ini dalam mengolah gambar menjadi tampilan yang menarik.
12.. Renderr
Merupakan efek dengan kemampuan mengubah seluruh objek gambar menjadi objek lain
yang benar-benar berbeda tetapi tetap mengikuti alur gambar sebelumnya. Sebagian efek didalamnya menampilkan berbagai jenis corak untuk menutup keberadaan gambar yang sebenarnya.
13.. Web
Efek ini sebenarnya tidak termasuk dalam efek gambar karena lebih difungsikan untuk
pemotongan gambar atau yang lebih dikenal sebagai cropping. Melalui fasilitas ini,
gambar dapat dibagi menjadi beberapa bagian sesuai dengan space dalam halaman web.
14.. Aniimattiion
Fasilitas dalam GIMP untuk mengatur format file gambar ke dalam berbagai jenis gambar, di antaranya adalah animation image seperti GIF Animation. Melalui efek Animation inilah diatur segala properties file animasi tersebut.
15.. Combiine
Digunakan untuk menggabungkan gambar yang diolah dengan objek gambar lainnya.
Tampilan gambar yang dihasilkan tidak sepenuhnya mengubah gambar asli, hanya
menambahkan objek gambar lain saja ke dalamnya.
16.. Toys
Fasilitas tambahan yang berfungsi hanya sebagai game sederhana. Didalamnya terdapat 2 pilihan, yaitu Gee Slime dan Gee Zoom. Jika pilihan Gee Slime Anda klik, akan ditampilkan layar yang berisi gambar dengan animasi percikan air didepannya. Jika mouse Anda gerakkan, maka percikan air akan semakin besar mengikuti pergerakan mouse. Dan Gee Zoom pun hampir sama dengan Gee Slime, hanya saja bukan berupa percikan air tapi berupa pembesaran gambar.

B. PENGGUNAAN PHYTON-FU
Hanya dalam progam GIMP Anda dapat menemukan pengelompokkan efek gambar
berdasarkan alur efek gambar yang terjadi. GIMP menyediakan efek Phyton-Fu yang akan mengolah gambar menjadi sebuah hasil dengan efek mengikuti karakteristik ular Phyton.
Secara garis besar bentuknya akan meliuk-liuk atau lentur seperti tubuh seekor ular. Walaupun jumlah efek yang disediakan tidak sebanyak pada menu Filters, tetapi
menjadikan gambar hasil pengolahan GIMP unik dan berbeda dibandingkan dengan
gambar hasil pengolahan program desain grafis yang lain.
1.. Allchemy
Hanya terdapat satu pilihan efek dalam kategori Alchemy, yaitu Clothify, yang dapat Anda gunakan jika Anda ingin menampilkan gambar seperti tekstur kulit ular yang bersisik. Dilihat sekilas, efek Clothify ini hampir sama dengan efek Apply Canvas yang terdapat di dalam menu Filters.
2.. Diisttorrtts
Sama dengan efek Distorts yang ada dalam menu Filters, efek ini akan mengubah gambar hingga menyerupai bentuk 3 dimensi. Yang membedakan dengan efek Distorts hanyalah bentuknya yang menyerupai struktur tubuh seekor ular.
3.. Effffectts
Efek khusus ini akan menjadikan gambar terlihat berbayang atau berkabut. Berbeda
dengan efek Blur yang membuat gambar menjadi samar, efek yang ada pada menu
Phyton-Fu ini terlihat seperti terhalang oleh suatu objek lain.

C. PENGGUNAAN SCRIPT-FU
Menu yang akan dibahas ini menampilkan efek berdasarkan script atau aturan-aturan yang sudah disediakan oleh GIMP. Yang unik adalah setiap aturan yang ada dapat Anda ubah sesuai dengan keinginan. Dengan adanya pilihan menu Script-Fu, semakin lengkaplah efek gambar yang disediakan GIMP.
1.. Allchemy
Efek ini hampir sama seperti efek Alchemy yang ada di dalam menu Phyton-Fu, tetapi
tentu saja karena aturan-aturan efek yang ada di dalam menu Script-Fu ini dapat diubah, maka hasilnya menjadi lebih bervariasi.
2.. Allpha tto Logo
Bentuk efek Alpha to Logo berbeda dengan efek-efek sebelumnya, karena hanya berlaku
untuk file yang minimal memiliki 2 layer. Dapat dikatakan, bahwa efek ini akan menutup layer yang terletak di bawah dan menonjolkan tampilan layer di atasnya.
3.. Aniimattorrs
Fasilitas pemberian efek gambar yang menunjukkan seolah-olah gambar bergerak. Berbeda dengan GIF animator yang menampilkan gambar bergerak, efek Animators ini hanya menampilkan gambar statis tetapi memiliki alur gambar seperti bergerak.
4.. Decorr
Layer dapat pula dihias dengan menambahkan objek-objek artistik sehingga gambar lebih bermakna dan apresiatif. Yang disayangkan adalah objek-objek artistik yang dapat ditambahkan terbatas pada objek-objek yang disediakan oleh GIMP.
5.. Renderr
Efek untuk mengubah warna, membuat objek kubik, dan kemudian menggantinya
menjadi seperti lukisan cat minyak ini benar-benar mampu membuat gambar berubah
secara total. Walupun demikian, tetapi bentuk gambar terdahulu tetap dijadikan sebagai alur dasar perubahan objek.
6.. Sellecttiion
Secara khusus, objek atau layer terpilih dapat diberikan efek tertentu. Di antaranya adalah dengan memperlihatkan proses gambar nyata yang perlahan-lahan menjadi samar dan kemudian tidak tampak.
7.. Shadow
Efek terakhir yang perlu Anda pelajari adalah Shadow, suatu efek yang mampu
memberikan bayangan di belakang gambar. Letak dan ukuran bayangan dapat Anda atur
sesuai dengan keinginan dan kesesuaian dengan gambar utama.

Sekian dulu yah info mengenai GIMP yang dapat saya share. :) Smoga bermanfaat…..

Reference :

http://dirunaway.blogspot.com/2010/01/efek-gambar-pada-gimp_04.html

http://gnu-gimp.blogspot.com/2008_12_01_archive.html

Pascal (programming language)

From Wikipedia, the free encyclopedia

Pascal

Paradigm

imperative, structured

Appeared in

1970, last revised 1992

Designed by

Niklaus Wirth

Typing discipline

static, strong, safe

Major implementations

CDC 6000, ICT 1900, Pascal-P, PDP-11, PDP-10, IBM System/370, HP, GNU

Dialects

UCSD, Borland, Turbo

Influenced by

ALGOL

Influenced

Modula, Modula-2, Oberon, Oberon-2, Component Pascal, Ada, Object Pascal, Java,[1][2][3] Oxygene

Pascal is an influential imperative and procedural programming language, designed in 1968/9 and published in 1970 by Niklaus Wirth as a small and efficient language intended to encourage good programming practices using structured programming and data structuring.

A derivative known as Object Pascal was designed for object-oriented programming.

Contents

[hide]

[edit] History

Pascal was developed by Niklaus Wirth and based on the ALGOL programming language, named in honor of the French mathematician and philosopher Blaise Pascal.

Prior to his work on Pascal, Wirth had developed Euler and ALGOL W and later went on to develop the Pascal-like languages Modula-2 and Oberon.

Initially, Pascal was largely, but not exclusively, intended to teach students structured programming.[4] A generation of students used Pascal as an introductory language in undergraduate courses. Variants of Pascal have also frequently been used for everything from research projects to PC games and embedded systems. Newer Pascal compilers exist which are widely used.[5]

Pascal was the primary high-level language used for development in the Apple Lisa, and in the early years of the Mac. Parts of the original Macintosh operating system were hand-translated into Motorola 68000 assembly language from the Pascal sources. The popular typesetting system TeX by Donald E. Knuth was written in WEB, the original literate programming system, based on DEC PDP-10 Pascal, while an application like Total Commander was written in Delphi (Object Pascal).

Object Pascal is still widely used for developing Windows applications such as Skype.[citation needed]

[edit] Brief description

Wirth’s intention was to create an efficient language (regarding both compilation speed and generated code) based on so-called structured programming, a concept which had recently become popular. Pascal has its roots in the ALGOL 60 language, but also introduced concepts and mechanisms which (on top of ALGOL’s scalars and arrays) enabled programmers to define their own complex (structured) datatypes, and also made it easier to build dynamic and recursive data structures such as lists, trees and graphs. Important features included for this were records, enumerations, subranges, dynamically allocated variables with associated pointers, and sets. To make this possible and meaningful, Pascal has a strong typing on all objects, which means that one type of data cannot be converted or interpreted as another without explicit conversions. Similar mechanisms are standard in many programming languages today. Other languages that influenced Pascal’s development were COBOL, Simula 67, and Wirth’s own ALGOL W.

Pascal, like many programming languages of today (but unlike most languages in the C family), allows nested procedure definitions to any level of depth, and also allows most kinds of definitions and declarations inside procedures and functions. This enables a very simple and coherent syntax where a complete program is syntactically nearly identical to a single procedure or function (except for the keyword itself, of course.)

[edit] Implementations

The first Pascal compiler was designed in Zürich for the CDC 6000 series mainframe computer family. Niklaus Wirth reports that a first attempt to implement it in Fortran in 1969 was unsuccessful due to Fortran’s inadequacy to express complex data structures. The second attempt was formulated in the Pascal language itself and was operational by mid-1970. Many Pascal compilers since have been similarly self-hosting, that is, the compiler is itself written in Pascal, and the compiler is usually capable of recompiling itself when new features are added to the language, or when the compiler is to be ported to a new environment. The GNU Pascal compiler is one notable exception, being written in C.

The first successful port of the CDC Pascal compiler to another mainframe was completed by Welsh and Quinn at the QUB in 1972. The target was the ICL 1900 series. This compiler in turn was the parent of the Pascal compiler for the ICS Multum minicomputer. The Multum port was developed – with a view to using Pascal as a systems programming language – by Findlay, Cupples, Cavouras and Davis, working at the Department of Computing Science in Glasgow University. It is thought that Multum Pascal, which was completed in the summer of 1973, may have been the first 16-bit implementation.

A completely new compiler was completed by Welsh et al. at QUB in 1977. It offered a source-language diagnostic feature (incorporating profiling, tracing and type-aware formatted postmortem dumps) that was implemented by Findlay and Watt at Glasgow University. This implementation was ported in 1980 to the ICL 2900 series by a team based at Southampton University and Glasgow University. The Standard Pascal Model Implementation was also based on this compiler, having been adapted, by Welsh and Hay at Manchester University in 1984, to check rigorously for conformity to the BSI 6192/ISO 7185 Standard and to generate code for a portable abstract machine.

The first Pascal compiler written in North America was constructed at the University of Illinois under Donald B. Gillies for the PDP-11 and generated native machine code.

To propagate the language rapidly, a compiler “porting kit” was created in Zurich that included a compiler that generated code for a “virtual” stack machine (i.e. code that lends itself to reasonably efficient interpretation), along with an interpreter for that code – the Pascal-P system. The P-system compilers were termed Pascal-P1, Pascal-P2, Pascal-P3, and Pascal-P4. Pascal-P1 was the first version, and Pascal-P4 was the last to come from Zurich.

The Pascal-P4 compiler/interpreter can still be run and compiled on systems compatible with original Pascal. However, it only accepts a subset of the Pascal language.

Pascal-P5, created outside of the Zurich group, accepts the full Pascal language and includes ISO 7185 compatibility.

UCSD Pascal branched off Pascal-P2, where Kenneth Bowles utilized it to create the interpretive UCSD p-System

A compiler based on the Pascal-P4 compiler, which created native binaries, was released for the IBM System/370 mainframe computer by the Australian Atomic Energy Commission; it was called the “AAEC Pascal Compiler” after the abbreviation of the name of the Commission.

In the early 1980s, Watcom Pascal was developed, also for the IBM System 370.

IP Pascal was an implementation of the Pascal programming language using Micropolis DOS, but was moved rapidly to CP/M running on the Z80. It was moved to the 80386 machine types in 1994, and exists today as Windows/XP and Linux implementations. In 2008, the system was brought up to a new level and the resulting language termed “Pascaline” (after Pascal’s calculator). It includes objects, namespace controls, dynamic arrays, along with many other extensions, and generally features the same functionality and type protection as C#. It is the only such implementation which is also compatible with the original Pascal implementation (which is standardized as ISO 7185).

In the early 1980s, UCSD Pascal was ported to the Apple II and Apple III computers to provide a structured alternative to the BASIC interpreters that came with the machines.

Apple Computer created its own Lisa Pascal for the Lisa Workshop in 1982 and ported this compiler to the Apple Macintosh and MPW in 1985. In 1985 Larry Tesler, in consultation with Niklaus Wirth, defined Object Pascal and these extensions were incorporated in both the Lisa Pascal and Mac Pascal compilers.

In the 1980s Anders Hejlsberg wrote the Blue Label Pascal compiler for the Nascom-2. A reimplementation of this compiler for the IBM PC was marketed under the names Compas Pascal and PolyPascal before it was acquired by Borland. Renamed to Turbo Pascal it became hugely popular, thanks in part to an aggressive pricing strategy and in part to having one of the first full-screen Integrated development environments, and fast turnaround-time (just seconds to compile, link, and run.) Additionally, it was written and highly optimized entirely in assembly language, making it smaller and faster than much of the competition. In 1986 Anders ported Turbo Pascal to the Macintosh and incorporated Apple’s Object Pascal extensions into Turbo Pascal. These extensions were then added back into the PC version of Turbo Pascal for version 5.5. At the same time Microsoft also implemented the Object Pascal compiler.[6][7] Turbo Pascal 5.5 had a large influence on the Pascal community, which began concentrating mainly on the IBM PC in the late 1980s. Many PC hobbyists in search of a structured replacement for BASIC used this product. It also began to be adopted by professional developers. Around the same time a number of concepts were imported from C to let Pascal programmers use the C-based API of Microsoft Windows directly. These extensions included null-terminated strings, pointer arithmetic, function pointers, an address-of operator and unsafe typecasts.

However, Borland later decided it wanted more elaborate object-oriented features, and started over in Delphi using the Object Pascal draft standard proposed by Apple as a basis. (This Apple draft is still not a formal standard.) The first versions of the Delphi language were accordingly named Object Pascal. The main additions compared to the older OOP extensions were a reference-based object model, virtual constructors and destructors, and properties. Several other compilers also implement this dialect.

Turbo Pascal, and other derivatives with units or module concepts are modular languages. However, it does not provide a nested module concept or qualified import and export of specific symbols.

Super Pascal was a variant which added non-numeric labels, a return statement and expressions as names of types.

The universities of Zurich, Karlsruhe and Wuppertal have developed an EXtension for Scientific Computing (Pascal XSC), which provides a free solution for programming numerical computations with controlled precision.

[edit] Language constructs

Pascal, in its original form, is a purely procedural language and includes the traditional array of ALGOL-like control structures with reserved words such as if, then, else, while, for, and so on. However, Pascal also has many data structuring facilities and other abstractions which were not included in the original ALGOL 60, like type definitions, records, pointers, enumerations, and sets. Such constructs were in part inherited or inspired from Simula 67, ALGOL 68, Niklaus Wirth‘s own ALGOL W and suggestions by C. A. R. Hoare.

[edit] Hello world

Pascal programs start with the program keyword with a list of external file descriptors as parameters;[8] then follows the main block bracketed by the begin and end keywords. Semicolons separate statements, and the full stop (ie, a period) ends the whole program (or unit). Letter case is ignored in Pascal source.

Here is an example of the source code in use for a very simple “Hello world” program:

program HelloWorld(output);

begin

Writeln(‘Hello world!’);

end.

[edit] Data types

A type in Pascal, and in several other popular programming languages, defines a variable in such a way that it defines a range of values which the variable is capable of storing, and it also defines a set of operations that are permissible to be performed on variables of that type. The predefined types are:

Data type

Type of values which the variable is capable of storing

integer

Whole numbers

real

Floating point numbers

boolean

The value TRUE or FALSE

char

A single character from an ordered character set

The range of values allowed for each (except boolean) is implementation defined. Functions are provided for some data conversions. For conversion of real to integer, the following functions are available: round, which round to integer using banker’s rounding; trunc, round towards zero.

The programmer has the freedom to define other commonly-used data types (e.g. byte, string, etc.) in terms of the predefined types using Pascal’s type declaration facility. e.g.

type

byte = 0..255;

signedbyte = -128..127;

string = packed array [1..255] of char;

[edit] Scalar types

Pascal’s scalar types are real, integer, character, boolean and enumerations, a new type constructor introduced with Pascal:

type

SomeType = (State1,State2,State3);

var

r: Real;

i: Integer;

c: Char;

b: Boolean;

t: SomeType;

e: (apple, pear, banana, orange, lemon);

[edit] Subrange types

Subranges of any ordinal type (any simple type except real) can be made:

var

x: 1..10;

y: ‘a’..’z';

z: pear..orange;

[edit] Set types

In contrast with other programming languages from its time, Pascal supports a set type:

var

set1: set of 1..10;

set2: set of ‘a’..’z';

set3: set of pear..orange;

A set is a fundamental concept for modern mathematics, and they may be used in a many algorithms. Such a feature is useful and may be faster than an equivalent construct in a language that does not support sets. For example, for many Pascal compilers:

if i in [5..10] then

executes faster than:

if (i>4) and (i<11) then

Sets of non-contiguous values can be particularly useful, in terms of both performance and readability:

if i in [0..3, 7, 9, 12..15] then

For these examples, which involve sets over small domains, the improved performance is usually achieved by the compiler representing set variables as bitmasks. The set operators can then be implemented efficiently as bitwise machine code operations.

[edit] Type declarations

Types can be defined from other types using type declarations:

type

x = Integer;

y = x;

Further, complex types can be constructed from simple types:

type

a = Array [1..10] of Integer;

b = record

x: Integer;

y: Char

end;

c = File of a;

[edit] File type

As shown in the example above, Pascal files are sequences of components. Every file has a buffer variable which is denoted by f^. The procedures get (for reading) and put (for writing) move the buffer variable to the next element. Read is introduced such that read(f, x) is the same as x:=f^; get(f);. Write is introduced such that write(f, x) is the same as f^ := x; put(f); The type text is predefined as file of char. While the buffer variable could be used for inspecting the next character to be used (check for a digit before reading an integer), this leads to serious problems with interactive programs in early implementations, but was solved later with the “lazy I/O” concept.

In Jensen & Wirth Pascal, strings are represented as packed arrays of chars; they therefore have fixed length and are usually space-padded. Some dialects have a custom string type.

[edit] Pointer types

Pascal supports the use of pointers:

type

Nodeptr = ^Node;

Node = record

a: Integer;

b: Char;

c: Nodeptr

end;

var

ptoNode: Nodeptr;

pInt : ^Integer;

Here the variable ptoNode is a pointer to the data type Node, a record. Pointers can be used before they are declared. This is a forward declaration, an exception to the rule that things must be declared before they are used. To create a new record and assign the value 10 and character A to the fields a and b in the record, and to initialise the pointer c to nil, the commands would be:

new(ptoNode);

ptoNode^.a := 10;

ptoNode^.b := ‘A’;

ptoNode^.c := nil;

This could also be done using the with statement, as follows

new(ptoNode);

with ptoNode^ do

begin

a := 10;

b := ‘A’;

c := nil

end;

Inside of the scope of the with statement, a and b refer to the subfields of the record pointer ptoNode and not to the record Node or the pointer type Nodeptr.

Linked lists, stacks and queues can be created by including a pointer type field (c) in the record (see also nil).

Unlike many languages that feature pointers, Pascal only allows pointers to reference dynamically created variables that are anonymous, and does not allow them to reference standard static or local variables. Pointers also must have an associated type, and a pointer to one type is not compatible with a pointer to another type (e.g. a pointer to a char is not compatible with a pointer to an integer). This helps eliminate the type security issues inherent with other pointer implementations, particularly those used for PL/I or C. It also removes some risks caused by dangling pointers, but the ability to dynamically let go of referenced space by using the dispose function (which has the same effect as the free library function found in C) means that the risk of dangling pointers has not been entirely eliminated.[9]

[edit] Control structures

Pascal is a structured programming language, meaning that the flow of control is structured into standard statements, ideally without ‘goto‘ commands.

while a <> b do writeln(‘Waiting’);

if a > b then

writeln(‘Condition met’)

else

writeln(‘Condition not met’);

for i := 1 to 10 do

writeln(‘Iteration: ‘, i:1);

repeat

a := a + 1

until a = 10;

case i of

0: write(‘zero’);

1: write(‘one’);

2: write(‘two’)

end;

[edit] Procedures and functions

Pascal structures programs into procedures and functions.

program mine(output);

var i : integer;

procedure print(var j: integer);

function next(k: integer): integer;

begin

next := k + 1

end;

begin

writeln(‘The total is: ‘, j);

j := next(j)

end;

begin

i := 1;

while i <= 10 do print(i)

end.

Procedures and functions can nest to any depth, and the ‘program’ construct is the logical outermost block.

Each procedure or function can have its own declarations of goto labels, constants, types, variables, and other procedures and functions, which must all be in that order. This ordering requirement was originally intended to allow efficient single-pass compilation. However, in some dialects (such as Embarcadero Delphi) the strict ordering requirement of declaration sections has been relaxed.

[edit] Semicolons as statement separators

Pascal adopted many language syntax features from the ALGOL language, including the use of a semicolon as a statement separator. This is in contrast to other languages, such as PL/I, C etc. which use the semicolon as a statement terminator. As illustrated in the above examples, no semicolon is needed before the end keyword of a record type declaration, a block, or a case statement; before the until keyword of a repeat statement; and before the else keyword of an if statement.

The presence of an extra semicolon was not permitted in early versions of Pascal. However, the addition of ALGOL-like empty statements in the 1973 Revised Report and later changes to the language in ISO 7185:1983 now allow for optional semicolons in most of these cases. The exception is that a semicolon is still not permitted immediately before the else keyword in an if statement.

[edit] Resources

[edit] Compilers and interpreters

Several Pascal compilers and interpreters are available for the use of general public:

  • Delphi is Embarcadero’s (formerly Borland/CodeGear) flagship rapid application development (RAD) product. It uses the Object Pascal language (termed ‘Delphi’ by Borland), descended from Pascal, to create applications for the windows platform. The .NET support that existed from D8 through D2005,D2006 and D2007 has been terminated, and replaced by a new language (Prism, which is rebranded Oxygene, see below) that is not fully backwards compatible. The most recent iteration of the win32 range (D2009) adds unicode and generics support.
  • Free Pascal is a multi-platform compiler written in Object Pascal (and is self-hosting). It is aimed at providing a convenient and powerful compiler, both able to compile legacy applications and to be the means of developing new ones. It is distributed under the GNU GPL, while packages and runtime library come under a modified GNU LGPL. Apart from compatibility modes for Turbo Pascal, Delphi and Mac Pascal, it also has its own procedural and object-oriented syntax modes with support for extended features such as operator overloading. It supports many platforms and operating systems.
  • Lazarus is a Delphi-like visual cross-platform IDE for rapid application development (RAD). Based on Free Pascal, Lazarus is available for numerous platforms including Linux, FreeBSD, Mac OS X and Microsoft Windows.
  • Dev-Pascal is a Pascal IDE that was designed in Borland Delphi and which supports Free Pascal and GNU Pascal as backends.
  • Turbo51 is a free Pascal compiler for the 8051 family of microcontrollers, with Turbo Pascal 7 syntax.
  • Oxygene (formerly known as Chrome) is an Object Pascal compiler for the .NET and Mono platforms. It was created and is sold by RemObjects Software, and recently by Embarcadero as the backend compiler of Prism.
  • Kylix was a descendant of Delphi, with support for the Linux operating system and an improved object library. It is no longer supported. Compiler and IDE are available now for non-commercial use.
  • GNU Pascal Compiler (GPC) is the Pascal compiler of the GNU Compiler Collection (GCC). The compiler itself is written in C, the runtime library mostly in Pascal. Distributed under the GNU General Public License, it runs on many platforms and operating systems. It supports the ANSI/ISO standard languages and has partial Turbo Pascal dialect support. One of the more painful omissions is the absence of a 100% Turbo Pascal-compatible string type. Support for Borland Delphi and other language variations is quite limited, except maybe for Mac Pascal, the support for which is growing fast.
  • DWScript aka DelphiWebScript, is an interpreter created by Matthias Ackermann and Hannes Hernler in 2000. Current version runs a dialect of Object Pascal largely compatible with Delphi, but also supports language constructs elements introduced in Prism.
  • Dr. Pascal is an interpreter that runs Standard Pascal. Notable are the “visible execution” mode that shows a running program and its variables, and the extensive runtime error checking. Runs programs but does not emit a separate executable binary. Runs on DOS, Windows in DOS window, and old Macintosh.
  • Dr. Pascal’s Extended Pascal Compiler tested on DOS, Windows 3.1, 95, 98, NT.
  • Virtual Pascal was created by Vitaly Miryanov in 1995 as a native OS/2 compiler compatible with Borland Pascal syntax. Then, it had been commercially developed by fPrint, adding Win32 support, and in 2000 it became freeware. Today it can compile for Win32, OS/2 and Linux, and is mostly compatible with Borland Pascal and Delphi. Development was canceled on April 4, 2005.
  • P4 compiler, the basis for many subsequent Pascal-implemented-in-Pascal compilers, including the UCSD p-System. It implements a subset of full Pascal.
  • P5 compiler, is an ISO 7185 (full Pascal) adaption of P4.
  • Turbo Pascal was the dominant Pascal compiler for PCs during the 80s and early 90s, popular both because of its powerful extensions and extremely short compilation times. Turbo Pascal was compactly written and could compile, run, and debug all from memory without accessing disk. Slow floppy disk drives were common for programmers at the time, further magnifying Turbo Pascal’s speed advantage. Currently, older versions of Turbo Pascal (up to 5.5) are available for free download from Borland’s site.
  • IP Pascal Implements the language “Pascaline” (named after Pascal’s calculator), which is a highly extended Pascal compatible with original Pascal according to ISO 7185. It features modules with namespace control, including parallel tasking modules with semaphores, objects, dynamic arrays of any dimensions that are allocated at runtime, overloads, overrides, and many other extensions. IP Pascal has a built-in portability library that is custom tailored to the Pascal language. For example, a standard text output application from 1970′s original Pascal can be recompiled to work in a window and even have graphical constructs added.
  • Pascal-XT was created by Siemens for their mainframe operating systems BS2000 and SINIX.
  • PocketStudio is a Pascal subset compiler and RAD tool for Palm OS and MC68xxx processors with some own extensions to assist interfacing with the Palm OS API. It resembles Delphi and Lazarus with a visual form designer, an object inspector and a source code editor.
  • MIDletPascal – A Pascal compiler and IDE that generates small and fast Java bytecode specifically designed to create software for mobiles
  • Vector Pascal Vector Pascal is a language for SIMD instruction sets such as the MMX and the AMD 3d Now, supporting all Intel and AMD processors, and Sony’s PlayStation 2 Emotion Engine.
  • Morfik Pascal allows the development of Web applications entirely written in Object Pascal (both server and browser side).
  • WDSibyl – Visual Development Environment and Pascal compiler for Win32 and OS/2
  • PP Compiler, a compiler for Palm OS that runs directly on the handheld computer
  • CDC 6000 Pascal compiler The source code for the first (CDC 6000) Pascal compiler.
  • Pascal-S – “Pascal-S: A Subset and Its Implementation”, N. Wirth in Pascal – The Language and Its Implementation, by D.W. Barron, Wiley 1979.

A very extensive list can be found on Pascaland. The site is in French, but it is basically a list with URLs to compilers; there is little barrier for non-Francophones. The site, Pascal Central, a Mac centric Pascal info and advocacy site with a rich collection of article archives, plus links to many compilers and tutorials, may also be of interest.

[edit] Standards

In 1983, the language was standardized, in the international standard IEC/ISO 7185, and several local country specific standards, including the American ANSI/IEEE770X3.97-1983, and ISO 7185:1983. These two standards differed only in that the ISO standard included a “level 1″ extension for conformant arrays, where ANSI did not allow for this extension to the original (Wirth version) language. In 1989, ISO 7185 was revised (ISO 7185:1990) to correct various errors and ambiguities found in the original document.

In 1990, an extended Pascal standard was created as ISO/IEC 10206. In 1993 the ANSI standard was replaced by the ANSI organization with a “pointer” to the ISO 7185:1990 standard, effectively ending its status as a different standard.

The ISO 7185 was stated to be a clarification of Wirth’s 1974 language as detailed by the User Manual and Report [Jensen and Wirth], but was also notable for adding “Conformant Array Parameters” as a level 1 to the standard, level 0 being Pascal without conformant arrays. This addition was made at the request of C. A. R. Hoare, and with the approval of Niklaus Wirth. The precipitating cause was that Hoare wanted to create a Pascal version of the (NAG) Numerical Algorithms Library, which had originally been written in FORTRAN, and found that it was not possible to do so without an extension that would allow array parameters of varying size. Similar considerations motivated the inclusion in ISO 7185 of the facility to specify the parameter types of procedural and functional parameters.

Note that Niklaus Wirth himself referred to the 1974 language as “the Standard”, for example, to differentiate it from the machine specific features of the CDC 6000 compiler. This language was documented in “The Pascal Report”, the second part of the “Pascal users manual and report”.

On the large machines (mainframes and minicomputers) Pascal originated on, the standards were generally followed. On the IBM-PC, they were not. On IBM-PCs, the Borland standards Turbo Pascal and Delphi have the greatest number of users. Thus, it is typically important to understand whether a particular implementation corresponds to the original Pascal language, or a Borland dialect of it.

The IBM-PC versions of the language began to differ with the advent of UCSD Pascal, an interpreted implementation that featured several extensions to the language, along with several omissions and changes. Many UCSD language features survive today, including in Borland’s dialect.

[edit] Divisions

Niklaus Wirth’s Zurich version of Pascal was issued outside of ETH in two basic forms, the CDC 6000 compiler source, and a porting kit called Pascal-P system. The Pascal-P compiler left out several features of the full language. For example, procedures and functions used as parameters, undiscriminated variant records, packing, dispose, interprocedural gotos and other features of the full compiler were omitted.

UCSD Pascal, under Professor Kenneth Bowles, was based on the Pascal-P2 kit, and consequently shared several of the Pascal-P language restrictions. UCSD Pascal was later adopted as Apple Pascal, and continued through several versions there. Although UCSD Pascal actually expanded the subset Pascal in the Pascal-P kit by adding back standard Pascal constructs, it was still not a complete standard installation of Pascal.

Borland’s Turbo Pascal, written by Anders Hejlsberg, was written in assembly language independent of UCSD or the Zurich compilers. However, it adopted much of the same subset and extensions as the UCSD compiler. This is probably because the UCSD system was the most common Pascal system suitable for developing applications on the resource-limited microprocessor systems available at that time.

[edit] List of related standards

  • ISO 8651-2:1988 Information processing systems—Computer graphics—Graphical Kernel System (GKS) language bindings—Part 2: Pascal

[edit] Reception

Pascal generated a wide variety of responses in the computing community, both critical and complimentary.

[edit] Criticism

While very popular (although more so in the 1980s and early 1990s than now), implementations of Pascal which closely followed Wirth’s initial definition of the language were widely criticized for being unsuitable for use outside of teaching. Brian Kernighan, who popularized the C language, outlined his most notable criticisms of Pascal as early as 1981, in his paper Why Pascal Is Not My Favorite Programming Language.[10] The most serious problem, described in this article, seems that array sizes and string lengths were part of the type so it was not possible to write a function that would accept variable length arrays or even strings as parameters (like a sorting library, for instance). The author also criticized the unpredictable order of evaluation of boolean expressions, poor library support, lack of static variables and a number of smaller issues. Also, he stated that the language did not provide any simple constructs to “escape” (knowingly and forcibly ignore) restrictions and limitations where this is really necessary. (However, there is a feature of “record variants” that does allow such an “escape,” though it is decidedly cumbersome.) More general complaints from other sources[11][12] noted that the scope of declarations were not clearly defined in the original language definition, which sometimes had serious consequences when using forward declarations to define pointer types, or when record declarations lead to mutual recursion, or when an identifier may or may not have been used in an enumeration list. Another difficulty was that, like ALGOL 60, the language did not allow procedures or functions passed as parameters to pre-define what their parameters are supposed to be.

On the other hand, many major development efforts in the 1980s, such as for the Apple Lisa and Macintosh, heavily depended on Pascal (to the point where the C interface for the Macintosh operating system API had to deal in Pascal data types).

[edit] Reactions

Pascal continued to evolve, and most of Kernighan’s points do not apply to versions of the language which were enhanced to be suitable for commercial product development, such as Borland’s Turbo Pascal. Unfortunately, just as Kernighan predicted in his article, most of the extensions to fix these issues were incompatible from compiler to compiler. Since the early 1990s, however, the varieties seem to have condensed into two categories, ISO and Borland-like, a better eventual outcome than Kernighan foresaw.[original research?]

Although Kernighan decried Pascal’s lack of type escapes (“there is no escape” from “Why Pascal is not my Favorite Programming language”), the uncontrolled use of pointers and type escapes have become highly criticized features in their own right, and the languages Java, C# and others feature a sharp turn-around to the Pascal point of view. What these languages call “managed pointers” were in fact foreseen by Wirth with the creation of Pascal.

Based on his experience with Pascal (and earlier with ALGOL) Niklaus Wirth developed several more programming languages: Modula, Modula-2 and Oberon. These languages address some criticisms of Pascal, are intended for different user populations, and so on, but none has had the widespread impact on computer science and computer users as has Pascal, nor has any yet met with similar commercial success.