Skip Navigation
Are Function Calls Still Slow in Python? An Analysis of Recent Optimizations in CPython
blog.codingconfessions.com Are Function Calls Still Slow in Python? An Analysis of Recent Optimizations in CPython

How costly it is to call functions and builtins in your python code? Does inlining help? How have the recent CPython releases improved performance in these areas?

Are Function Calls Still Slow in Python? An Analysis of Recent Optimizations in CPython
13
Two Threads, One Core: How Simultaneous Multithreading Works Under the Hood
blog.codingconfessions.com Two Threads, One Core: How Simultaneous Multithreading Works Under the Hood

Ever wondered how your CPU handles two tasks at once? Discover the magic of Simultaneous Multithreading and see what’s really going on inside.

Two Threads, One Core: How Simultaneous Multithreading Works Under the Hood
2
CPython Garbage Collection: The Internal Mechanics and Algorithms
blog.codingconfessions.com CPython Garbage Collection: The Internal Mechanics and Algorithms

A detailed code walkthrough of how CPython implements memory management, including reference counting and garbage collection

CPython Garbage Collection: The Internal Mechanics and Algorithms
0
CPython Type System Internals: Video Series
codeconfessions.substack.com CPython Type System Internals: Video Series

A series of videos of me taking you through the CPython source code to explain its type system design & implementation

CPython Type System Internals: Video Series
5
CPython Object System Internals: Understanding the Role of PyObject
codeconfessions.substack.com CPython Object System Internals: Understanding the Role of PyObject

Understand how objects are implemented in CPython and how CPython emulates Inheritance and Polymorphism in C using struct embedding

CPython Object System Internals: Understanding the Role of PyObject
0
CPython Object System Internals: Understanding the Role of PyObject
codeconfessions.substack.com CPython Object System Internals: Understanding the Role of PyObject

Understand how objects are implemented in CPython and how CPython emulates Inheritance and Polymorphism in C using struct embedding

CPython Object System Internals: Understanding the Role of PyObject
1
An Analysis of DeepMind's 'Language Modeling Is Compression' Paper
  • Interesting. I'm just thinking aloud to understand this.

    In this case, the models are looking at a few sequence of bytes in their context and are able to predict the next byte(s) with good accuracy, which allows efficient encoding. Most of our memories are associative, i.e. we associate them with some concept/name/idea. So, do you mean, our brain uses the concept to predict a token which gets decoded in the form of a memory?

  • An Analysis of DeepMind's 'Language Modeling Is Compression' Paper
  • Yes. They also mention that using such large models for compression is not practical because their size thwarts any amount of data you might want to compress. But this result gives a good picture into how generalized such large models are, and how well they are able to predict the next tokens for image/audio data at a high accuracy.

  • An Analysis of DeepMind's 'Language Modeling Is Compression' Paper
  • Do you mean the number of tokens in the LLM's tokenizer, or the dictionary size of the compression algorithm?

    The vocab size of the pretrained models is not mentioned anywhere in the paper. Although, they did conduct an experiment where they measured compression performance while using tokenizers of different vocabulary sizes.

    If you meant the dictionary size of the compression algorithm, then there was no dictionary because they only used arithmetic coding to do the compression which doesn't use dictionaries.

  • An Analysis of DeepMind's 'Language Modeling Is Compression' Paper
    codeconfessions.substack.com An Analysis of DeepMind's 'Language Modeling Is Compression' Paper

    A detailed analysis of the DeepMind/Meta study: how large language models achieve unprecedented compression rates on text, image, and audio data - and the implications of these results

    An Analysis of DeepMind's 'Language Modeling Is Compression' Paper
    0
    An Analysis of DeepMind's 'Language Modeling Is Compression' Paper
    codeconfessions.substack.com An Analysis of DeepMind's 'Language Modeling Is Compression' Paper

    A detailed analysis of the DeepMind/Meta study: how large language models achieve unprecedented compression rates on text, image, and audio data - and the implications of these results

    An Analysis of DeepMind's 'Language Modeling Is Compression' Paper
    10
    How to build a computer using origami
  • I don't know. I have found that the folks on Technology community appreciate many of my computer science posts. But a dedicated Comp Science community which is active, will be awesome.

  • How to build a computer using origami
    apieceofthepi.substack.com How to build a computer using origami

    Flat origami is the folding of flat paper in such a way that the finished object lies in a plane. In their recent paper Flat origami is Turing Complete, Thomas C. Hull and Inna Zakharevich prove that it is possible to view flat origami as a Turing complete computational device. This means that, in p...

    How to build a computer using origami
    10
    Why and How Does Python Use Bloom Filters in String Processing?
  • Thank you! That's helpful. I spent quite some time trying to understand the difference between UTF-8 and Python's representation and arrived at the same understanding as you wrote. However, most of the external documents simply say that strings in Python are UTF-8 which made me conclude that perhaps I am missing something and it might be safer to write it as utf-8.

    I will look more in the code as you suggested.

  • Why and How Does Python Use Bloom Filters in String Processing?
  • Hi @qwop, I am the author. Thank you for reading and the kind words. I would like to understand the error I made better so that I don't repeat in future, and if I can fix it. Could you please clarify?

  • How CPython Implements and Uses Bloom Filters for String Processing
    codeconfessions.substack.com Why and How Does Python Use Bloom Filters in String Processing?

    Inside CPython's Clever Use of Bloom Filters for Efficient String Processing

    Why and How Does Python Use Bloom Filters in String Processing?

    Inside CPython's Clever Use of Bloom Filters for Efficient String Processing

    2
    Bloom Filters and Beyond: An Illustrated Introduction and Implementation

    An illustrated introduction to bloom filters—learn their implementation, and applications. Also, explore the Counting Bloom Filter extension!

    0
    InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)AB
    abhi9u @lemmy.world
    Posts 23
    Comments 10