This is an excellent way to introduce someone like me to a language like julia. Thank you for making this ♥️
@Bruh-sp2bj16 күн бұрын
Python can technically makenmultiple threads but functionally only one of those run at a time because of the gil so im not sure what youre trying to get at here
@JackofSome16 күн бұрын
That's... exactly what the video is about. A shockingly large number of python devs do not know this and think all python threads are green. People also tend not to know that a bunch of FFI based libraries will release the GIL during function calls. This fact can become an advantage.
@TheSpotPlot19 күн бұрын
Thank you for the awesome video! I am creating my own reinforcement learning snake game, but I am able to run it on my phone. I will train my snake, while my phone is on charge, while I sleep. The grid size is quite large, so I will see what happens, over time, and eventually show my results on KZfaq.
@Popart-xh2fdАй бұрын
On Linux it's a piece of cake, on Windows it's impossible!
@shikanokonokokoshitantanАй бұрын
Why pronounce dir as "dire" and not "dear" 😭
@JackofSomeАй бұрын
Oh dear, what a dire situation.
@skr1208Ай бұрын
Was I the co-worker 😂
@rr4919Ай бұрын
It looks the same as nvim. What advantages of emacs?
@tejeshwar.pАй бұрын
Is my understanding correct? Python threads perform tasks concurrently by using single processor core without parallelism. With Python multiprocessing we can spawn multiple processes with different interpreters on different cores and achieve parallelism.
@JackofSomeАй бұрын
No. Python threads are also running in parallel but are artificially locked to running one at a time. In some cases you can get rid of this lock. With python 3.12 this is about to become a lot simpler
@blue_name_warriorАй бұрын
# %% but nothing happened?
@riccardozappitelli4502 ай бұрын
Watching this now is just painful
@gregmarquez82222 ай бұрын
Great video! I'm trying to teach myself Neural Networks and AI, and one of my future projects will be a "snake" playing AI based on a NN. I now have experience with basic multi-layer NNs for classifying images, etc.. What would you recommend as a "next step" to go from classifiers to NN that can play snake, etc., and some learning resources for this? I realize that this video is 4 years old, but just in case you are monitoring the comments, I thought I'd ask. Thanks!
@seawardspy-jl4hz2 ай бұрын
Anyone else have trouble with PB11 not generating the Python module? Win11 Visual Studio 2022
@talkingbirb28083 ай бұрын
update: interactive mode does not generate svg images now and it is advised to use %matplotlib widget or something similar instead
can you help me install python on termux without an error, when i install it i get this error message E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (2)
@lion123-nh6jb4 ай бұрын
how can I use pybind11 as python-package? If I install it via conda/pip, what is then the path in find_package command in CMake?
@ChrisCox-wv7oo4 ай бұрын
I didn't know about Ctrl t with fzf, I usually do **<tab> for the same functionality. Ctrl t is the way to go though. Thanks!
@helgemunkjacobsen84524 ай бұрын
The reason why you haven't met anyone else that uses Redis Simple Cache might be because they just use the Python standard library `functools.lru_cache()`?
@TheGoatsy4 ай бұрын
I actually never used this to my benefit as well, but why should someone use this instead of a .ipynb file?
@JackofSome4 ай бұрын
Text files are arguably more portable and are definitely easier to version control. Ultimately it's all preference though
@NikoKun4 ай бұрын
I took my own weird route to playing around with this idea.. First, I wrote a more classic rules based bot to play snake, with it's own recursive function to check future choices for dead ends. It's not perfect, but it can often play the game well enough, to fill half the available space with snake before dying to more difficult to avoid dead-ends. I then used that bot to record 10,000 of it's highest scoring games frame by frame, a couple million frames in total, also recording each action it took per frame. Then I fed all that data into a basic neural network, and ran a few hundred training epochs. So far I've gotten the neural network to play the game alright, but only about as good as my bot. heh
@epic10l2gaming64 ай бұрын
1:00 when did you ever do smth computationaly intensive in python? i guess never.... meanwhile me trying to figure out how to run through 2^32 combinations of numbers using python :/
@JackofSome4 ай бұрын
Don't. Pure Python is the wrong language for it. Use numba or cython for a familiar feel. Or learn to use mypyc. Or use a completely different language.
@unflexian5 ай бұрын
mate you're a jupyter magician
@jawadmansoor60645 ай бұрын
that is beautiful background colour on websites. how did you get it?
@1q1q1q1q1q1q1qw5 ай бұрын
thus it also work for object oriented code class functions . or only for simple calculations.
@JackofSome5 ай бұрын
Newer versions of numba have ways to compile classes
@1q1q1q1q1q1q1qw5 ай бұрын
@@JackofSome thx :)
@1q1q1q1q1q1q1qw5 ай бұрын
I often have the problem that my functions take objects as input and act on them. I need to build an additional wrapper to encapsulate simple calculations that can be optimized that's somehow annoying.
@deeplazydev6 ай бұрын
Amazing video!
@anotherdeadguy6 ай бұрын
can you make a video on how to customize the terminal like yours?
@diogoledermann73936 ай бұрын
Great vid 👍
@idirhouari38786 ай бұрын
I usually watch videos in x2 speed, however here I had to put it in 0.5x speed 🤣 I'm discovering both C++ and pybind11 so although it is hard to follow everything yet your explanation is pretty cool as it sums up most of the functionalities available in a short time, I now understand better where I need to start ! thank you
@sreenath19877 ай бұрын
Awesome video. Small nit though… in the second time test… imread comes after start time. Wouldn’t that increase the time taken!?
@Bbdu75yg8 ай бұрын
Amazing ❤
@_0xUr_8 ай бұрын
I'm 20 but I know it since python 2 days
@JackofSome8 ай бұрын
Good for you
@user-bk2pt5ny9h8 ай бұрын
Been trying to install bardapi on termux for two days... Gonna try this
@noctesomnium8 ай бұрын
is there any way to make intellisense to analyse the python module imported?
@girlswithgames8 ай бұрын
just run python twice 8)
@phonglai869 ай бұрын
I don't know how to write a Makefile for this :((
@user-ht7gg8xs3u9 ай бұрын
This is a lifesaver! I'm used to Matlab and recently picked up Python. It's great to check what I'm doing. Thank you!
@hopehype64679 ай бұрын
I would love a more in depth tutorial for the 3d display you're showing please
@vanischesmall9 ай бұрын
how to make terminal like his? its awesome
@abrarmasumabir380910 ай бұрын
What font are you using?
@user-if2rh5ur5x10 ай бұрын
love u man , this is aws!!!! Very well explained
@syoudipta11 ай бұрын
After being skeptical about this library for a while, I've gotten used to it. I've watched many tutorials and read many articles and documentation. After weeks of determination to learn this technique properly,... I have become, comfortably Numba. 🤟
@juanwoodcock521711 ай бұрын
Very nice video. +1 like and subscription
@user-kg4oj1fv2w11 ай бұрын
Omg bro can type faster than I think
@dank898111 ай бұрын
Straight to the point and super clear!
@anshumankumar350311 ай бұрын
I think it would be helpful to add what kind of tasks can be multi-threaded in Python, since for certain computational tasks, without numba, the GIL would block multiple threads and make processing single-threaded.
@fakt7814 Жыл бұрын
Today I encountered exactly that problem and then I remembered this video. Thank you.
@Cdaprod Жыл бұрын
Nice!
@meem_hub1 Жыл бұрын
is it work only local network 😂 can't log over the internet 😢
@yash1152 Жыл бұрын
1:53 yep, discovered this accidently myself some months ago. its nice.