ExtraTorrent.st - The Largest Bittorent System
Latest Articles
Most searched
ExtraTorrent.st > Categories > Books torrents > Non-Fiction torrents


Browse Books torrents

Arundel J. - Know Go. Generics [2022, PDF, ENG] torrent


Download torrent: Magnet link
Info hash: 6712EA72C0C24A909ED5E00858796CF17F8F30EB
Category: Categories > Books torrents > Non-Fiction torrents
Trackers:
http://bt3.t-ru.org/ann?magnet
http://bt1.t-ru.org/ann
http://bt2.t-ru.org/ann
http://bt4.t-ru.org/ann
udp://tracker.opentrackr.org:1337
udp://open.stealth.si:80/announce
udp://tracker.torrent.eu.org:451/announce
udp://exodus.desync.com:6969
udp://open.demonii.com:1337/announce
udp://tracker.coppersurfer.tk:6969
udp://p4p.arenabg.com:1337
udp://tracker.internetwarriors.net:1337
Health:
 seeds: 11, leechers: 1
Torrent language:  
Total Size: 3.38 MB
Number of files:
1   
Uploader:
DSokolov.MK
Torrent added:2023-03-12 00:15:00

Download Arundel J. - Know Go. Generics [2022, PDF, ENG] torrent




Torrent Description
Книги и журналы » Компьютерная литература » Программирование (книги)

Know Go. Generics / Знай Go. Универсальные шаблоны

Год издания: 2022
Автор: John Arundel

Издательство: Самиздат
Язык: Английский

Формат: PDF
Качество: Издательский макет или текст (eBook)
Интерактивное оглавление: Да
Количество страниц: 143

Описание: This book is about generics in Go. We’ll talk about exactly what that means in more detail later on, but, briefly, it’s about defining (and using) generic functions and generic types. First, what’s a generic function? It’s one that doesn’t specify the types of all its parameters in advance. Instead, some types are represented by placeholders, called type parameters. Generic types work the same way. For example, we might want to define a slice of elements of some unspecified type or a struct with some field of a type that will be known later. Like many things in programming, generics sounds complicated at first, but once you get your head around it, it’s actually quite straightforward. In this book, we’ll work together through the steps necessary to understand what generic functions and types are, why they’re useful, how they work in Go, and what fun and interesting things we can do with them.

Эта книга об универсальных шаблонах в Go. Мы поговорим о том, что именно это означает, более подробно позже, но вкратце речь пойдет об определении (и использовании) универсальных функций и универсальных типов. Во-первых, что такое универсальная функция? Это та, который не указывает типы всех своих параметров заранее. Вместо этого некоторые типы представлены заполнителями, называемыми параметрами типа. Общие типы работают так же. Например, мы можем захотеть определить срез элементов какого-то неопределенного типа или структуру с некоторым полем типа, который будет известен позже. Как и многие другие вещи в программировании, шаблоны поначалу кажутся сложными, но как только вы разберетесь с ними, на самом деле все довольно просто. В этой книге мы вместе рассмотрим шаги, необходимые для понимания того, что такое универсальные функции и типы, почему они полезны, как они работают в Go и какие забавные и интересные вещи мы можем с ними делать.
[spoiler="Примеры страниц"]

[/spoiler]
[spoiler="Оглавление"]
1. Generics
Programming with types
Generic programming
Interface types
Interface parameters
Polymorphism
Constraining parameters with interfaces
Limitations of method sets
The empty interface
Type assertions and switches
Introducing generics to Go
The “contracts” proposal
Takeaways
Review questions

2. Type parameters
Generic functions
Type parameters
Instantiation
Stencilling
An Identity function
Instantiating Identity
Exercise 2.1: Hello, generics
Composite types
Generic types
A generic slice type
There are no generic types
Exercise 2.2: Group therapy
Generic function types
Generic types as function parameters
Exercise 2.3: Lengthy proceedings
Constraining type parameters
Takeaways
Review questions

