舉報

會員
D Cookbook
最新章節:
Index
Arecipepackedreferenceguidefilledwithpracticaltasksthatareconciselyexplainedtodevelopandbroadentheuser'sabilitieswiththeDprogramminglanguage.Ifyouareanexperiencedprogrammerwhoislookingtoexplorealanguagethatoffersplentyofadvantagesovermoreestablishedprogramminglanguages,thisisthebookforyou.Weassumethatyouarealreadyfamiliarwithgeneralprogramminglanguagebasics,butyoudonotneedtobeaproficientuserofD.
最新章節
- Index
- Finding more information about D
- Getting a stack trace without throwing an exception
- Using the exponentiation operator
- Running D on bare metal ARM
- Compiling D for ARM/Linux Raspberry Pi
品牌:中圖公司
上架時間:2021-07-16 10:20:21
出版社:Packt Publishing
本書數字版權由中圖公司提供,并由其授權上海閱文信息技術有限公司制作發行
- Index 更新時間:2021-07-16 11:51:10
- Finding more information about D
- Getting a stack trace without throwing an exception
- Using the exponentiation operator
- Running D on bare metal ARM
- Compiling D for ARM/Linux Raspberry Pi
- Appendix A. Addendum
- Creating an OpenGL window
- Creating a graphics window to show a TV static demo
- Working with image files
- Getting real-time input from the terminal
- Writing colored output to the console
- Sending an e-mail
- Accessing a SQL database
- Parsing and modifying an HTML page with dom.d
- Creating a web API with web.d
- Creating a dynamic website with cgi.d
- Introduction
- Chapter 12. Web and GUI Programming
- Adding interrupt handling to the bare metal x86 code
- Running D on bare metal x86 with a stripped runtime
- Introduction
- Chapter 11. D for Kernel Coding
- Using asynchronous I/O
- Exploring thread-safe single-locking singletons
- Creating new processes
- Using fibers
- Processing parallel data with std.parallelism
- Passing messages with std.concurrency
- Using threads
- Introduction
- Chapter 10. Multitasking
- Duck typing to a statically-defined interface
- Using opDispatch to generate properties
- Wrapping instance methods
- Using string parameters to change functions
- Building a lookup table
- Automating dynamic calls with multiple dispatch
- Generating data structures from text diagrams
- Parsing a domain-specific language
- Creating user-defined literals
- Introduction
- Chapter 9. Code Generation
- Creating a command-line function caller
- Extending the runtime type information
- Implementing a custom lint-style check for virtual functions
- Using user-defined attributes
- Getting components of complex types
- Determining names types and default values of function parameters
- Inspecting function overloads
- Getting a list of all methods or fields in a module or an object
- Determining whether a module is available
- Getting a list of child classes
- Getting dynamic runtime type information
- Introduction
- Chapter 8. Reflection
- Writing platform-specific code (versions) and per-client configuration modules
- Documenting your code with Ddoc
- Unit testing your code
- Verifying object invariants and pre- and post-conditions
- Avoiding side effects of pure functions
- Leveraging const-correctness
- Preventing memory corruption bugs with @safe
- Using template constraints and static if
- Using static asserts
- Using assertions and exceptions
- Introduction
- Chapter 7. Correctness Checking
- Simulating multiple inheritance with mixin templates
- Creating a structure with two views into the same data
- Creating a tagged dynamic type
- Forwarding methods with opDispatch
- Creating a subtyped string for i18n
- Creating an opaque handle type
- Creating a ranged integer
- Simulating inheritance with structs
- Creating a struct with reference semantics
- Introduction
- Chapter 6. Wrapped Types
- Using RAII and handling the limitations of class destructors
- Using unique pointers
- Creating a NotNull struct
- Managing lent resources
- Creating an array replacement
- Using scope guards to manage transactions
- Manually managing class memory
- Making a reference-counted object
- Avoiding the garbage collector
- Introduction
- Chapter 5. Resource Management
- Using Windows' COM
- Communicating with a dynamic scripting language
- Communicating with external processes
- Using structs to mimic the C++ object structure
- Interfacing with C++
- Writing part of a C program in D
- Making Linux system calls
- Removing the Windows console
- Calling the Windows API functions
- Introduction
- Chapter 4. Integration
- Using functional tools to query data
- Searching ranges
- Sorting ranges efficiently
- Storing a range as a data member
- Using runtime polymorphic (class) ranges
- Creating an input range over a tree structure
- Putting a range interface on a collection
- Creating a higher-order range
- Creating an output range
- Creating an input range
- Using ranges when implementing an algorithm
- Introduction
- Chapter 3. Ranges
- Using the std.json module
- Using the std.zlib compression
- Writing a digest utility
- Searching with regular expressions
- Normalizing a string and performing Unicode comparisons
- Generating random numbers
- Using Base64 to create a data URI
- Creating a network client and server
- Finding the largest files in a directory
- Performing type conversions
- Introduction
- Chapter 2. Phobos – The Standard Library
- Creating a tree of classes
- Slicing a string to get a substring
- Understanding immutability
- Using a custom exception type
- Creating a user-defined vector type
- Using associative arrays to translate input
- Building and processing arrays
- Using external libraries
- Adding additional modules (files) to your program
- Installing the compiler and writing a "Hello World" program
- Introduction
- Chapter 1. Core Tasks
- Customer support
- Reader feedback
- Conventions
- Who this book is for
- What you need for this book
- What this book covers
- Preface
- Support files eBooks discount offers and more
- www.PacktPub.com
- About the Reviewers
- About the Author
- Foreword
- Credits
- D Cookbook
- coverpage
- coverpage
- D Cookbook
- Credits
- Foreword
- About the Author
- About the Reviewers
- www.PacktPub.com
- Support files eBooks discount offers and more
- Preface
- What this book covers
- What you need for this book
- Who this book is for
- Conventions
- Reader feedback
- Customer support
- Chapter 1. Core Tasks
- Introduction
- Installing the compiler and writing a "Hello World" program
- Adding additional modules (files) to your program
- Using external libraries
- Building and processing arrays
- Using associative arrays to translate input
- Creating a user-defined vector type
- Using a custom exception type
- Understanding immutability
- Slicing a string to get a substring
- Creating a tree of classes
- Chapter 2. Phobos – The Standard Library
- Introduction
- Performing type conversions
- Finding the largest files in a directory
- Creating a network client and server
- Using Base64 to create a data URI
- Generating random numbers
- Normalizing a string and performing Unicode comparisons
- Searching with regular expressions
- Writing a digest utility
- Using the std.zlib compression
- Using the std.json module
- Chapter 3. Ranges
- Introduction
- Using ranges when implementing an algorithm
- Creating an input range
- Creating an output range
- Creating a higher-order range
- Putting a range interface on a collection
- Creating an input range over a tree structure
- Using runtime polymorphic (class) ranges
- Storing a range as a data member
- Sorting ranges efficiently
- Searching ranges
- Using functional tools to query data
- Chapter 4. Integration
- Introduction
- Calling the Windows API functions
- Removing the Windows console
- Making Linux system calls
- Writing part of a C program in D
- Interfacing with C++
- Using structs to mimic the C++ object structure
- Communicating with external processes
- Communicating with a dynamic scripting language
- Using Windows' COM
- Chapter 5. Resource Management
- Introduction
- Avoiding the garbage collector
- Making a reference-counted object
- Manually managing class memory
- Using scope guards to manage transactions
- Creating an array replacement
- Managing lent resources
- Creating a NotNull struct
- Using unique pointers
- Using RAII and handling the limitations of class destructors
- Chapter 6. Wrapped Types
- Introduction
- Creating a struct with reference semantics
- Simulating inheritance with structs
- Creating a ranged integer
- Creating an opaque handle type
- Creating a subtyped string for i18n
- Forwarding methods with opDispatch
- Creating a tagged dynamic type
- Creating a structure with two views into the same data
- Simulating multiple inheritance with mixin templates
- Chapter 7. Correctness Checking
- Introduction
- Using assertions and exceptions
- Using static asserts
- Using template constraints and static if
- Preventing memory corruption bugs with @safe
- Leveraging const-correctness
- Avoiding side effects of pure functions
- Verifying object invariants and pre- and post-conditions
- Unit testing your code
- Documenting your code with Ddoc
- Writing platform-specific code (versions) and per-client configuration modules
- Chapter 8. Reflection
- Introduction
- Getting dynamic runtime type information
- Getting a list of child classes
- Determining whether a module is available
- Getting a list of all methods or fields in a module or an object
- Inspecting function overloads
- Determining names types and default values of function parameters
- Getting components of complex types
- Using user-defined attributes
- Implementing a custom lint-style check for virtual functions
- Extending the runtime type information
- Creating a command-line function caller
- Chapter 9. Code Generation
- Introduction
- Creating user-defined literals
- Parsing a domain-specific language
- Generating data structures from text diagrams
- Automating dynamic calls with multiple dispatch
- Building a lookup table
- Using string parameters to change functions
- Wrapping instance methods
- Using opDispatch to generate properties
- Duck typing to a statically-defined interface
- Chapter 10. Multitasking
- Introduction
- Using threads
- Passing messages with std.concurrency
- Processing parallel data with std.parallelism
- Using fibers
- Creating new processes
- Exploring thread-safe single-locking singletons
- Using asynchronous I/O
- Chapter 11. D for Kernel Coding
- Introduction
- Running D on bare metal x86 with a stripped runtime
- Adding interrupt handling to the bare metal x86 code
- Chapter 12. Web and GUI Programming
- Introduction
- Creating a dynamic website with cgi.d
- Creating a web API with web.d
- Parsing and modifying an HTML page with dom.d
- Accessing a SQL database
- Sending an e-mail
- Writing colored output to the console
- Getting real-time input from the terminal
- Working with image files
- Creating a graphics window to show a TV static demo
- Creating an OpenGL window
- Appendix A. Addendum
- Compiling D for ARM/Linux Raspberry Pi
- Running D on bare metal ARM
- Using the exponentiation operator
- Getting a stack trace without throwing an exception
- Finding more information about D
- Index 更新時間:2021-07-16 11:51:10