InfoWorld
InfoWorld
  • 182
  • 921 746
How NumPy 2 uses SIMD for faster processing
NumPy 2.0 has many improvements under the hood, but one you'll appreciate most is faster processing by way of SIMD libraries from Intel and Google. See in this video how these changes make dramatic performance improvements in NumPy's array sorting and partitioning operations - with no changes to existing code.
------------------------------­----
SUBSCRIBE: ua-cam.com/users/InfoWorld
FACEBOOK: Infoworld/
TWITTER: Infoworld
WEBSITE: www.infoworld.com/
Переглядів: 94

Відео

How to compile the Python interpreter from scratch on Microsoft Windows
Переглядів 769 годин тому
Microsoft Windows users tend to use Python as a pre-built binary they download and install from Python.org. It's also possible to compile the Python runtime yourself, and in some cases it's the only way to make use of certain compile-time options that aren't offered in the prebuilt binaries. In this video we'll take a walk through what's needed to compile Python on Microsoft Windows, and what t...
How to use the stat command
Переглядів 9421 годину тому
In this Linux tip, we look at the stat command. Like the ls command, stat displays important details about a file - like permissions and ownership, but in a much different and surprisingly useful way. ­ SUBSCRIBE: ua-cam.com/users/InfoWorld FACEBOOK: Infoworld/ TWITTER: Infoworld WEBSITE: www.infoworld.com/
Google Mesop | A framework for web-based Python apps
Переглядів 623День тому
These days, there's a slew of frameworks that let you create web apps in Python with no HTML, CSS, or JS. Google's own contribution to this space, Mesop, is worth a look for being simple to work with, and for having prebuilt components that cover a number of common use cases for standing up a Python app with a web frontend. In this video we take a look at a couple of those use cases, and the co...
The SL command easter egg
Переглядів 14414 днів тому
In this Linux tip, we’re going to look at what happens on many Linux systems when someone mistypes “ls” - typing “sl” instead. What you can anticipating seeing (provided the sl command has been installed with one of the commands shown below is a rather entertaining image - a steam locomotive that drives across your screen. ­ SUBSCRIBE: ua-cam.com/users/InfoWorld FACEBOOK: Infoworld...
How to auto-generate Python type hints with Monkeytype
Переглядів 20514 днів тому
Python's type hinting system makes it easier to check your programs for correctness and consistency, but adding type hints to an existing code base can be grueling work. MonkeyType, created by Instagram, runs your code and automatically generates type hints for code, which you can apply directly to your source or list alongside it as type stubs. This video shows a simple example of MonkeyType i...
How to use the Shuf Command
Переглядів 8421 день тому
In this Linux tip, we're going to take a look at the Shuf Command. ­ SUBSCRIBE: ua-cam.com/users/InfoWorld FACEBOOK: Infoworld/ TWITTER: Infoworld WEBSITE: www.infoworld.com/
How to make HTML GUIs in Python with NiceGUI
Переглядів 33921 день тому
Python programs can use a web frontend with HTML to create GUIs conveniently. In many cases you don't even have to know HTML, CSS, or JS: you can use a Python framework that generates your interactive frontend programmatically. With NiceGUI, HTML apps with complex web controls aren't hard to implement in a few lines of Python. This video walks through the basics of how NiceGUI apps work, and co...
How to use the chmod command
Переглядів 78Місяць тому
In this Linux tip, we’ll take a look at the chmod command for changing permissions on a Linux file. ­ SUBSCRIBE: ua-cam.com/users/InfoWorld FACEBOOK: Infoworld/ TWITTER: Infoworld WEBSITE: www.infoworld.com/
Python 3.13's new JIT and no-GIL modes
Переглядів 1,2 тис.Місяць тому
Python 3.13 provides early access to some groundbreaking new features in CPython, the default Python interpreter. A new JIT can enable speedups in "hot spots" in Python code, by selectively replacing generic instructions with specialized versions and by using a new second-stage bytecode - without having to rewrite any existing Python code. And the new "free-threaded", or "no-GIL" build, lets Py...
How to use the Apropos Command
Переглядів 486Місяць тому
In this Linux tip, we’ll take a look at the apropos command and how it can help you identify commands that you want to use. The meaning of the word apropos is “fitting and to the point”. When you use this command on the Linux command line, you can expect it to generate a list of commands that fit what you’re asking about. ­ SUBSCRIBE: ua-cam.com/users/InfoWorld FACEBOOK: Infoworld/...
How to use the shred command
Переглядів 211Місяць тому
In this Linux tip, we’re going to examine the shred command - a command that allows you to overwrite the content of a file with randomized data so that it is no longer readable and basically impossible to recover. ­ SUBSCRIBE: ua-cam.com/users/InfoWorld FACEBOOK: Infoworld/ TWITTER: Infoworld WEBSITE: www.infoworld.com/
How to use Cython for parallel operations in Numpy arrays
Переглядів 145Місяць тому
In previous videos we covered Cython (for translating Python into C for speed), Numpy (for working with numerical arrays at scale), and parallelism in Cython (for doing work in multiple threads). In this video we look at how all three of these things can be used at once: writing Cython that runs in parallel for operating on Numpy arrays. We'll also cover how to ensure Cython uses Numpy arrays c...
How to use Ibis, a universal Python dataframe library
Переглядів 302Місяць тому
Many different data libraries in Python work with dataframes - Polars, Pandas, DuckDB, and so on. But they all sport highly dissimilar APIs and feature sets, and some have features the others don't. Ibis provides a common, unified front end for over a dozen Python dataframe libraries - a common way to read data, query it, pass dataframes between different processing engines, and report the resu...
How to access directories in Linux
Переглядів 92Місяць тому
In this Linux tip, we’re going to look at directories on Linux - basically folders that are set up to house related files. Whenever you use a command like “ls dirname” for a directory, you will see a list of the files it contains. ­ SUBSCRIBE: ua-cam.com/users/InfoWorld FACEBOOK: Infoworld/ TWITTER: Infoworld WEBSITE: www.infoworld.com/
How to see login activity
Переглядів 186Місяць тому
How to see login activity
Better async in Python with AnyIO
Переглядів 252Місяць тому
Better async in Python with AnyIO
How to use DuckDB: A fast, self-contained analytics database
Переглядів 5582 місяці тому
How to use DuckDB: A fast, self-contained analytics database
Extism - Write application extensions in WebAssembly
Переглядів 2022 місяці тому
Extism - Write application extensions in WebAssembly
How to use the cal command
Переглядів 1742 місяці тому
How to use the cal command
How to use parallelism in Cython code: Introduction
Переглядів 1862 місяці тому
How to use parallelism in Cython code: Introduction
How to use the shadow file format in Linux
Переглядів 2002 місяці тому
How to use the shadow file format in Linux
How to install Microsoft Visual C++ Build Tools, the fast way
Переглядів 2,9 тис.2 місяці тому
How to install Microsoft Visual C Build Tools, the fast way
How to source files on the Linux command line
Переглядів 4042 місяці тому
How to source files on the Linux command line
How to use Streamlit to create data-powered web apps in Python
Переглядів 1853 місяці тому
How to use Streamlit to create data-powered web apps in Python
How to use Reflex for making JS-powered websites in pure Python
Переглядів 1,2 тис.3 місяці тому
How to use Reflex for making JS-powered websites in pure Python
How to work with databases in Visual Studio Code
Переглядів 2143 місяці тому
How to work with databases in Visual Studio Code
Timestamps in Linux
Переглядів 2133 місяці тому
Timestamps in Linux
A first look at "uv", a replacement for Python's "pip" and more
Переглядів 3563 місяці тому
A first look at "uv", a replacement for Python's "pip" and more
How to use the who command
Переглядів 943 місяці тому
How to use the who command

КОМЕНТАРІ

  • @TheSilmarallion
    @TheSilmarallion День тому

    Great vid. I battled to get Python/Django and env sorted on my Mac for about 4 hours, stumbled on rye and took me 2mins. I do think if people want people to use frameworks (django) and learn Python web dev it should be made much easier and accessible.

  • @yfiles700
    @yfiles700 2 дні тому

    winget install Microsoft.VisualStudio.2022.BuildTools --force --override "--passive --wait --add Microsoft.VisualStudio.Workload.VCTools;includeRecommended"

  • @user-tg2gm1ih9g
    @user-tg2gm1ih9g 6 днів тому

    Not all problems admit to parallel processing ... some problems are inherently sequential. here's an inherently parallel problem: if a pixel is inside a polygon, turn the pixel black. if you have 1,000,000 pixels and 1,000,000 processors, you can solve this problem really quickly. here's a problem that is not a parallel problem: compute f(27.194) where f(x) = cos(x^3 + 2x^2 + 13) But even if a problem is admits to parallel processing on GPUs; GPUs don't run Python. But you can translate a C program, into steps that WILL run on a GPU. Sometimes Python is just the *WRONG* language to use, to solve a problem. .

  • @teawithoutdonuts31
    @teawithoutdonuts31 8 днів тому

    The question I eant answered is how will this affect ASGI and WSGI web frameworks.

    • @benshapiro9731
      @benshapiro9731 2 дні тому

      My best guess based on experience with FastAPI: the way fast api runs its route handler funcs is if the func is a coroutine (async def) and thus can pause execution during await calls, then it is run on the main thread. If it is a blocking function (def) then it is delegated to the underlying threadpoolexecutor via something like asyncio.to-thread. In my experience, a lot of production code uses just normal functions as opposed to Coroutines for the route handlers due to the relatively recent introduction of async mechanics into the language. If running the no Gil python really has no effect on single threaded code, then at worst this change will have no effect and at best it will give asgi frameworks that work similarly to fastapi a huge speed boost (since those blocking route handler funcs can be executed truly in parallel via the thread pool executor). As far as I know the current best practice is to put non blocking io into async functions and cpu bound tasks into regular functions. Even though Asyncio event loop executes coroutines on the same thread as the event loop, the fact that coroutines are a much lower cost abstraction than threads means that this execution model is faster than using a thread pool. However, the removal of the Gil could change that if the numbers and benchmarks start telling a different story. This may necessitate some internal changes to various asgi frameworks to delegate more coroutines to thread pools as opposed to running them on the main thread. But if your route handler funcs are just regular functions, then out of the box this should yield a major speed increase.

  • @mnoxman
    @mnoxman 10 днів тому

    $ make love make: *** No targets specified and no makefile found. Stop.

  • @mintoo2cool
    @mintoo2cool 10 днів тому

    lol.

  • @MLGJuggernautgaming
    @MLGJuggernautgaming 10 днів тому

    Well it’s out officially now. I ran into an issue with np.NaN already that meant I had to downgrade. I wonder how often these issues will come up.

  • @user-gh4lv2ub2j
    @user-gh4lv2ub2j 11 днів тому

    Looks nice and easy to setup.

  • @bennguyen1313
    @bennguyen1313 12 днів тому

    There's a older (Red Eye Coder) video that does a side by side comparison to perform a prime-finding task, and it takes python almost 3 minutes to do what javascript does in 9 seconds! I wonder if the performance has changed since then.

  • @bennguyen1313
    @bennguyen1313 12 днів тому

    So is NiceGui an alternative to Flask? What kind of back-end (server) support is needed? I'd like to make a browser-based application that can access hardware peripherals, do you think that's doable or should I try something else? Flutter + WebUSB?

  • @cemrehancavdar
    @cemrehancavdar 12 днів тому

    Seems great, thanks

  • @IvesSteve
    @IvesSteve 14 днів тому

    One thing to be aware of is that if you use Acronis TrueImage to backup your system, you may not want to use Dev Drive (or indeed any ReFS partition) because while Acronis will allow you to configure backups of the partition, and the backups will report successful completion, the partition will NOT be backed up because TrueImage, at this time at least, does not support ReFS and does not issue even warnings if you configure a backup of the partition; it apparently just ignores it!

  • @user-rq9ht1oo2t
    @user-rq9ht1oo2t 15 днів тому

    The metaphor u use were incredibly amazing. It is clear and appropriate for the title

  • @akverma6973
    @akverma6973 15 днів тому

    The video description is missing the URL and script, which is making viewers annoyed.

  • @qsayeed67
    @qsayeed67 17 днів тому

    Ctlr + a = Move curser to start of line Ctlr + e = Move curser to end of line Thanks for this tips.

  • @MadSimple
    @MadSimple 18 днів тому

    Check out Illinois Mono

  • @blakecarnes9400
    @blakecarnes9400 18 днів тому

    If i were to try to encode something with a caesar cipher using the tr cmdlet, how could i do that? And yes i know a caesar cipher would be easier to do by hand or googling but i need to learn this stupid command

  • @felixfourcolor
    @felixfourcolor 20 днів тому

    I believe Fedora 41 will ship Python with the JIT, but disabled by default (can be turned on via command line argument). I don't think any distro will ship free-threading though.

    • @InfoWorld
      @InfoWorld 18 днів тому

      That's useful to know. 3.13 beta 2 is shipping with an experimental version of free-threading enabled for Mac users during the installation process, but so far that's the only precompiled version being shipped by Python.org right now. For the time being the rest of us will have to compiled it by hand. -Serdar

  • @Sans_base
    @Sans_base 20 днів тому

    ÆÆÆÆ

  • @mrinalthapa8879
    @mrinalthapa8879 23 дні тому

    i want to use this for h5py file systems but i am getting slicing errors in compilation.

  • @alexandermorgan5869
    @alexandermorgan5869 24 дні тому

    Great video! Are there any instructions on how to build these two different versions of python 3.13?

    • @InfoWorld
      @InfoWorld 18 днів тому

      I actually have plans for a future video where I demonstrate the compilation process on Windows! Stay tuned. -Serdar

  • @amiramohamed8194
    @amiramohamed8194 24 дні тому

    Thank You Brenden Eich

  • @viddeshk8020
    @viddeshk8020 25 днів тому

    Vodka 😉😏 Can we host the webapp of nice gui like we used to do in streamlit?

  • @srt1965
    @srt1965 Місяць тому

    I sorta wanted to know how the elf got on.

  • @ciberman
    @ciberman Місяць тому

    I am a C# guy. I used Python for my degree thesis and my only concern with the language was the lack of a built in way of using class events (EventDispatcher or similar) and the GIL limitation for multithreading math heavy computation. I don't normally use python, but I am really glad that the GIL is being refactored.

  • @jhswartz
    @jhswartz Місяць тому

    On some systems apropos(1) is a symlink to whatis(1), and on some systems there's neither. But your UNIX-like OS might have an implementation of man(1) that provides the same functionallity via the -k parameter. ie: man -k halt

  • @sdmagic
    @sdmagic Місяць тому

    Very nicely done.

  • @OmarHashimOAD
    @OmarHashimOAD Місяць тому

    I enjoy your content; keep up the great work!

  • @--F.R.E.E--Demand_zone_scanner
    @--F.R.E.E--Demand_zone_scanner Місяць тому

    Hello sir, I have a question. Can we use yfinance library data in pyscript to analyse stock

  • @bobsalita3417
    @bobsalita3417 Місяць тому

    InfoWorld videos deserve more attention.

  • @fontasgibtesaufmeinemstern489
    @fontasgibtesaufmeinemstern489 Місяць тому

    Thx!

  • @davidpaez_co
    @davidpaez_co Місяць тому

    This was an excellent explanation. Thank you so much Serdar!

  • @DCode177
    @DCode177 Місяць тому

    In this example what does the Dll1.h look like?

    • @InfoWorld
      @InfoWorld Місяць тому

      It consists of a single line: int inverse(int a); -Serdar

  • @alec1575
    @alec1575 Місяць тому

    Super helpful, thx

  • @gabrielkolletalves493
    @gabrielkolletalves493 Місяць тому

    Nice tip!

  • @2005bgva
    @2005bgva Місяць тому

    Hi, what is the other video that you talk about how to install VS C++ Build Tools?

    • @InfoWorld
      @InfoWorld Місяць тому

      The other video can be found here: ua-cam.com/video/x6OBMfLTLhA/v-deo.html -Serdar

    • @2005bgva
      @2005bgva Місяць тому

      @@InfoWorld But no the fast way, the other video using graphics interfase.

  • @yaskadef
    @yaskadef Місяць тому

    winget install Microsoft.VisualStudio.2022.BuildTools --force --override "--passive --wait --add Microsoft.VisualStudio.WorkLoad.VCTools;includeRecommended"

  • @user-xm5wm4zf2r
    @user-xm5wm4zf2r Місяць тому

    I'll try this out for sure

  • @ToddWinters
    @ToddWinters Місяць тому

    Thank you. I found that information very useful.

  • @elektricmdolez2900
    @elektricmdolez2900 Місяць тому

    winget install Microsoft.VisualStudio.2022.BuildTools --force --override "--passive --wait --add Microsoft.VisualStudio.Workload.VCTools; includeRecommended"

  • @josephcox3091
    @josephcox3091 Місяць тому

    This is not exactly correct.

  • @chepeniv
    @chepeniv Місяць тому

    very helpful!! thanx ^_^

  • @SouravBasuRoy
    @SouravBasuRoy Місяць тому

    more need more asyncio

  • @viddeshk8020
    @viddeshk8020 Місяць тому

    Great! 👍 Asynchronous is good 😊

  • @pythonlibrarian224
    @pythonlibrarian224 Місяць тому

    I needed this about a decade ago when someone asked me to read in & do stuff with a multigb csv file. I tried powershell's CSV tool and it never came back. They wanted an answer by 5, so I never did find a solution.

  • @bl4106
    @bl4106 2 місяці тому

    would love to see how to make cython parallelism work on numpy arrays!

    • @InfoWorld
      @InfoWorld Місяць тому

      That would indeed make a great follow-up video! I have an example in the works that could be retooled to work this way. (It should be possible to just get a raw pointer to the array and use that, but some details about how to integrate specifically with NumPy would probably help everyone.) -Serdar

  • @leonardommarques
    @leonardommarques 2 місяці тому

    This is cool

  • @exganza
    @exganza 2 місяці тому

    Thank you, very helpful.

  • @kolasatheesh5950
    @kolasatheesh5950 2 місяці тому

    could you please share me the install file link

  • @Oodle-ox2vf
    @Oodle-ox2vf 2 місяці тому

    Sounds promising, will need to introduced carefully. Can't wait to try it.