Sreekanth
Sreekanth
  • 22
  • 337 609
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
มุมมอง: 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]

ความคิดเห็น

  • @devlogschannel
    @devlogschannel 6 วันที่ผ่านมา

    Thank you so much

  • @WilsonMar1
    @WilsonMar1 8 วันที่ผ่านมา

    This is among the most insightful videos on TH-cam. Well illustrated. I'm working on a quiz from the transcript of this video.

  • @SomerWarren-b1z
    @SomerWarren-b1z 21 วันที่ผ่านมา

    Bill Keys

  • @murodalinarzullaev5955
    @murodalinarzullaev5955 26 วันที่ผ่านมา

    thanks for class, can you share used Presentation?

  • @tommyphillips1030
    @tommyphillips1030 28 วันที่ผ่านมา

    @5:25 When the PyVarObject gets its refcnt inremented to 2, should the objects contained in the list also have their refcnt incremented?

    • @tommyphillips1030
      @tommyphillips1030 28 วันที่ผ่านมา

      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

  • @minhphamvan8993
    @minhphamvan8993 หลายเดือนก่อน

    much help video, thanks guys

  • @focker0000
    @focker0000 หลายเดือนก่อน

    around 11:00 isn't it a move instead of copy?

  • @user-jm6gp2qc8x
    @user-jm6gp2qc8x หลายเดือนก่อน

    this feels like i now know something that I'm not supposed to know

  • @user-jm6gp2qc8x
    @user-jm6gp2qc8x หลายเดือนก่อน

    what the actual fuck

  • @actuallyStryder
    @actuallyStryder หลายเดือนก่อน

    AI uncanny valley voices are bad and you should feel bad.

  • @MohammadLsk
    @MohammadLsk หลายเดือนก่อน

    Awesome

  • @ElkeDecourley-m4x
    @ElkeDecourley-m4x หลายเดือนก่อน

    Bechtelar Radial

  • @PrinceKumar-u4k4y
    @PrinceKumar-u4k4y หลายเดือนก่อน

    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 👏👏

  • @johndavies729
    @johndavies729 หลายเดือนก่อน

    Hey! Great video! I’d love to do a voiceover for this to make it easier to listen to.

  • @DhavalAhir10
    @DhavalAhir10 หลายเดือนก่อน

    How to contact you bro? I have 2 question in Python. If you can able to answer.

  • @sandrokavlashvili8617
    @sandrokavlashvili8617 หลายเดือนก่อน

    Is this presentation available anywhere?

  • @matthias2447
    @matthias2447 2 หลายเดือนก่อน

    Fantastic. Especially showing the implementations through programming languages.

  • @HereIsZane
    @HereIsZane 2 หลายเดือนก่อน

    Amazing content, please do more rust themed deep dives

  • @VikramBhaskaran
    @VikramBhaskaran 2 หลายเดือนก่อน

    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

    • @sreekanthpr
      @sreekanthpr 2 หลายเดือนก่อน

      I use github.com/be5invis/Iosevka

  • @暴打麻薯
    @暴打麻薯 2 หลายเดือนก่อน

    这个视频实在讲的太好了,解答了我好多关于Rust的疑惑以及Java中的一些疑惑!!追过来点赞

  • @OzWannabe
    @OzWannabe 2 หลายเดือนก่อน

    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.

  • @jkjoker777
    @jkjoker777 2 หลายเดือนก่อน

    i love this video so much do you have sources for this material?

  • @MuscleTeamOfficial
    @MuscleTeamOfficial 2 หลายเดือนก่อน

    this video was such a pleasure, <3 Sreekanth

  • @MuscleTeamOfficial
    @MuscleTeamOfficial 2 หลายเดือนก่อน

    subbed 4 this 1

  • @Maximus98245
    @Maximus98245 2 หลายเดือนก่อน

    I hate the computer generated voice. Please use a human voice it doesn’t matter if you have heavy accent

  • @denjiuzumaki4309
    @denjiuzumaki4309 2 หลายเดือนก่อน

    this video is just amazing!!!

  • @iamworstgamer
    @iamworstgamer 3 หลายเดือนก่อน

    terminator is teaching us rust.

  • @longstoryveryshort
    @longstoryveryshort 3 หลายเดือนก่อน

    what about CPP memory layout playlist

  • @DrIT-qv1ek
    @DrIT-qv1ek 3 หลายเดือนก่อน

    Thanks for dealing with a neglected topic. Great job!

  • @DrIT-qv1ek
    @DrIT-qv1ek 3 หลายเดือนก่อน

    Simply Great!

  • @DrIT-qv1ek
    @DrIT-qv1ek 3 หลายเดือนก่อน

    Exceptional!

  • @DrIT-qv1ek
    @DrIT-qv1ek 3 หลายเดือนก่อน

    Beyond exceptional. This is the only channel I have found that is non-trivial. Great job! The animations are great.

  • @dixztube
    @dixztube 3 หลายเดือนก่อน

    Wow this is awesome

  • @Zmey5656
    @Zmey5656 3 หลายเดือนก่อน

    For me map is the most useful thing in GoLang that they could come up with.

  • @sheldoncoooper4664
    @sheldoncoooper4664 3 หลายเดือนก่อน

    Not even go documentation has this much content 😅😅

  • @favio9454
    @favio9454 4 หลายเดือนก่อน

    Great video, love the layout of the content

  • @AnantaAkash.Podder
    @AnantaAkash.Podder 4 หลายเดือนก่อน

    Thank You Sir...

  • @AnantaAkash.Podder
    @AnantaAkash.Podder 4 หลายเดือนก่อน

    You really do have an Unique way of Explaining things to others

  • @AnantaAkash.Podder
    @AnantaAkash.Podder 4 หลายเดือนก่อน

    This by far the Best... In terms of explaining how Python Variables are Stored

  • @maxfraguas
    @maxfraguas 4 หลายเดือนก่อน

    Thank so much! 👏

  • @jcollins519
    @jcollins519 4 หลายเดือนก่อน

    Fantastic content. Nothing fancy, just straight to the point.

  • @jooonmantv
    @jooonmantv 4 หลายเดือนก่อน

    amazing

  • @fresonn
    @fresonn 4 หลายเดือนก่อน

    the best explanation on TH-cam

  • @accumulator4825
    @accumulator4825 4 หลายเดือนก่อน

    Really appreciate this video, thank you

  • @crftr-com
    @crftr-com 4 หลายเดือนก่อน

    The first 20 minutes is valuable to anyone who writes software in any language. Love this!

  • @andrewvalenski921
    @andrewvalenski921 4 หลายเดือนก่อน

    This is so immensely useful - thank you over 9,000 times

  • @arnefilipovic261
    @arnefilipovic261 4 หลายเดือนก่อน

    Great

  • @roygr009
    @roygr009 4 หลายเดือนก่อน

    Please explain shallow copy with animation in python

  • @trimalakismeno
    @trimalakismeno 4 หลายเดือนก่อน

    This was so good, thank you!

  • @MohammadLsk
    @MohammadLsk 4 หลายเดือนก่อน

    Amazing explanation