Web Assembly Flashcards

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/30

flashcard set

Earn XP

Description and Tags

Flashcards about Web Assembly

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

31 Terms

1
New cards

What is a GPU?

A specialized processor designed for efficiently handling complex mathematical calculations, particularly those related to graphics rendering.

2
New cards

What is the purpose of a CPU?

General Purpose, handles all the main functions of a computer. Cores typically range from 2-16. High speed for single tasks (Sequential).

3
New cards

What is the purpose of a GPU?

Specialized for accelerating graphics & 3D rendering tasks like gaming. Utilizes thousands of cores and high speed for parallel tasks.

4
New cards

What are the main components of a GPU?

Thousands of cores, Video RAM & Shaders.

5
New cards

What are the Types of GPUs?

Dedicated, Integrated & Cloud.

6
New cards

What are Shaders?

Programs which run on the graphics card to do something.

7
New cards

What are the Types of Shaders?

Fragment Shader, Vertex Shader, Geometry Shader.

8
New cards

What is the Fragment Shader?

Computes colour of each pixel.

9
New cards

What is the Vertex Shader?

Transforms 3D points to 2D.

10
New cards

What is the Geometry Shader?

Modifies or creates new shapes.

11
New cards

What is General Purpose GPU (GPGPU)?

Accelerates non-graphics programs using a graphics card if they happened to use the same calculations.

12
New cards

What is WebAssembly (WASM)?

A technology that makes it possible to run highly performant, low-level code in the browser.

13
New cards

How can WebAssembly be used?

To bring large C and C++ codebases, for e.g., games, physics engines and even desktop apps to the web platform.

14
New cards

What are the benefits of WebAssembly?

Improving performance and security.

15
New cards

What is WebAssembly?

A low-level binary format that runs in web browsers at near-native speed.

16
New cards

What type of languages is WebAssembly compatible with?

Code written in languages like C/C++ or Rust.

17
New cards

How does WebAssembly work?

Write C, C++ or Rust code, Compile it into WebAssembly module using Emscripten or Rust's wasm-pack, Load that into web application and call it from JavaScript.

18
New cards

WASM supports what type of file formats?

.wasm (binary format) and .wat (text format).

19
New cards

How do you interact or change the web page directly with WASM runtime?

You have to load in external modules that allow you to interface with a webpage, typically via the JavaScript runtime in the browser.

20
New cards

WASM Interfaces with Web Page through?

JavaScript.

21
New cards

What instructions does WASM have?

Add/sub/mul and similar maths operations, Bit operations, bitmasks, rotations, Load/store, Comparisons, Vector operations.

22
New cards

Besides standard operations and instructions, what structured instructions does WASM have?

Loops and if.

23
New cards

How are WASM programs represented?

Being compiled down into a binary format (.wasm)

24
New cards

Why was WebAssembly created?

Created to get better performance on the web.

25
New cards

Is WASM Web-Friendly?

Integrates seamlessly with JavaScript and HTML.

26
New cards

What role does JavaScript play in using WebAssembly?

JavaScript.

27
New cards

What WASM Does for Figma?

Fast graphics and UI rendering.

28
New cards

What WASM Does for AutoCAD Web?

Loads complex CAD files efficiently.

29
New cards

What WASM Does for Adobe Photoshop Web?

Processes large images in-browser.

30
New cards

Is WASM Safe?

Runs in a sandboxed environment (like JavaScript).

31
New cards

What does WebAssembly enable?

Enables high-performance computing in the browser.