Պրոցեսսինգ
From Wikipedia, the free encyclopedia
From Wikipedia, the free encyclopedia
Պրոցեսսինգ (անգլ.՝ Processing), բաց աղբյուրի գրաֆիկական գրադարան և ինտեգրված զարգացման միջավայր, որը կառուցվել է էլեկտրոնային արվեստի, նոր մեդիա արվեստի և վիզուալ ձևավորման համայնքների համար, որոնք ոչ-ծրագրավորողներին ուսուցանելու նպատակով ծրագրավորելու հիմունքներն են ՝ տեսողական համատեքստում։
Տեսակ | օբյեկտ կողմնորոշված ծրագրավորման լեզու, ծրագրավորման լեզու և զարգացման ինտեգրված միջավայր |
---|---|
Առաջացել է | 2001 |
Ստեղծող | Processing Foundation? |
ՕՀ | Windows, Լինուքս և մաքՕՍ |
Ներշնչվել է | Design By Numbers, PostScript, Լոգո, Ջավա և Սի (ծրագրավորման լեզու) |
Արտոնագիր | GNU Lesser General Public License և GPLv2 |
Կայք | processing.org(անգլ.) |
Ելակոդ | github.com/processing/processing |
Processing (programming language) Վիքիպահեստում |
Պրոցեսսինգն օգտագործում է Ջավայի լեզուն՝ լրացուցիչ պարզեցումներով, ինչպիսիք են լրացուցիչ դասերը և մաթեմատիկական այլընտրանքային գործառույթներն ու գործողությունները։ Ինչպես նաև սա, այն նաև ունի գրաֆիկական ինտերֆեյս ՝ կազմման և կատարման փուլը պարզեցնելու համար։
Պրոցեսսինգ լեզուն և IDE- ն նախադրյալն էին այլ նախագծերի, ներառյալ Արդուինո, Վիրինգ և Պէ5.ջիէս։
Ծրագիրը նախաձեռնվել է 2001 թ.-ին Քեյսի Ռեյսի և Բեն Ֆրայի կողմից ՝ երկուսն էլ նախկինում գեղագիտության և հաշվարկների խմբի MIT Մեդիա Լաբի կողմից։ 2012-ին նրանք սկսեցին Պրոցեսսինգ հիմնադրամը Դանիել Շիֆֆմանի հետ միասին, որը միացավ որպես երրորդ ծրագրի ղեկավար։ Յոհաննա Հեդվան հիմնադրամին միացել է 2014 թ.-ին ՝ որպես Փաստաբանության տնօրեն[1]։
Սկզբնապես, Պրոցեսսինգն ուներ URL պրոցե55ինգ.նեթ-ում, քանի որ պրոցեսսինգի տիրույթի անունը վերցված էր։ Վերջապես Ռեյսը և Ֆրայը ձեռք բերեցին տիրույթ պրոցեսսինգ.օրգ[2]։ Չնայած անունն ուներ տառերի և թվերի համադրություն, այն դեռևս արտասանվում էր պրոցեսսինգ։ Նրանք չեն նախընտրում միջավայրը, որը կոչվում է Պրոցե55ինգ։ Չնայած տիրույթի անվան փոփոխությանը, Պրոցեսսինգը դեռևս օգտագործում է p5 տերմինը երբեմն որպես կրճատված անուն (p5 մասնավորապես օգտագործվում է, այլ ոչ թե p55), օրինակ p5.js- ը դրա հղում է[3]։
Յուրաքանչյուր Պրոցեսսինգի ուրվագիծ իրականում հանդիսանում է ՊԱպպլետ
Ջավա դասի ենթախումբ (նախկինում ՝ Ջավայի ներկառուցված Applet- ի ենթադաս), որն իրականացնում է Պրոցեսսինգ լեզվի առանձնահատկությունների մեծ մասը[4]։
Պրոցեսսինգի գործընթացում ծրագրավորելիս, սահմանված բոլոր լրացուցիչ դասերը կդիտարկվեն որպես ներքին դասեր, երբ կոդը նախքան կազմելը թարգմանվում է մաքուր Ջավա[5]։ Սա նշանակում է, որ դասերում ստատիկ փոփոխականների և մեթոդների օգտագործումը արգելված է, քանի դեռ Պրոցեսսինգի գործընթացին հստակորեն չի պահանջվում ծածկագրվել մաքուր Ջավա ռեժիմով։
Պրոցեսսինգը նաև թույլ է տալիս օգտվողներին ստեղծել իրենց սեփական դասերը ՊԱպպլետ ուրվագծի շրջանակներում։ Սա թույլ է տալիս բարդ տվյալների տիպեր, որոնք կարող են ներառել ցանկացած փաստարկ և կարող են խուսափել բացառապես ստանդարտ տվյալների տեսակների օգտագործման սահմանափակումներից, ինչպիսիք են ՝ ինթ (ամբողջական), չար (նիշ), ֆլոթ (իրական համարը) և գույնը։
Պրոցեսսինգի մեջ «Բարև աշխարհ»-ն ամենապարզ հնարավոր տարբերակն է.
//This prints "Hello World." to the IDE console.
println("Hello World.");
Այնուամենայնիվ, Պրոցեսսինգի ավելի տեսողականորեն կողմնորոշված բնույթի պատճառով հետևյալ ծածկագիրը լեզվի տեսքի և զգալու ավելի լավ օրինակ է։
//Hello mouse.
void setup() {
size(400, 400);
stroke(255);
background(192, 64, 0);
}
void draw() {
line(150, 25, mouseX, mouseY);
}
2005 թվականին Ռեյսը և Ֆրայը շահեցին Արվեստ էլեկտրոնիկայից «Ոսկե Նիկա» մրցանակը Համացանցային հեռատեսություն անվանակարգում ՝ Պրոցեսսինգի վերաբերյալ իրենց աշխատանքի համար[6]։
Բեն Ֆրայը շահեց Սմիթսոնյան Կուպեր-Հյուիթ ազգային դիզայնի թանգարանի կողմից տրված 2011 թվականի դիզայնի ազգային մրցանակը `Փոխգործակցության դիզայնի կատեգորիայում։ Մրցանակաբաշխության մեջ ասվում է.
«Գրաֆիկական դիզայնի և համակարգչային գիտության գծով ֆոնի վրա նկարելը, Բեն Ֆրային հետապնդում է երկար հմայքը տվյալների արտացոլման միջոցով։ Որպես Բոստոնում Fathom տեղեկատվական դիզայնի վարիչ, Fry- ը մշակում է ծրագրակազմ, տպագիր աշխատանքներ և գրքեր, որոնք պատկերում և բացատրում են թեմաներ բեյսբոլի աշխատավարձերի մարդկային գենոմը դեպի տեքստային փաստաթղթերի էվոլյուցիան։ Քեյսի Ռեյսի հետ նա հիմնադրել է Պրոցեսսինգի նախագիծը `բաց կոդով ծրագրավորման միջավայր, համակարգչային նախագծման դասավանդման և ինտերակտիվ-մեդիա համակարգչային ծրագրերի մշակման համար:Այն արվեստագետներին և դիզայներներին տրամադրում է աշխատանքի մատչելի միջոցներ կոդով՝ ինժեներներին և համակարգչային գիտնականներին խրախուսելով մտածել նախագծման հասկացությունների մասին[7]»։
Պրոցեսսինգի հիմնական գրադարանները, արտահանվող ծրագրերում և հավելվածներում ներառված ծածկագիրը արտոնագրված են GNU- ի Փոքր ընդհանուր հանրային լիցենզիայի ներքո, ինչը թույլ է տալիս օգտվողներին լիցենզիայի ընտրությամբ թողարկել իրենց բնօրինակ կոդը։ IDE- ն արտոնագրված է GNU- ի հանրային ընդհանուր արտոնագրի ներքո։
Պրոցեսսինգը միայնակ լեզու չէ, այլ ՝ արվեստի վրա հիմնված մոտեցում սովորելու, դասավանդելու և իրերը կոդով կազմելու համար։ Կան մի քանի տարբերակներ և հարակից նախագծեր.
Պրոցեսսինգը հիմնված էր MIT- ում Դիզայն Ըստ Համարների նախագծի վրա կատարված բուն աշխատանքի վրա։ Այն կիսում է նույն գաղափարներից շատերը և այդ փորձի անմիջական երեխան է։
2008-ին Ջոն Ռեզիգը Պրոցեսսինգը միացրեց ՋավաՍկրիպտին` օգտագործելով Կանվաս տարրը` մատուցման համար[8], ինչը թույլ է տալիս Պրոցեսսինգն օգտագործել ժամանակակից վեբ բրաուզերներում `առանց Ջավա փլագինի անհրաժեշտության։
Այդ ժամանակվանից սկսած, նախագիծը ստանձնեց բաց կոդով համայնքը, ներառյալ ուսանողները Տորոնտոյի Սենեկա քոլեջում։ Պրոցեսսինգ․ջիէսն օգտագործվում է նաև Խան Ակադեմիայի բոլոր տարիքի ուսանողների համար հիմնական ծրագրավորում դասավանդելու համար `ստեղծելով գծանկարներ և անիմացիա։ Սովորողները իրենց ստեղծագործությունները ցույց են տալիս մյուս սովորողներին։
2013 թ.-ին Լորան Մաքքարթին ստեղծեց Պէ5.ջիէս-ը, ՋավաՍկրիպտի հայրենի այլընտրանքն է Պրոցեսսինգ.ջիէս-ին, որն ունի Պրոցեսսինգ հիմնադրամի պաշտոնական աջակցություն։ Մաքքարթին նաև ներդնում է ներածական դասընթաց Պէ5.ջիէս- ին՝ Կադենզեի վերաբերյալ[9]։
Փայթընի ռեժիմը Պրոցեսսինգի կամ Պրոցեսսինգ.py- ի համար Փայթընի միջերես է հանդիսանում Ջավայի հիմքում ընկած գործիքակազմին։ Այն հիմնականում մշակվել է Ջnնաթան Ֆայնբերգի կողմից ՝ սկսած 2010 թվականից ՝ Ջեյմս Գիլլեսի և Բեն Ալկովի ներդրումներով[10]։
Պրոցեսսինգն առաջացրել է մեկ այլ նախագիծ՝ Վիրինգ, որն օգտագործում է Պրոցեսսինգի IDE- ն ՝ C ++ լեզվով գրված գրադարանների հավաքածուով, որպես արվեստագետներին սովորեցնելու միջոց ՝ ինչպես ծրագրավորել միկրոկառավարիչներ[11]։ Այժմ կան երկու առանձին ապարատային նախագծեր՝ Վիրինգ և Արդուինո, որոնք օգտագործում են Վիրինգ միջավայրը և լեզուն։ Ֆրիթզինգը նույն տեսակի մեկ այլ ծրագրային միջավայր է, որն օգնում է դիզայներներին և նկարիչներին փաստաթղթավորել իրենց ինտերակտիվ նախատիպերը և քայլը կատարել ֆիզիկական նախատիպերից մինչև իրական արտադրանք։
Մեկ այլ ակնթարթային նախագիծ, որն այժմ անպաշտպան է, դա Ֆրենսիս Լիի Բջջային Պրոցեսսինգն է, որը թույլ է տվել օգտագործել Պրոցեսսինգ լեզուն և միջավայրը և գործարկել Ջավայի միջոցով աշխատող շարժական սարքերում։ Այսօր նույն գործառույթների մի մասը ապահովվում է հենց Պրոցեսսինգի կողմից[12]։
ԱյՊրոցեսսինգը ստեղծվել է `օգնելու մարդկանց զարգացել ազգաին Այֆոն հավելվածներ` օգտագործելով Պրոցեսսինգ լեզուն։ Դա Պրոցեսսինգ.ջիէս Գրադարանի ինտեգրացիա է և Այֆոնի համար ՋավաՍկրիպտի կիրառման շրջանակ[13]։
ՍՊԴԵ-ն (Սքալա Պրոցեսսինգ զարգացման միջավայր) փոխարինում է Պրոցեսսինգի իջեցված Ջավա շարահյուսությանը և սովորական պրոցեսորին `փոխարինելով արտարժույթի Սքալա ծրագրավորման լեզվով, որը գործում է նաև Ջավա պլատֆորմի վրա և իրականացնում է նույն սահմանափակումները, ինչպիսիք են ստատիկ մեթոդները չթողնելը, միևնույն ժամանակ թույլ տալով ավելի հակիրճ կոդ և ֆունկցիոնալ ծրագրավորման աջակցություն[14][15][16]։
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.