Arm vs x86 - Key Differences Explained


With Apple moving away from Intel and making its own CPUs based on the Arm architecture, it is important to understand the differences in the history, architecture, and design philosophies between these two giants.

History of x86 — 0:28
History of Arm — 3:56
History of Apple using Arm — 7:45
Differences — 11:40
CISC vs RISC — 13:30
False Assumptions — 16:07
Future — 19:05

What is virtual memory? — www.youtube.com/watch?v=2quKyPnUShQ
RISC vs CISC — www.youtube.com/watch?v=g16wZWKcao4
Instructions per cycle — www.youtube.com/watch?v=gLsdS0zQ82c

Introduction to Android app development: www.dgitacademy.com

Let Me Explain T-shirt: teespring.com/gary-explains-let-me-explain-2

Twitter: twitter.com/garyexplains

Instagram: www.instagram.com/garyexplains/

#garyexplains

Brian Kernighan: UNIX, C, AWK, AMPL, and Go Programming | Lex Fridman Podcast #109


Brian Kernighan is a professor of computer science at Princeton University. He co-authored the C Programming Language with Dennis Ritchie (creator of C) and has written a lot of books on programming, computers, and life including the Practice of Programming, the Go Programming Language, his latest UNIX: A History and a Memoir. He co-created AWK, the text processing language used by Linux folks like myself. He co-designed AMPL, an algebraic modeling language for large-scale optimization.

Support this podcast by supporting our sponsors:
— Eight Sleep: eightsleep.com/lex
— Raycon: buyraycon.com/lex

EPISODE LINKS:
Brians website: www.cs.princeton.edu/~bwk/
Unix: A History and a Memoir (book): amzn.to/3fFJ1yM
Understanding the Digital World (book): amzn.to/30ktBJI

PODCAST INFO:
Podcast website:
lexfridman.com/podcast
Apple Podcasts:
apple.co/2lwqZIr
Spotify:
spoti.fi/2nEwCF8
RSS:
lexfridman.com/feed/podcast/
Full episodes playlist:
www.youtube.com/playlist?list=PLrAXtmErZgOdP_8GztsuKi9nrraNbKKp4
Clips playlist:
www.youtube.com/playlist?list=PLrAXtmErZgOeciFP3CBCIEElOJeitOr41

OUTLINE:
0:00 — Introduction
4:24 — UNIX early days
22:09 — Unix philosophy
31:54 — Is programming art or science?
35:18 — AWK
42:03 — Programming setup
46:39 — History of programming languages
52:48 — C programming language
58:44 — Go language
1:01:57 — Learning new programming languages
1:04:57 — Javascript
1:08:16 — Variety of programming languages
1:10:30 — AMPL
1:18:01 — Graph theory
1:22:20 — AI in 1964
1:27:50 — Future of AI
1:29:47 — Moores law
1:32:54 — Computers in our world
1:40:37 — Life

CONNECT:
— Subscribe to this YouTube channel
— Twitter: twitter.com/lexfridman
— LinkedIn: www.linkedin.com/in/lexfridman
— Facebook: www.facebook.com/LexFridmanPage
— Instagram: www.instagram.com/lexfridman
— Medium: medium.com/@lexfridman
— Support on Patreon: www.patreon.com/lexfridman

Thunderbolt / USB 4 - What ports are really used by the M1 MacBooks?


The new M1 based MacBooks (and the Mac Mini) include at least two Thunderbolt / USB 4 ports. But what exactly are they? Thunderbolt 3 or Thunderbolt 4? What is USB 4? Lets find out.

Introduction to Android app development: www.dgitacademy.com

Let Me Explain T-shirt: teespring.com/gary-explains-let-me-explain-2

Twitter: twitter.com/garyexplains

Instagram: www.instagram.com/garyexplains/

#garyexplains

What is the Cortex-A78C? How is it different to the Cortex-A78?


Arm has announced a new variant of the Cortex-A78, the Cortex-A78C. How is it different and what devices will use it? Let me explain.

Introduction to Android app development: www.dgitacademy.com

Let Me Explain T-shirt: teespring.com/gary-explains-let-me-explain-2

Twitter: twitter.com/garyexplains

Instagram: www.instagram.com/garyexplains/

#garyexplains

Introduction to Regular Expressions


If you do any kind of system admin on Linux or you are a programmer working with strings then you will likely have to use regular expressions, a way to define search patterns for string matching. Here is my introduction tutorial.

Introduction to Android app development: www.dgitacademy.com

Regex cheat sheet: github.com/garyexplains/examples/blob/master/Gary-Explains-Regular-Expressions-Cheat-Sheet.pdf

Here is the sherlock.txt file I used in the video: github.com/garyexplains/examples/raw/master/sherlock.txt

You can use wget github.com/garyexplains/examples/raw/master/sherlock.txt to download it from the terminal.

Let Me Explain T-shirt: teespring.com/gary-explains-let-me-explain-2

Twitter: twitter.com/garyexplains
Instagram: www.instagram.com/garyexplains/

Local Forecast — Elevator Kevin MacLeod (incompetech.com)
Licensed under Creative Commons: By Attribution 3.0 License
creativecommons.org/licenses/by/3.0/

#garyexplains

Linux Command: tee - Watch


The tee command allows you to monitor a commands output in your shell (or piping that output to another program) while *also* writing it to a logfile. Now you can have your Linux cake and eat it, too!

Full Linux Sysadmin Course: www.youtube.com/playlist?list=PLtK75qxsQaMLZSo7KL-PmiRarU7hrpnwK

Check out my project-based Linux System Administration course (free sample videos): www.udemy.com/hands-on-linux-self-hosted-wordpress-for-linux-beginners/?couponCode=tl35

Official Site

Linux команда nl и команда cat - команды обработки текстовых файлов.


Linux команда nl и команда cat — команды обработки текстовых файлов. Команда nl нумерует строки файла, а команда cat — объединяет выбранные файлы.
Введённые без имени файла и та и другая позволяют вводить текст с консоли.

0:25 nl file_name — вывод файла file_name на экран и нумерация строк

1:39 nl -w2 file_name — уменьшение числа знаков нумерации

2:10 nl -s… -w2 file_name — изменение разделителя между полем нумерации и началом строки

2:48 nl -s… -w2 file_name (символ перенаправления) new_file_name

3:39 nl — ввод данных с консоли и получение сразу же пронумерованного списка
Ctrl D — завершение ввода с консоли

5:36 cat file_1 file_2 — последовательный вывод нескольких файлов

7:06 cat — вводи прямо из консоли
Ctrl D — команда завершения ввода из консоли

Linux команда mv - переместить (переименовать) файл или папку на Ubuntu


Linux команда mv — переместить (переименовать) файл или папку на Ubuntu. Как написать скрипт для Linux Ubuntu — команда mv — команда перемещения или переименования файлов и папок на Ubuntu.

# ====== код программы ===========
#!/bin/bash
# move or rename

# -f, --force перезаписать не спрашивая

# -i, --interactive перед перезаписыванием — спросить

# -u, --update переместить только есть файл-источник новее
# (либо если целевой файл отсутствует)

#mv -ui /home/su/Documents/tmp /home/su/Documents/Folder/tmp1

mv -ui ~/Documents/tmp ~/Documents/Folder/tmp1

# =================================