Hom programming hom lus twg mus?
Hom programming hom lus twg mus?

Video: Hom programming hom lus twg mus?

Video: Hom programming hom lus twg mus?
Video: Tears For Fears - Everybody Wants To Rule The World (Official Music Video) 2024, Kaum ib hlis
Anonim

Mus (tsis raug hu ua Golang ,) yog ib hom lus sau tseg, sau ua lus programming ntawm Google los ntawm Robert Griesemer, Rob Pike, thiab Ken Thompson. Mus yog syntactically zoo ib yam li C, tab sis nrog lub cim xeeb kev nyab xeeb, khaws khib nyiab, kev ntaus ntawv, thiab CSP-style concurrency.

Kuj paub, Go programming lus siv rau dab tsi?

Mus yog tsim tshwj xeeb raws li lub tshuab programming lus rau cov kab ke loj, faib tawm thiab cov servers loj-scalable. Hauv cov hlab ntsha ntawd, nws hloov C ++ thiab Java hauv Google cov software pawg.

Tsis tas li ntawd, puas mus nrawm dua C ++? Txawm li cas los xij, Mus nws yooj yim dua los kawm thiab code hauv tshaj C++ vim nws yog yooj yim thiab ntau compact. C++ muaj ib qho kev tsis txaus siab qeeb sau-lub sijhawm. Thaum sau-lub sij hawm yog nyob ntawm seb koj nyob nraum coding tiag tiag, Mus yog qhov tseem ceeb sai dua los ua ke dhau C++.

Tsis tas li ntawd, yav tom ntej ntawm Go language yog dab tsi?

Mus muaj superb built-in kev them nyiaj yug rau concurrency. Nws tuaj yeem tig mus txog pua pua txhiab tus "gooutines" yooj yim. Qhov no ua rau nws yog ib qho zoo tshaj plaws yam lus rau concurrent programming. Mus compiles ntawm supersonic speeds muab qhov no lus qhov tseeb "dynamic" xav.

Golang puas tsim nyog kawm?

Mus yog twv yuav raug hu tsim nyog kawm yog tias koj muaj kev txaus siab rau cov lus uas ua kom sib luag thiab sib koom ua ke ntawm cov lus. Nws siv qee cov ntsiab lus los ntawm cov lus muaj zog xws li Python thiab ua ke nrog kev ntaus ntawv zoo li qub thaum sau ua ke, uas yog qhov pib nyiam kuv.

Pom zoo: