Uploaded February 2016 | Updated November 2026, 5 days ago
If you program long enough, eventually you will run into a programming art category called "obfuscated code" or “code golf”. You can find these especially at IOCCC. In this video I introduce the concept and the basic ideas behind such design. More information below (click "Show more").
I realize the category is "obfuscated code", not "small code", but often trying to compress your code into the smallest size will also effectively obfuscate its function. I also realize that some of the individual changes I did in the video did actually _not_ result in smaller program code size, but the opposite. But the end result is still the shortest I could manage, if you remove the "int", the "return", and the space after "include".
Actual obfuscation techniques include using small and meaningless variable names, using unusual syntax constructs, redefining reserved words, adding code that appears to do one thing but does something else (or nothing at all), creating a complex machinery (such as an interpreter) to do a different task, encryption, and so on.
Twitter: twitter.com/RealBisqwit
Patreon: patreon.com/Bisqwit (alternatives at iki.fi/bisqwit/donate.html)
Twitch: twitch.tv/RealBisqwit
Homepage: iki.fi/bisqwit
Source code:
bisqwit.iki.fi/jutut/kuvat/programming_examples/obfuscated
Music:
- Star Ocean :: Encounter :: Motoi Sakuraba (converted into MIDI and played through OPL3 emulation through homebrew software)
- Chrono Cross :: Jellyfish Sea :: Yasunori Mitsuda
Contribute subtitles:
youtube.com/timedtext_video?v=rwOI1biZeD8
I got to use the word "defenestrate"!
#Bisqwit #Programming #ProgrammingPhilosophy #Tutorial #ObfuscatedCode #CProgramming
If you program long enough, eventually you will run into a programming art category called "obfuscated code" or “code golf”. You can find these especially at IOCCC. In this video I introduce the concept and the basic ideas behind such design. More information below (click "Show more").
I realize the category is "obfuscated code", not "small code", but often trying to compress your code into the smallest size will also effectively obfuscate its function. I also realize that some of the individual changes I did in the video did actually _not_ result in smaller program code size, but the opposite. But the end result is still the shortest I could manage, if you remove the "int", the "return", and the space after "include".
Actual obfuscation techniques include using small and meaningless variable names, using unusual syntax constructs, redefining reserved words, adding code that appears to do one thing but does something else (or nothing at all), creating a complex machinery (such as an interpreter) to do a different task, encryption, and so on.
Twitter: twitter.com/RealBisqwit
Patreon: patreon.com/Bisqwit (alternatives at iki.fi/bisqwit/donate.html)
Twitch: twitch.tv/RealBisqwit
Homepage: iki.fi/bisqwit
Source code:
bisqwit.iki.fi/jutut/kuvat/programming_examples/obfuscated
Music:
- Star Ocean :: Encounter :: Motoi Sakuraba (converted into MIDI and played through OPL3 emulation through homebrew software)
- Chrono Cross :: Jellyfish Sea :: Yasunori Mitsuda
Contribute subtitles:
youtube.com/timedtext_video?v=rwOI1biZeD8
I got to use the word "defenestrate"!
#Bisqwit #Programming #ProgrammingPhilosophy #Tutorial #ObfuscatedCode #CProgramming


