Uploaded October 2014 | Updated November 2026, 5 days ago
Are you familiar with C, or with languages based on C? This video gives a quick introduction to C++: a very small core set of things that are new in C++ compared to C. [Subtitles/Captions available]
Topics covered, in order:
- Bidirectional linked list in C
- What is a class (it is a struct)
- Methods
- Struct is a type (typedef is not needed)
- Constructing and destructing
- Template classes
- std::list is already in STL (C++ standard library)
- performance impact (none at all)
Twitter: twitter.com/RealBisqwit
Patreon: patreon.com/Bisqwit (alternatives at iki.fi/bisqwit/donate.html)
Twitch: twitch.tv/RealBisqwit
Homepage: iki.fi/bisqwit
Things I forgot to mention:
- methods (member functions) do not increase the size of the struct/class at all. They literally work just the same way as the original C code in this video works, even though they're defined in between the struct's { and }. Memory usage per class instance is not increased (and scalability is not hurt), no matter how many methods the class defines.
Topics intentionally omitted for clarity and brevity, even though they would be good style for this program:
- copy constructor / assign operators
- member initialization in constructor
- public and private
- std::string rather than const char*
- const references rather than T verbatim
- exception safety
It's been a while since I last published videos containing English speech. I think I've taken a step backwards towards robotic speech, due to lack of practice. Sorry about that. English is still not my native language!
Same lesson in HTML format: bisqwit.iki.fi/story/howto/cpp/lesson1
Are you familiar with C, or with languages based on C? This video gives a quick introduction to C++: a very small core set of things that are new in C++ compared to C. [Subtitles/Captions available]
Topics covered, in order:
- Bidirectional linked list in C
- What is a class (it is a struct)
- Methods
- Struct is a type (typedef is not needed)
- Constructing and destructing
- Template classes
- std::list is already in STL (C++ standard library)
- performance impact (none at all)
Twitter: twitter.com/RealBisqwit
Patreon: patreon.com/Bisqwit (alternatives at iki.fi/bisqwit/donate.html)
Twitch: twitch.tv/RealBisqwit
Homepage: iki.fi/bisqwit
Things I forgot to mention:
- methods (member functions) do not increase the size of the struct/class at all. They literally work just the same way as the original C code in this video works, even though they're defined in between the struct's { and }. Memory usage per class instance is not increased (and scalability is not hurt), no matter how many methods the class defines.
Topics intentionally omitted for clarity and brevity, even though they would be good style for this program:
- copy constructor / assign operators
- member initialization in constructor
- public and private
- std::string rather than const char*
- const references rather than T verbatim
- exception safety
It's been a while since I last published videos containing English speech. I think I've taken a step backwards towards robotic speech, due to lack of practice. Sorry about that. English is still not my native language!
Same lesson in HTML format: bisqwit.iki.fi/story/howto/cpp/lesson1



