Text
Experienced optimizing developers don’t rely exclusively on dizzying intuitive leaps to find opportunities to improve code performance. There are patterns that recur in optimized code.
Experienced optimizing developers don’t rely exclusively on dizzying intuitive leaps to find opportunities to improve code performance. There are patterns that recur in optimized code.
This section gathers together a few general techniques for improving performance that are so useful that they deserve specific mention. The reader may recognize some of these patterns as the core of familiar data structures, C++ language features, or hardware innovations: Precomputation — Remove computation from the hot part of the program by performing it before execution arrives at the hot code…
View On WordPress
0 notes
Text
Apache Thrift architecture
Apache Thrift architecture This chapter covers * Introducing the Apache Thrift cross-language service architecture * Explaining how end point transports support device independence * Adding generic I/O features to Apache Thrift using layered transports * Understanding Apache Thrift serialization protocols and their features * Using the Apache Thrift IDL and the IDL Compiler * Understanding the…
View On WordPress
0 notes
Text
Microservice Patterns - Escaping Monolithic Hell
Microservice Patterns – Escaping Monolithic Hell

Escaping monolithic hell Scale cube and micro-services The model defines three ways to scale an application: X, Y, and Z.  X-axis scaling X-axis scaling is a commonly to scale an application. You simple run multiple instances of the application behind a load balancer. The load balancer distributes requests amongst the N identical instances of the application. Z-axis scaling Y-axis scaling…
View On WordPress
0 notes
Text
Creational Patterns

Creational design patterns abstract the instantiation process. They help make a system independent of how its objects are created, composed, and represented. A class creational pattern uses inheritance to vary the class that’s instantiated, whereas an object creational pattern will delegate instantiation to another object. Creational patterns become important as systems evolve to depend more on…
View On WordPress
0 notes
Text
A case study: Designing a Document Editor
A case study: Designing a Document Editor

This chapter presents a case study in the design of a “What-You-See-Is-What-You-Get” (or “WYSIWYG”) document editor called Lexi.[1] We’ll see how design patterns capture solutions to design problems in Lexi and applications like it. By the end of this chapter you will have gained experience with eight patterns, learning them by example. Design Problems Document structure. The choice of internal…
View On WordPress
0 notes
Text
Sequence Modeling: Recurrent and Recursive Nets
Sequence Modeling: Recurrent and Recursive Nets

Some examples of important design patterns for recurrent neural networks include the following: Recurrent networks that produce an output at each time step and have recurrent connections between hidden units, illustrated in Fig. 10.3. Recurrent networks that produce an output at each time step and have recurrent connections only from the output at one time step to the hidden units at the next…
View On WordPress
0 notes
Text
WildML – Artificial Intelligence, Deep Learning, and NLP
WildML – Artificial Intelligence, Deep Learning, and NLP
View On WordPress
0 notes
Text
Autonomous Driving: Modeling and Learning Behaviors
Autonomous Driving: Modeling and Learning Behaviors
Motion planning for dynamic environments is clearly one of the main problems that needs to be solved for effective autonomous navigation. As shown by Ref and Sharir, the general problem is NP-Hard, which explains the continued efforts to find algorithms to cope with that complexity. A much more overlooked but equally critical aspect of the problem is motion prediction. Motion planning algorithms…
View On WordPress
0 notes
Text
Autonomous Driving: Modeling and Learning Behaviors
Autonomous Driving: Modeling and Learning Behaviors
Modeling and Learning Behaviors This section describes the basic concepts involved in current motion learning and prediction approaches. After introducing the Bayes filter, it discusses Growing Hidden Markov Models, an approach which is able to perform lifelong learning, continuously updating the knowledge as more data are available. In experimental evaluation against two other state-of-the-art…
View On WordPress
0 notes
Text
Mastering CMake -- Key Concepts
Mastering CMake — Key Concepts
Key Concepts Main Structures This chapter provides an introduction not CMake's key concepts. As you start working with CMake, you. Will run into a variety of concepts such as targets, generators, and commands. In CMake, these concepts are implemented as C++ classes and are referenced in many of CMake's commands. Understanding these concepts will provide you with the working knowledge you need to…
View On WordPress
0 notes
Text
Autonomous Driving: Context and the State-of-the-Art
In this section the state-of-the-art in Intelligent Vehicles will be presented from a vehicle navigation perspective as these achieve autonomous navigation capabilities. The section is structured as follows: _Motivation_: The motivation to this ongoing transformation of modern vehicles are presented in terms of usage, safety and external factors such as fossil-fuel constraints, pollution. Vehicle…
View On WordPress
0 notes
Text
Effective Python (26) — Use multiple inheritance only for mix-in utility classes
Effective Python (26) — Use multiple inheritance only for mix-in utility classes
Python is an object-oriented language with built-in facilities for making multiple inheritance tractable. However, it's better to avoid multiple inheritance altogether. If you find you yourself desiring the convenience and encapsulation that comes with multiple inheritance, considering writing a mix-in instead. A mix-in is a small class that only defines a set of additional methods that a class…
View On WordPress
0 notes
Text
The Origin of Best Practices
The Origin of Best Practices
Hacking According to Richard Stallman, hackers have love of excellence and programming in common. The enjoy the creative challenging to overcome technical limitations and achieve things not thought possible before. People who are good at hacking are indispensable in todays technology-driven society. Hacking is a key skill, and we need people who are good at it. Without doubt, hacking is a useful…
View On WordPress
0 notes
Text
Introduction to Algorithms -- Red-Black Tree
Introduction to Algorithms — Red-Black Tree
1. Properties of red-black trees A red-black tree is a binary search tree with one extra bit of storage per node: its color, which can either RED or BLACK. By constraining the node colors on any simple path from the root to a leaf, red-black trees ensure that no such path is more than twice as long as any other, so that the tree is approximately balanced. Each node of the tree now contains the…
View On WordPress
0 notes
Text
Introduction-to-algorithms -- dynamic programmimng
Introduction-to-algorithms — dynamic programmimng
Dynamic programming typically applies to optimization problems in which we make a set of choices in order to arrive at an optimal solution. As we make each choice, subproblems of the same form often arise. Dynamic programming is effective when a given subproblem may arise form more than one partial set of choices. The key technique is to store the solution to each such subproblem in case it…
View On WordPress
0 notes
Text
Performance of Python Data Structures
Performance of Python Data Structures
It is important for you to understand the efficiency of these Python data structures because they are the building blocks we will use as we implement other data structure in the remainder of the book. Lists The designers of Python had many choices to make when they implemented the list data structure. Each of these choices could have an impact of how fast on how fast list operations perform. To…
View On WordPress
0 notes
Text
Mathematics for 3D Game Programming and Computer Graphics – Vectors
Mathematics for 3D Game Programming and Computer Graphics – Vectors
Vectors are of fundamental importance in any 3D game engine. They are used to represent points in space, such as the locations of objects in a game or the vertices of a triangle mesh. They are also used to represent spatial directions, such as the orientation of the camera or the surface normals of a triangle mesh. Understanding how to manipulate vectors is an essential skill of the successful 3D…
View On WordPress
0 notes