Zig + Python é imbatível! 12/13 - parte 2

Published: 05 August 2024
on channel: PyAjudeMe
1,261
86

Neste vídeo, vou te mostrar como integrar a linguagem de programação Zig no Python vanila. Zig é uma linguagem de programação moderna que oferece alta performance e segurança, e vamos utilizá-la para otimizar operações lentas em Python puro. Vai ficar claro por que os desenvolvedores de Ziglang ganham mais hoje em dia! Vamos ao código!

Código Zig:
No lado Zig, escrevemos uma função para dividir um array de inteiros em dois grupos: valores menores ou iguais a um número especificado e valores maiores. Aqui está o código Zig:
https://github.com/hansalemaos/ziglan...

Código Python:
No lado Python, integramos o Zig usando ctypes para chamar a função Zig e comparar a performance com uma função equivalente escrita em Python.
https://github.com/hansalemaos/ziglan...

Benefícios:
Melhoria de performance em operações intensivas de dados.
Aproveitamento das capacidades de Zig dentro de um projeto Python.
Conhecimento sobre interoperabilidade entre linguagens de programação.


Deixe seu like, inscreva-se no canal e ative as notificações para não perder nenhum conteúdo novo. Compartilhe com seus amigos que estão buscando melhorar a performance dos seus projetos Python!

Links úteis:
Documentação do Zig: https://ziglang.org/documentation/
Arrays em Python: https://docs.python.org/3/library/arr...

04:33    • Why C is so Influential - Computerphile  
09:55    • Como acelerar Python 1/13  
13:00    • C++Now 2017: Niko Matsakis "Rust: Hac...  
17:06    • Fast Inverse Square Root — A Quake II...  
18:27    • John Carmack: Doom, Quake, VR, AGI, P...  
23:48    • 🐍 Como Instalar VSCode, Python e Anac...  
34:20    • Guido van Rossum: Python and the Futu...  
59:57    • Como aprender Python?  
1:00:40    • Brian Kernighan: UNIX, C, AWK, AMPL, ...  
1:22:43    • Travis Oliphant: NumPy, SciPy, Anacon...  
1:31:02    • Como acelerar Python 3/13 - NumExpr (...  
1:32:52    • Python - i.__truediv__(j).__mul__(i)....  
1:40:12    • Como acelerar Python 10/13 - Cython  
1:40:12    • Como acelerar Python 11/13 - Cython -...  


On this page of the site you can watch the video online Zig + Python é imbatível! 12/13 - parte 2 with a duration of hours minute second in good quality, which was uploaded by the user PyAjudeMe 05 August 2024, share the link with friends and acquaintances, this video has already been watched 1,261 times on youtube and it was liked by 86 viewers. Enjoy your viewing!