H2S78: How to read documentation:

H3S1: Decoding payload<Mozilla, a-r>:

Hu: By the time that I got to this information #, I already knew that # I wanted to decode payload in Web-Sockets, and that this was a vital | component of all message | delivery, which is the core function of the protocol #

However, extracting information from these so-called “frames” of data is a not-so-magical experience. Although all frames follow the same specific format, data going from the client to the server is masked using XOR encryption (with a 32-bit key).

Hu: The analogous | noun in the previous sentence to “frames” in the first sentence of this quote # is “messages”, so I’m going to assume that frames, of data, is a component of “messages“, and check this assumption, as I continue to read. The next sentence is a relief, because it says that I only need to figure out this decoding | process one-time, since “all frames follow the same specific format”, and I will be writing a function that is called repetitively. The third clause # introduces a new | term, that I may have to research deeper, but I’m going to move forward, for now.

H4S1: Decoding payload length | specifier#:

Read bits 9-15 (inclusive) and interpret that as an unsigned integer. If it’s 125 or less, then that’s the length; you’re done. If it’s 126, go to step 2. If it’s 127, go to step 3.

Hu: 9-15 inclusive is 7 bits, which is also what the frame | format<WP.MIC-H2S66,H3S1.H4S5-H5S1> specifies; moreover, we can see from reading the frame | format chart, that the initiation of the payload-len grid starts at 9, and ends at 1|5.

H5S1: How 7 bits can encode an integer of 3 decimal-points<Turing>:

// investigate

H3S2: UInt64-Struct<Microsoft-learn, a-r>:

<Microsoft>: Represents a 64-bit unsigned integer. CS.utah.edu<x.ref-fbno!>: Unsigned Integers (often called “uints”) are just like integers (whole numbers) but have the property that they don’t have a + or – sign associated with them. Thus they are always non-negative (zero or positive). We use uint’s when we know the value we are counting will always be non-negative. Hu: OK, so UInt, or unsigned integer, just means whole number, in comp-sci. <Microsoft>: The UInt64 value type represents unsigned integers with values ranging from 0 to 18,446,744,073,709,551,615<quintillion>.

H4S1: UInt16-Struct:

<Microsoft-learn,a-r>: Represents a 16-bit unsigned integer. The UInt16 value type represents unsigned integers with values ranging from 0 to 65535.<WP.MIC-H2S87>

H3S3: Rasmus Lerdorf 2019 talk<a-r>:

1) Welcome! This panel will contain notes from the talk. ๐Ÿ˜Ž๐Ÿงฒ๐Ÿ’ง๐Ÿฆ

wordpress.materialinchess.com | H2S70, H2S67, H2S47: PHP/HTML multithreading.

Windows | Apache | MySQL | PHP. Lerdorf valued having these 4 elements in an equal proportion 9:00. :Embedding PHP into Apache was huge: #v-t

19:20 PHP is unique in its implementation of global variables.

Some functions allow you to do what was already possible before, but faster, and in fewer steps 31:00

33:50: Read the migration notes for each PHP update, otherwise knowledge technical debt will accumulate.

35:30 Some code updates come from making optimizations, by removing unnecessary conditions #

40:01 Req/s increased from 154 to 520 from 2009 to 2018. Latency decreased from 130 to 38 ms. Memory decreased from 140 mb to 15 between PHP 5.3 to 7.3.

46:50 Ph-D thesis idea: perf/callgrind, memory visualization[sounds-familiar]

50:00 His lone Ph-D students, or guys at PHP-core, and guys like Heinz Schweitzer, need someone to talk to ๐Ÿ˜‚

52:00 Visual code analysis: some of the relationships between PHP built-ins are explicit, and Lerdorf prefers, in web programming, to be using functions only in the ways they are explicitly connected, or implicitly, rather than including, such as in the same function body, and visually, adjacently, unrelated, elements. We can call this [conditionally-explicit programming]. Well-written 3-5 lines code snippets, are what is worth showing off right now. This is consistent with what is found in PHP-docs.

1:01:00: PDE: Wants PHP developers to learn C(chain.of-know), will broaden the number of users that can maintain extensions. This is world-changing, like the web, for Lerdorf. Community needs adoption. C handles class types changes[familiar], as well as argument processing, what happens, within that part of the function. In general, Lerdorf has the position, in society, of a professor, but without that designation. CU?

1:08:45: Key adoption barrier: people cannot learn vocab words fast enough, even in adulthood.

1:10:45: Web dev at heart, likes the fact that people use his products.





25 Years of PHP (by the Creator of PHP) Rasmus Lerdorf 2019

Leave a Reply

Your email address will not be published. Required fields are marked *