Implement JavaScript language interpreter

prefaceLast article I introduced some basic concepts of syntax parsing and how to realize the syntax tree parsing of Simple language interpreter through custom DSL language. In this and the last article in this series, I will introduce you how the Simple interpreter executes the generated syntax tree.evaluate function and scopeThe evaluate func ...

Posted by ppgpilot on Tue, 08 Mar 2022 07:04:21 +0100

Puppeter Usage Summary

Article catalogue NodeJS environment configuration MAC configuration Installation mode 2:node version management: Linux configurationWindows configuration Development environment initialization Basic environmentBaidu OCR dockingMy example code Docker deploymentLittle knowledgePuppeter syntaxError summaryMy blog NodeJS en ...

Posted by unixmiah on Tue, 08 Mar 2022 06:18:36 +0100

Interpretation of Vue source code (11) -- render helper

preface Last article Interpretation of Vue source code (10) -- generating rendering function of compiler Finally, when it comes to component update, you need to execute the rendering function generated by the compiler to get the vnode of the component. The reason why the rendering function can generate vnode is through it_ c,_ l,,_ v,_ s and ...

Posted by mac.php on Tue, 08 Mar 2022 06:14:40 +0100

Graphical analysis of Vue3 diff algorithm

Graphical analysis of Vue3 diff algorithmHello, I'm jiandarui. This article mainly analyzes Vue3 diff algorithm. Through this article, you can know:diff's main process, core logicHow does diff reuse, move and unload nodesAnd there is an example, which can be analyzed in combination with this paperIf you don't particularly understand the patch p ...

Posted by someberry on Tue, 08 Mar 2022 05:48:46 +0100

Eccharts data visualization tutorial (super detailed)

Eccharts data visualization tutorial (super detailed) Introduction to EChartsIntroduction to ECharts Step 1: Download and introduce schools JS fileStep 2: write code directory structureWrite index HTML codeEffect display Basic configuration of ECharts Main configuration (common)Case explanation supplement Sample linkExecu ...

Posted by Cronje on Tue, 08 Mar 2022 04:15:13 +0100

[handwriting series] take you to realize a simple Promise

brief introduction Before learning, you need to have a basic understanding of Promise. It is assumed that everyone is familiar with Promise This time, we will take our partners to realize the basic functions of Promise Promise's basic skeleton Promise then Promise. Multiple calls of then then chain call Implementation of catch finally imple ...

Posted by melefire on Tue, 08 Mar 2022 03:56:24 +0100

Fdog series: what to do after writing the registration page in html? Write the background response in java.

Article catalogue 1. Preface2. Create a Java Web project3. Create Server4. Solve the problem of Chinese garbled code5. Respond to background data catalogue Fdog series (I): think about it. It's better to write a chat software. Let's start with the imitation QQ registration page. The source code of all articles has been packaged and uploa ...

Posted by stovellp on Tue, 08 Mar 2022 03:17:59 +0100

How to use async/await in JavaScript loops

Iterating over loop items in a loop and handling asynchronous logic (i.e., API calls) are probably the two most common tasks we must perform as JavaScript developers. This article will discuss the best way to combine async/await with iterative logic. Sometimes you want to run asynchronous operations in a for loop (or any other type of loop). ...

Posted by Redneckheaven on Tue, 08 Mar 2022 02:46:29 +0100

Summary of electron ic desktop service (PIT)

background Follow the previous article When developing the electron ic desktop, you will encounter various pits. Let's summarize. Anti virus software damage inspection Prevent debug debugging Client crash report Improve client startup speed Performance monitoring and analysis Delay loading module Uniform scroll bar style bro ...

Posted by Jiraiya on Tue, 08 Mar 2022 02:03:53 +0100

CSS introduction learning notes + cases

Introduction to CSS 1, CSS introduction 1. What is CSS CSS: Cascading Style Sheet Is a set of style setting rules that control the appearance style of a page 2. Why CSS Realize the separation of content and style, which is convenient for team development Style reuse is convenient for the later maintenance of the website The precise cont ...

Posted by d00dle on Tue, 08 Mar 2022 01:53:25 +0100