3. Constraints
Limitations of the any constraint
Method sets
Exercise 3.1: Stringy beans
Named types
Unions
Type sets
Composite type literals
Access to struct fields is not allowed
Constraints versus (classic) interfaces
Constraints are not classes
Limitations of named types
Type approximations
Exercise 3.2: A first approximation
Intersections
The constraints package
Constraint literals
Omitting interface
Self‐referential constraints
Exercise 3.3: Greater love
Takeaways
Review questions

4. Operations
Arithmetic
Exercise 4.1: Product placement
Relative magnitude
Ordering
Multiple type parameters
Equality
Comparable types
The comparable constraint
Exercise 4.2: Duplicate keys
A Max function
Abstract types
The zero value
Takeaways
Review questions

5. Types
Type definitions
Slices
There are no generic types
Instantiating generic types with interfaces
Maps
Multiple type parameters
Structs
Methods
Exercise 5.1: Empty promises
Zero values
Methods with type parameters
Interfaces
Channels
Takeaways
Review questions

6. Functions
Functions on container types
Contains
Reverse
Sort
First‐class functions
Map
Type inference
Exercise 6.1: Func to funky
Filter
Passing a generic function
Reduce
Implementing Reduce
Other reduction operations
Constraints
Concurrency
Exercise 6.2: Compose yourself
Takeaways
Review questions

7. Containers
Sets
Operations on sets
Designing the Set type
The Add method
The Contains method
Initialising with multiple values
Getting a set’s members
A String method
The union of two sets
An Intersection method
Logic on sets
Exercise 7.1: Stack overflow
And more
Takeaways
Review questions

8. Concurrency
Mutexes
A concurrency‐safe set type
The constructor
A locking Add method
The read‐locking methods
Smoke testing
A fatal error
The race detector
And the rest
Exercise 8.1: Channelling frustration
Extending the Set type
More set operations
Key‐value stores and caches
Other container types
Takeaways
Review questions

9. Libraries
The constraints package
Slices and maps
The x/exp repo
Design constraints
The slices package
Comparing slices
Finding elements
Inserting and deleting
Cloning and compacting
Growing and shrinking
Sorting
Searching
Exercise 9.1: Contain your excitement
The maps package
Comparing maps
Enumerating keys and values
Finding keys or values
Deleting map entries
Cloning and copying
Idioms
Exercise 9.2: Merging in turn
The future
Bytes versus strings
Transitioning APIs to generics
Third‐party libraries
Takeaways
Review questions

10. Questions
How much do I need to know about generics?
Will generics drastically change the way I write Go?
Do I need to change my existing code?
Should I use any instead of interface{} now?
When should I start adopting generics?
Can I adopt generics without upsetting my users?
Is it safe to use generics in production?
Will generics change again in the future?
What impact does generics have on performance?
Does generic code compile more slowly?
Why didn’t they use angle brackets?
What still isn’t possible with generics?
Will there be a “Go 2”?
Okay, I’m sold. Where can I find out more about Go?
About this book
Who wrote this?
Feedback
Mailing list
For the Love of Go
The Power of Go: Tools
Video course
Further reading
Credits
[/spoiler]

Download Arundel J. - Know Go. Generics [2022, PDF, ENG] torrent


Related Torrents

Added  Size  S  L  Health
Download Magnet link   Arundel J. The Secrets of Rust. Tools 2025 in Ebooks , by
andryold1
1y 2.71 MB 11 0
Download Magnet link   Arundel J. Explore Go. Cryptography (Go 1.24 edition) 2025 in Ebooks , by
andryold1
1y 6.37 MB 25 1
Download Magnet link   Arundel J. Know Go (Go 1.24 edition) 2025 in Ebooks , by
andryold1
1y 5.94 MB 22 0
Download Magnet link   Arundel J. The Power of Go. Tests (Go 1.24 edition) 2025 in Ebooks , by
andryold1
1y 6.66 MB 20 6
Download Magnet link   Arundel J. The Deeper Love of Go (Go 1.24 Early Access Edition) 2025 in Ebooks , by
andryold1
1y 2.73 MB 4 3




Home - Browse Torrents
ExtraTorrent.st is in compliance with copyrights
2025 ExtraTorrent.st