This document summarizes a talk on Pickle and custom binary serialization in Python. The talk introduces Pickle as Python's standard library for serializing and de-serializing Python objects. It covers Pickle's APIs and protocols, compares Pickle to other serialization methods like JSON and Protobuf, and demonstrates how to build a simple custom serializer. The objective is to understand how Pickle works internally and when it is best to use Pickle versus other options.
"HHVM is a high-performance, open source PHP execution engine developed at Facebook. It’s the fastest PHP runtime in the world, with support for PHP5, PHP7, and Hack—the programming language used for Facebook’s web server application logic. In addition to powering Facebook’s web tier, HHVM has also been adopted by other major services such as Wikipedia, Baidu, and Box.
HHVM uses just-in-time compilation to transform PHP and Hack source code into optimized machine code. Thanks to contributions from developers across the ARM community, HHVM can now target AArch64 in addition to x86-64 and successfully runs open source PHP frameworks like WordPress. Join us for an overview of HHVM, a quick demo, and some thoughts on where optimization efforts can go from here."
DEF CON 23 - Yaniv Balmas and Lior Oppenheim - key logger-video mouseFelipe Prado
The document discusses turning a KVM device into a keylogging monster by extracting and analyzing its firmware. Researchers were able to reverse engineer the firmware blob and discover it was encrypted 8051 assembly code. By analyzing differences across firmware versions, they found strings that indicated the last bytes of each version contained the firmware version in ASCII. This revealed the encryption method and allowed them to decrypt and understand the assembly code. They then proposed designing custom firmware for the KVM that would add network connectivity and advanced keylogging capabilities.
This document discusses text compression algorithms LZW and Flate. It describes LZW's dictionary-based encoding approach and provides examples of encoding and decoding a string. Flate compression is explained as combining LZ77 compression, which finds repeated sequences, and Huffman coding, which assigns variable length codes based on frequency. Flate can choose between no compression, LZ77 then Huffman, or LZ77 and custom Huffman trees. The advantages of LZW include lossless compression and not needing the code table during decompression, while its disadvantage is dictionary size limits. Flate provides adaptive compression and lossless compression but has overhead from generating Huffman trees and complex implementation.
The Advanced Encryption Standard, also known by its original name Rijndael, is a specification for the encryption of electronic data established by the U.S.
This document describes hash maps and hash tables. It provides examples of using a hash function to map keys to indexes in an array, which can store key-value pairs. It discusses concepts like collisions, load factor, and different strategies for handling collisions like open addressing and closed addressing.
The document contains diagrams and descriptions related to the architecture of the 8086 microprocessor. It includes diagrams of the 8086 buses, registers, functional units, and memory segmentation. It also contains examples of assembly language instructions and their corresponding machine code representations.
GPT-2: Language Models are Unsupervised Multitask LearnersYoung Seok Kim
This document summarizes a technical paper about GPT-2, an unsupervised language model created by OpenAI. GPT-2 is a transformer-based model trained on a large corpus of internet text using byte-pair encoding. The paper describes experiments showing GPT-2 can perform various NLP tasks like summarization, translation, and question answering with limited or no supervision, though performance is still below supervised models. It concludes that unsupervised task learning is a promising area for further research.
BigGAN: Large Scale GAN Training for High Fidelity Natural Image SynthesisYoung Seok Kim
Review of paper
Large Scale GAN Training for High Fidelity Natural Image Synthesis
ArXiv link: https://arxiv.org/abs/1809.11096
YouTube presentation: https://youtu.be/1f0faOeqDQ0
(Slides are written in English, but the presentation is done in Korean)
"HHVM is a high-performance, open source PHP execution engine developed at Facebook. It’s the fastest PHP runtime in the world, with support for PHP5, PHP7, and Hack—the programming language used for Facebook’s web server application logic. In addition to powering Facebook’s web tier, HHVM has also been adopted by other major services such as Wikipedia, Baidu, and Box.
HHVM uses just-in-time compilation to transform PHP and Hack source code into optimized machine code. Thanks to contributions from developers across the ARM community, HHVM can now target AArch64 in addition to x86-64 and successfully runs open source PHP frameworks like WordPress. Join us for an overview of HHVM, a quick demo, and some thoughts on where optimization efforts can go from here."
DEF CON 23 - Yaniv Balmas and Lior Oppenheim - key logger-video mouseFelipe Prado
The document discusses turning a KVM device into a keylogging monster by extracting and analyzing its firmware. Researchers were able to reverse engineer the firmware blob and discover it was encrypted 8051 assembly code. By analyzing differences across firmware versions, they found strings that indicated the last bytes of each version contained the firmware version in ASCII. This revealed the encryption method and allowed them to decrypt and understand the assembly code. They then proposed designing custom firmware for the KVM that would add network connectivity and advanced keylogging capabilities.
This document discusses text compression algorithms LZW and Flate. It describes LZW's dictionary-based encoding approach and provides examples of encoding and decoding a string. Flate compression is explained as combining LZ77 compression, which finds repeated sequences, and Huffman coding, which assigns variable length codes based on frequency. Flate can choose between no compression, LZ77 then Huffman, or LZ77 and custom Huffman trees. The advantages of LZW include lossless compression and not needing the code table during decompression, while its disadvantage is dictionary size limits. Flate provides adaptive compression and lossless compression but has overhead from generating Huffman trees and complex implementation.
The Advanced Encryption Standard, also known by its original name Rijndael, is a specification for the encryption of electronic data established by the U.S.
This document describes hash maps and hash tables. It provides examples of using a hash function to map keys to indexes in an array, which can store key-value pairs. It discusses concepts like collisions, load factor, and different strategies for handling collisions like open addressing and closed addressing.
The document contains diagrams and descriptions related to the architecture of the 8086 microprocessor. It includes diagrams of the 8086 buses, registers, functional units, and memory segmentation. It also contains examples of assembly language instructions and their corresponding machine code representations.
GPT-2: Language Models are Unsupervised Multitask LearnersYoung Seok Kim
This document summarizes a technical paper about GPT-2, an unsupervised language model created by OpenAI. GPT-2 is a transformer-based model trained on a large corpus of internet text using byte-pair encoding. The paper describes experiments showing GPT-2 can perform various NLP tasks like summarization, translation, and question answering with limited or no supervision, though performance is still below supervised models. It concludes that unsupervised task learning is a promising area for further research.
BigGAN: Large Scale GAN Training for High Fidelity Natural Image SynthesisYoung Seok Kim
Review of paper
Large Scale GAN Training for High Fidelity Natural Image Synthesis
ArXiv link: https://arxiv.org/abs/1809.11096
YouTube presentation: https://youtu.be/1f0faOeqDQ0
(Slides are written in English, but the presentation is done in Korean)
Unlocking Productivity: Leveraging the Potential of Copilot in Microsoft 365, a presentation by Christoforos Vlachos, Senior Solutions Manager – Modern Workplace, Uni Systems
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024Neo4j
Neha Bajwa, Vice President of Product Marketing, Neo4j
Join us as we explore breakthrough innovations enabled by interconnected data and AI. Discover firsthand how organizations use relationships in data to uncover contextual insights and solve our most pressing challenges – from optimizing supply chains, detecting fraud, and improving customer experiences to accelerating drug discoveries.
HCL Notes and Domino License Cost Reduction in the World of DLAUpanagenda
Webinar Recording: https://www.panagenda.com/webinars/hcl-notes-and-domino-license-cost-reduction-in-the-world-of-dlau/
The introduction of DLAU and the CCB & CCX licensing model caused quite a stir in the HCL community. As a Notes and Domino customer, you may have faced challenges with unexpected user counts and license costs. You probably have questions on how this new licensing approach works and how to benefit from it. Most importantly, you likely have budget constraints and want to save money where possible. Don’t worry, we can help with all of this!
We’ll show you how to fix common misconfigurations that cause higher-than-expected user counts, and how to identify accounts which you can deactivate to save money. There are also frequent patterns that can cause unnecessary cost, like using a person document instead of a mail-in for shared mailboxes. We’ll provide examples and solutions for those as well. And naturally we’ll explain the new licensing model.
Join HCL Ambassador Marc Thomas in this webinar with a special guest appearance from Franz Walder. It will give you the tools and know-how to stay on top of what is going on with Domino licensing. You will be able lower your cost through an optimized configuration and keep it low going forward.
These topics will be covered
- Reducing license cost by finding and fixing misconfigurations and superfluous accounts
- How do CCB and CCX licenses really work?
- Understanding the DLAU tool and how to best utilize it
- Tips for common problem areas, like team mailboxes, functional/test users, etc
- Practical examples and best practices to implement right away
Full-RAG: A modern architecture for hyper-personalizationZilliz
Mike Del Balso, CEO & Co-Founder at Tecton, presents "Full RAG," a novel approach to AI recommendation systems, aiming to push beyond the limitations of traditional models through a deep integration of contextual insights and real-time data, leveraging the Retrieval-Augmented Generation architecture. This talk will outline Full RAG's potential to significantly enhance personalization, address engineering challenges such as data management and model training, and introduce data enrichment with reranking as a key solution. Attendees will gain crucial insights into the importance of hyperpersonalization in AI, the capabilities of Full RAG for advanced personalization, and strategies for managing complex data integrations for deploying cutting-edge AI solutions.
GraphRAG for Life Science to increase LLM accuracyTomaz Bratanic
GraphRAG for life science domain, where you retriever information from biomedical knowledge graphs using LLMs to increase the accuracy and performance of generated answers
Pushing the limits of ePRTC: 100ns holdover for 100 daysAdtran
At WSTS 2024, Alon Stern explored the topic of parametric holdover and explained how recent research findings can be implemented in real-world PNT networks to achieve 100 nanoseconds of accuracy for up to 100 days.
How to Get CNIC Information System with Paksim Ga.pptxdanishmna97
Pakdata Cf is a groundbreaking system designed to streamline and facilitate access to CNIC information. This innovative platform leverages advanced technology to provide users with efficient and secure access to their CNIC details.
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUpanagenda
Webinar Recording: https://www.panagenda.com/webinars/hcl-notes-und-domino-lizenzkostenreduzierung-in-der-welt-von-dlau/
DLAU und die Lizenzen nach dem CCB- und CCX-Modell sind für viele in der HCL-Community seit letztem Jahr ein heißes Thema. Als Notes- oder Domino-Kunde haben Sie vielleicht mit unerwartet hohen Benutzerzahlen und Lizenzgebühren zu kämpfen. Sie fragen sich vielleicht, wie diese neue Art der Lizenzierung funktioniert und welchen Nutzen sie Ihnen bringt. Vor allem wollen Sie sicherlich Ihr Budget einhalten und Kosten sparen, wo immer möglich. Das verstehen wir und wir möchten Ihnen dabei helfen!
Wir erklären Ihnen, wie Sie häufige Konfigurationsprobleme lösen können, die dazu führen können, dass mehr Benutzer gezählt werden als nötig, und wie Sie überflüssige oder ungenutzte Konten identifizieren und entfernen können, um Geld zu sparen. Es gibt auch einige Ansätze, die zu unnötigen Ausgaben führen können, z. B. wenn ein Personendokument anstelle eines Mail-Ins für geteilte Mailboxen verwendet wird. Wir zeigen Ihnen solche Fälle und deren Lösungen. Und natürlich erklären wir Ihnen das neue Lizenzmodell.
Nehmen Sie an diesem Webinar teil, bei dem HCL-Ambassador Marc Thomas und Gastredner Franz Walder Ihnen diese neue Welt näherbringen. Es vermittelt Ihnen die Tools und das Know-how, um den Überblick zu bewahren. Sie werden in der Lage sein, Ihre Kosten durch eine optimierte Domino-Konfiguration zu reduzieren und auch in Zukunft gering zu halten.
Diese Themen werden behandelt
- Reduzierung der Lizenzkosten durch Auffinden und Beheben von Fehlkonfigurationen und überflüssigen Konten
- Wie funktionieren CCB- und CCX-Lizenzen wirklich?
- Verstehen des DLAU-Tools und wie man es am besten nutzt
- Tipps für häufige Problembereiche, wie z. B. Team-Postfächer, Funktions-/Testbenutzer usw.
- Praxisbeispiele und Best Practices zum sofortigen Umsetzen
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...SOFTTECHHUB
The choice of an operating system plays a pivotal role in shaping our computing experience. For decades, Microsoft's Windows has dominated the market, offering a familiar and widely adopted platform for personal and professional use. However, as technological advancements continue to push the boundaries of innovation, alternative operating systems have emerged, challenging the status quo and offering users a fresh perspective on computing.
One such alternative that has garnered significant attention and acclaim is Nitrux Linux 3.5.0, a sleek, powerful, and user-friendly Linux distribution that promises to redefine the way we interact with our devices. With its focus on performance, security, and customization, Nitrux Linux presents a compelling case for those seeking to break free from the constraints of proprietary software and embrace the freedom and flexibility of open-source computing.
In the rapidly evolving landscape of technologies, XML continues to play a vital role in structuring, storing, and transporting data across diverse systems. The recent advancements in artificial intelligence (AI) present new methodologies for enhancing XML development workflows, introducing efficiency, automation, and intelligent capabilities. This presentation will outline the scope and perspective of utilizing AI in XML development. The potential benefits and the possible pitfalls will be highlighted, providing a balanced view of the subject.
We will explore the capabilities of AI in understanding XML markup languages and autonomously creating structured XML content. Additionally, we will examine the capacity of AI to enrich plain text with appropriate XML markup. Practical examples and methodological guidelines will be provided to elucidate how AI can be effectively prompted to interpret and generate accurate XML markup.
Further emphasis will be placed on the role of AI in developing XSLT, or schemas such as XSD and Schematron. We will address the techniques and strategies adopted to create prompts for generating code, explaining code, or refactoring the code, and the results achieved.
The discussion will extend to how AI can be used to transform XML content. In particular, the focus will be on the use of AI XPath extension functions in XSLT, Schematron, Schematron Quick Fixes, or for XML content refactoring.
The presentation aims to deliver a comprehensive overview of AI usage in XML development, providing attendees with the necessary knowledge to make informed decisions. Whether you’re at the early stages of adopting AI or considering integrating it in advanced XML development, this presentation will cover all levels of expertise.
By highlighting the potential advantages and challenges of integrating AI with XML development tools and languages, the presentation seeks to inspire thoughtful conversation around the future of XML development. We’ll not only delve into the technical aspects of AI-powered XML development but also discuss practical implications and possible future directions.
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfPaige Cruz
Monitoring and observability aren’t traditionally found in software curriculums and many of us cobble this knowledge together from whatever vendor or ecosystem we were first introduced to and whatever is a part of your current company’s observability stack.
While the dev and ops silo continues to crumble….many organizations still relegate monitoring & observability as the purview of ops, infra and SRE teams. This is a mistake - achieving a highly observable system requires collaboration up and down the stack.
I, a former op, would like to extend an invitation to all application developers to join the observability party will share these foundational concepts to build on:
Sudheer Mechineni, Head of Application Frameworks, Standard Chartered Bank
Discover how Standard Chartered Bank harnessed the power of Neo4j to transform complex data access challenges into a dynamic, scalable graph database solution. This keynote will cover their journey from initial adoption to deploying a fully automated, enterprise-grade causal cluster, highlighting key strategies for modelling organisational changes and ensuring robust disaster recovery. Learn how these innovations have not only enhanced Standard Chartered Bank’s data infrastructure but also positioned them as pioneers in the banking sector’s adoption of graph technology.
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...Neo4j
Leonard Jayamohan, Partner & Generative AI Lead, Deloitte
This keynote will reveal how Deloitte leverages Neo4j’s graph power for groundbreaking digital twin solutions, achieving a staggering 100x performance boost. Discover the essential role knowledge graphs play in successful generative AI implementations. Plus, get an exclusive look at an innovative Neo4j + Generative AI solution Deloitte is developing in-house.
Building Production Ready Search Pipelines with Spark and MilvusZilliz
Spark is the widely used ETL tool for processing, indexing and ingesting data to serving stack for search. Milvus is the production-ready open-source vector database. In this talk we will show how to use Spark to process unstructured data to extract vector representations, and push the vectors to Milvus vector database for search serving.
Programming Foundation Models with DSPy - Meetup SlidesZilliz
Prompting language models is hard, while programming language models is easy. In this talk, I will discuss the state-of-the-art framework DSPy for programming foundation models with its powerful optimizers and runtime constraint system.
2024 State of Marketing Report – by HubspotMarius Sescu
https://www.hubspot.com/state-of-marketing
· Scaling relationships and proving ROI
· Social media is the place for search, sales, and service
· Authentic influencer partnerships fuel brand growth
· The strongest connections happen via call, click, chat, and camera.
· Time saved with AI leads to more creative work
· Seeking: A single source of truth
· TLDR; Get on social, try AI, and align your systems.
· More human marketing, powered by robots
ChatGPT is a revolutionary addition to the world since its introduction in 2022. A big shift in the sector of information gathering and processing happened because of this chatbot. What is the story of ChatGPT? How is the bot responding to prompts and generating contents? Swipe through these slides prepared by Expeed Software, a web development company regarding the development and technical intricacies of ChatGPT!
Unlocking Productivity: Leveraging the Potential of Copilot in Microsoft 365, a presentation by Christoforos Vlachos, Senior Solutions Manager – Modern Workplace, Uni Systems
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024Neo4j
Neha Bajwa, Vice President of Product Marketing, Neo4j
Join us as we explore breakthrough innovations enabled by interconnected data and AI. Discover firsthand how organizations use relationships in data to uncover contextual insights and solve our most pressing challenges – from optimizing supply chains, detecting fraud, and improving customer experiences to accelerating drug discoveries.
HCL Notes and Domino License Cost Reduction in the World of DLAUpanagenda
Webinar Recording: https://www.panagenda.com/webinars/hcl-notes-and-domino-license-cost-reduction-in-the-world-of-dlau/
The introduction of DLAU and the CCB & CCX licensing model caused quite a stir in the HCL community. As a Notes and Domino customer, you may have faced challenges with unexpected user counts and license costs. You probably have questions on how this new licensing approach works and how to benefit from it. Most importantly, you likely have budget constraints and want to save money where possible. Don’t worry, we can help with all of this!
We’ll show you how to fix common misconfigurations that cause higher-than-expected user counts, and how to identify accounts which you can deactivate to save money. There are also frequent patterns that can cause unnecessary cost, like using a person document instead of a mail-in for shared mailboxes. We’ll provide examples and solutions for those as well. And naturally we’ll explain the new licensing model.
Join HCL Ambassador Marc Thomas in this webinar with a special guest appearance from Franz Walder. It will give you the tools and know-how to stay on top of what is going on with Domino licensing. You will be able lower your cost through an optimized configuration and keep it low going forward.
These topics will be covered
- Reducing license cost by finding and fixing misconfigurations and superfluous accounts
- How do CCB and CCX licenses really work?
- Understanding the DLAU tool and how to best utilize it
- Tips for common problem areas, like team mailboxes, functional/test users, etc
- Practical examples and best practices to implement right away
Full-RAG: A modern architecture for hyper-personalizationZilliz
Mike Del Balso, CEO & Co-Founder at Tecton, presents "Full RAG," a novel approach to AI recommendation systems, aiming to push beyond the limitations of traditional models through a deep integration of contextual insights and real-time data, leveraging the Retrieval-Augmented Generation architecture. This talk will outline Full RAG's potential to significantly enhance personalization, address engineering challenges such as data management and model training, and introduce data enrichment with reranking as a key solution. Attendees will gain crucial insights into the importance of hyperpersonalization in AI, the capabilities of Full RAG for advanced personalization, and strategies for managing complex data integrations for deploying cutting-edge AI solutions.
GraphRAG for Life Science to increase LLM accuracyTomaz Bratanic
GraphRAG for life science domain, where you retriever information from biomedical knowledge graphs using LLMs to increase the accuracy and performance of generated answers
Pushing the limits of ePRTC: 100ns holdover for 100 daysAdtran
At WSTS 2024, Alon Stern explored the topic of parametric holdover and explained how recent research findings can be implemented in real-world PNT networks to achieve 100 nanoseconds of accuracy for up to 100 days.
How to Get CNIC Information System with Paksim Ga.pptxdanishmna97
Pakdata Cf is a groundbreaking system designed to streamline and facilitate access to CNIC information. This innovative platform leverages advanced technology to provide users with efficient and secure access to their CNIC details.
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUpanagenda
Webinar Recording: https://www.panagenda.com/webinars/hcl-notes-und-domino-lizenzkostenreduzierung-in-der-welt-von-dlau/
DLAU und die Lizenzen nach dem CCB- und CCX-Modell sind für viele in der HCL-Community seit letztem Jahr ein heißes Thema. Als Notes- oder Domino-Kunde haben Sie vielleicht mit unerwartet hohen Benutzerzahlen und Lizenzgebühren zu kämpfen. Sie fragen sich vielleicht, wie diese neue Art der Lizenzierung funktioniert und welchen Nutzen sie Ihnen bringt. Vor allem wollen Sie sicherlich Ihr Budget einhalten und Kosten sparen, wo immer möglich. Das verstehen wir und wir möchten Ihnen dabei helfen!
Wir erklären Ihnen, wie Sie häufige Konfigurationsprobleme lösen können, die dazu führen können, dass mehr Benutzer gezählt werden als nötig, und wie Sie überflüssige oder ungenutzte Konten identifizieren und entfernen können, um Geld zu sparen. Es gibt auch einige Ansätze, die zu unnötigen Ausgaben führen können, z. B. wenn ein Personendokument anstelle eines Mail-Ins für geteilte Mailboxen verwendet wird. Wir zeigen Ihnen solche Fälle und deren Lösungen. Und natürlich erklären wir Ihnen das neue Lizenzmodell.
Nehmen Sie an diesem Webinar teil, bei dem HCL-Ambassador Marc Thomas und Gastredner Franz Walder Ihnen diese neue Welt näherbringen. Es vermittelt Ihnen die Tools und das Know-how, um den Überblick zu bewahren. Sie werden in der Lage sein, Ihre Kosten durch eine optimierte Domino-Konfiguration zu reduzieren und auch in Zukunft gering zu halten.
Diese Themen werden behandelt
- Reduzierung der Lizenzkosten durch Auffinden und Beheben von Fehlkonfigurationen und überflüssigen Konten
- Wie funktionieren CCB- und CCX-Lizenzen wirklich?
- Verstehen des DLAU-Tools und wie man es am besten nutzt
- Tipps für häufige Problembereiche, wie z. B. Team-Postfächer, Funktions-/Testbenutzer usw.
- Praxisbeispiele und Best Practices zum sofortigen Umsetzen
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...SOFTTECHHUB
The choice of an operating system plays a pivotal role in shaping our computing experience. For decades, Microsoft's Windows has dominated the market, offering a familiar and widely adopted platform for personal and professional use. However, as technological advancements continue to push the boundaries of innovation, alternative operating systems have emerged, challenging the status quo and offering users a fresh perspective on computing.
One such alternative that has garnered significant attention and acclaim is Nitrux Linux 3.5.0, a sleek, powerful, and user-friendly Linux distribution that promises to redefine the way we interact with our devices. With its focus on performance, security, and customization, Nitrux Linux presents a compelling case for those seeking to break free from the constraints of proprietary software and embrace the freedom and flexibility of open-source computing.
In the rapidly evolving landscape of technologies, XML continues to play a vital role in structuring, storing, and transporting data across diverse systems. The recent advancements in artificial intelligence (AI) present new methodologies for enhancing XML development workflows, introducing efficiency, automation, and intelligent capabilities. This presentation will outline the scope and perspective of utilizing AI in XML development. The potential benefits and the possible pitfalls will be highlighted, providing a balanced view of the subject.
We will explore the capabilities of AI in understanding XML markup languages and autonomously creating structured XML content. Additionally, we will examine the capacity of AI to enrich plain text with appropriate XML markup. Practical examples and methodological guidelines will be provided to elucidate how AI can be effectively prompted to interpret and generate accurate XML markup.
Further emphasis will be placed on the role of AI in developing XSLT, or schemas such as XSD and Schematron. We will address the techniques and strategies adopted to create prompts for generating code, explaining code, or refactoring the code, and the results achieved.
The discussion will extend to how AI can be used to transform XML content. In particular, the focus will be on the use of AI XPath extension functions in XSLT, Schematron, Schematron Quick Fixes, or for XML content refactoring.
The presentation aims to deliver a comprehensive overview of AI usage in XML development, providing attendees with the necessary knowledge to make informed decisions. Whether you’re at the early stages of adopting AI or considering integrating it in advanced XML development, this presentation will cover all levels of expertise.
By highlighting the potential advantages and challenges of integrating AI with XML development tools and languages, the presentation seeks to inspire thoughtful conversation around the future of XML development. We’ll not only delve into the technical aspects of AI-powered XML development but also discuss practical implications and possible future directions.
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfPaige Cruz
Monitoring and observability aren’t traditionally found in software curriculums and many of us cobble this knowledge together from whatever vendor or ecosystem we were first introduced to and whatever is a part of your current company’s observability stack.
While the dev and ops silo continues to crumble….many organizations still relegate monitoring & observability as the purview of ops, infra and SRE teams. This is a mistake - achieving a highly observable system requires collaboration up and down the stack.
I, a former op, would like to extend an invitation to all application developers to join the observability party will share these foundational concepts to build on:
Sudheer Mechineni, Head of Application Frameworks, Standard Chartered Bank
Discover how Standard Chartered Bank harnessed the power of Neo4j to transform complex data access challenges into a dynamic, scalable graph database solution. This keynote will cover their journey from initial adoption to deploying a fully automated, enterprise-grade causal cluster, highlighting key strategies for modelling organisational changes and ensuring robust disaster recovery. Learn how these innovations have not only enhanced Standard Chartered Bank’s data infrastructure but also positioned them as pioneers in the banking sector’s adoption of graph technology.
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...Neo4j
Leonard Jayamohan, Partner & Generative AI Lead, Deloitte
This keynote will reveal how Deloitte leverages Neo4j’s graph power for groundbreaking digital twin solutions, achieving a staggering 100x performance boost. Discover the essential role knowledge graphs play in successful generative AI implementations. Plus, get an exclusive look at an innovative Neo4j + Generative AI solution Deloitte is developing in-house.
Building Production Ready Search Pipelines with Spark and MilvusZilliz
Spark is the widely used ETL tool for processing, indexing and ingesting data to serving stack for search. Milvus is the production-ready open-source vector database. In this talk we will show how to use Spark to process unstructured data to extract vector representations, and push the vectors to Milvus vector database for search serving.
Programming Foundation Models with DSPy - Meetup SlidesZilliz
Prompting language models is hard, while programming language models is easy. In this talk, I will discuss the state-of-the-art framework DSPy for programming foundation models with its powerful optimizers and runtime constraint system.
2024 State of Marketing Report – by HubspotMarius Sescu
https://www.hubspot.com/state-of-marketing
· Scaling relationships and proving ROI
· Social media is the place for search, sales, and service
· Authentic influencer partnerships fuel brand growth
· The strongest connections happen via call, click, chat, and camera.
· Time saved with AI leads to more creative work
· Seeking: A single source of truth
· TLDR; Get on social, try AI, and align your systems.
· More human marketing, powered by robots
ChatGPT is a revolutionary addition to the world since its introduction in 2022. A big shift in the sector of information gathering and processing happened because of this chatbot. What is the story of ChatGPT? How is the bot responding to prompts and generating contents? Swipe through these slides prepared by Expeed Software, a web development company regarding the development and technical intricacies of ChatGPT!
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
The realm of product design is a constantly changing environment where technology and style intersect. Every year introduces fresh challenges and exciting trends that mold the future of this captivating art form. In this piece, we delve into the significant trends set to influence the look and functionality of product design in the year 2024.
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
Mental health has been in the news quite a bit lately. Dozens of U.S. states are currently suing Meta for contributing to the youth mental health crisis by inserting addictive features into their products, while the U.S. Surgeon General is touring the nation to bring awareness to the growing epidemic of loneliness and isolation. The country has endured periods of low national morale, such as in the 1970s when high inflation and the energy crisis worsened public sentiment following the Vietnam War. The current mood, however, feels different. Gallup recently reported that national mental health is at an all-time low, with few bright spots to lift spirits.
To better understand how Americans are feeling and their attitudes towards mental health in general, ThinkNow conducted a nationally representative quantitative survey of 1,500 respondents and found some interesting differences among ethnic, age and gender groups.
Technology
For example, 52% agree that technology and social media have a negative impact on mental health, but when broken out by race, 61% of Whites felt technology had a negative effect, and only 48% of Hispanics thought it did.
While technology has helped us keep in touch with friends and family in faraway places, it appears to have degraded our ability to connect in person. Staying connected online is a double-edged sword since the same news feed that brings us pictures of the grandkids and fluffy kittens also feeds us news about the wars in Israel and Ukraine, the dysfunction in Washington, the latest mass shooting and the climate crisis.
Hispanics may have a built-in defense against the isolation technology breeds, owing to their large, multigenerational households, strong social support systems, and tendency to use social media to stay connected with relatives abroad.
Age and Gender
When asked how individuals rate their mental health, men rate it higher than women by 11 percentage points, and Baby Boomers rank it highest at 83%, saying it’s good or excellent vs. 57% of Gen Z saying the same.
Gen Z spends the most amount of time on social media, so the notion that social media negatively affects mental health appears to be correlated. Unfortunately, Gen Z is also the generation that’s least comfortable discussing mental health concerns with healthcare professionals. Only 40% of them state they’re comfortable discussing their issues with a professional compared to 60% of Millennials and 65% of Boomers.
Race Affects Attitudes
As seen in previous research conducted by ThinkNow, Asian Americans lag other groups when it comes to awareness of mental health issues. Twenty-four percent of Asian Americans believe that having a mental health issue is a sign of weakness compared to the 16% average for all groups. Asians are also considerably less likely to be aware of mental health services in their communities (42% vs. 55%) and most likely to seek out information on social media (51% vs. 35%).
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
Creative operations teams expect increased AI use in 2024. Currently, over half of tasks are not AI-enabled, but this is expected to decrease in the coming year. ChatGPT is the most popular AI tool currently. Business leaders are more actively exploring AI benefits than individual contributors. Most respondents do not believe AI will impact workforce size in 2024. However, some inhibitions still exist around AI accuracy and lack of understanding. Creatives primarily want to use AI to save time on mundane tasks and boost productivity.
Organizational culture includes values, norms, systems, symbols, language, assumptions, beliefs, and habits that influence employee behaviors and how people interpret those behaviors. It is important because culture can help or hinder a company's success. Some key aspects of Netflix's culture that help it achieve results include hiring smartly so every position has stars, focusing on attitude over just aptitude, and having a strict policy against peacocks, whiners, and jerks.
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
PepsiCo provided a safe harbor statement noting that any forward-looking statements are based on currently available information and are subject to risks and uncertainties. It also provided information on non-GAAP measures and directing readers to its website for disclosure and reconciliation. The document then discussed PepsiCo's business overview, including that it is a global beverage and convenient food company with iconic brands, $91 billion in net revenue in 2023, and nearly $14 billion in core operating profit. It operates through a divisional structure with a focus on local consumers.
Content Methodology: A Best Practices Report (Webinar)contently
This document provides an overview of content methodology best practices. It defines content methodology as establishing objectives, KPIs, and a culture of continuous learning and iteration. An effective methodology focuses on connecting with audiences, creating optimal content, and optimizing processes. It also discusses why a methodology is needed due to the competitive landscape, proliferation of channels, and opportunities for improvement. Components of an effective methodology include defining objectives and KPIs, audience analysis, identifying opportunities, and evaluating resources. The document concludes with recommendations around creating a content plan, testing and optimizing content over 90 days.
How to Prepare For a Successful Job Search for 2024Albert Qian
The document provides guidance on preparing a job search for 2024. It discusses the state of the job market, focusing on growth in AI and healthcare but also continued layoffs. It recommends figuring out what you want to do by researching interests and skills, then conducting informational interviews. The job search should involve building a personal brand on LinkedIn, actively applying to jobs, tailoring resumes and interviews, maintaining job hunting as a habit, and continuing self-improvement. Once hired, the document advises setting new goals and keeping skills and networking active in case of future opportunities.
A report by thenetworkone and Kurio.
The contributing experts and agencies are (in an alphabetical order): Sylwia Rytel, Social Media Supervisor, 180heartbeats + JUNG v MATT (PL), Sharlene Jenner, Vice President - Director of Engagement Strategy, Abelson Taylor (USA), Alex Casanovas, Digital Director, Atrevia (ES), Dora Beilin, Senior Social Strategist, Barrett Hoffher (USA), Min Seo, Campaign Director, Brand New Agency (KR), Deshé M. Gully, Associate Strategist, Day One Agency (USA), Francesca Trevisan, Strategist, Different (IT), Trevor Crossman, CX and Digital Transformation Director; Olivia Hussey, Strategic Planner; Simi Srinarula, Social Media Manager, The Hallway (AUS), James Hebbert, Managing Director, Hylink (CN / UK), Mundy Álvarez, Planning Director; Pedro Rojas, Social Media Manager; Pancho González, CCO, Inbrax (CH), Oana Oprea, Head of Digital Planning, Jam Session Agency (RO), Amy Bottrill, Social Account Director, Launch (UK), Gaby Arriaga, Founder, Leonardo1452 (MX), Shantesh S Row, Creative Director, Liwa (UAE), Rajesh Mehta, Chief Strategy Officer; Dhruv Gaur, Digital Planning Lead; Leonie Mergulhao, Account Supervisor - Social Media & PR, Medulla (IN), Aurelija Plioplytė, Head of Digital & Social, Not Perfect (LI), Daiana Khaidargaliyeva, Account Manager, Osaka Labs (UK / USA), Stefanie Söhnchen, Vice President Digital, PIABO Communications (DE), Elisabeth Winiartati, Managing Consultant, Head of Global Integrated Communications; Lydia Aprina, Account Manager, Integrated Marketing and Communications; Nita Prabowo, Account Manager, Integrated Marketing and Communications; Okhi, Web Developer, PNTR Group (ID), Kei Obusan, Insights Director; Daffi Ranandi, Insights Manager, Radarr (SG), Gautam Reghunath, Co-founder & CEO, Talented (IN), Donagh Humphreys, Head of Social and Digital Innovation, THINKHOUSE (IRE), Sarah Yim, Strategy Director, Zulu Alpha Kilo (CA).
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
The search marketing landscape is evolving rapidly with new technologies, and professionals, like you, rely on innovative paid search strategies to meet changing demands.
It’s important that you’re ready to implement new strategies in 2024.
Check this out and learn the top trends in paid search advertising that are expected to gain traction, so you can drive higher ROI more efficiently in 2024.
You’ll learn:
- The latest trends in AI and automation, and what this means for an evolving paid search ecosystem.
- New developments in privacy and data regulation.
- Emerging ad formats that are expected to make an impact next year.
Watch Sreekant Lanka from iQuanti and Irina Klein from OneMain Financial as they dive into the future of paid search and explore the trends, strategies, and technologies that will shape the search marketing landscape.
If you’re looking to assess your paid search strategy and design an industry-aligned plan for 2024, then this webinar is for you.
5 Public speaking tips from TED - Visualized summarySpeakerHub
From their humble beginnings in 1984, TED has grown into the world’s most powerful amplifier for speakers and thought-leaders to share their ideas. They have over 2,400 filmed talks (not including the 30,000+ TEDx videos) freely available online, and have hosted over 17,500 events around the world.
With over one billion views in a year, it’s no wonder that so many speakers are looking to TED for ideas on how to share their message more effectively.
The article “5 Public-Speaking Tips TED Gives Its Speakers”, by Carmine Gallo for Forbes, gives speakers five practical ways to connect with their audience, and effectively share their ideas on stage.
Whether you are gearing up to get on a TED stage yourself, or just want to master the skills that so many of their speakers possess, these tips and quotes from Chris Anderson, the TED Talks Curator, will encourage you to make the most impactful impression on your audience.
See the full article and more summaries like this on SpeakerHub here: https://speakerhub.com/blog/5-presentation-tips-ted-gives-its-speakers
See the original article on Forbes here:
http://www.forbes.com/forbes/welcome/?toURL=http://www.forbes.com/sites/carminegallo/2016/05/06/5-public-speaking-tips-ted-gives-its-speakers/&refURL=&referrer=#5c07a8221d9b
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
Everyone is in agreement that ChatGPT (and other generative AI tools) will shape the future of work. Yet there is little consensus on exactly how, when, and to what extent this technology will change our world.
Businesses that extract maximum value from ChatGPT will use it as a collaborative tool for everything from brainstorming to technical maintenance.
For individuals, now is the time to pinpoint the skills the future professional will need to thrive in the AI age.
Check out this presentation to understand what ChatGPT is, how it will shape the future of work, and how you can prepare to take advantage.
The document provides career advice for getting into the tech field, including:
- Doing projects and internships in college to build a portfolio.
- Learning about different roles and technologies through industry research.
- Contributing to open source projects to build experience and network.
- Developing a personal brand through a website and social media presence.
- Networking through events, communities, and finding a mentor.
- Practicing interviews through mock interviews and whiteboarding coding questions.
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
1. Core updates from Google periodically change how its algorithms assess and rank websites and pages. This can impact rankings through shifts in user intent, site quality issues being caught up to, world events influencing queries, and overhauls to search like the E-A-T framework.
2. There are many possible user intents beyond just transactional, navigational and informational. Identifying intent shifts is important during core updates. Sites may need to optimize for new intents through different content types and sections.
3. Responding effectively to core updates requires analyzing "before and after" data to understand changes, identifying new intents or page types, and ensuring content matches appropriate intents across video, images, knowledge graphs and more.
A brief introduction to DataScience with explaining of the concepts, algorithms, machine learning, supervised and unsupervised learning, clustering, statistics, data preprocessing, real-world applications etc.
It's part of a Data Science Corner Campaign where I will be discussing the fundamentals of DataScience, AIML, Statistics etc.
Time Management & Productivity - Best PracticesVit Horky
Here's my presentation on by proven best practices how to manage your work time effectively and how to improve your productivity. It includes practical tips and how to use tools such as Slack, Google Apps, Hubspot, Google Calendar, Gmail and others.
The six step guide to practical project managementMindGenius
The six step guide to practical project management
If you think managing projects is too difficult, think again.
We’ve stripped back project management processes to the
basics – to make it quicker and easier, without sacrificing
the vital ingredients for success.
“If you’re looking for some real-world guidance, then The Six Step Guide to Practical Project Management will help.”
Dr Andrew Makar, Tactical Project Management
4. • Understand the general idea how pickle works internally
• Know when is the best to use pickle, when to use other serialization methods
• Build a simple custom serializer
!4
Objective of this talk
5. !5
What is Pickle? What is serialization?
0110000101101100 …
Serialization De-serialization
Python object Python object
6. !6
What is Pickle? What is serialization?
0110000101101100 …
Serialization De-serialization
Python object Python object
pickle.dump()
pickle.dumps()
pickle.load()
pickle.loads()
7. !7
What is Pickle? What is serialization?
0110000101101100 …
Serialization De-serialization
Python object Python object
pickle.dump()
pickle.dumps()
pickle.load()
pickle.loads()
Pickle module
9. !9
Other serialization methods
Pickle JSON Protobuf MessagePack
Human-readable
No
(except protocol 0)
Yes No No
Python-specific Yes No No No
User-defined class Yes No No No
17. !17
Pickle Protocols
Protocol #
#number
0 1 2 3 4 5
Introduced in - - 2.3 3.0 3.4 3.8
Relevant PEP - - PEP 307
What’s new in
Python 3.0
PEP 3154 PEP 574
What’s
added
human-readable,
original protocol old binary format
provides
much more
efficient pickling
of new-style
classes.
It has explicit
support for bytes
objects
adds support for
very large
objects, pickling
more kinds of
objects, and
some data format
optimizations
supports
out-of-band
data
Note
was called
“text mode”
was called
“binary mode”
Cannot be
unpickled by
Python 2.x
Support for
Unicode
18. • Pickle protocol opcodes never changes. Only the new ones are introduced.
• This make sure old pickles continue to be readable forever
• If older unpickler tries to read a pickle generated by newer protocol, it will
either
• Work well, if the newer protocol does not use higher protocol opcode.
• Explicitly give you an error, by raising PicklingError exception
!18
Pickle Protocols
19. Opcode examples
Opcode Name Opcode (Byte)
INT I
LONG L
LONG1 x8a
BININT J
BININT1 K
STRING S
NONE N
NEWTRUE x88
NEWFALSE x89
… …
33. !33
TUPLE (0)
HEX 28 4C 30 4C 0A 4C 31 4C 0A 4C 32 4C 0A 74 70 30 0A 2E
ASCII ( L 0 L n L 1 L n L 2 L n t p 0 n .
INT 40 76 48 76 10 76 49 76 10 76 50 76 10 116 112 48 10 46
34. !34
TUPLE (0)
HEX 28 4C 30 4C 0A 4C 31 4C 0A 4C 32 4C 0A 74 70 30 0A 2E
ASCII ( L 0 L n L 1 L n L 2 L n t p 0 n .
INT 40 76 48 76 10 76 49 76 10 76 50 76 10 116 112 48 10 46
MARK
MARK
Stack
35. !35
TUPLE (0)
HEX 28 4C 30 4C 0A 4C 31 4C 0A 4C 32 4C 0A 74 70 30 0A 2E
ASCII ( L 0 L n L 1 L n L 2 L n t p 0 n .
INT 40 76 48 76 10 76 49 76 10 76 50 76 10 116 112 48 10 46
0
0
MARK
Stack
36. !36
TUPLE (0)
HEX 28 4C 30 4C 0A 4C 31 4C 0A 4C 32 4C 0A 74 70 30 0A 2E
ASCII ( L 0 L n L 1 L n L 2 L n t p 0 n .
INT 40 76 48 76 10 76 49 76 10 76 50 76 10 116 112 48 10 46
1
1
0
MARK
Stack
37. !37
TUPLE (0)
HEX 28 4C 30 4C 0A 4C 31 4C 0A 4C 32 4C 0A 74 70 30 0A 2E
ASCII ( L 0 L n L 1 L n L 2 L n t p 0 n .
INT 40 76 48 76 10 76 49 76 10 76 50 76 10 116 112 48 10 46
2 2
1
0
MARK
Stack
38. !38
TUPLE (0)
HEX 28 4C 30 4C 0A 4C 31 4C 0A 4C 32 4C 0A 74 70 30 0A 2E
ASCII ( L 0 L n L 1 L n L 2 L n t p 0 n .
INT 40 76 48 76 10 76 49 76 10 76 50 76 10 116 112 48 10 46
TUPLE
(0,1,2)
Stack
39. !39
TUPLE (0)
HEX 28 4C 30 4C 0A 4C 31 4C 0A 4C 32 4C 0A 74 70 30 0A 2E
ASCII ( L 0 L n L 1 L n L 2 L n t p 0 n .
INT 40 76 48 76 10 76 49 76 10 76 50 76 10 116 112 48 10 46
PUT
(0,1,2)
Stack
Index 0 1 2 3 4 5
Value (0,1,2)
Memo
42. !42
LIST (0)
HEX 28 6C 70 30 0A 4C 30 4C 0A 61 4C 31 4C 0A 61 67 30 0A 61 2E
ASCII ( l p 0 n L 0 L n a L 1 L n a g 0 n a .
INT 40 108 112 48 10 76 48 76 10 97 76 49 76 10 97 103 48 10 97 46
43. !43
LIST (0)
HEX 28 6C 70 30 0A 4C 30 4C 0A 61 4C 31 4C 0A 61 67 30 0A 61 2E
ASCII ( l p 0 n L 0 L n a L 1 L n a g 0 n a .
INT 40 108 112 48 10 76 48 76 10 97 76 49 76 10 97 103 48 10 97 46
Index 0 1 2 3 4 5
Value
Memo
MARK
Stack
MARK
44. !44
LIST (0)
HEX 28 6C 70 30 0A 4C 30 4C 0A 61 4C 31 4C 0A 61 67 30 0A 61 2E
ASCII ( l p 0 n L 0 L n a L 1 L n a g 0 n a .
INT 40 108 112 48 10 76 48 76 10 97 76 49 76 10 97 103 48 10 97 46
Index 0 1 2 3 4 5
Value
Memo
list1
Stack
LIST
list1
45. !45
LIST (0)
HEX 28 6C 70 30 0A 4C 30 4C 0A 61 4C 31 4C 0A 61 67 30 0A 61 2E
ASCII ( l p 0 n L 0 L n a L 1 L n a g 0 n a .
INT 40 108 112 48 10 76 48 76 10 97 76 49 76 10 97 103 48 10 97 46
Index 0 1 2 3 4 5
Value list1
Memo
list1
Stack
PUT
list1
46. !46
LIST (0)
HEX 28 6C 70 30 0A 4C 30 4C 0A 61 4C 31 4C 0A 61 67 30 0A 61 2E
ASCII ( l p 0 n L 0 L n a L 1 L n a g 0 n a .
INT 40 108 112 48 10 76 48 76 10 97 76 49 76 10 97 103 48 10 97 46
Index 0 1 2 3 4 5
Value list1
Memo
0
list1
Stack
list1
47. !47
LIST (0)
HEX 28 6C 70 30 0A 4C 30 4C 0A 61 4C 31 4C 0A 61 67 30 0A 61 2E
ASCII ( l p 0 n L 0 L n a L 1 L n a g 0 n a .
INT 40 108 112 48 10 76 48 76 10 97 76 49 76 10 97 103 48 10 97 46
Index 0 1 2 3 4 5
Value list1
Memo
list1
Stack
APPEND
0list1
48. !48
LIST (0)
HEX 28 6C 70 30 0A 4C 30 4C 0A 61 4C 31 4C 0A 61 67 30 0A 61 2E
ASCII ( l p 0 n L 0 L n a L 1 L n a g 0 n a .
INT 40 108 112 48 10 76 48 76 10 97 76 49 76 10 97 103 48 10 97 46
Index 0 1 2 3 4 5
Value list1
Memo
1
list1
Stack
0list1
49. !49
LIST (0)
HEX 28 6C 70 30 0A 4C 30 4C 0A 61 4C 31 4C 0A 61 67 30 0A 61 2E
ASCII ( l p 0 n L 0 L n a L 1 L n a g 0 n a .
INT 40 108 112 48 10 76 48 76 10 97 76 49 76 10 97 103 48 10 97 46
Index 0 1 2 3 4 5
Value list1
Memo
list1
Stack
APPEND
0 1list1
50. !50
LIST (0)
HEX 28 6C 70 30 0A 4C 30 4C 0A 61 4C 31 4C 0A 61 67 30 0A 61 2E
ASCII ( l p 0 n L 0 L n a L 1 L n a g 0 n a .
INT 40 108 112 48 10 76 48 76 10 97 76 49 76 10 97 103 48 10 97 46
Index 0 1 2 3 4 5
Value list1
Memo
list1
list1
Stack
GET
0 1list1
51. !51
LIST (0)
HEX 28 6C 70 30 0A 4C 30 4C 0A 61 4C 31 4C 0A 61 67 30 0A 61 2E
ASCII ( l p 0 n L 0 L n a L 1 L n a g 0 n a .
INT 40 108 112 48 10 76 48 76 10 97 76 49 76 10 97 103 48 10 97 46
Index 0 1 2 3 4 5
Value list1
Memo
list1
Stack
APPEND
0 1 list1list1
67. • New pickle protocol 5 can send extra metadata needed for out-of-band data
buffers.
• There is a new PickleBuffer to return out-of-band data buffers.
• Reduces unnecessary memory copies.
!67
PEP 574 -- Pickle protocol 5 with
out-of-band data
68. !68
PEP 574 -- Pickle protocol 5 with
out-of-band data
https://github.com/numpy/numpy/issues/11161
69. • I was implementing an ICLR 2016 paper -
“Deep Compression: Compressing Deep Neural Networks with Pruning,
Trained Quantization and Huffman Coding”
by Song Han, Huizi Mao, William J. Dally
• This paper was about compressing Neural Network.
• For example, compressing AlexNet from 233MB to 8.9MB
without loss of accuracy
• The official repository did not contain Huffman Coding
!69
Custom Binary Serializer
76. • What is difference between cPickle and pickle?
• What can be pickled? What cannot pickled?
• When should we use pickle?
!76
FAQ
77. What is the difference between cPickle and pickle?
• _pickle is a pickle module implemented in C language.
It is faster than Python implementation.
• _pickle was known as cPickle in Python 2.
• In Python 2, cPickle and pickle modules were separate.
• In Python 3, pickle module imports and uses _pickle, if available.
Otherwise, it uses python implementation.
• TLDR; Use Python 3, you don’t need to worry about anything.
78. • None, True, and False
• integers, floating point numbers,
complex numbers
• strings, bytes, bytearrays
• tuples, lists, sets, and dictionaries
containing only picklable objects
• Classes, functions
(both built-in and user-defined)
defined at the top level of a module
(using def, not lambda)
• Instances of such classes whose
__dict__ or the result of calling
__getstate__() is picklable (see
section Pickling Class Instances for
details).
!78
What can be pickled and unpickled?
79. !79
Can a function be pickled?
10110001
01110111
010111…
function.pickle
File
80. !80
Can a function be pickled?
10110001
01110111
010111…
function.pickle
File
81. !81
Can a function be pickled?
10110001
01110111
010111…
function.pickle
File
82. • Only the function’s name is pickled, along with the name of the module the
function is defined in.
• Functions are pickled by name reference, not by value. This means you
cannot pickle lambda functions.
• Similarly, classes, methods, decorators (which is also a function) are pickled
by reference, not by the value
!82
Function content is not pickled
83. • Pickle is probably most useful when you want to quickly store python objects to
restore later.
• JSON is more readable, simple, and cross-platform
• Protobuf is good for its performance, especially for network communication
• messagepack is an alternative for JSON, when you want faster and smaller
serialization
• Only the function’s name is pickled, along with the name of the module the function is
defined in. A function’s content is NOT pickled.
• When building a custom serializer, I recommend looking struct module in Python
!83
Summary / Takeaways
84. References
• Official Python document
• https://docs.python.org/3/library/pickle.html
• CPython Source code
(Great content. Extensive comments here are quite easy to understand)
• https://github.com/python/cpython/blob/master/Lib/pickle.py
• https://github.com/python/cpython/blob/master/Lib/pickletools.py