Тёмный

Coding a regex engine from scratch with no imports in Python! (From Scratch #1) 

clumsy computer
Подписаться 1,8 тыс.
Просмотров 7 тыс.
50% 1

In this video, we build a full-featured regex engine from scratch in Python with no imports! This was streamed live on / clumsycomputer on 2020/06/29.
The full code including more details is available at git.sr.ht/~vladh/clumsycomput...
Because this is a recording of a live stream, you'll hear me sometimes talking to the chat.
This first clumsy computer video is only 720p, so it could look a bit better - sorry, I was still figuring the quality settings out.
If you'd like to see more, please follow the clumsy computer Twitch channel at / clumsycomputer .
If you have any questions, write a comment or contact me on / clumsycomputer .
What would you like to see me code from scratch next? Let me know in the comments! :)
Wishing you a swell day,
Vlad

Наука

Опубликовано:

 

29 июн 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 11   
@tonystarc9567
@tonystarc9567 3 года назад
Brother please keep posting such project videos... These are very useful. Thank you.
@usingvancedplzdontban1128
@usingvancedplzdontban1128 4 года назад
Amazing work brother 🙌
@clumsycomputer
@clumsycomputer 4 года назад
Thank you! :)
@lautenschlager4406
@lautenschlager4406 Год назад
How do you not have a thousand times more subscribers here? This is just high quality content.
@Max-my6rk
@Max-my6rk 2 года назад
omg this is exactly what I am looking for omg!
@dreadesina5216
@dreadesina5216 3 года назад
I stole the key-binding from your dotfiles. Really cool, I had one that take me out of Vim and back after execution but this was nifty. Thanks
@anshshukla162
@anshshukla162 4 года назад
Unless I'm missing something, can't an NFA evaluate a regex with a known, fixed number of parentheses, e.g. the (a) example at 5:26?
@clumsycomputer
@clumsycomputer 4 года назад
Hey Ansh, Good question! Balanced parentheses can't be matched by a regular finite state machine, because it can't remember state, it only evaluates one term at a time. If you want to do this with an NFA though, you can use a pushdown automaton, which basically additionally also keeps a stack for these kinds of terms. Here's an article with more details! raganwald.com/2019/02/14/i-love-programming-and-programmers.html Have a nice day, Vlad
@anshshukla162
@anshshukla162 4 года назад
Balanced parentheses can't, I agree, but the description in the video seemed to not distinguish that from "a known, fixed number of parentheses" if I understand the segment correctly. (start) - ( > (1) - a > (2) - ) > (end) would match "(a)".
@clumsycomputer
@clumsycomputer 4 года назад
@@anshshukla162 Ah, I understand what you meant! Of course, there's no problem with matching the parenthesis character like any other character. The problem is when parentheses need to be balanced, which is usually the case.
@Yotanido
@Yotanido 2 года назад
The (mis)use of lists instead of tuples irks me
Далее
Regular Expressions - Computerphile
17:19
Просмотров 240 тыс.
❤️My First Subscriber #shorts #thankyou
00:26
Просмотров 3,9 млн
24 часа в самом маленьком отеле
21:19
Цены на iPhone и Жигули в ЕГИПТЕ!
50:12
Regular Expressions - Enough to be Dangerous
15:53
Просмотров 188 тыс.
15 Python Libraries You Should Know About
14:54
Просмотров 372 тыс.
How Do Regular Expressions Really Work?
29:10
Просмотров 27 тыс.
Where GREP Came From - Computerphile
10:07
Просмотров 934 тыс.
КРУТОЙ ТЕЛЕФОН
0:16
Просмотров 4,9 млн
Здесь упор в процессор
18:02
Просмотров 259 тыс.
Я УКРАЛ ТЕЛЕФОН В МИЛАНЕ
9:18
Просмотров 24 тыс.