and using static types takes out a huge load in processing and memory use, right?
every time the process is doing something, it have to check type if it is dinamically implement, right?
or JS and Interpreted language with dinamic types?
how do you declare static types on python?
do you need to recall cython library or something like that or it is embebed in pythin interpreter?
but what is cython exactly?
Want to donate crypto?
if linked against cpython it doesn’t make a difference
yeah, python improved compared to JS. That Is a feature that JS lack and TS came to offer!XDD
python3.11 allows dynamic types just as before
I don-t know. THe thing I know is that qtile was slow and resource consuming and now is fast and resource lightweigh
and using static types takes out a huge load in processing and memory use, right?
static typing means the types of a variable can’t and won’t change
“you” = the interpreter
every time the process is doing something, it have to check type if it is dinamically implement, right?
welcome to python
or JS and Interpreted language with dinamic types? SO that is why that kind of languages is slow_
print(i)
there’s gonna be 1000 type checks here
for i in range(1000):
print(i)
for i in range(1000):
print(i)
there’s no type checking here except on the first round. this is only available in cython
for i in range(1000):
print(i)
do you need to recall cython library or something like that or it is embebed in pythin interpreter?
you need to import this from a normal python instance
like import cython?
import my_cython_code
but what is cython exactly? a new kind of language?
it’s the official way of creating c extensions
using python code?
My insight were correct. It is a new language!XDD
Dear ImGui is a GUI library for C++ that has Python bindings. Let’s see how to use these Python bindings, and then go through the process of adding a more Pythonic interface to the library by added context manager “with” statement support.
Note: the PR in this video has been ACCEPTED! Coming to a release near you soon!
― mCoding with James Murphy (https://mcoding.io)
Source code: https://github.com/mCodingLLC/VideosSampleCode
Dear ImGui: https://github.com/ocornut/imgui
Pyimgui: https://github.com/pyimgui/pyimgui
My original issue: https://github.com/pyimgui/pyimgui/issues/255
Nooby Python habits video: https://youtu.be/qUeud6DvOWI
AFFILIATES AND REFERRALS
—————————————————
Python AI courses: https://joindeltaacademy.com/?utm_source=mcoding&utm_medium=link&utm_campaign=MCODING&utm_id=mcoding
SUPPORT ME ⭐
—————————————————
Sign up on Patreon to get your donor role and early access to videos!
https://patreon.com/mCoding
Feeling generous but don’t have a Patreon? Donate via PayPal! (No sign up needed.)
https://www.paypal.com/donate/?hosted_button_id=VJY5SLZ8BJHEE
Want to donate crypto? Check out the rest of my supported donations on my website!
https://mcoding.io/donate
Top patrons and donors: Jameson, Laura M, Dragos C, Vahnekie, John Martin, Casey G
BE ACTIVE IN MY COMMUNITY 😄
—————————————————
Discord: https://discord.gg/Ye9yJtZQuN
Github: https://github.com/mCodingLLC/
Reddit: https://www.reddit.com/r/mCoding/
Facebook: https://www.facebook.com/james.mcoding
CHAPTERS
—————————————————
0:00 Intro
0:36 Pyimgui
1:02 Getting a blank window
1:36 Imgui commands
3:43 Begin and end
5:36 The solution, with statement
5:59 Let’s fork and clone
6:30 Pyimgui’s core
8:28 Adding with support
11:31 Long road ahead
12:17 Compile and test
12:38 Did we fix the problem?
13:00 The last step
kind of