PHP Internals News Episode # 38: Preloading and WeakMaps

The translation of the podcast transcription was prepared in advance of the start of the course "Backend developer in PHP"








Description



In this episode of PHP Internals News, I talk to Nikita Popov ( Twitter , GitHub , Website ) about the problems of PHP 7.4 preloading and his RFC WeakMaps.



DOWNLOAD MP3



Transcript



0:16

, . PHP internals news β€” , PHP. 38- . , . , ?



0:34

.



0:36

, . , , PHP 7.4 . β€” PHP 7.4 Windows. , . ?



0:56

​​ PHP 7.4 . . 7.4.2. preload-user ( , , ), , , , .



1:20

7.4.3.



1:22

. Windows. Windows , Linux. , Linux BSD fork, , . , , , .



1:48

.



1:49

, . Windows, , , . , Windows . OPcache , OPcache , PHP. , , , , . Linux , fork, . Windows . , Windows, , Windows Vista, . .



2:51

?



2:52

. .



2:54

, Linux?



2:59

, . , Unix . OPcache Windows . Linux OPcache . , OPcache β€” fork. Windows - fork, , . , , , : , , Windows. , . , . , , , Exception. , , , Windows. , , , Windows.



4:18

, , , .



4:24

, , , , . , , . , , , , , . β€” .



4:51

, , , - ?



4:58

, , β€” Windows. , . , , fork, . , , , - SAPI . , Windows - , Linux, .



5:34

, Windows , PHP Windows, ISAPI, . , , - ZTS, . , - PHP FPM, , .



5:57

. , , , , , , . , , , .



6:08

- , , ?



6:12

, . OPcache, require include, , OPcache , . , , , , , , , . , , , PHP 7.4. , require , , , require . , , - - , , . . , , , require , OPcache.



7:26

, , , .



7:30

, require.



7:34

, , RFC, , . WeakMap WeakMaps RFC, , PHP 7.4. , ?



7:58

. , β€” , . , , . , . , , (map), - . . , , , , … , , , , , . . WeakMap. , β€” - . , .



9:16

, . - ? , PHP .



9:22

, . . , , ArrayAccess Traversable , . .



9:37

, . weak map β€” , ArrayAccess.



9:44

.



9:45

Weak Map? ?



9:49

, , PHP. , ArrayAccess β€” weak map , . Traversable β€” weak map , , , Countable, , . .



10:12

, , , , ?



10:17

.



10:18

, .



10:20

, , , Traversable . .



10:33

?



10:35

weak map, ORM. , , , , . , , ORM, Memory Usage . , . , .



11:12

- ORM ?



11:15

.



11:16

weak maps β€” - PHP, ? - ? , β€” , - , , . , weak maps?



11:37

, . , , , , . , , Weak Reference Weak Map, .



12:05

, - , ?



12:08

, , .



12:16

RFC, - SPL ID , , . ? -, , , , , . , ORM .



12:44

. - , . , . SPL . , - PHP 7.0, , , SPL ID , . , , . , . ID .



13:30

?



13:35

. , , . , . ID. , , . ID - .



14:04

Β« Β», , PHP?



14:08

.



14:10

, , RFC , , ?



14:16

: 25,



14:18

25, . .



14:22

RFC, , , , , 95%, . .



14:34

. , PHP 8, , .



14:39

. .



14:41

, , , Windows. , .



14:50

, .



14:52

PHP internals news, , PHP. Patreon , Xdebug. Patreon . , derick@phpinternals.news. , , .





RFC: WeakMaps






Β«Backend- PHPΒ»







All Articles