- 22
- 337 609
Sreekanth
เข้าร่วมเมื่อ 26 ธ.ค. 2013
Explanations of intermediate/advanced level programming concepts using animations
Internals of Interfaces in Golang | Intermediate level
This video covers the internal of the interface types in Go language.
0:00 Basics of Interfaces
0:54 Changes in interfaces due to Generics
1:52 Interface elements
3:50 Identical interfaces
4:36 Type description structures
6:04 Memory layout of interfaces
11:17 Empty interface - runtime type representation
11:43 Type assertion
12:12 Type switch
12:41 why nil error is not nil
13:31 Benchmarking overhead of interface method call
17:23 Devirtualization
References:
research.swtch.com/interfaces
go101.org/article/interface.html
0:00 Basics of Interfaces
0:54 Changes in interfaces due to Generics
1:52 Interface elements
3:50 Identical interfaces
4:36 Type description structures
6:04 Memory layout of interfaces
11:17 Empty interface - runtime type representation
11:43 Type assertion
12:12 Type switch
12:41 why nil error is not nil
13:31 Benchmarking overhead of interface method call
17:23 Devirtualization
References:
research.swtch.com/interfaces
go101.org/article/interface.html
มุมมอง: 2 080
วีดีโอ
Visualizing memory layout of Rust's data types
มุมมอง 18Kปีที่แล้ว
Covers how a binary is executed, what segments are mapped to memory, the purpose/working of stack and heap memory, and how values of Rust's data types are laid out in memory. The data types that we cover here are integers, char, Vector, slice, String, string slice, structs, enums, smart pointers like Box, Rc, Arc, Trait object and Fn traits like FnOnce, FnMut and Fn. We also cover the differenc...
How variables works in Python | Explained with Animations
มุมมอง 7Kปีที่แล้ว
This video tries to explain how variables or name bindings work in Python and their internal representations like PyObject and PyVarObjects, using animations. Intermediate level concepts like reference counting, garbage collection, how lists work internally, why python is a dynamically typed language, interning, None objects, equality operators like ' ' and 'is', how 'del' works, how variables ...
Methods in Golang | Intermediate level
มุมมอง 2Kปีที่แล้ว
Explains how methods work in Go, things like method normalization, method value evaluation, gotchas and best practices. It also explains the reasons for choosing between pointer and value receiver. 0:00 Basics of Methods 1:21 Value vs Pointer receivers 2:55 Methods on nil values 3:44 Pass by copy 5:54 Pass by copy with slices 7:58 Method normalization 9:25 Method value evaluation 11:01 Gotcha -...
Inspecting the map header in Golang
มุมมอง 944ปีที่แล้ว
When you create a map variable, the variable stores a pointer to a map header struct. The fields of this struct can not be accessed in normal Go programs. This video will cover the procedure to inspect fields of this map header struct. Details regarding internals of map data type in Golang was covered in: th-cam.com/video/ACQs6mdylxo/w-d-xo.html
Internals of Maps in Golang
มุมมอง 6Kปีที่แล้ว
Internal implementation details of the map data type in Go programming language.
Maps in Golang | Intermediate level
มุมมอง 1.6Kปีที่แล้ว
In this Golang programming tutorial, we will be learning some intermediate level concepts around the usage of the map data type. 0:00 Key types must be comparable 1:25 Composite literal types as keys/values 2:06 Empty vs nil map 3:36 Maps are pointers 4:21 Elements are unaddressable 5:34 Iteration 6:57 Deletion 8:02 Set data type
Strings, Bytes and Runes | Golang | intermediate level
มุมมอง 7Kปีที่แล้ว
Covers memory layout of string data type, its relationship with rune slices and byte slices in Golang. We also discuss the conversion between these types, the compiler optimizations on these conversions and the strings.Builder object. Ascii, unicode and UTF-8 : th-cam.com/video/wIVmDPc16wA/w-d-xo.html 0:00 Raw vs Interpreted string literals 1:40 String header & Memory Layout 2:37 Rune data type...
ASCII, Unicode, UTF-32, UTF-8 explained | Examples in Rust, Go, Python
มุมมอง 9Kปีที่แล้ว
This video explains ASCII, Unicode, UTF-32 and UTF-8 string encodings. 0:00 Introduction 0:30 ASCII 2:31 Unicode standard 4:37 UTF-32 Encoding 6:16 UTF-8 Encoding 7:15 Strings in Golang 8:11 Strings in Python 9:29 Rust example 9:41 Graphemes with multiple unicode points
Memory layout and mechanics of arrays and slices | Golang | intermediate level
มุมมอง 5K2 ปีที่แล้ว
We discuss the memory layout of arrays and slices in Golang. This provides a good mental model for writing efficient and bug free Go code that includes slices. 0:00 Intro 0:27 Arrays 1:35 Slices 4:19 Initializing a slice 4:48 Passing slice as function arguments 7:05 working of append operation 10:35 Gotcha with slicing large slices 11:36 Nil vs Empty slices 12:22 range loop variable semantics R...
Special/magic methods | Python OOP | Part 7
มุมมอง 2.8K2 ปีที่แล้ว
Covers Python's special or magic methods, their purpose and the overall pattern. This is the 7th video of tutorial series on Object oriented programming in Python: th-cam.com/play/PLSozy2hb5kKO7mWMQX5vLBuK3uxE3ggMV.html 0:00 Introduction 1:04 Documentation 1:15 repr 2:25 str 3:18 repr vs str 4:39 len 5:09 bool 6:50 Arithmetic Operators 8:38 Reflected arithmetic operators 10:06 Augmented arithme...
property decorator - deep dive | Python OOP | Part 6
มุมมอง 7K2 ปีที่แล้ว
We will be discussing about Python's properties class, it's purpose and usage as decorator. This is the 6th video of tutorial series on Object oriented programming in Python: th-cam.com/play/PLSozy2hb5kKO7mWMQX5vLBuK3uxE3ggMV.html 0:00 Introduction 0:56 Advantages of having getters and setters 2:18 Using property object 4:18 Attribute lookup order with property objects 4:56 property class signa...
classmethod and staticmethod | Python OOP | Part 5
มุมมอง 3.3K2 ปีที่แล้ว
We will be learning about classmethods and staticmethods. This is the 5th video of tutorial series on Object oriented programming in Python: th-cam.com/play/PLSozy2hb5kKO7mWMQX5vLBuK3uxE3ggMV.html 0:00 Bound methods 1:08 Purpose of "self" in bound methods 3:03 class methods 6:52 Wrong use of class attributes 7:36 Static methods Credits: The contents of this video are mostly from my notes on Dr....
Visualizing memory layout of Rust's data types [See description/first comment]
มุมมอง 97K3 ปีที่แล้ว
*UPDATE: This video is re-uploaded with a better audio here th-cam.com/video/7_o-YRxf_cc/w-d-xo.html* Covers how a binary is executed, what segments are mapped to memory, the purpose/working of stack and heap memory, and how values of Rust's data types are laid out in memory. The data types that we cover here are integers, char, Vector, slice, String, string slice, structs, enums, smart pointer...
Instance Initializer "__init__" method | Python OOP tutorial - Part 4
มุมมอง 3K3 ปีที่แล้ว
Explains the purpose of Python's init method in the context of Object-Oriented programming. 0:00 working of bound methods 1:42 Purpose of init 3:10 Initializer Vs constructor Playlist: th-cam.com/play/PLSozy2hb5kKO7mWMQX5vLBuK3uxE3ggMV.html Credits: The contents of this video are mostly from my notes on Dr. Fred Baptiste's course www.udemy.com/course/python-3-deep-dive-part-4/
Instance Methods & self | Python OOP - Part 3
มุมมอง 3.2K3 ปีที่แล้ว
Instance Methods & self | Python OOP - Part 3
class & instance dictionaries in Python | __dict__ | OOP - Part 2
มุมมอง 8K3 ปีที่แล้ว
class & instance dictionaries in Python | dict | OOP - Part 2
Object-oriented Programming in Python - part 1 [Introduction]
มุมมอง 7K3 ปีที่แล้ว
Object-oriented Programming in Python - part 1 [Introduction]
Python's Import System - Module object|Regular/Namespace Packages|Finders & Loaders|Relative imports
มุมมอง 52K3 ปีที่แล้ว
Python's Import System - Module object|Regular/Namespace Packages|Finders & Loaders|Relative imports
Closures in Python | Explained with animations
มุมมอง 25K3 ปีที่แล้ว
Closures in Python | Explained with animations
Python tutorial: Variable Scopes & Namespaces - global/local/nonlocal | Explained with animations
มุมมอง 23K3 ปีที่แล้ว
Python tutorial: Variable Scopes & Namespaces - global/local/nonlocal | Explained with animations
How variables work in Python | Explained with Animations [See description/first comment]
มุมมอง 49K3 ปีที่แล้ว
How variables work in Python | Explained with Animations [See description/first comment]
Thank you so much
This is among the most insightful videos on TH-cam. Well illustrated. I'm working on a quiz from the transcript of this video.
Bill Keys
thanks for class, can you share used Presentation?
@5:25 When the PyVarObject gets its refcnt inremented to 2, should the objects contained in the list also have their refcnt incremented?
I guess it's sufficient to not increment their refcnts. In that case, all CPython needs to do is ensure that when the PyVarObject refcnt becomes 0, it decrements the refcnt of the contained objects
much help video, thanks guys
around 11:00 isn't it a move instead of copy?
this feels like i now know something that I'm not supposed to know
what the actual fuck
AI uncanny valley voices are bad and you should feel bad.
Awesome
Bechtelar Radial
This video should be part of "The Rust Book". This really explains why rust has so many data types. We need more rust videos. Thank You Sreekanth 👏👏
Hey! Great video! I’d love to do a voiceover for this to make it easier to listen to.
How to contact you bro? I have 2 question in Python. If you can able to answer.
Is this presentation available anywhere?
Fantastic. Especially showing the implementations through programming languages.
Amazing content, please do more rust themed deep dives
Personally I find this video extremely valuable @Sreekanth not just for Rust for compiled languages internals. Question I have what is the font used ? It looks like Jetbrains Mono but with some font ligatures turned on. Not sure what are the values
I use github.com/be5invis/Iosevka
这个视频实在讲的太好了,解答了我好多关于Rust的疑惑以及Java中的一些疑惑!!追过来点赞
Excellent video. I just wish animation of the stack to show chunks of memory allocated like a stack (one on top of the other) and freed the same way. I find it more intuitive.
i love this video so much do you have sources for this material?
this video was such a pleasure, <3 Sreekanth
subbed 4 this 1
I hate the computer generated voice. Please use a human voice it doesn’t matter if you have heavy accent
this video is just amazing!!!
terminator is teaching us rust.
what about CPP memory layout playlist
Thanks for dealing with a neglected topic. Great job!
Simply Great!
Exceptional!
Beyond exceptional. This is the only channel I have found that is non-trivial. Great job! The animations are great.
Wow this is awesome
For me map is the most useful thing in GoLang that they could come up with.
Not even go documentation has this much content 😅😅
Great video, love the layout of the content
Thank You Sir...
You really do have an Unique way of Explaining things to others
This by far the Best... In terms of explaining how Python Variables are Stored
Thank so much! 👏
Fantastic content. Nothing fancy, just straight to the point.
amazing
the best explanation on TH-cam
Really appreciate this video, thank you
The first 20 minutes is valuable to anyone who writes software in any language. Love this!
This is so immensely useful - thank you over 9,000 times
Great
Please explain shallow copy with animation in python
This was so good, thank you!
Amazing explanation