parser
US /'pɑ:sə/
・UK /'pɑ:sə/
C1 高級
n.名詞語法分析程序 ; 語法分析器
Compilers must parse source code in order to translate it into object code
影片字幕
ArduinoJson 7 的新功能 (What's new in ArduinoJson 7)
14:56
- Before we go into the good stuff, I must warn you that Arduino JSON 7 is significantly bigger than version 6. For example, on an Arduino Uno R3, the parser example is 41% bigger and the generator example is 45% bigger. Previously, all my design decisions were aimed at keeping the code small. Indeed, when I designed Arduino JSON 6, most users ran their programs on 8-bit microcontrollers. And that's why I focused so much on code size.
在進入精彩內容之前,我必須提醒您,Arduino JSON 7 比第 6 版大了很多。例如,在 Arduino Uno R3 上,解析器示例要大 41%,生成器示例要大 45%。以前,我所有的設計決定都是為了保持代碼的小巧。事實上,當我設計 Arduino JSON 6 時,大多數用戶都在 8 位微控制器上運行他們的程序。這也是我如此關注代碼大小的原因。
- Fixed memory allocation is perfect when resources are scarce but requires more discipline from the programmer. During the past five years, we attended to the rise of 32-bit microcontrollers, first with the ESP8266, then with the ESP32 and all the ARM-based MCUs. 32-bit microcontrollers have much more memory but also a bigger runtime framework, so Arduino JSON now represents a small fraction of the executable. If we compare the parser example on the two versions of the Arduino Uno, we see that Arduino JSON 7 makes up about two-thirds of the executable on R3 but only 7% on R4. Because the proportion is much smaller, the difference between Arduino JSON 6 and 7 is neglectable on 32-bit microcontrollers. For example, on Arduino Uno R4 minima, the parser example only grew by 2.3% and the generator example by 1.7%. As you can see, the size of the library is not so important anymore. Arduino JSON 7 can run on 8-bit microcontrollers but if the memory is tight, it's probably better if you stick with version 6.
在資源稀缺的情況下,固定內存分配非常完美,但對程序員的要求更高。在過去五年中,我們注意到 32 位微控制器的興起,首先是 ESP8266,然後是 ESP32 和所有基於 ARM 的 MCU。32 位微控制器內存更大,但運行時框架也更大,是以 Arduino JSON 現在只佔可執行文件的一小部分。如果我們比較 Arduino Uno 兩個版本上的解析器示例,就會發現 Arduino JSON 7 在 R3 上約佔可執行文件的三分之二,而在 R4 上僅佔 7%。由於比例要小得多,是以在 32 位微控制器上,
事件循環到底是什麼?(What the heck is the event loop anyway? | Philip Roberts | JSConf EU)
26:53
- slowed down by I run it through a Esprima a JavaScript parser, I insert a big while
我用Esprima這個JavaScript的parser (語法分析器)的時候 程式會慢下來,在每行程式碼之前和之後,我都插入一個while迴圈
Evan You - Vue、Vite、VoidZero 和 JavaScript 工具的未來 (Evan You - Vue, Vite, VoidZero and the Future of JavaScript Tooling)
51:04
- So let's say you want to just take the parser and do something crazy with it.
比方說,你想利用解析器做些瘋狂的事情。
- And but, you know, that's that's why a lot of the tools that we are building, like the starting from the OXC parser is like we are obsessed with the highest level of performance so that these tool can still handle the scale.
但是,你知道,這就是為什麼我們正在構建的很多工具,比如從 OXC 解析器開始,我們就執著於最高級別的性能,以便這些工具仍能處理大規模問題。