Uploaded April 2018 | Updated November 2026, 5 days ago
In this tool-assisted education video series I create a compiler in C++ for a B-like programming language. In this episode we optimize a three-address code based IR (intermediate representation).
This is part of a multi-episode series.
Become a member: youtube.com/Bisqwit/join
Downloads:
— github.com/bisqwit/compiler_series/tree/master/ep4 All the material associated with this episode can be downloaded here.
Check out this book if you would like to learn more indepth about compilers and optimization (Amazon affiliate link):
— amazon.com/gp/product/1558603204/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1558603204&linkCode=as2&tag=oellilu-20&linkId=973a02b8027731c84e9875e552d55ac9
Acknowledgements:
— Music: Final Fantasy V :: Various (SPC-OPL3 conversions and MIDIs)
— Music: Final Fantasy IV :: Various (SPC-OPL3 conversions and MIDIs)
— Music: Haru Iro No Kougen :: Amachi — NostalgiaMusic.com
— Music: Osouji Biyori :: Amachi — NostalgiaMusic.com
— SFX: Mostly from YouTube Audio Library. Some are recorded from video games like The Guardian Legend and Lunar Ball.
— Milly is from Star Ocean.
My links:
Twitter: twitter.com/RealBisqwit
Liberapay: liberapay.com/Bisqwit
Patreon: patreon.com/Bisqwit (Other options at bisqwit.iki.fi/donate.html)
Twitch: twitch.tv/RealBisqwit
Homepage: iki.fi/bisqwit
You can contribute subtitles: youtube.com/timedtext_video?ref=share&v=wdOpIIzxiNA or to any of my videos: youtube.com/timedtext_cs_panel?tab=2&c=UCKTehwyGCKF-b2wo0RKwrcg
#Bisqwit #Compiler #Tutorial
In this tool-assisted education video series I create a compiler in C++ for a B-like programming language. In this episode we optimize a three-address code based IR (intermediate representation).
This is part of a multi-episode series.
Become a member: youtube.com/Bisqwit/join
Downloads:
— github.com/bisqwit/compiler_series/tree/master/ep4 All the material associated with this episode can be downloaded here.
Check out this book if you would like to learn more indepth about compilers and optimization (Amazon affiliate link):
— amazon.com/gp/product/1558603204/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1558603204&linkCode=as2&tag=oellilu-20&linkId=973a02b8027731c84e9875e552d55ac9
Acknowledgements:
— Music: Final Fantasy V :: Various (SPC-OPL3 conversions and MIDIs)
— Music: Final Fantasy IV :: Various (SPC-OPL3 conversions and MIDIs)
— Music: Haru Iro No Kougen :: Amachi — NostalgiaMusic.com
— Music: Osouji Biyori :: Amachi — NostalgiaMusic.com
— SFX: Mostly from YouTube Audio Library. Some are recorded from video games like The Guardian Legend and Lunar Ball.
— Milly is from Star Ocean.
My links:
Twitter: twitter.com/RealBisqwit
Liberapay: liberapay.com/Bisqwit
Patreon: patreon.com/Bisqwit (Other options at bisqwit.iki.fi/donate.html)
Twitch: twitch.tv/RealBisqwit
Homepage: iki.fi/bisqwit
You can contribute subtitles: youtube.com/timedtext_video?ref=share&v=wdOpIIzxiNA or to any of my videos: youtube.com/timedtext_cs_panel?tab=2&c=UCKTehwyGCKF-b2wo0RKwrcg
#Bisqwit #Compiler #Tutorial

