Find a file
Sönke Ludwig fd93ab82f5
Remove deprecation attribute for the system overload of setTimer.
The approach for now is to keep overloads that receive system delegates and are also marked system in turn. This breaks safety promises in some places within the library, but is an acceptable first step that keeps other possible directions open.
2017-06-22 09:38:56 +02:00
examples/bench-dummy-http-server Update for eventcore 0.5.0 and the latest DMD beta. 2016-10-24 08:22:49 +02:00
source/vibe Remove deprecation attribute for the system overload of setTimer. 2017-06-22 09:38:56 +02:00
tests Add test for rejectedsoftware/vibe.d#1726. 2017-05-16 09:40:18 +02:00
.editorconfig Add .editorconfig. 2017-01-16 21:40:32 +01:00
.gitignore Add executeables to .gitignore 2017-03-22 13:41:38 +01:00
.travis.yml Test on DMD 2.073.0 and LDC 1.1.0 and add compiler list to README. 2017-02-01 12:18:54 +01:00
appveyor.yml Fix createTempFile on Windows. 2017-03-09 16:09:46 +01:00
dub.sdl Add missing forward configurations for optlink based builds. 2017-03-09 13:57:03 +01:00
README.md Fix typo 2017-06-12 22:18:43 +02:00
travis-ci.sh Allow script based tests and fix test package recipes. 2017-02-17 00:49:40 +01:00

vibe.d

vibe.d core package

The core package provides the low level I/O and concurrency primitives that are used to implement the higher level systems:

  • Event loop management
  • Fiber based lightweight tasks, including task local storage and std.concurrency integration
  • Files, sockets, timers
  • Stream type definitions (used for files, sockets and higher level stream types)
  • Synchronization primitives (mutexes, condition variables, semaphores, cross task/cross thread events)
  • Logging facilities
  • Command line argument parsing
  • Various smaller utilities

The fundamental building block is the fiber based task concept, together with the event based asynchronous I/O model. This enables developing highly scalable I/O concurrent applications without running into the complexities and design implications that asynchronous I/O programming models usually impose. See the features page for a more detailed explanation.

DUB Package Posix Build Status Windows Build status

Separation of the former vibe-d:core package

This is the designated successor of the vibe-d:core sub package of vibe.d 0.7.x. The API is mostly compatible from a library user point of view, but the whole library has received some heavy lifting under the surface, close to a rewrite. Most classes have been replaced by reference counting structs and @safe nothrow attributes are now used throughout the library, whenever possible. Adding @nogc on the other hand could only be done in a very limited context due to its viral nature and the lack of an @trusted equivalent.

Another major design change is that instead of the previous driver model, there is now a separate, lower-level event loop abstraction (eventcore) which follows a callback based Proactor pattern. The logic to schedule fibers based on events has been pulled out of this abstraction and is now maintained as a single function, leading to a huge improvment in terms of robustness (most issues in the previous implementation have probably never surfaced in practice, but there turned out to be lots of them).

Finally, the stream design has received two big changes. Streams can now either be implemented as classes, as usual, or they can be implemented as structs in a duck typing/DbC fashion. This, coupled with templated wrapper stream types, allows to eliminate the overhead of virtual function calls, enables reference counting instead of GC allocations, and allows the compiler to inline across stream boundaries. The second change to streams is the added support for an IOMode parameter that enables I/O patterns as they are possible when using OS sockets directly. The leastSize and dataAvailableForRead properties will in turn be deprecated.

The implementation is mostly finished, except for final production testing.

Supported compilers

The following compilers are tested and supported:

  • DMD 2.073.0
  • DMD 2.072.2
  • DMD 2.071.2
  • DMD 2.070.2
  • LDC 1.1.0
  • LDC 1.0.0