keep distance from the mic. don't over process the audio. Just speak,sound like normal human please.
@duanebester23 күн бұрын
Thanks- This has been better in more recent videos
@cariyaputtaАй бұрын
Thanks for sharing.
@duanebesterАй бұрын
You bet
@bborudАй бұрын
Have you tried to use more goroutines than you have cores? And possibly playing with GOMAXPROCS? I suspect it isn't going to make any positive difference, but I'd try it. (Back in the day when I worked on high throughput systems and we used spinning disks, one secret was to always keep the (SCSI) disk operation pipelines full so the firmware could do reordering on the operation queue to optimize performance. The easiest way to do that was to provide the kernel with lots and lots of runnable processes. So the load on those machines was always on the order of 2-300. Which sounds bad, but we didn't care about latency - only throughput. I can't remember how much faster this was, but it was significant enough that we ran like this for several years. Anyway. These days everyone uses SSDs and I know nothing about modern disk systems. So this direction may not have any benefits today. But I'm curious what the effect would be :-))
@duanebesterАй бұрын
I tried doubling the goroutines, but didn’t see too much of an impact :( I switched to a slightly different hash implementation and was able to shave about 200ms off of the above which was cool. I suspect there are still optimizations to be had by using pointers and non branching code. I’m looking at a C implementation for inspiration here. I can run a C impl in about 1.9sec. Thinking about posting a video on it as well.
@renkinjutsu01Ай бұрын
It takes me 1 minute just to cat the file to /dev/null
@duanebesterАй бұрын
Yep the aggregation calculations are what increases the time drastically
@ashersamuel958Ай бұрын
Great content, but the autopilot is taking the fun out of it
@duanebesterАй бұрын
Great point. Will disable going forward!
@eZe00Ай бұрын
Nice video. However, you are calculating the average while you are meant to keep track of the mean of all the values. That means having an array in the struct to keep track of all the values seen. Subscribed!
@duanebesterАй бұрын
I think “mean” in this case is the arithmetic mean, which is the same as the average; summing the numbers in the set and dividing by total count (per station). My output matches the baseline output so I feel pretty confident in the implementation
@ishaanrawal9327Ай бұрын
Hello Duane! This is some amazing stuff man! Keep making these and enlightening us! Thanks a lot!
@duanebesterАй бұрын
Thanks, will do!
@keemykim92Ай бұрын
@jonathanchapa4513Ай бұрын
As always, banger video! 🤤
@duanebesterАй бұрын
You already know!
@kevinkim7068Ай бұрын
Thank you for blessing us🙏
@duanebesterАй бұрын
Any time
@rhul0017Ай бұрын
Hey cool content!!, i was just following through why did u stored temp code in cookie on initial request, that blog from aaronparecki says to create it only when the user allows the app request, umm not sure which is right now.
@duanebesterАй бұрын
Hey there! I can’t remember, but that might change in the 2nd and 3rd videos. There are many ways to store a code temporarily and this was a quick way to do so at the time. However, it’s worth noting that the cookie can be set to secure https only with a timeout and so their shouldn’t be much security concern if implemented correctly
@jonathanchapa4513Ай бұрын
Amazing brother! We should collaborate!
@duanebesterАй бұрын
Yeah for sure
@duanebesterАй бұрын
Yeah for sure
@kevinkim7068Ай бұрын
Thank you for the knowledge brother!
@duanebesterАй бұрын
Any time!
@Geraldonimosito2 ай бұрын
Great work, very helpful in getting to grips with GPUI. I've done a lot of work with egui and I like it for rapid development, but I feel like GPUI is very promising. Especially since it's not strictly immediate mode.
@duanebesterАй бұрын
Glad it helped!
@simonpinkney46222 ай бұрын
@Duane - is there a Github link ?
@duanebesterАй бұрын
Sorry for my late reply - github.com/duanebester/go-oauth2
@ddevienne2 ай бұрын
Rust lurker here. What are those Div trailers in several lines of the render method?
@duanebester2 ай бұрын
the div().flex().text_xl() stuff? Part of their tailwind-style layout engine. I believe it's powered by taffy - github.com/DioxusLabs/taffy
@imkerberos2 ай бұрын
Thank you for sharing.
@duanebester2 ай бұрын
Of course! Glad you’re watching
@Rauloomat2 ай бұрын
Thanks for your work this is really helpful!
@duanebester2 ай бұрын
Thanks- Glad it’s helpful!
@imkerberos2 ай бұрын
great series!
@duanebester2 ай бұрын
Thanks!
@kirakira1603 ай бұрын
awsome sir there is with golang?
@duanebester3 ай бұрын
GPUI is a custom UI framework built in Rust- not sure of any similar options for Golang
@tammip54973 ай бұрын
Great! 💎 Looking forward for the next episode! One thing would be also great to have as an example: scrollable view.
@duanebester3 ай бұрын
True- good idea
@tammip54973 ай бұрын
Thank you, great introduction for gpui 👍🏻
@duanebester3 ай бұрын
Glad you liked it!
@CuongNguyen-gu9fl3 ай бұрын
For some reason, I cannot run oapi-codegen in the terminal after installing it with "go install".
@duanebester3 ай бұрын
Have you added your GOPATH to your PATH env ?
@johnschmidt8743 ай бұрын
Great video! How do you apply a middleware to only some handler functions?
@duanebester3 ай бұрын
One approach is using route groups - example here: publicRoute := app.Group("/public") apiRoute := app.Group("/api", middleware.Protected(), middleware.EnrichUser(services.UserService)) Full app - github.com/duanebester/dermsnap-api/blob/main/app/app.go
@josephlyons33933 ай бұрын
1:36, you can run `cli: install` from the command palette, and then in the future, open directories from the terminal via `zed .`
@duanebester3 ай бұрын
Ahh yes, thank you!
@chenhonzhou3 ай бұрын
Why don't you use zed editor to write gpui demos?
@duanebester3 ай бұрын
I’ve been trying it, VSCode is still my comfort for streaming
@sql643 ай бұрын
your audio is doubled
@duanebester3 ай бұрын
Thanks will look into this!
@iamnbutler4 ай бұрын
Thanks for checking out gpui! It was super cool you were able to pull in stuff from the theme and ui crates and get them working easily :)
@duanebester4 ай бұрын
Thanks for working on Zed and making something awesome. Looking forward to using/ learning more. I did hit that weird borrow error from the storage settings around 8 min in. Not sure if anyone else hit that
@iamnbutler4 ай бұрын
@@duanebester of course! We are happy the community can finally engage with it! I’ll get the team to take a peek at that error.