![Ur-Quan Masters: No-Starbase Practice Run: TOTALLY UNCUT PART 7/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 7/9](https://i.ytimg.com/vi/wqIC58YoLuk/mqdefault.jpg)

![Q&A - 2000 subscriber special! [With English Captions]
It is a special video time! Today my subscriber counter exceeded 2000, with michal3141 being the 2000th. Thank you everyone!
IF YOU DO NOT UNDERSTAND FINNISH, PLEASE TURN ON THE ENGLISH CAPTIONS!
Two thousand! People like milestones, so I made a special video.
It also gave me a good opportunity to answer some semi-important and semi-urgent questions. More semi-important and more semi-urgent answers may be coming later, when you ask those questions. I cannot promise a schedule though.
Sorry about the scratching noise you hear every time the headset cable hits the microphone. I only noticed it after recording.
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/
The background music is from Dual Orb 2, but converted into a MIDI by a program I made and then played with a MIDI player I made... Through emulated OPL3 synthesis. The song name is Peaceful Village.
The headset that I am using here I acquired from DealExtreme for $6.80. You can find it here: https://bisqwit.iki.fi/dx/p/6217 It is rather good quality and a lot more convenient than the Sony hand-held microphone F-V120 that I have been using previously. It takes some practise to set the microphone in the exactly right position that it doesnt record my breath and that it captures at exactly the right volume, which is why there is some clipping in some parts of the narration.
The video camera is a Sony DCR-SR37 that is not actually mine. I used a single camera, a tripod mount, and two additional light sources.
The color correction, subtitling and editing was performed in kdenlive, using a SSH-tunnelled X11 session. The audio was first mixed in Audacity. Q&A - 2000 subscriber special! [With English Captions]](https://i.ytimg.com/vi/xGfSiGGxPN8/mqdefault.jpg)
![Bisqwit’s channel intro explained [WARNING: Contains Bible stuff!]
Enough people have asked me what’s that channel intro animation about and what does the Hebrew text in it say. So here is finally all that you could want to know about it.
Twitter: https://twitter.com/RealBisqwit
Liberapay: https://liberapay.com/Bisqwit (alternatives at https://iki.fi/bisqwit/donate.html)
Twitch: https://twitch.tv/RealBisqwit
Homepage: https://iki.fi/bisqwit/
The quotes from the Hebrew Scriptures are from JPS 1917 Edition (same as in Mechon-Mamre).
The quotes from Apostolic Scriptures are from Andrew Gabriel Roth’s translation of the Peshitta Aramaic New Testament (AENT).
I have edited some expressions (such as “The LORD” or “eighth”) for brevity and accuracy (such as “YHWH” or “8th” respectively).
#Bisqwit #Blog #Television #Testcard #ChurchHistory #HebraicRoots Bisqwit’s channel intro explained [WARNING: Contains Bible stuff!]](https://i.ytimg.com/vi/xVxSAi4sueQ/mqdefault.jpg)
![Creating a Terminal Emulator PART 5 [c++ live stream]
I am creating a special-purpose terminal emulator for my video productions. Welcome to tag along!
My links:
Twitter: https://twitter.com/RealBisqwit
Liberapay: https://liberapay.com/Bisqwit
Steady: https://steadyhq.com/en/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/
#programming #terminal #emulator
FAQ:
A) Linux.
A) Cinnamon.
A) Debian (Testing).
A) Joe.
A) Because to learn a new tool (to replace another you are already fluent with) requires a sizable investment in time. It’s not practical, or at least it is very difficult to justify convincingly.
A) Embedded programming.
A) Be passionate and never be afraid to experiment. Try things that are challenging and have small unknown parts, and look up the information that you need. Do that for years.
A) Sorry, I don’t really read books — beginner or otherwise. I have no idea which books are good or not. I get most of my information from the Internet by simply searching for it.
A) No downloadable playlist. The currently playing song filenames are shown on the right side of the screen at all times. You can look them up in ModArchive, but you may sometimes need to guess a bit.
Source code and more information: https://github.com/bisqwit/that_terminal Creating a Terminal Emulator PART 5 [c++ live stream]](https://i.ytimg.com/vi/yGPUG0s1o24/mqdefault.jpg)