![Ur-Quan Masters: No-Starbase Practice Run: UNCUT VERSION
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. In this video you see the whole resulting run from beginning to end without cutting away the tedious battles.
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 LD_PRELOAD library that hooked into SDL video & audio updates. 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).
See the episodic videos for commentary.
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. It also turns slower, 45 RPM rather than 75 RPM. And the BIO is more aggressive.
Q) Why was BGD not possible to do in the Star Control II, and in UQM before version 0.4.0?
A) I have not tried it, but I can think: When the Chmmr take you back to Earth Starbase, you will get all the flashing hazard lights disco, and the commander will ask you to give radioactives. Unfortunately, the Chmmr removed all your storage bays, so you cant have radioactives onboard, making his request impossible to satisfy. Nor do you have a planet lander, though you could ask for one. But you should still be able to exit the conversation, and embark to Sa-Matra... With your 10 units of reserve fuel (since you dont have any fuel tanks anymore either). I have heard that the game crashes, but I cant see why it would. Ur-Quan Masters: No-Starbase Practice Run: UNCUT VERSION](https://i.ytimg.com/vi/tH6GEJH3Ro8/mqdefault.jpg)




![Bisqwit Plays: The Talos Principle [4/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:
{{ TODO }}
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 [4/4] (complete blind 100% all endings)](https://i.ytimg.com/vi/un8dW-iX8k4/mqdefault.jpg)
![Logic 4: Natural Deduction with Logical Axioms — Tutorial 4/4
In this four-part series we explore propositional logic, Karnaugh maps, implications and fallacies, predicate logic, existential and universal quantifiers and finally natural deduction.
Become a member: https://youtube.com/Bisqwit/join
My links:
Twitter: https://twitter.com/RealBisqwit
Liberapay: https://liberapay.com/Bisqwit
Patreon: https://patreon.com/Bisqwit (Other options at https://bisqwit.iki.fi/donate.html)
Twitch: https://twitch.tv/RealBisqwit
Homepage: https://iki.fi/bisqwit/
*Summary of the introduction and elimination rules.* Here [M]→N means that by temporarily assuming that M is true you can conclude N. If N is already true, you can just use N directly and ignore M. If you already know M is true (for example it is a premise), you should not mark it temporary. “Is valid” means that you can make that conclusion. “Is true” means that the expression has already been concluded or given as a premise.
INTRODUCTION RULES:
I Conjunction/AND:
If P and Q, then P∧Q is valid.
I Disjunction/OR:
If P, then P∨Q is valid.
If Q, then P∨Q is valid.
I Biconditional/equivalence (↔):
If [P]→Q and [Q]→P, then P↔Q is valid.
I Implication (→):
If [P]→Q, then P→Q is valid.
I Negation (NOT):
If [P]→(Q∧¬Q), then ¬P is valid.
I Universal quantifier (∀):
If P is true independent of x, then ∀xP is valid.
I Existential quantifier (∃):
If P(y), then ∃xP(x) is valid for some independent variable x.
ELIMINATION RULES:
E Conjunction (AND):
If P∧Q, then P is valid.
If P∧Q, then Q is valid.
E Disjunction (OR):
If P∨Q, and [P]→R and [Q]→R, then R is valid.
E Biconditional/equivalence (↔):
If P↔Q, and P is true, then Q is valid.
If P↔Q, and Q is true, then P is valid.
E Implication (→):
If P→Q, and P is true, then Q is valid.
E Negation (NOT):
If ¬¬P, then P is valid.
E Universal quantifier (∀):
If ∀xP(x), then P(y) is valid for some independent variable y.
E Existential quantifier (∃):
If ∃xP, and [P]→Q independent of x, then Q is valid.
CONTENTS:
0:00 Introduction
1:05 Rules for Conjunction (AND)
1:31 Rules for Disjunction (OR)
1:32 What is the point? Axioms!
3:18 Example 1: Can we swap A and B?
4:50 Example 2: Deconstructing OR
5:38 Rules for Implication (IMP)
6:44 Rules for Equivalence (XNOR)
7:24 Example 3: From equivalence to implication
9:28 Rules for Negation (NOT)
10:49 Temporary Assumptions Workshop
12:06 Example 4: Creating a contradiction
14:12 Rules for Existential Quantifier (∃)
15:00 Rules for Universal Quantifier (∀)
15:28 Bound and Free Variables
17:34 Summary
17:53 Example 5: Is tiger a mammal?
20:03 Conclusion
20:21 Example 6: Every likes kiwis, Milo might like pears
24:38 Example 7: For all, A is true ⇒ For nobody, A is false
31:10 Example 8: White cars and engines
35:53 Example 9: Proving a negative?
38:51 Links Logic 4: Natural Deduction with Logical Axioms — Tutorial 4/4](https://i.ytimg.com/vi/v-1ikd_89Mg/mqdefault.jpg)

