Uploaded November 2023 | Updated November 2026, 3 hours ago
In this video, we learn how we can read memory belonging to other processes by building a memory dumper from scratch.
One of the key components is the /proc file system: an interface that the kernel provides for introspecting processes. Combined with ptrace, a system call that allows attaching to and taking control of another process, we write a program to automate extracting information that would otherwise be completely hidden to us!
=[ 🔗 Links 🔗 ]=
https://j3s.sh/thought/recover-lost-text-by-coredumping-firefox.html
🗣 Discord: discord.gg/FPWaVgk
⭐️ Patreon: patreon.com/lowleveljavascript
💻 Github Repo: github.com/lowbyteproductions/memory-dumper
In this video, we learn how we can read memory belonging to other processes by building a memory dumper from scratch.
One of the key components is the /proc file system: an interface that the kernel provides for introspecting processes. Combined with ptrace, a system call that allows attaching to and taking control of another process, we write a program to automate extracting information that would otherwise be completely hidden to us!
=[ 🔗 Links 🔗 ]=
https://j3s.sh/thought/recover-lost-text-by-coredumping-firefox.html
🗣 Discord: discord.gg/FPWaVgk
⭐️ Patreon: patreon.com/lowleveljavascript
💻 Github Repo: github.com/lowbyteproductions/memory-dumper
![Powering Up With New Instructions (16-Bit VM in JavaScript 006)
In this episode we add new instructions and capabilities to the VM, including:
- More move instructions
- More arithmetic capabilities for doing math
- Binary logic instructions
- Branches
=[ ℹ About ℹ ]=
This series is all about building a powerful virtual machine in JavaScript with the following features:
- A flexible, extensible, register-based virtual machine
- Support for signed, unsigned and floating point operations
- A call stack
- Interrupt capabilities
- Ability to do memory mapping for IO
- An assembly language with macro and module support
- A higher level, C like language. Well use and expand the library from the parser combinators from scratch series
- And finally, to be able to take the whole thing into the browser and exend it to create a sort of fantasy console - an emulator for a machine that never existed
=[ 🔗 Links 🔗 ]=
- ⭐️ Patreon: https://www.patreon.com/lowleveljavascript
- 💌 Updates to your inbox: https://tinyletter.com/lowleveljavascript
- Series Playlist: https://www.youtube.com/playlist?list=PLP29wDx6QmW5DdwpdwHCRJsEubS5NrQ9b&playnext=1&index=1
- Github Repo: https://github.com/LowLevelJavaScript/16-Bit-Virtual-Machine
- Branching: https://en.wikipedia.org/wiki/Branch_(computer_science)
- Binary Logic: https://en.wikipedia.org/wiki/Boolean_logic
Escape sequences: https://github.com/75lb/ansi-escape-sequences/blob/master/index.mjs
LLJSVM Debugger/IDE: https://github.com/manmon42/lljsvm-ide
Maxs Github Project: https://lljside.maxstarr.xyz/
Knevaris Compiler/Assembler: https://github.com/Knevari/js-virtual-machine
Matt Ewans Functional VM: https://github.com/matt-ewan-laws/functional-16bit-computer
Memory Mapped IO: https://en.wikipedia.org/wiki/Memory-mapped_I/O
setImmediate: https://nodejs.org/api/timers.html#timers_setimmediate_callback_args Powering Up With New Instructions (16-Bit VM in JavaScript 006)](https://i.ytimg.com/vi/1-1wWZdgZRI/mqdefault.jpg)
![Machine Mode, Traps, Compilation, and Linking: RISC-V ep.9
In this video, after something of a hiatus, were getting backing into the RISC-V swing!
Were diving into machine mode, the associated CSRs, and how they relate to next big piece of functionality well be tackling: Traps - Exceptions and Interrupts.
We also take a deep dive into the memory map of the design, relating it to the compilation and linking of the C and assembly code that will run on the processor.
=[ 🔗 Links 🔗 ]=
🎥 Series Playlist: https://www.youtube.com/watch?v=ER7h4ZTe19A&list=PLP29wDx6QmW4sXTvFYgbHrLygqH8_oNEH
💌 Updates to your inbox: https://tinyletter.com/lowleveljavascript
🗣 Discord: https://discord.gg/FPWaVgk
⭐️ Patreon: https://www.patreon.com/lowleveljavascript
💻 Github Repo (emulator): https://github.com/LowLevelJavaScript/RISC-V-Emulator Machine Mode, Traps, Compilation, and Linking: RISC-V ep.9](https://i.ytimg.com/vi/1-8oYzL_Thk/mqdefault.jpg)
![Command Line Hex Editor in TypeScript 🧙🏻
In this video were spite-coding a command line hex editor that allows the editing of binary files in a simple and friendly interface like nano.
Since the recording of this video, the development of `bewitched` has continued quite a bit, and you can find the latest code over on github (linked below).
If you want to try it out for yourself, you can run `npm i -g bewitched` to install. If you have ideas for features or want to report bugs, please use the github issues, or pass by the LLJS discord channel (linked below).
=[ 🔗 Links 🔗 ]=
💌 Updates to your inbox: https://tinyletter.com/lowleveljavascript
🗣 Discord: https://discord.gg/FPWaVgk
⭐️ Patreon: https://www.patreon.com/lowleveljavascript
💻 Github Repo (emulator): https://github.com/francisrstokes/bewitched Command Line Hex Editor in TypeScript 🧙🏻](https://i.ytimg.com/vi/132wDVovzhw/mqdefault.jpg)
![Using LEDs As Precise GPIOs
In this video, were looking at a technique for precisely analyzing signals from firmware when all you can do is blink a LED. By writing to an LED as if it were a typical GPIO, and building a surprisingly simple receiver, we can probe signals with an oscilloscope without even touching the board!
=[ 🔗 Links 🔗 ]=
🗣 Discord: https://discord.gg/FPWaVgk
⭐️ Patreon: https://www.patreon.com/lowleveljavascript Using LEDs As Precise GPIOs](https://i.ytimg.com/vi/1Y91DioUufA/mqdefault.jpg)
![Implementing the mechanics [Parser Combinators From Scratch] Episode 2
In this episode we explore how the primary mechanism of parser combinators works: A function that transforms one parser state into another. We implement the str and sequenceOf parsers, as well as a internal error handling mechanism.
=[ ℹ About ℹ ]=
During this series we will develop an understanding of the concept of parsing, and build our own parser combinator system from scratch. The system we build will be capable of parsing both binary and text data. Well make use of both object-oriented and function programming principles to develop an effective and intuitive library.
=[ 🔗 Links 🔗 ]=
- ⭐️ Patreon: https://www.patreon.com/lowleveljavascript
- 💌 Updates to your inbox: https://tinyletter.com/lowleveljavascript
- arcsecond : https://github.com/francisrstokes/arcsecond
- Daniel Holdens Article: http://daniel-holden.com/page/you-could-have-invented-parser-combinators
- LLJS Subreddit: https://reddit.com/r/lowleveljavascript
- Wikipedia Article On Parser : https://en.wikipedia.org/wiki/Parsing Implementing the mechanics [Parser Combinators From Scratch] Episode 2](https://i.ytimg.com/vi/1axJDmK_pnE/mqdefault.jpg)
![Maintaining Firmware Integrity :: Bare Metal Programming Series 12
In this episode, we add a mechanism to ensure that a firmware was properly transferred during an update. Problems can occur if power is lost during an update, or the cable connection is dropped. By checking the main application integrity in the bootloader before executing it, we can prevent potentially dangerous situations.
=[ 🔗 Links 🔗 ]=
🎥 Series Playlist: https://www.youtube.com/playlist?list=PLP29wDx6QmW7HaCrRydOnxcy8QmW0SNdQ
🗣 Discord: https://discord.gg/FPWaVgk
⭐️ Patreon: https://www.patreon.com/lowleveljavascript
💻 Github Repo: https://github.com/lowbyteproductions/bare-metal-series Maintaining Firmware Integrity :: Bare Metal Programming Series 12](https://i.ytimg.com/vi/4-dle5L9REs/mqdefault.jpg)
![Promises From Scratch In A Post-Apocalyptic Future
=[ ℹ About ℹ ]=
In this installment of Low Level JavaScript we build a Promise implementation from scratch in order to understand exactly how asynchronous abstractions can be built on top of lower level primitives like callbacks.
=[ 🔗 Links 🔗 ]=
- ⭐️ Patreon: https://www.patreon.com/lowleveljavascript
- 💌 Updates to your inbox: https://tinyletter.com/lowleveljavascript
- Github Repo: https://github.com/LowLevelJavaScript/Promises-From-Scratch
- Specification: https://promisesaplus.com
- Promises (MDN): https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise Promises From Scratch In A Post-Apocalyptic Future](https://i.ytimg.com/vi/4GpwM8FmVgQ/mqdefault.jpg)
![Generating Machine Code (16-Bit VM in JavaScript 011)
In this episode we take the AST representation of the assembly code we get from the parser and turn it into real machine code - the bytes in memory that the virtual CPU executes as instructions. Along the way well add support for labels, allowing us to write location independent and logically grouped assembly code.
Big shout out to patron Max Starr, whose LLJS IDE Project (https://github.com/manmon42/lljsvm-ide) is featured in this episode.
=[ ℹ About ℹ ]=
This series is all about building a powerful virtual machine in JavaScript with the following features:
- A flexible, extensible, register-based virtual machine
- Support for signed, unsigned and floating point operations
- A call stack
- Interrupt capabilities
- Ability to do memory mapping for IO
- An assembly language with macro and module support
- A higher level, C like language. Well use and expand the library from the parser combinators from scratch series
- And finally, to be able to take the whole thing into the browser and extend it to create a sort of fantasy console - an emulator for a machine that never existed
- 💌 Updates to your inbox: https://tinyletter.com/lowleveljavascript
- ⭐️ Patreon: https://www.patreon.com/lowleveljavascript
- Series Playlist: https://www.youtube.com/playlist?list=PLP29wDx6QmW5DdwpdwHCRJsEubS5NrQ9b&playnext=1&index=1
- Github Repo: https://github.com/LowLevelJavaScript/16-Bit-Virtual-Machine
- LLJS IDE: https://github.com/manmon42/lljsvm-ide
- arcsecond: https://github.com/francisrstokes/arcsecond
- Parser Combinators From Scratch: https://www.youtube.com/watch?v=6oQLRhw5Ah0&list=PLP29wDx6QmW5yfO1LAgO8kU3aQEj8SIrU
=[ 🔗 Links 🔗 ]=
- Playlist: https://www.youtube.com/playlist?list=PLP29wDx6QmW5DdwpdwHCRJsEubS5NrQ9b&playnext=1&index=1
- Github Repo: https://github.com/LowLevelJavaScript/16-Bit-Virtual-Machine Generating Machine Code (16-Bit VM in JavaScript 011)](https://i.ytimg.com/vi/5PXMwvUkOKI/mqdefault.jpg)
![Building an DECODER for QOI Images (Quite OK Image Format)
The Quite OK Image Format (qoi) is a lossless compression image format that has similar performance to PNG, but with substantially faster encoding and decoding, making it a great choice for embedded systems.
In this video were going wrap our encoder implementation into a library, and build the corresponding decoder, which allows us to take a compressed QOI image and turn into a buffer of RGBA pixels.
=[ 🔗 Links 🔗 ]=
- Encoder Video: https://www.youtube.com/watch?v=GgsRQuGSrc0
- The QOI format: https://qoiformat.org/
- Dominic Szablewski (the creator): https://twitter.com/phoboslab
💌 Updates to your inbox: https://tinyletter.com/lowleveljavascript
🗣 Discord: https://discord.gg/FPWaVgk
⭐️ Patreon: https://www.patreon.com/lowleveljavascript
💻 Github Repo: https://github.com/LowLevelJavaScript/QOI Building an DECODER for QOI Images (Quite OK Image Format)](https://i.ytimg.com/vi/5bWopQj-oQs/mqdefault.jpg)
![Turning Pixels Into Waves
In this video, were building an awesome graphical effect, where an image is processed into a series of animated waves. The math behind the technique is fascinating, and will lead us into to how sine waves work, the magic of linear interpolation, and signal processing techniques like amplitude modulation!
=[ 🔗 Links 🔗 ]=
🗣 Discord: https://discord.gg/FPWaVgk
⭐️ Patreon: https://www.patreon.com/lowleveljavascript
💻 Github Repo: https://github.com/lowbyteproductions/Turning-Pixels-Into-Waves Turning Pixels Into Waves](https://i.ytimg.com/vi/5vzMgNAzEuA/mqdefault.jpg)
![How Parser Combinators Work [Parser Combinators From Scratch] Episode 1
In this episode we dive into what a parser combinator library is, and how it is used in practice.
During this series we will develop an understanding of the concept of parsing, and build our own parser combinator system from scratch. The system we build will be capable of parsing both binary and text data. Well make use of both object-oriented and function programming principles to develop an effective and intuitive library.
=[ 🔗 Links 🔗 ]=
- ⭐️ Patreon: https://www.patreon.com/lowleveljavascript
- 💌 Updates to your inbox: https://tinyletter.com/lowleveljavascript
- arcsecond : https://github.com/francisrstokes/arcsecond
- Daniel Holdens Article: http://daniel-holden.com/page/you-could-have-invented-parser-combinators
- Wikipedia Article On Parser : https://en.wikipedia.org/wiki/Parsing
- LLJS Subreddit: https://reddit.com/r/lowleveljavascript How Parser Combinators Work [Parser Combinators From Scratch] Episode 1](https://i.ytimg.com/vi/6oQLRhw5Ah0/mqdefault.jpg)