Premium Only Content

Computer recreations: core wars
In this video I show you a Python implementation of a 1984 article by A. K. Dewdney from the "Scientific American" magazine called "In the game called Core War hostile programs engage in a battle of bits".
Using a circular list and implementing at least two of the proposed operations, it's possible to execute basic programs in the Redcode programming language.
The user codes the language mnemonics in the main function of the program which are then translated into "machine code" and stored into the "core memory", i.e.: circular list. The simulator will then execute these instructions.
Links to the article:
- https://www.scientificamerican.com/article/computer-recreations-1984-05/
- https://people.scs.carleton.ca/~soma/biosec/readings/akdewdney/First.htm
Source code:
Wikipedia:
- https://en.wikipedia.org/wiki/Core_War
CHAPTERS
0:00 Intro
0:22 General overview of the article: history, programming language, operations
1:37 Circular array
2:00 Circular list in Python
2:10 Instruction pointer: keeps track of the execution
2:44 The Simulator class
3:11 Structure of the machine code
4:18 Addressing types
5:12 A 3-instruction program replicated from the article
5:55 Check the expected result of the program
6:16 The "Imp" program
6:57 Important methods of the Simulator class: transform human mnemonics to machine code and vice-versa, store and execute operations
8:17 The MOV operation
8:27 Script execution
9:32 Outtro
#computerrecreations #corewars #python
-
2:45
SLS - Street League Skateboarding
4 days agoManny Santiago's 'THIS IS 40' Part
47.3K2 -
6:40
Homesteading Family
5 days agoNever Make Pie Crust From Scratch Again (Do THIS Instead)
39K4 -
44:20
Melissa K Norris
3 days ago $0.72 earnedThe Most Overlooked Way to Preserve Food for Months (No Freezer Needed) w/ Sam Knapp
28.2K1 -
23:00
Tony Jeffries
6 days agoThe Best & Worst Boxing Training Methods (Ranked by Olympic Boxer)
20.4K -
44:44
Scammer Payback
17 days agoCrazy Confrontation with Hacked Scammer Group
44.2K20 -
1:15:13
Steven Crowder
4 hours agoIt Isn't Both Sides: They Crossed The Rubicon When They Killed Charlie
430K349 -
1:26:36
The Rubin Report
3 hours ago'Real Time' Crowd Goes Quiet as Bill Maher & Ben Shapiro Have a Tense Exchange About Charlie Kirk
50.5K55 -
1:49:25
Benny Johnson
3 hours agoTrump Launches 'Major Investigation' of Leftist Plot in Charlie Kirk Murder, FBI New Evidence…
94.1K104 -
1:01:26
VINCE
4 hours agoA Turning Point In The Culture | Episode 125 - 09/15/25
246K328 -
1:40:09
Dear America
5 hours agoBREAKING NEWS UPDATE! Dark Truth EXPOSED: Charlie Kirk's Assassin & the Trans Agenda-This Is WAR!
158K140