![Ur-Quan Masters: No-Starbase Practice Run: TOTALLY UNCUT PART 6/9
I completed Star Control II: The Ur-Quan Masters (the open source version) without ever talking to the Earth starbase commander, Hayes, or without orbiting the starbase. WARNING: THIS VIDEO SERIES INCLUDES UNDONE SEGMENTS. IT IS LONG AND IRRELEVANT. PROVIDED FOR CURIOSITY ONLY.
Note: There are occasional video / audio glitches in the videos, but those will [hopefully] get less and less common as the game progresses, as I fixed bugs in my recording software. Unfortunately, their effect tends to cascade the longer the video is.
This is a practice / proof-of-concept run, created within a span of 7 days.
Technical information: Played in real time on Linux computer across SSH link on Cygwin desktop. Recording was done using a homebrew LD_PRELOAD library that hooked into SDL video & audio updates, and produced 32-bit zmbv+pcm mkv files. Extra calls were added to notify the recording library of save & load events, so that the finished video could be constructed from the relevant segments. Undone segments are not shown (except in the totally uncut series).
This video includes ALL the segments, even those that ended up in failure and had to be redone by loading a save.
WATCH THE FINISHED PRACTICE SERIES WITH COMMENTS, AND BORING/REPETITIVE PARTS MOSTLY CUT OUT:
Part 1: https://youtu.be/-fPtTwm_vOU
Part 2: https://youtu.be/HJc_ykXU9TY
Part 3: https://youtu.be/QI6FB62BoBQ
Part 4: https://youtu.be/2DaxgFCy8JM
Part 5: https://youtu.be/9CF-OZy5dR4
Part 6: https://youtu.be/mwoLQUKCrkE
Part 7: https://youtu.be/JUFVnDCyY1w
Part 8: https://youtu.be/fYOFJvfxDec
Part 9: https://youtu.be/1PmBct19ctA
Part 10: https://youtu.be/wIVYv_DEpak
Part 11: https://youtu.be/ZzM5tHLfHxw
Part 12: https://youtu.be/WjLTRWJK5j0
UNCUT VIDEO (FINISHED PRACTICE SEGMENTS IN ONE VIDEO, WITHOUT COMMENTS):
[tba]
TOTALLY UNCUT SERIES (ALL PRACTICE SEGMENTS; INCLUDING THE FAILED ONES):
Part 1: https://youtu.be/ilLlvEIItkM
Part 2: https://youtu.be/h8mtdNwfoB4
Part 3: https://youtu.be/9gJzNUlBNZM
Part 4: https://youtu.be/EaB92-uGuo0
Part 5: https://youtu.be/duJ5PTvqJaE
Part 6: https://youtu.be/lRnS9Fxjy20
Part 7: https://youtu.be/wqIC58YoLuk
Part 8: https://youtu.be/Xmowt7XyRmI
Part 9: https://youtu.be/EvBLmFOX06M
Note: The totally-uncut series includes some very long sections where absolutely nothing happens. This is because sometimes I was off-keyboard while the game and its music was playing, and when I came back, I loaded a save.
FAQ:
Q) How does no-starbase (i.e. BGD, beating-game-differently) differ from normal game?
A) Obvious differences: No flagship upgrades / module building, no crew recruiting, no fuel-for-RU, no building of ships, no Arilou ships, no replacing of planet landers, no escaping of battles. RU is worthless. Non-obvious differences: 100% of chance of probe spawning every day in hyperspace, versus maximum of 8% in normal game. When the Chmmr refit your ship, they no longer reset your fuel to 10, nor do they take away all of your modules, nor do they rob the ability to build new storage-bays (if you suddenly decide to help the starbase. You get to keep your minerals, too. Bring a megaton of exotic materials to the Sa-Matra explosion! They still remove your landers and max out your thrusters and turning jets. Also, they transport you to Earth orbit rather than aboard Starbase.
Q) How does UQM differ from the PC Star Control II in terms of gameplay in BGD challenge?
A) When you emerge in hyperspace (from battle, from truespace), in the PC version you would always emerge with the ship pointing north. It means that if you wanted to go anywhere else but north, you would have to slowly crank the ship to rotate towards the desired direction. In the open source version, the ship is automatically quick-oriented towards the original direction, which is a huge boon in a challenge like this. The planet lander only holds 50 units of BIO data rather than 64, necessitating more landings. And the BIO is more aggressive. Ur-Quan Masters: No-Starbase Practice Run: TOTALLY UNCUT PART 6/9](https://i.ytimg.com/vi/lRnS9Fxjy20/mqdefault.jpg)

![Bisqwit Plays: The Talos Principle [2/4] (complete blind 100% all endings)
The Talos Principle is a 3D puzzle game, which also happens to explore the topic of artificial humanity. It was developed in Serious Engine by Croteam. It is famed for its extremely beautiful graphics and good story writing. It draws inspiration from the Portal series.
The game is rife with references to different religions from the history of humanity. Most prominently, the narrator character calls themselves Elohim, the Hebrew title for the God who created the world and sustains it. This may feel annoying at first, but given the story of the game, it all makes sense.
Part 1: https://youtu.be/gG6vHClsdAw
Part 2: https://youtu.be/lyOm553O7rQ
Part 3: https://youtu.be/8BG9rTToh0Q
Part 4: https://youtu.be/un8dW-iX8k4
PLOT
The story of the game is that humanity has contracted an unstoppable lethal virus. Realizing their inevitable extinction, all of humanity comes together in a last-ditch effort to assemble a computer data bank of the collective knowledge of all humanity. They also develop a simulated world with access to those databanks. The goal of the data bank is to provide a record of humanity for whichever aliens might visit Earth in the future. The goal of the simulation is to evolve an AI that would eventually pass as a worthy artificial inheritor of the human race, so that the essence of human race might live on, despite real humans being biologically extinct.
Unfortunately there was not enough time to develop and test the project fully before humanity expired. When the events of this game transpire, uncounted years have passed, and the database has been deteriorating, and most of the data has been lost and whatever little remains is hardly coherent. In addition, there is a bug in the AI, which sometimes pulls data from wrong databases. As a consequence, religions and reality get mixed up, and the AI instances, which somehow interact despite being separated by time and generations, have hard time understanding why they exist in the first place. Despite these difficulties, they seem to be achieving positive progress on evolving human characteristics. The player character is the latest of these instances. Could they prove the project has reached its goal? The actions of the player will decide that.
Twitter: https://twitter.com/RealBisqwit
Patreon: https://patreon.com/Bisqwit (alternatives at https://iki.fi/bisqwit/donate.html)
Twitch: https://twitch.tv/RealBisqwit
Homepage: https://iki.fi/bisqwit/
I played through this game in Q1 2016 in the passage of two weeks, and streamed most of it on Twitch.
Buy The Talos Principle at: http://store.steampowered.com/app/257510/
VIDEO MAP:
00:00 continue day 4, on Linux
00:12 B1 WtaD star
01:06 B2 star attempts
22:55 B3 star
47:45 B4 star
1:05:24 B7 BLoM
1:12:48 B7 WLJ (two-jammer solution)
1:27:11 B7 star
1:34:02 LoL
1:34:36 Unlock: B8
1:35:25 B8 doot
1:38:38 B8 CC
2:06:20 B8 MGR
2:16:55 B8 P
2:23:42 Nexus 3 (cancel)
2:29:37 exploring tower outside surfaces
2:37:57 Nexus 3
2:41:36 Unlock: Nexus 4
2:47:22 Unlock: platform
2:51:40 A9
3:07:23 Unlock: Messenger - Warp
3:13:55 B9
3:35:36 Unlock: Messenger - Deign
3:41:44 C9
3:50:25 Unlock: Messenger - Uriel4
3:53:55 C3 beep
4:00:06 C3 W
4:12:23 C3 W star attempts
4:22:04 end of day 4
4:22:06 begin day 5 (back in Windows, for better framerate)
4:23:07 C3 W star attempts
4:24:57 C3 TLCaaF
4:58:06 C3 BSLS
5:16:42 C3 W star attempts (softlocked)
5:20:20 C2 R (interrupted)
5:22:17 money
5:23:06 found Warps stamp again
5:23:52 C2 R
5:35:18 C2 doot
5:40:07 C2 TSW
5:43:22 C2 ADaaF
5:47:18 C2 ADaaF star attempts
5:58:34 end of day 5
5:38:35 begin day 6 (setting up)
6:07:50 (no longer setting up)
6:10:31 C5 doot
6:12:53 C5 doot2
6:14:26 C5 UCaJ (glitch solution)
6:26:15 C5 UCaJ (real solution)
6:34:15 C6 doot
6:35:30 C6 alexandra
6:38:36 C6 TWS
6:44:46 exploring tower outside surfaces
6:51:30 Nexus 4
7:02:08 Unlock: Nexus 5
7:06:00 A1 star
7:37:26 A2 star attempts
7:53:28 C6 TSDoR (interrupted)
7:58:26 end of day 6
7:58:31 begin day 7
8:00:42 C6 C
8:21:28 C6 C star attempts
8:26:40 C6 TSDoR and star (glitch solution)
8:33:37 C6 doot
8:39:23 C5 TC (unsuccessful)
8:49:14 C5 D (different solution)
9:02:06 C5 TF (interrupted by OoB)
9:15:05 words room
9:17:26 C5 TC (still unsuccessful)
9:18:02 C5 TF
9:27:41 C5 TC (distracted by lasers)
9:29:37 C5 star
9:44:50 C5 TC (distracted again)
9:47:11 C5 star
9:51:14 C5 TC
9:57:01 C7 doot
10:00:49 C7 PB (unsuccessful)
10:27:31 end of day 7
Played on a computer with the following specs:
MB: Gigabyte Z97P-D3
PSU: Corsair CX600W V2
CPU: Intel Xeon E3-1281 v3 @ 3.70GHz
RAM: 2 × Kingston KHX1600C10D3/8G for a total of 16 GB @ 1600 MHz
HDD: 128 GB of Kingston SVP200S
GFX: GeForce GTX 560/PCIe
OS: Windows 10, Linux Debian jessie+backports
Streaming: OBS
Any other hardware not mentioned is random no-name stuff. Bisqwit Plays: The Talos Principle [2/4] (complete blind 100% all endings)](https://i.ytimg.com/vi/lyOm553O7rQ/mqdefault.jpg)


![Ur-Quan Masters: No-Starbase Practice Run: PART 6/12
I completed Star Control II: The Ur-Quan Masters (the open source version) without ever talking to the Earth starbase commander, Hayes, or without orbiting the starbase.
Note: There are occasional video / audio glitches in the videos, but those will [hopefully] get less and less common as the game progresses, as I fixed bugs in my recording software. Unfortunately, their effect tends to cascade the longer the video is.
This is a practice / proof-of-concept run, created within a span of 7 days.
Technical information: Played in real time on Linux computer across SSH link on Cygwin desktop. Recording was done using a homebrew LD_PRELOAD library that hooked into SDL video & audio updates, and produced 32-bit zmbv+pcm mkv files. Extra calls were added to notify the recording library of save & load events, so that the finished video could be constructed from the relevant segments. Undone segments are not shown (except in the totally uncut series).
THE FINISHED PRACTICE SERIES WITH COMMENTS, AND BORING/REPETITIVE PARTS MOSTLY CUT OUT:
Part 1: https://youtu.be/-fPtTwm_vOU
Part 2: https://youtu.be/HJc_ykXU9TY
Part 3: https://youtu.be/QI6FB62BoBQ
Part 4: https://youtu.be/2DaxgFCy8JM
Part 5: https://youtu.be/9CF-OZy5dR4
Part 6: https://youtu.be/mwoLQUKCrkE
Part 7: https://youtu.be/JUFVnDCyY1w
Part 8: https://youtu.be/fYOFJvfxDec
Part 9: https://youtu.be/1PmBct19ctA
Part 10: https://youtu.be/wIVYv_DEpak
Part 11: https://youtu.be/ZzM5tHLfHxw
Part 12: https://youtu.be/WjLTRWJK5j0
UNCUT VIDEO (FINISHED PRACTICE SEGMENTS IN ONE VIDEO, WITHOUT COMMENTS):
https://youtu.be/tH6GEJH3Ro8
TOTALLY UNCUT SERIES (ALL PRACTICE SEGMENTS; INCLUDING THE FAILED ONES):
Part 1: https://youtu.be/ilLlvEIItkM
Part 2: https://youtu.be/h8mtdNwfoB4
Part 3: https://youtu.be/9gJzNUlBNZM
Part 4: https://youtu.be/EaB92-uGuo0
Part 5: https://youtu.be/duJ5PTvqJaE
Part 6: https://youtu.be/lRnS9Fxjy20
Part 7: https://youtu.be/wqIC58YoLuk
Part 8: https://youtu.be/Xmowt7XyRmI
Part 9: https://youtu.be/EvBLmFOX06M
Note: The totally-uncut series includes some very long sections where absolutely nothing happens. This is because sometimes I was off-keyboard while the game and its music was playing, and when I came back, I loaded a save.
FAQ:
Q) How does no-starbase (i.e. BGD, beating-game-differently) differ from normal game?
A) Obvious differences: No flagship upgrades / module building, no crew recruiting, no fuel-for-RU, no building of ships, no Arilou ships, no replacing of planet landers, no escaping of battles. RU is worthless. Non-obvious differences: 100% of chance of probe spawning every day in hyperspace, versus maximum of 8% in normal game. When the Chmmr refit your ship, they no longer reset your fuel to 10, nor do they take away all of your modules, nor do they rob the ability to build new storage-bays (if you suddenly decide to help the starbase. You get to keep your minerals, too. Bring a megaton of exotic materials to the Sa-Matra explosion! They still remove your landers and max out your thrusters and turning jets. Also, they transport you to Earth orbit rather than aboard Starbase.
Q) How does UQM differ from the PC Star Control II in terms of gameplay in BGD challenge?
A) When you emerge in hyperspace (from battle, from truespace), in the PC version you would always emerge with the ship pointing north. It means that if you wanted to go anywhere else but north, you would have to slowly crank the ship to rotate towards the desired direction. In the open source version, the ship is automatically quick-oriented towards the original direction, which is a huge boon in a challenge like this. The planet lander only holds 50 units of BIO data rather than 64, necessitating more landings. And the BIO is more aggressive.
(Your question here) Ur-Quan Masters: No-Starbase Practice Run: PART 6/12](https://i.ytimg.com/vi/mwoLQUKCrkE/mqdefault.jpg)

