Yog li hauv qhov kev nkag siab no, kev faib khoom siv lub cim xeeb tsis muaj zog yog qhov tsim nyog, thiab hauv kev xyaum qhov no txhais tau tias: yog, Haskell xav tau tus neeg khaws khib nyiab, txij li kev khaws khib nyiab yog qhov ua tau zoo tshaj plaws. dynamic memory manager.
Puas yog Haskell muaj tus neeg khaws khib nyiab?
The Haskell runtime system ntiav ib tiam neeg khib nyiab (GC) nrog ob tiam 2. Ntau tiam neeg raug suav txij li cov tub ntxhais hluas tiam ntawm xoom. Cov nqi yeej ib txwm muab faib rau hauv ib feem tshwj xeeb ntawm cov tub ntxhais hluas hu ua lub chaw zov me nyuam.
hom lus twg tsis muaj khib nyiab?
Piv txwv: Ada, C, Fortran, Modula-2, Pascal. Bjarne Stroustrup xav tias nws yog cov qauv lus zoo dua los ua kom txhua tus nqi qhia meej, thiab "tsis them rau cov yam ntxwv koj tsis siv." (Saib nws cov ntaub ntawv hauv 2nd thiab 3rd ACM Conferences ntawm Keeb Kwm Programming Languages.) Yog li ntawd C++tsis muaj khib nyiab.
Yuav ua li cas khaws khib nyiab?
Java khib nyiab yog txheej txheem uas Java programs ua kev tswj hwm tsis siv neeg. Java program compile rau bytecode uas tuaj yeem khiav ntawm Java Virtual Machine, lossis JVM luv luv. Thaum Java cov kev pab cuam khiav ntawm JVM, cov khoom raug tsim nyob rau hauv heap, uas yog ib feem ntawm lub cim xeeb rau qhov program.
Puas C lus muaj khib nyiab?
C tsis muaj qhov tsis siv neegkhib nyiab. Yog tias koj poob ntawm ib qho khoom, koj muaj qhov hu ua 'nco xau'. Lub cim xeeb tseem yuav muab faib rau qhov kev pab cuam tag nrho, tab sis tsis muaj dab tsi yuav siv tau yog tias koj tau poob tus taw tes kawg rau nws. Kev tswj hwm kev nco yog qhov tseem ceeb ntawm cov kev pabcuam C.