Książka Programmer's Python: Async - Threads, processes, asyncio & more: Something Completely Different Mike James

Programmer's Python: Async - Threads, processes, asyncio & more: Something Completely Different

Autor: Mike James
Język: Angielski
Oprawa: Miękka
Dostępność: Dostępna u dostawcy
Wysyłamy za 9-15 dni
134.93
Python has more flexibility than most modern programming languages which makes it a very easy langua...

Informacje o książce

Autor
Język
Angielski
Oprawa
Książka - Miękka
Data wydania
2022
strony
302
EAN
9781871962765
ISBN
1871962765
Enbook ID
41874134
Waga
526
Wymiary
178 x 254 x 16

Pełny opis

Python has more flexibility than most modern programming languages which makes it a very easy language to get started with, but it has a problem - the GIL or Global Interpreter Lock. This makes getting to grips with Python Async more demanding than other languages. You can't simply take what you know about threads or processes and hope that they just work with Python.

Programmer's Python: Async is part of a set of Something Completely Different books that look at what makes Python special and sets it apart from other programming languages. This volume is about asynchronous programming, something that is is hard to get right - but well worth the trouble. An application that doesn't make use of async code is wasting a huge amount of the machine's potential. Whenever the program interacts with the outside world it has to wait for very, very, slow humans or even very slow communications to do something. If your code isn't asynchronous then it just waits for what might seem like years from the processor's point of view - remember a processor can execute around 10 million instructions in a second. If your program has to wait for even a fraction of a second that's thousands of instructions wasted.

Python has some remarkably good facilities for asynchronous programming. The latest is the asyncio module which is receiving a lot of attention at the moment, but the story starts earlier. Python has modules that let you work with threads and processes in sophisticated ways. These are the foundation on which asyncio is built and they are covered in depth along with futures, tasks and schedulers. The final three chapters are devoted to asyncio and attempt, hopefully successfully, to make practical sense of a very complicated module. This is the book you need to understand all the options, trade-offs and gotchas.

Mike James has a BSc in Physics, an MSc in Mathematics and a PhD in Computer Science and in a long career as a programmer he has mastered many programming languages. He is the founder and chief editor of I-Programmer, the online magazine written by programmers for programmers and the author of dozens of books. As well as Programmer's Python: Everything Is An Object, Second Edition and Programmer's Python: Everything Is Data, his recent books include Deep C#, JavaScript Jems, Programmer's Guide to Kotlin, Programmer's Guide To Theory and The Trick Of The Mind: Programming and Computational Thought.

Możesz być zainteresowany

155.47

Story of Proof

John Stillwell
203.08
265.58
79.82

Born Again

Lady Debo
79.34

Triality

Eric Warren
53.73
57.24

Bicycling Science

Theodor Schmidt
131.72

Independence

Charlotte Brontë
27.35
184.58
219.24
161.80

Totally Football Book

James Richardson
103.87
62.20
112.83
64.93

Unbreakable

Vonda Wright
67.95

History of Rome

Theodor Mommsen
117.40

Sylvia's Pocket Posh Journal, Chevron

Andrews McMeel Publishing
31.63

Klienci, którzy kupili tę książkę, kupili również

54.41

Ztracené dívky z Willowbrooku

Ellen Marie Wisemanová
10.51

Kuchnia dla zielonych

Paweł Płaczek
58.11

Ve stínu mužů

Alena Flimelová
73.20
74.08
41.66
58.99

Na dne duše

Juraj Ďúran
20.05
124.22

Přijměte své vnitřní dítě

Gabriela Bunz Schlösser
33.77