World's simplest QML app in zig?
2:21:41
2 сағат бұрын
We figured out how debuggers print variable info
2:35:16
Processing real time transit data
1:54:44
Writing a protobuf parser in 02:02:37
2:02:38
Major transit path planning speedups
1:20:21
Visualizing algorithms reveals bad ideas
2:15:06
We finally planned a bus route
2:06:53
Пікірлер
@andrejbartulin
@andrejbartulin 5 сағат бұрын
Interesting video! This will definitely help me with writing my own terminal emulator.
@JustSomeAussie1
@JustSomeAussie1 Күн бұрын
looks like you wrote the c-word at 9:55 😳
@ophello
@ophello Күн бұрын
Out of the loop… but are you abandoning the Google maps project or just taking a break?
@sphaerophoria
@sphaerophoria 11 сағат бұрын
who knows :D
@ArnabJhaYT
@ArnabJhaYT Күн бұрын
Could you make more videos related to Qt?
@aidennwitz
@aidennwitz 3 күн бұрын
but who debugs the debuggers?
@andrewdunbar828
@andrewdunbar828 3 күн бұрын
You never told us you used to be sane.
@sphaerophoria
@sphaerophoria 3 күн бұрын
The theory at the end of the video is (maybe) right. If I build Qt by hand with zig cc and zig c++, I can build a sample application that changes the QML displayed content from a Zig app. See github.com/sphaerophoria/qtzig
@galactic_fx
@galactic_fx 3 күн бұрын
24:32 this is why you itch your nose with your knuckle
@galactic_fx
@galactic_fx 3 күн бұрын
these chapters are hilarious 😭😭😭
@goodboiadvsp3297
@goodboiadvsp3297 4 күн бұрын
Gods work
@brod515
@brod515 5 күн бұрын
@7:53 got you my like.
@fanying-coding
@fanying-coding 5 күн бұрын
I learned a lot from this series, it's amazing!
@paliszarok
@paliszarok 5 күн бұрын
Zig tsoding is not real, he can't hurt you. Zig tsoding:
@MorthisSfg
@MorthisSfg 5 күн бұрын
I am interested, are you a swe for a day job?
@galactic_fx
@galactic_fx 5 күн бұрын
as far as i’m aware, sphaero quit their job temporarily to pursue streaming. i’m not completely in the loop though
@nathanaelmoh5848
@nathanaelmoh5848 5 күн бұрын
Bro you're the Primitive Technology of computer science videos and that's the highest honour I can give. You're the reason I don't know if I should continue coding and the reason I keep on coding at the same time. I love how you explain everything to us.
@sphaerophoria
@sphaerophoria 11 сағат бұрын
Continue!
@johanavril1691
@johanavril1691 5 күн бұрын
funny I saw another "bot like" message on another small dev stream and it was really similar maybe even the same, wonder what the goal is
@ethical-not-evil
@ethical-not-evil 5 күн бұрын
i got a midnight idea for you so impl your self hpsted google maps into your own os i mean extend your os and add these into your os bins
@alang.2054
@alang.2054 5 күн бұрын
What are you smoking bro 😂
@cvabds
@cvabds 5 күн бұрын
What game is this?
@sphaerophoria
@sphaerophoria 5 күн бұрын
Uh.... "writing code for fun real life the game"
@Accanfo
@Accanfo 6 күн бұрын
Fascinating
@MendoukseNa-t3v
@MendoukseNa-t3v 6 күн бұрын
Will you do a oriansj stage0 like bootstrap
@sphaerophoria
@sphaerophoria 5 күн бұрын
I'm sorry I don't understand what you're asking
@paulyz8534
@paulyz8534 7 күн бұрын
Google maps doesn't have any issues. They've solved it already. You're wasting your time.
@sphaerophoria
@sphaerophoria 7 күн бұрын
I shouldn't even bother answering this, but learning and having fun isn't a waste of time
@sphaerophoria
@sphaerophoria 8 күн бұрын
I think ~90% of the times I've ever said "bad boy" in my entire life were recorded in this 2 hour video
@Dje4321
@Dje4321 8 күн бұрын
Out of context this statement is bizarre
@ghoflyer
@ghoflyer 8 күн бұрын
One of the anti debugging techniques is to hash your code and see if it's changed because an int has been inserted
@hwhat
@hwhat 9 күн бұрын
here before ai thumbnail guy
@creator-link
@creator-link 9 күн бұрын
I mean AI does suck but it doesn’t really matter I guess
@zgglmc
@zgglmc 9 күн бұрын
🎉
@aze4308
@aze4308 10 күн бұрын
can you make shorter versions of these videos
@Dje4321
@Dje4321 10 күн бұрын
Don't know of your aware, there is @breakpoint and @trap builtins that might be useful for debugging
@sphaerophoria
@sphaerophoria 10 күн бұрын
Yeah someone pointed those out, but I intentionally dodged them because if i'm binary re-writing i wanna be sure which asm instructions are being executed
@twenty-fifth420
@twenty-fifth420 11 күн бұрын
7:10 "My name comes from a bug" I mean, when I came here, my mind wandered to blitzball from Final Fantasy 10 lmao Neat little lore bit though.
@ScibbieGames
@ScibbieGames 12 күн бұрын
I hope Zig get's it's own debugger, actually, considering the fuzzer is served via HTML with Webassembly, maybe a debugger could too! :D
@sphaerophoria
@sphaerophoria 11 күн бұрын
I don't think there's anything fundamentally different about debugging zig vs c. Existing tools should be fine?
@rogo7330
@rogo7330 12 күн бұрын
If this is how it works on Windows as well, I can see now how malware can set its own sighandlers and avoid debuggers completly. Unless there is something in OS that stops process from setting handler for a signal twice.
@hypno5690
@hypno5690 12 күн бұрын
king sh*t
@sphaerophoria
@sphaerophoria 12 күн бұрын
Re: end of video bug, I had addr/data swapped in my PTRACE_CONT and was sending an undefined value to the child process as a signal 🤦🤦🤦🤦🤦
@andrewkraevskii
@andrewkraevskii 12 күн бұрын
I had same issue with my debugger attempt. Ptrace is just too confusing
@Dje4321
@Dje4321 12 күн бұрын
Even after having learned all of this stuff in the past, its still wild to me that you can run both my code and the debugger code at the same time while the debugger has surgical precision to go in there and modify the code while somehow getting the source code back out. This is clearly the work of the devil
@sphaerophoria
@sphaerophoria 12 күн бұрын
🦹
@proton..
@proton.. 12 күн бұрын
I love men
@sphaerophoria
@sphaerophoria 12 күн бұрын
sir, this is a programming channel
@creator-link
@creator-link 12 күн бұрын
@proton..->love = men;
@proton..
@proton.. 11 күн бұрын
@@sphaerophoria yes
@Jake-ij5nt
@Jake-ij5nt 14 күн бұрын
glob
@andreialdea6072
@andreialdea6072 14 күн бұрын
I'm a bit confused, why are you not using the classical DFAs for regex matching? They are way easier to implement and are guaranteed to finish execution. The hardest part is transforming the automata described by the regex into a DFA, but it's just the application of a well known algorithm
@sphaerophoria
@sphaerophoria 14 күн бұрын
Looking up the answer is cheating
@Diamonddrake
@Diamonddrake 14 күн бұрын
I had a homework assignment to use NFAs to create a regex matcher. All problems are easy when you already know the answer!
@amityagov
@amityagov 14 күн бұрын
first
@beyondcatastrophe_
@beyondcatastrophe_ 15 күн бұрын
16:45 In C, if you specify at least one member, all other members are initialized to 0, search for "c partial initialization". What you tried first `{0}` is not some compiler magic, but just initializing the first member to 0, and making all others 0 by this rule
@Zach010ROBLOX
@Zach010ROBLOX 15 күн бұрын
I haven't gotten to the end yet, so I've probably missed some stuff, but I wonder if another approach could be making single direction ways between all stops on a trip to future stops, then attaching the time between stops as the heuristic for the ways for A* to look at. I feel like this might be similar to what the original super long approach was because that one looks at all the trips and stops, but for some reason I feel like it might not have taken into account some of those connections, so there was extra minute stop changes A* was considering instead of stops that were already close to the node like the OSM pathfinder. Did that make sense? Idk the gpu accel and pre-calc heat map is another cool approach that worked out well. Lots of ways to skin a cat
@Zach010ROBLOX
@Zach010ROBLOX 15 күн бұрын
Also since I've been making a lot of these comments I wanted to say that I'm writing them out of curiosity and trying to solve the problem in my own way and learning how or why my approach could work or could be less ideal, cause I think that's fun!
@potatopassingby
@potatopassingby 15 күн бұрын
yo yo yo what's up what's up what's up everybody, welcome back
@Maratreason
@Maratreason 15 күн бұрын
Thank you man! Great job!
@masoom-theproudvegan7212
@masoom-theproudvegan7212 15 күн бұрын
this is the best channel , hands down
@Zach010ROBLOX
@Zach010ROBLOX 15 күн бұрын
I read "visualizing" as "Vandalizing". Close enough xD
@sphaerophoria
@sphaerophoria 15 күн бұрын
Someone in chat at some point said "one span per character?". Initially I didn't want to do that, but changed my mind after stream. All that span slicing stuff was too much work and I think doesn't play nicely with future features of having multiple matchers match the same character
@Maratreason
@Maratreason 15 күн бұрын
Eh, all that’s left is to create a graphical interface for the operating system. It's a shame that the project is not being developed further. In any case, thank you so much for sharing your knowledge!!! A lot of work has been done. The Rust language is simply great.
@xabhax
@xabhax 17 күн бұрын
Regex didn’t cause the problem. The module was passed 21 arguments. It expected 20.
@andrewdunbar828
@andrewdunbar828 17 күн бұрын
pseudo linux is the best distro
@chromosundrift
@chromosundrift 17 күн бұрын
my favourite bit was when it worked and then... we're chillin'.
@frontforumfocus
@frontforumfocus 17 күн бұрын
Let's goo
@Zach010ROBLOX
@Zach010ROBLOX 17 күн бұрын
Ahh I just made a comment on the previous video about adding metadata to the route/trip info during preprocess, I guess it just wasn't in the scope of the last video, but now he's adding it in to the flow because it's finally time for visualizing route info and maybe factoring it into pathfinding. Very fun, so much cool expansions and great philosophies for programming