Hacking GNU utilities - m4

  Рет қаралды 30,050

Tsoding Daily

Tsoding Daily

Күн бұрын

Streamed Live on Twitch: / tsoding
Enable Subtitles for Twitch Chat
Wallpapers: penger.city/wa...
References:
en.wikipedia.o...)
memcached session: • The Best Coding Interv...
github.com/tso...
Russian Programming Language: • I made a Russian Progr...
Koil github.com/tso...
Support:
BTC: bc1qj820dmeazpeq5pjn89mlh9lhws7ghs9v34x9v9
Pay for my VPS: zap-hosting.co...

Пікірлер: 121
@ros1877
@ros1877 2 күн бұрын
The windows background caught me off-guard
@cranil
@cranil 2 күн бұрын
He did the same in the previous video 😑
@Starlok007
@Starlok007 2 күн бұрын
Windows jumpscare
@udayakumar-iv7ng
@udayakumar-iv7ng 2 күн бұрын
Same
@monad_tcp
@monad_tcp 2 күн бұрын
autom4te is what scares me
@TEHNOTRAHER
@TEHNOTRAHER 2 күн бұрын
the bg scared the shit out of me
@davydorynbaev
@davydorynbaev 2 күн бұрын
a'mister a'zozzing
@corvoworldbuilding
@corvoworldbuilding 2 күн бұрын
Runglish is very entertaining to hear.
@WHYUNODYLAN
@WHYUNODYLAN 2 күн бұрын
There was a guy at my work who was a big fan of m4. He wrote a script generator in it and it took 3 hours to run. Another coworker ported it to Python and it went down to 17 seconds.
@TsodingDaily
@TsodingDaily 2 күн бұрын
Who said Python is slow hah!
@thundertastic896
@thundertastic896 2 күн бұрын
rewrite it in c just so it runs in 17 nano seconds
@rj7250a
@rj7250a Күн бұрын
At least is has "implict :: none" to fix it, C++ has bad defaults and there is no language features to change it, need a linter.
@jiulh
@jiulh 2 күн бұрын
> a peaceful stream recording > subtittles on 4:35
@alishxn
@alishxn Күн бұрын
That's penger 😂
@maman14141414
@maman14141414 Күн бұрын
Fun story the c preprocessor is actually a standalone executable that can be used by it self, and before the production js bundlers existed i used it us a js bundler
@oserodal2702
@oserodal2702 2 күн бұрын
The functional like patterns of the language was creeping me out, and then as I watched through the video, I realized that M4 was, in fact, a stack based language.
@TsodingDaily
@TsodingDaily 2 күн бұрын
Ooooo! Now I get what obstack was!
@theevilcottonball
@theevilcottonball 2 күн бұрын
I am too young for this, but I always imagine that stack were the super hot new thing in the 70s.
@bbq1423
@bbq1423 2 күн бұрын
Yes, the time has come to use programming languages as build systems and build systems as programming languages.
@multicoloredwiz
@multicoloredwiz Күн бұрын
That's what I love about mister zozen!
@valley-artifact
@valley-artifact 2 күн бұрын
there's something so funny about using a macro language exclusively for side-effects and "troubleshooting" when it actually generates anything, one of your most unique stream ideas
@azergante8268
@azergante8268 2 күн бұрын
Coming soon "sand to Raylib in 2 hours" by Tsoding
@wissotskeh
@wissotskeh 2 күн бұрын
Subtitles hijacked by penger ASCII art rendering in top of the video
@samuelwaller4924
@samuelwaller4924 2 күн бұрын
I love this channel so much. I've wanted this for a long time
@mxlje
@mxlje 2 күн бұрын
So far I have watched 4mins of this video and feel the urge to comment "You’re crazy". Can’t wait to watch the rest. Also say what you want about the default blank lines and dnl (of course that’s dumb) but there is just something cool about using a piece of software that is 50 years old that was written by K&R themselves. Edit: 23:30 lol
@RussTeeTrombone
@RussTeeTrombone 2 күн бұрын
Is another recreational programming session witha mista sausage 🎉
@purpasmart_4831
@purpasmart_4831 2 күн бұрын
Man I wish I knew someone like you in irl. I just want someone to talk about C and stuff.
@lightknight876
@lightknight876 2 күн бұрын
Never ending awesomeness. Someone you can spontaneously build something with. Not about money, just passion. But ends up being a huge multi billion dollar company
@alexstone691
@alexstone691 2 күн бұрын
fr
@iamzeus1250
@iamzeus1250 2 күн бұрын
Russian? Let's talk!
@purpasmart_4831
@purpasmart_4831 Күн бұрын
@@iamzeus1250 Nah, I'm from the Northwest of USA.
@Kknewkles
@Kknewkles 14 сағат бұрын
Resources you might find interesting(or already know about): Handmade Network, Hidden(nowadays Digital) Grove. Also, JC Denton on the userpic - good taste :)
@RukopisyNarnie
@RukopisyNarnie 2 күн бұрын
About shitty defaults, there is fortran with implicit types based on first character on variable name...
@replikvltyoutube3727
@replikvltyoutube3727 2 күн бұрын
Optimal
@chri-k
@chri-k Күн бұрын
i mean, that had a purpose
@RukopisyNarnie
@RukopisyNarnie Күн бұрын
@@chri-k it has, but it still is shitty default
@chri-k
@chri-k Күн бұрын
@@RukopisyNarnie the whole point is that you can't afford the space to change defaults. Modern fortran no longer does that (by default anyway)
@bbq1423
@bbq1423 2 күн бұрын
Waiting for the follow-up video with raylib from makefile
@Mozartenhimer
@Mozartenhimer 2 күн бұрын
I love these backgrounds.
@nanothrill7171
@nanothrill7171 Күн бұрын
"I think I might die in the process" -- me every time i have to touch autoconf for any reason
@Googlplex-o7l
@Googlplex-o7l 2 күн бұрын
I already miss the Penger folder.
@vxcute0
@vxcute0 2 күн бұрын
next time, we will gonna make our toaster call raylib.
@Kknewkles
@Kknewkles 4 сағат бұрын
I'm increasingly liking the idea of Sledgehammer Programming. I've been doing it here and there a little bit in my recent project, it's a pretty good way of making yourself do the thing you don't want to do, but have to.
@rnts08
@rnts08 2 күн бұрын
Darkreader, my friend. It will automatically choose dark mode for you or use a custom style to remove flashbangs like you suffered around 11:00.
@grumble2009
@grumble2009 16 сағат бұрын
The configure build system used to solve a problem - having a single build script for a wide variety of incompatible "unix" systems (HP/UX, AIX, DGUX, Ultrix, Irix, SunOS, Apollo Domain, etc.). It was fairly common to have to support all of those systems with one set of code, and configure made it less disgusting. But that was decades ago, and all the world is Linux :)
@thepaulcraft957
@thepaulcraft957 2 күн бұрын
I shat myself because of your bloody wallpaper
@gilligan87
@gilligan87 Күн бұрын
He's still in Russia? Someone gets this man a fucking visa
@driden1987
@driden1987 4 сағат бұрын
He already mentioned he wouldn't leave because he takes care of his parents.
@gilligan87
@gilligan87 4 сағат бұрын
@@driden1987 fuck Legend If they draft him, idk what I'll do
@ethanaa
@ethanaa 2 күн бұрын
WHO DESIGNED THIS LANGUAGE!??? ... Oh. 😆
@dtomvan
@dtomvan Күн бұрын
Next stream: write m4 macro that directly contacts an LLM and shitout the result
@random2huplayer274
@random2huplayer274 Күн бұрын
About the build systems, I started hating them as soon as I tried to use CMake on windows. I was writing Qt project and it used QMake because it was easy and readable, but I thought that switching to something more popular and supported might be better. Spoiler: It wasn't. I began actually learning CMake, experimenting with project layouts, but I just couldn't learn it. It was not comprehensive to the point of disgust. Then I switched to linux and finally got CMake working. I was so excited that I finally 'learned' it, I started using CMake everywhere, even to write single-file school homeworks. But then I learned Make... And now i think that this is a perfect build system. No bullshit. Gets the work done. May get complicated, but doesn't have to. A great balance between simplicity and extensibility. Love it. Not saying that using cc is bad. But I just love make.
@hediinn125
@hediinn125 23 минут бұрын
The "who do you think i am" was amazing
@beardymonger
@beardymonger 16 сағат бұрын
"who f designed this language?" "oh, Dannis Richie and Brian Kernigham? oh, it's a f great language" LOL
@kernelk1931
@kernelk1931 2 күн бұрын
i just followed the hawktui organization to just laugh at the meme
@fu886
@fu886 2 күн бұрын
1:15:34 autotools suite solve the issue to ensure you have sane and reproducible build environment across multiple unix implementations or arch which can be using different binary/library formats, nowadays we mostly just use linux and distro supported toolchain so most of the pain points are not as visible. most flat or complex build systems will end up recreating the same checks given enough times and marginalities appear in different setups if it was still a requirement . they also tend to hit the same issue that caused from general opensoruce packages
@alessiodvt
@alessiodvt 2 күн бұрын
Why are you no longer using i3?
@berndeckenfels
@berndeckenfels Күн бұрын
1:16:00 Btw that’s not “corporate shit” that’s “Free Software portability shit” :) no managers ever saw Gnu projects
@alexanderkovalev391
@alexanderkovalev391 2 күн бұрын
warning! urmom's stack may be used
@alexanderkovalev391
@alexanderkovalev391 2 күн бұрын
and then this nice lady shits out sister
@theevilcottonball
@theevilcottonball 2 күн бұрын
Here is another dumb idea for using raylib with M4. use the macros to generate a hexdump or assembly code as a text file then use a reverse hexdumper or assembler to generate a binary object file that can be linked with raylib.
@xazzzi
@xazzzi Күн бұрын
What if you need a string with unbalanced quotes? Still have to escape somehow.
@replikvltyoutube3727
@replikvltyoutube3727 2 күн бұрын
I guess that configure is checking environment and compiler more thoroughly. Single CC command could work but it wouldn't work on all the environments
@Odod4000
@Odod4000 2 күн бұрын
Raylib is crazy cool!!!
@eliaperli2485
@eliaperli2485 6 сағат бұрын
I see you use a Behringer C-1U (i reckon)... have you had the low volume problem? If so, how did you fix it?
@AnastasisGrammenos
@AnastasisGrammenos 2 күн бұрын
For gnu stuff, you can use emacs's info-mode instead of the html manual
@ruslansmirnov9006
@ruslansmirnov9006 2 күн бұрын
m4 это то на чем вы последние 55 лет пишите свои bash-скрипты если что
@beyondcatastrophe_
@beyondcatastrophe_ 2 күн бұрын
1:50:00 You don't actually need to call it twice, according to the docs you can give a single trailing argument for the `else`, i.e. when it's not equal
@Mozartenhimer
@Mozartenhimer Күн бұрын
This is such a cursed mission.
@monad_tcp
@monad_tcp 2 күн бұрын
oh no, he's going to have headaches. and I'm an expert CMake developer, not even I would touch that thing
@psycoder-x
@psycoder-x 2 күн бұрын
balsam onto my soul
@hubstrangers3450
@hubstrangers3450 Күн бұрын
Thank you.....
@codewizard58
@codewizard58 19 сағат бұрын
In the 70s we had gpm and m4.
@NemurakSteloj
@NemurakSteloj 2 күн бұрын
Man, that background screamer
@demolazer
@demolazer 2 күн бұрын
Never seen someone learn a language by reading its source code
@shrddr
@shrddr Күн бұрын
doesn't the need for a build system come from the need to target a dozen hardware architectures from routers to mainframes? of course you don't need it when targeting your own laptop
@me_12-vw1vi
@me_12-vw1vi 2 күн бұрын
dark mode makes you increase the brightness of your screen to be able to see which then damages your eye sight light mode on the other hand forces you to decrease the brightness and you can read off your screen for hours without hurting your eyes because dark font on white background can be seen easily unlike white font on dark screen which can only be seen when the brightness is increased
@strawberry_blush81
@strawberry_blush81 2 күн бұрын
My whole world changed when I learned, that the screen should be only as bright as ambient room light. I do have to adjust it depending on the lighting, but it's not that bad. With light mode the eye can properly contract to see sharper image as opposed to blurrier white-on-black image. Having said that it's still a personal preference of people whether to go light or go dark :D
@666222333111
@666222333111 Күн бұрын
​@@strawberry_blush81use f.lux
@fabianorezende7713
@fabianorezende7713 2 күн бұрын
M4 seems to have had some influence from prolog. Is there any history about this?
@XboxTheBeatboxer
@XboxTheBeatboxer 2 күн бұрын
no
@monad_tcp
@monad_tcp 2 күн бұрын
I always ask why, why didn't they use Perl
@capekraken2672
@capekraken2672 2 күн бұрын
is there any reason you switched from i3 rexim?
@SterlingWatson-p4p
@SterlingWatson-p4p 2 күн бұрын
Terry Mountains
@__gadonk__
@__gadonk__ Күн бұрын
since when is Zozi using Void
@Mariuspersem
@Mariuspersem 2 күн бұрын
Hell yeah raylib speedrun
@codewizard58
@codewizard58 19 сағат бұрын
define('nice',69)nice not line orientated, it is character orientated.
@valeriikuzivanov6832
@valeriikuzivanov6832 2 күн бұрын
What about Koka Programming Language ?
@mcol3
@mcol3 Күн бұрын
We need a stream about Tcl
@heh2393
@heh2393 2 күн бұрын
Hemlo Tszotszen
@vimzim
@vimzim 2 күн бұрын
Could as well read the gnu manual in emacs with C-h R m4
@patrykmyslewski
@patrykmyslewski 2 күн бұрын
@24:00 HAHAHA xD
@nel_tu_
@nel_tu_ 2 күн бұрын
brother laughed in every way he could
@RiteshRanjan-x4k
@RiteshRanjan-x4k 18 сағат бұрын
Program in DOSbox??
@stavros222
@stavros222 Күн бұрын
What is wrong with the subtitles
@leonidas6682
@leonidas6682 Күн бұрын
somehow he has rigged his subtitles to show his live chat.
@veevee23
@veevee23 2 күн бұрын
WINDOW??????? ok its all good
@xspager
@xspager 2 күн бұрын
00:00:40 Me already: Can your Python do this?
@notflawffles
@notflawffles 2 күн бұрын
why are the dislikes more than the likes damn??
@8followsonik
@8followsonik 2 күн бұрын
легенда! 😎
@stephenkamau1101
@stephenkamau1101 Күн бұрын
1:18:30 hot take
@rogo7330
@rogo7330 2 күн бұрын
Todo: unban youtube in rusia
@alexsmart2612
@alexsmart2612 2 күн бұрын
Imagine not reading info pages in Emacs but in the browser. Yuck 🤮
@Odod4000
@Odod4000 2 күн бұрын
YAY STREAM! i love you videos! first btw
@jiraibozo
@jiraibozo 2 күн бұрын
tsoding spend 5 minutes talking about how the different quotes should be in more languages just to instantly learn why they arent
@TsodingDaily
@TsodingDaily 2 күн бұрын
Learn want? That m4 error message are shit? Why should we not fix shitty error messages?
@sukaisnaini1843
@sukaisnaini1843 2 күн бұрын
who create this error message? oOo this is great error message hehehe
@DobryWujaszekKun
@DobryWujaszekKun 2 сағат бұрын
Use dark reader.
@mewhenthemewhenstheme
@mewhenthemewhenstheme 2 күн бұрын
peng
@samuelevilla03
@samuelevilla03 2 күн бұрын
i want that bg
@TsodingDaily
@TsodingDaily 2 күн бұрын
penger.city/wallpapers/
@asymptotic_sceptic
@asymptotic_sceptic 2 күн бұрын
Do austral
@RichardLofty
@RichardLofty 2 күн бұрын
Daily reminder that emacs is trash.
@ArtikLamartik
@ArtikLamartik 2 күн бұрын
the 3'rd comment
@rogo7330
@rogo7330 2 күн бұрын
Nested quotes aren't great when you realize that you don't need to escape '«', but you'll need to escape '»'. When you just escape EVERYTHING with '\', you just treat every byte after '\' literally, including line feed, maybe adding support for special cases like ' \t\v\f ', '\0', '\xFF'.
@chevychavanne4433
@chevychavanne4433 2 күн бұрын
You only need to escape the ending quotes if you have a bad parsing algorithm. Tracking quote depth is pretty easy, xml and html do that and I'm sure many others. Json is probably the same but idk json lol
@embodiment_of_autism
@embodiment_of_autism Күн бұрын
Yeah but who would use the end quote without the start quote? If you’ve already seen a start quote you can simply treat the end quote as a normal character, and not the end of the string.
@chri-k
@chri-k Күн бұрын
@@chevychavanne4433Consider this funny string: «»«» That's what he meant. You have to escape things anyway, but _only sometimes,_ which adds more complexity for no reason
Hacking Microsoft BASIC
18:03
Ben Eater
Рет қаралды 83 М.
Every programming language explained in 15 minutes | Prime Reacts
43:42
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 31 МЛН
Don't look down on anyone#devil  #lilith  #funny  #shorts
00:12
Devil Lilith
Рет қаралды 40 МЛН
Man Mocks Wife's Exercise Routine, Faces Embarrassment at Work #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 6 МЛН
РОДИТЕЛИ НА ШКОЛЬНОМ ПРАЗДНИКЕ
01:00
SIDELNIKOVVV
Рет қаралды 3,5 МЛН
I tried React and it Ruined My Life
1:19:10
Tsoding Daily
Рет қаралды 135 М.
Duracell PowerCheck: A genius idea which didn't last that long
16:13
Technology Connections
Рет қаралды 478 М.
How do QR codes work? (I built one myself to find out)
35:13
Veritasium
Рет қаралды 5 МЛН
I contributed to C3 Compiler and So Can You
4:15:02
Tsoding Daily
Рет қаралды 72 М.
Microservices are Technical Debt
31:59
NeetCodeIO
Рет қаралды 459 М.
Morrowind Doesn't Have Any Rivers
15:38
Any Austin
Рет қаралды 428 М.
The Stanley Parable: Ultra Deluxe | FULL GAME
3:38:29
Markiplier
Рет қаралды 41 МЛН
I tried Swift and came out a different person
1:56:59
Tsoding Daily
Рет қаралды 89 М.
The Rise of Unix. The Seeds of its Fall.
16:51
Asianometry
Рет қаралды 493 М.
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 31 МЛН