ขนาดวิดีโอ: 1280 X 720853 X 480640 X 360
แสดงแผงควบคุมโปรแกรมเล่น
เล่นอัตโนมัติ
เล่นใหม่
26:00 I realized this morning that you could dodge the double allocation if you allocated a struct that followed the semantics of a variable sized C structure. E.g.struct{ usize len; u8 data[0]}
safety of C? uh-oh!
Please zoom more at the coding, in some screens like a cellphone is really hard to see it
debugging section was a masterclass. you debug the code > debug log > debug logwasm > find out safetyness issueawesome
26:00 I realized this morning that you could dodge the double allocation if you allocated a struct that followed the semantics of a variable sized C structure. E.g.
struct{
usize len;
u8 data[0]
}
safety of C? uh-oh!
Please zoom more at the coding, in some screens like a cellphone is really hard to see it
debugging section was a masterclass. you debug the code > debug log > debug logwasm > find out safetyness issue
awesome