Guest: Gregg Tavares, author of WebGL/WebGPU Fundamentals. Topics: Low-level technologies pushing the web into video games & machine learning, web development with WebGL and WebGPU, comparison and use cases of HTML rendering engines and WebGL/WebGPU, user consent for heavy compute on devices, getting started with WebGL and WebGPU, appreciation for Greg's work on gpufundamentals.org, podcasts as a medium for technology discussion.
Socket thoroughly analyzes dependencies for risks and vulnerabilities to help developers make informed decisions about their package selection process.
WebGPU offers new features and capabilities that go beyond what WebGL can offer, allowing developers to create more advanced and powerful web-based games and graphics applications.
WebGPU simplifies the process of writing functions for the GPU and enables high-performance graphics rendering on the web, opening up new possibilities for complex graphics experiences.
Deep dives
The importance of package security for developers
Developers often face security concerns when consuming open source dependencies. They typically focus on features, documentation, and popularity indicators, but fail to assess risks such as maintainability, known vulnerabilities, or potential malicious behavior. Socket is a solution that thoroughly analyzes dependencies for developers, looking for risks and vulnerabilities, and providing developers with valuable information during the package selection process.
The ease of use and benefits of Socket
Socket is designed to be developer-friendly and easy to use. It offers various integrations, such as CLI, GitHub app, and API, making it accessible and compatible for different workflows. The Socket GitHub app is particularly popular, allowing developers to monitor pull requests and get accurate analysis of dependencies. Socket goes beyond just detecting vulnerabilities. It also focuses on dependency risk and quality, helping developers make better decisions about the dependencies they use in their projects.
The future of WebGPU as a replacement for WebGL
WebGPU, a newer graphics API, is expected to replace WebGL in the future. WebGPU offers new features and capabilities that go beyond what WebGL can offer. While it requires newer hardware and may not be compatible with all devices, WebGPU enables developers to create more advanced and powerful web-based games and graphics applications. The transition from WebGL to WebGPU depends on various factors, including the market segment and target audience. However, WebGPU shows great potential for pushing the boundaries of web-based gaming and graphical experiences.
WebGPU and its New Features
WebGPU is a powerful API that allows functions to be run on the GPU, enabling complex graphics rendering. The API includes vertex shaders, fragment shaders, and compute shaders for different tasks. However, writing functions for the GPU requires using a language other than JavaScript, and transferring data between the GPU and CPU can be complicated. WebGPU simplifies this process by using indexes to specify data and mappings between arrays. Despite the challenges, WebGPU opens up possibilities for high-performance graphics on the web.
Security and Privacy Concerns with WebGPU
WebGPU and machine learning capabilities in web applications raise security and privacy concerns. User consent for heavy compute and GPU usage should be considered to prevent excessive battery drain and protect user data. Currently, some browser features indicate high resource usage, allowing users to make informed decisions. However, striking a balance between convenience and privacy remains a challenge, and browser builders need to explore ways to improve user awareness and control.
Gregg Tavares (author of WebGL/WebGPU Fundamentals) joins Jerod & Amal to give us a tour of these low-level technologies that are pushing the web forward into the world of video games, machine learning & other exciting rich applications.
React Jam – React Jam is an online event where React developers come together to create games in 10 days. Let’s do this!
Fastly – Our bandwidth partner. Fastly powers fast, secure, and scalable digital experiences. Move beyond your content delivery network to their powerful edge cloud platform. Learn more at fastly.com
Fly.io – The home of Changelog.com — Deploy your apps and databases close to your users. In minutes you can run your Ruby, Go, Node, Deno, Python, or Elixir app (and databases!) all over the world. No ops required. Learn more at fly.io/changelog and check out the speedrun in their docs.