Пікірлер
@khanra17
@khanra17 23 күн бұрын
keep distance from the mic. don't over process the audio. Just speak,sound like normal human please.
@duanebester
@duanebester 23 күн бұрын
Thanks- This has been better in more recent videos
@cariyaputta
@cariyaputta Ай бұрын
Thanks for sharing.
@duanebester
@duanebester Ай бұрын
You bet
@bborud
@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
@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
@renkinjutsu01 Ай бұрын
It takes me 1 minute just to cat the file to /dev/null
@duanebester
@duanebester Ай бұрын
Yep the aggregation calculations are what increases the time drastically
@ashersamuel958
@ashersamuel958 Ай бұрын
Great content, but the autopilot is taking the fun out of it
@duanebester
@duanebester Ай бұрын
Great point. Will disable going forward!
@eZe00
@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
@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
@ishaanrawal9327 Ай бұрын
Hello Duane! This is some amazing stuff man! Keep making these and enlightening us! Thanks a lot!
@duanebester
@duanebester Ай бұрын
Thanks, will do!
@keemykim92
@keemykim92 Ай бұрын
@jonathanchapa4513
@jonathanchapa4513 Ай бұрын
As always, banger video! 🤤
@duanebester
@duanebester Ай бұрын
You already know!
@kevinkim7068
@kevinkim7068 Ай бұрын
Thank you for blessing us🙏
@duanebester
@duanebester Ай бұрын
Any time
@rhul0017
@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
@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
@jonathanchapa4513 Ай бұрын
Amazing brother! We should collaborate!
@duanebester
@duanebester Ай бұрын
Yeah for sure
@duanebester
@duanebester Ай бұрын
Yeah for sure
@kevinkim7068
@kevinkim7068 Ай бұрын
Thank you for the knowledge brother!
@duanebester
@duanebester Ай бұрын
Any time!
@Geraldonimosito
@Geraldonimosito 2 ай бұрын
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
@duanebester Ай бұрын
Glad it helped!
@simonpinkney4622
@simonpinkney4622 2 ай бұрын
@Duane - is there a Github link ?
@duanebester
@duanebester Ай бұрын
Sorry for my late reply - github.com/duanebester/go-oauth2
@ddevienne
@ddevienne 2 ай бұрын
Rust lurker here. What are those Div trailers in several lines of the render method?
@duanebester
@duanebester 2 ай бұрын
the div().flex().text_xl() stuff? Part of their tailwind-style layout engine. I believe it's powered by taffy - github.com/DioxusLabs/taffy
@imkerberos
@imkerberos 2 ай бұрын
Thank you for sharing.
@duanebester
@duanebester 2 ай бұрын
Of course! Glad you’re watching
@Rauloomat
@Rauloomat 2 ай бұрын
Thanks for your work this is really helpful!
@duanebester
@duanebester 2 ай бұрын
Thanks- Glad it’s helpful!
@imkerberos
@imkerberos 2 ай бұрын
great series!
@duanebester
@duanebester 2 ай бұрын
Thanks!
@kirakira160
@kirakira160 3 ай бұрын
awsome sir there is with golang?
@duanebester
@duanebester 3 ай бұрын
GPUI is a custom UI framework built in Rust- not sure of any similar options for Golang
@tammip5497
@tammip5497 3 ай бұрын
Great! 💎 Looking forward for the next episode! One thing would be also great to have as an example: scrollable view.
@duanebester
@duanebester 3 ай бұрын
True- good idea
@tammip5497
@tammip5497 3 ай бұрын
Thank you, great introduction for gpui 👍🏻
@duanebester
@duanebester 3 ай бұрын
Glad you liked it!
@CuongNguyen-gu9fl
@CuongNguyen-gu9fl 3 ай бұрын
For some reason, I cannot run oapi-codegen in the terminal after installing it with "go install".
@duanebester
@duanebester 3 ай бұрын
Have you added your GOPATH to your PATH env ?
@johnschmidt874
@johnschmidt874 3 ай бұрын
Great video! How do you apply a middleware to only some handler functions?
@duanebester
@duanebester 3 ай бұрын
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
@josephlyons3393
@josephlyons3393 3 ай бұрын
1:36, you can run `cli: install` from the command palette, and then in the future, open directories from the terminal via `zed .`
@duanebester
@duanebester 3 ай бұрын
Ahh yes, thank you!
@chenhonzhou
@chenhonzhou 3 ай бұрын
Why don't you use zed editor to write gpui demos?
@duanebester
@duanebester 3 ай бұрын
I’ve been trying it, VSCode is still my comfort for streaming
@sql64
@sql64 3 ай бұрын
your audio is doubled
@duanebester
@duanebester 3 ай бұрын
Thanks will look into this!
@iamnbutler
@iamnbutler 4 ай бұрын
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 :)
@duanebester
@duanebester 4 ай бұрын
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
@iamnbutler
@iamnbutler 4 ай бұрын
@@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.
@LeRoyDecapite
@LeRoyDecapite 7 ай бұрын
Quality stuff. Very much appreciated!
@duanebester
@duanebester 3 ай бұрын
Thank you!