O'Reilly logo

D Web Development by Kai Nacke

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. The vibe.d Internals

The vibe.d framework uses asynchronous I/Os and fibers under the hood. The framework shields the developer from the complexity introduced by these techniques. This is called the fiber-based pseudo-blocking programming model. With the knowledge about the internals of vibe.d, you will be able to change the existing components to take advantage of vibe.d.

In this chapter, we will cover the following topics:

  • The advantages of the fiber-based pseudo-blocking programming model
  • A comparison of fiber-based and thread-based models
  • The steps needed to port an existing component to vibe.d

The programming model of vibe.d

The key to the scalability of vibe.d is the use of asynchronous I/O in combination with fibers.

What is a fiber? ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required