TALK IS CHEAP, SHOW ME THE CODE.

Before we begin

Nintendo’s Game Boy was popular around the world, but I never had one as a child. When I learned about it later, I became fascinated by it and wanted to make games that could run on the hardware.

Read More

Dynamic Programming problems are the most complicated problems in algorithms. However, it is actually simple to solve if you understand the key concepts and the main algorithm framework of DP.

Read More

Static abstract interface method is a new feature in C# 11 (corresponding .NET 7.0). In this article, we are going to deeply dive into it, talk about why we need it, what it is and how to use it.

Read More

In MongoDB, every documents have an object id (Bson ID). But sometimes we need ids that can automatically increase when creating a new model. And the id should be an integer starts from 1. How to deal with the problem?

Read More

Next, let’s analyze the role CMake plays in the Pilot engine.

Read More

Next up, let’s go through the file and directory structure of the Pilot engine, and along the way briefly cover the third-party libraries Pilot uses and what they’re for.

Read More
Pilot successfully compiled and running on Windows
Pilot successfully compiled and running on Windows

The Pilot engine is a mini game engine developed jointly by the GAMES104 course team. It’s small, but it has everything it needs. It’s open source, so we can grab its source code on GitHub. Below I’ll briefly go over how to get the Pilot engine running on Windows and debug it with breakpoints.

Read More

GameShell is an open-source retro handheld that runs Arm Linux. Both its software and hardware are open source, making it a fantastic toy for geeks, game developers and figure collectors (it really does count as a figure, lol).

Godot is an open-source, cross-platform game engine that’s growing fast. It originally only supported GDScript, later added VisualScript (a visual node-based logic editor), now supports writing libraries in C++ via GDNative, and is gradually adding C# support (in beta).

So, can a game made with Godot be exported and run on the Armv7-based GameShell?

The answer is: Godot, YYYYYYYEEEEEEEESSSSS!

Next I’ll walk you through the whole process of running a Godot game on GameShell.

Read More

Introduction#

Overview#

Thinking about network program design#

When designing a network program, the first thing to decide is the communication protocol, and at a high level you need to decide which program initiates the communication and when responses happen.

Daemons#

A long-running program is called a daemon. Generally speaking, a web server program is a kind of daemon.

The client/server model#

Most network applications are organized as a client and a server, i.e. the C/S model. The client and server communicate via an application protocol.

How a web application communicates#

When a web client application (a browser) makes a request to a web server, it typically communicates using HTTP/HTTPS at the application layer, which in turn uses TCP at the transport layer, IP at the network layer, and Ethernet at the link layer, and finally the bit stream is transmitted over the physical medium at the physical layer. Then the data goes back up layer by layer, from the physical layer to the application layer, and finally the server receives it.

Read More
post @ 2021-06-24

The TCP/IP Protocol Suite#

TCP/IP is a protocol suite that implements the Internet architecture; it originates from the ARPANET reference model.

Protocol Suite#

A collection of related protocols is called a protocol suite.

Architecture / Reference Model#

The design that specifies the relationships among the various protocols in a protocol suite and divides up the tasks that need to be accomplished is called the suite’s architecture or reference model.

Principles of the Internet Architecture#

The Internet architecture should interconnect multiple networks and run multiple applications simultaneously across the interconnected networks.

The Internet Goals List#

  • Internet communication must continue when networks or gateways fail.
  • The Internet must support multiple types of communication services.
  • The Internet architecture must accommodate a variety of networks.
  • The Internet architecture must permit distributed management of its resources.
  • The Internet architecture must be cost-effective.
  • The Internet architecture must permit the connection of low-capability hosts.
  • The resources used in the Internet must be accountable.

Key Approaches and Results#

Packets, Connections, and Datagrams#

Telephone Networks#

Up until the 1960s, the primary concept of networking was based on the telephone network. The telephone network is a form of network transmission that establishes a connection (originally a physical circuit) between the two parties of a call, provides the user with a certain amount of bandwidth or capacity, and thereby transmits information. It went through a development process from analog networks to digital networks, ultimately guaranteeing a certain level of reliability and performance. However, using a telephone network means that during a call you pay for it even when you aren’t transmitting any data.

Read More
TOP