![Bisqwit Plays Indie Games: RimWorld [Alpha16.1393]
RimWorld is a colony simulation game. You crash-land on an unknown habitable planet, and you try to settle and survive the odds, fighting environmental hazards, technology failures, and sociological dangers from both the outside and inside of your colony. The game, created in Unity, is often compared to Prison Architect or Dwarf Fortress.
In July 2016, I received a copy of RimWorld Alpha14. Soon thereafter I actually recorded a 25-minute video from my first blind experiences, but I soon quit after having absolutely no idea what to do and how. Out of shame, I didn’t want to publish it.
Twitter: https://twitter.com/RealBisqwit
Liberapay: https://liberapay.com/Bisqwit (alternatives at https://iki.fi/bisqwit/donate.html)
Twitch: https://twitch.tv/RealBisqwit
Homepage: https://iki.fi/bisqwit/
I am not particularly fond of this game genre, but I wanted to give the game a second chance, especially as I received the game for free for review purposes, and I saw that many of my complaints of the game were actively being addressed by the developer, Tynan Sylvester. And I ended up getting hooked. Who could have guessed (!).
By now, RimWorld is at version Alpha16, and nearly all of my original complaints have been addressed, and I have more than 140 hours of playtime to my record, and twice as much in the shape of watching letsplays by numerous people, and I decided to make another video. This was streamed live on Twitch on January 2017.
In this video, I chose to begin with the “one rich explorer” scenario, where I start the colony with a single person, hoping others will join eventually. I settled on a region not too cold, not too warm, but still a bit on the colder side, on not too arid land, so I have lots of wood and fauna at disposal. Turns out it took only a couple of unplanned-for disasters for things to turn irreversibly sour. This is the general theme of this game, so I guess I did fine after all. (But most of my colonies do better!)
See more about the game at:
- https://rimworldgame.com/
- https://ludeon.com/
Sorry about the sparse commentary. I had like five viewers, the chat was very slow, and I am not a talkative person. I hope the game actions will speak more.
VIDEO MAP:
0:00 Exposition and setting up
1:57 Scenario set up
4:02 Scenario set up
9:04 Crash landing
20:01 First trader
22:10 Mad squirrel
25:36 Pollard joins!
30:37 First RAID
32:27 PoW resolution
34:43 Pollard goes on a spree
37:00 Colony is doing fine
38:20 Escape pod
39:49 Emergency prison closet
44:44 Cooler build plan backfire
46:22 Cooler powerup backfire
52:04 Cargo pods
52:25 Solar eclipse
54:12 Heat wave
54:30 Solar flare
55:05 Solar flare ends
55:24 Food rots away
55:58 Solar eclipse ends
57:40 Zzzt
58:00 PoW is overheating
58:10 Pollard is burning
1:00:12 Starship secret
1:00:46 Rebuilding colony
1:01:00 Pollard is infected
1:01:30 Dog is mauled to death
1:01:50 Charna falls asleep in the middle of fire
1:01:58 Rain
1:02:02 Heatwave ends
1:02:21 Pollard is zombie
1:02:23 Mad raccoon
1:03:10 Pollard is downed
1:07:00 Marjot joins!
1:08:40 Charna is infected
1:08:50 Colonist dies
1:10:55 Starvation
1:14:50 Eridani joins!
1:15:06 RAID
1:15:42 Charna is zombie
1:18:33 Cargo pods
1:18:40 Marjot is berserk
1:19:16 Eridani is downed
1:19:26 Marjot is downed
1:19:38 Marjot wakes up
1:22:03 Charna falls asleep
1:30:02 Ms. Incapable
1:37:33 Ms. Incapable joins!
1:40:11 Escape pod
1:40:22 Charna is zombie
1:41:13 First resident in newly expanded prison
1:42:30 End of growing period
1:44:50 New lovers!
1:44:54 Eridani is zombie
1:45:43 Out of food, time to hunt
1:47:24 Rare thrumbo
1:48:59 Hunting backfired
1:49:44 Dusty is downed
1:50:37 Eridani fights a doe
1:51:41 Eridani is downed
1:51:57 Charna is downed
1:52:08 Colonist dies
1:52:24 Charna wakes up
1:52:40 Charna is downed again
1:54:51 Dusty falls asleep
1:56:33 Colonist dies
1:57:54 Mie joins
1:58:12 Colonist dies
1:58:13 Prisoner dies
2:02:10 Dreadful discovery
2:05:08 Hunting backfired, again
2:05:40 Mie is downed
2:06:08 Risky rescue
2:07:20 Trader 2
2:11:42 Mie craves drugs
2:14:39 Lets evacuate
2:23:37 Whoa, this can happen?
2:24:06 Oops...
2:24:27 Scattered
2:25:16 Afterwords
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, 2 × RipjawsX F3-12800CL10-8GBXL, for a total of 32 GB @ 1600 MHz
HDD: 95 GB of Kingston SVP200S, stream saved to ST2000DL001-9VT1
GFX: GeForce GTX 970/PCIe
Mic: Blue Snowball ICE
Cam: Logitech USB HD Pro C920
OS: Linux Debian jessie+backports
Streaming: OBS 0.15.4-34-g562b3c2
Any other hardware not mentioned is random no-name stuff. Bisqwit Plays Indie Games: RimWorld [Alpha16.1393]](https://i.ytimg.com/vi/z2ZU9Liwrjo/mqdefault.jpg)
