Tsoding Daily

Tsoding Daily

"Daily" Development Log of Tsoding.

If you want to repost a clip from this channel, feel free to do so, but please credit the channel and provide the link to the original video. Thank you!

Hacking Raylib

Hacking Raylib

Test Anything with Python

Test Anything with Python

This is better than TempleOS

This is better than TempleOS

Newton's Method in C

Newton's Method in C

Is C++ better than C?

Is C++ better than C?

OOP in Pure C

OOP in Pure C

Async Engine in C

Async Engine in C

Eepers Gameplay Trailer

Eepers Gameplay Trailer

Control Your Dependencies

Control Your Dependencies

Hare Programming Language

Hare Programming Language

Пікірлер

  • @pyajudeme9245
    @pyajudeme9245Минут бұрын

    Nowadays, my favorite channel! Awesome video! Mad respect for doing your videos live as a not native English speaker!

  • @hahas95
    @hahas95Сағат бұрын

    Haskell quine: main = liftA2 (>>) putStr print "main = liftA2 (>>) putStr print "

  • @obnoxiousthegod
    @obnoxiousthegodСағат бұрын

    mpv enjoyer

  • @chri-k
    @chri-k2 сағат бұрын

    I succeeded in making a C cloq that is smaller, rectangular and has high-res numbers (but rectangle comes at the cost of no includes, so it can't get the current time by itself) I uploaded it to G/H with my username being the same as my handle, chri (dash) k (that account only has one repo) I am talking in this weird way to try to not trip the auto-mod for the 13th time, and that number is *not* hyperbole

  • @bayesianmonk
    @bayesianmonk6 сағат бұрын

    The law of total derivative is the one you are referring to.

  • @RigobertoJose-il7xz
    @RigobertoJose-il7xz7 сағат бұрын

    2:01:50 jajajajja

  • @rogo7330
    @rogo73307 сағат бұрын

    Considering that code is only 7-bit ascii and it's not even the whole range you can obfuscate string by replacing it with numbers that encode whole patterns of letters and feed integers to printf instead of string literals.

  • @chri-k
    @chri-k56 минут бұрын

    Remember that the primary (often unstated) goal of making a quine is that it should be as short as possible, and that is not how you do that

  • @potato9832
    @potato98328 сағат бұрын

    No. He is wrong. He can only think of the context of game programming. No need for further to debate.

  • @ar_xiv
    @ar_xiv9 сағат бұрын

    I'm in the camp that webpages should generally be DOCUMENTS, not applications. Static site generators like eleventy are my favorite at the moment. Eleventy uses an eye-watering stack of npm includes, but it doesn't matter because you are getting plain static HTML out the other end that you can do whatever you want with.

  • @PADONAGG
    @PADONAGG9 сағат бұрын

    то есть ты просто заново изобрел 1С?

  • @Omena0
    @Omena010 сағат бұрын

    Bussin GriddyCode????

  • @TheCarlitozg
    @TheCarlitozg10 сағат бұрын

    Some centering and padding with comments would make it even better than JS version

  • @Bredor
    @Bredor11 сағат бұрын

    Worth mentioning awesome qlock by Yusuke Endoh (kzread.info/dash/bejne/opt1qrlxf9PJhLw.htmlsi=v9WjZHuioWQTbW_Q). This guy does a lot of crazy shit

  • @Lampe2020
    @Lampe202011 сағат бұрын

    In the final code you have the second to last line overflowing on the right block by two characters and the string right in there is unecessarily split. So you could merge those two strings back together (just remove the two quotes in the middle) and that line would perfectly fit the block.

  • @dabunnisher29
    @dabunnisher2911 сағат бұрын

    I just started watching your videos, and holy shit your channel is fucking AWESOME SAUCE!!!

  • @Lampe2020
    @Lampe202012 сағат бұрын

    I find the idea of putting the chat into the subtitles interesting, although it just confused me when I didn't quite understand something you said, so I enabled subtitles to get a clue and then got something that had nothing to do with what you said XD

  • @andrew_0149
    @andrew_014912 сағат бұрын

    that is F-ing amazing

  • @user-gg7bf5rt7m
    @user-gg7bf5rt7m13 сағат бұрын

    К Ершову вроде бы Джон Маккарти приезжал, а не Кнут.

  • @TsodingDaily
    @TsodingDaily10 сағат бұрын

    Возможно, я деталей не помню. Но вроде бы Кнут в Новосибе тоже бывал.

  • @user-gg7bf5rt7m
    @user-gg7bf5rt7m13 сағат бұрын

    Вообще-то не обязательно писать слова целиком. Для краткости можно использовать сокращения, аббревиатуры, корни слов.

  • @icringe8166
    @icringe816613 сағат бұрын

    What font does he use? Just curious

  • @seedmole
    @seedmole13 сағат бұрын

    Yeah ditto to what others are saying. For critical non-game applications, it makes sense to retain the on-release behavior, as an added check against accidental inputs. Imagine a touchscreen app for banking, easy to see why this could be problematic. That said, maybe other confirmation systems make more sense... tying such safety measures to a UI idiosyncrasy fails to call attention to the pitfall -- it simply brushes it under the rug by ignoring all on-press behavior. Meanwhile, in games, there are so many examples of extremely popular games that nevertheless get this wrong. Dark Souls/Elden Ring/etc all use an on-release/on-hold system for their combined dodge/sprint buttons, and that negative edge behavior causes inexperienced (and/or inattentive) players to miss the timing for a roll despite actually pressing it in time. It's unintuitive, and it's a bandaid fix to allow multiple functions with one button. Whenever timing is critical (as is the case in ALL UI, because the user's time is valuable), on-release should be avoided. And to the extent that it allows users to "un-click", it merely serves as a confirmation check that could be implemented more robustly in other ways.

  • @YASYTU
    @YASYTU16 сағат бұрын

    And all that work for nothing. He should have stopped and thought about what he es setting out to do, to realize that this is a waste of time. You do not want OOP.

  • @friedbrainz7998
    @friedbrainz799816 сағат бұрын

    I thought this was a video about getting more money back from the tax man for my kids. Now Im hooked on C!

  • @mhalton
    @mhalton17 сағат бұрын

    The only one worthy of applause is C.

  • @mysticrustacean4065
    @mysticrustacean406519 сағат бұрын

    HTML is not a programming language but it is a markup language!

  • @aeronwolfe7072
    @aeronwolfe707219 сағат бұрын

    OH MY GOD. I PROGRAM IN REACT. I'M SOOOOOOOOOOOOOOO PISSED. pshhhhhhhhhh whatever bro. DO UI IN WHATEVER LANGUAGE YOU WANT!!!!!!! Do itin SPANISH for all I care.

  • @NeuronX
    @NeuronX21 сағат бұрын

    Hi it's been a while in your channel. I wanted to know your development environment like what distro you're using and window manager etc.

  • @rayo3914
    @rayo3914Күн бұрын

    Эх, а на русском никто не пишет :(

  • @mariusz7238
    @mariusz7238Күн бұрын

    What is this xcancel?

  • @stadimi907
    @stadimi907Күн бұрын

    Where i Can download Programming language ХУЯ?

  • @remrevo3944
    @remrevo3944Күн бұрын

    57:13 To find out how to clear the screen with ansi escape codes you can also just look at what `clear` is using as it really just prints escape codes to the screen. So just a quick little `clear | xxd` can get you where you need to be.

  • @halfsourlizard9319
    @halfsourlizard9319Күн бұрын

    This would all be a lot easier / less hacky if you just ... removed the type system entirely.

  • @Pepcen
    @PepcenКүн бұрын

    At first glance this sounds really easy. Is there something I'm missing?

  • @DART2WADER
    @DART2WADERКүн бұрын

    20:00 R"(some text)" maybe?

  • @bobtheoutbuilder8552
    @bobtheoutbuilder8552Күн бұрын

    Omg Zozin using AI 54:19 🤯

  • @abdurahmongulomqodirov1781
    @abdurahmongulomqodirov1781Күн бұрын

    I've thought about putting source code into custom section of executable binary by using objcopy and linking it with ld. I'm not sure if it is a cheating

  • @alvaronaranjo2589
    @alvaronaranjo2589Күн бұрын

    2:34:25 I remember the days when 256mb was a luxury

  • @tomaszstanislawski457
    @tomaszstanislawski457Күн бұрын

    You could try teach the network do generate the actual movie by mapping (x,y,time) to a pixel brightness

  • @TsodingDaily
    @TsodingDailyКүн бұрын

    I guess so. In that case the NN just stores sequence of frames and time allows you to scroll through them. It would be interesting to add a fourth parameter to mix 2 videos for instance. :)

  • @Wekuz11
    @Wekuz11Күн бұрын

    Imagine playing DOOM in a quine

  • @halfsourlizard9319
    @halfsourlizard9319Күн бұрын

    I was curious to see what this would look like: I implemented an async interpolation-based animation engine in Haskell forever ago; predictably, all of the async-ness was abstracted into a monad. I'd be interested to see if it could be 'contained' / localised better in a refactored C implementation -- rather than littered everywhere in the code. Given that constants are 'implemented' with the preprocessor, abstraction / separation of concerns don't seem to be things that C's very good at? Or, are these just idiosyncratic to this implementation?

  • @Heater-v1.0.0
    @Heater-v1.0.0Күн бұрын

    Cool. Taking your interpreter idea for Quine to Rust I get: fn main() { let src = r#"fn main() { let src = r❤"?"❤; println!("{}", src.replace('\u{2764}', "❤").replace('\u{3f}', src)); }"#; println!("{}", src.replace('\u{2764}', "#").replace('\u{3f}', src)); } Not sure if I have the stamina to get on with the clock part....

  • @Heater-v1.0.0
    @Heater-v1.0.012 сағат бұрын

    And someone suggested an even simpler quine in Rust: fn main() { print!("{}", include_str!("main.rs")); } Amazingly easy reading too. How come C can't do such a simple trick?

  • @NeroLight-fo6xe
    @NeroLight-fo6xeКүн бұрын

    those influencer devs are insufferable m8

  • @monad_tcp
    @monad_tcpКүн бұрын

    2:10:11 it means Solaris

  • @dojelnotmyrealname4018
    @dojelnotmyrealname4018Күн бұрын

    Act on release doesn't work with touchscreens and buttonless trackpads very well. It is better for things involving timing, as releasing a button is more reliably consistent than pressing it.

  • @monad_tcp
    @monad_tcpКүн бұрын

    1:57:26 focking cheater

  • @plesskikh
    @plesskikhКүн бұрын

    Why didn't just implement #embed via build script?

  • @TsodingDaily
    @TsodingDailyКүн бұрын

    That means anybody who wants to compile the quine on their machine have to use the custom script, which is unnecessary friction. I wanted the quine to be compilable with a fairly standard command on any Linux.

  • @StaRiToRe
    @StaRiToReКүн бұрын

    the transition from first part to second part is funny

  • @tomaszstanislawski457
    @tomaszstanislawski457Күн бұрын

    Actually, multiple functions can be declared with the one declaration. `void foo(void), bar(void), baz(void);`. Or with a typedefed function type `typedef void foo_f(void); foo_f foo, bar, baz;`. This trick can be used for compressing headers. One can even mix function and variable declarations: `int foo(), var = 3;`. C is a simple language and let mix simple things together in a very strange ways. Function types is one of the obscure features that were present in C since it very beginning.

  • @colbyboucher6391
    @colbyboucher6391Күн бұрын

    Act on release should only happen if act-on-press is actually a different function entirely. The Dark Souls sprint / roll button.

  • @sirynka
    @sirynkaКүн бұрын

    2:40:18 You can exchange your organs for "copilot at home" Powered by Nvidia ®