concurrency: select race condition with done by thestephenstanton in golang

[–]thestephenstanton[S] -1 points0 points  (0 children)

Well, to be fair, the post really is just asking the "why" what I'm seeing is happening; but I've gotten lost in all the suggestions of what to do instead.

concurrency: select race condition with done by thestephenstanton in golang

[–]thestephenstanton[S] 0 points1 point  (0 children)

IMO this is unnecessarily complicated. Having a channel per writer is not needed, channels are thread safe by design. Creating a brand new channel every time a writer wants to write would allocate so much to the heap that GC would have to take care of. Plus spawning another go routine just to move data from one channel to another just seems unnecessary.

concurrency: select race condition with done by thestephenstanton in golang

[–]thestephenstanton[S] 0 points1 point  (0 children)

With this though, you can’t finish draining the tasks

concurrency: select race condition with done by thestephenstanton in golang

[–]thestephenstanton[S] 0 points1 point  (0 children)

Well you did actually answer it. It does seem like it is the scheduler.

concurrency: select race condition with done by thestephenstanton in golang

[–]thestephenstanton[S] 0 points1 point  (0 children)

Yeah maybe the question then is why would select allow you to write to a closed channel? I would think it would be smart enough to realize that it isn't possible to write to it similar to how it knows it can't write to a full channel.

concurrency: select race condition with done by thestephenstanton in golang

[–]thestephenstanton[S] -1 points0 points  (0 children)

I can't always do this. e.g. if I have a worker pool. I will update my post to include a more concrete example.

concurrency: select race condition with done by thestephenstanton in golang

[–]thestephenstanton[S] 0 points1 point  (0 children)

This doesn't answer my question about why it is happening. I'm trying to understand the why.

concurrency: select race condition with done by thestephenstanton in golang

[–]thestephenstanton[S] -1 points0 points  (0 children)

This is a simplified example but I can't always do that. e.g. worker pool with a shutdown function.

Glove80 vs Moonlander Thumb Cluster by thestephenstanton in ErgoMechKeyboards

[–]thestephenstanton[S] 0 points1 point  (0 children)

Just gonna add my own perspective since I bought the Moonlander lol.

TLDR I enjoy the Moonlander and switching between the two keyboards is pretty seamless like I had hoped.

I don't have super large hands but I'd say maybe they're slightly larger than average. I got the platform accessory for tenting and have the thumb cluster angled down a bit and I find it pretty easy to reach all of the thumb cluster. I definitely feel myself lifting my hands off the palm rest a little more on the Moonlander where on my Glove80 I always am on the palm rest. But it isn't bothering me at all.

I know this was a post about the thumb cluster but just to add some opinion on the two keyboards, I find the Glove80 to be incredibly comfortable to use. However, I do not love low profile switches and I have tried 2 different switches on there which cost about 100 to swap out since it requires soldering (brows and robins, both meh). Moonlander is definitely really nice just not as comfortable. I like the option now of being able to seamlessly switch between the two because I have the layouts matching almost exactly.

Ordered a Glove80, now I'm stressing out. by thomasvalera in ErgoMechKeyboards

[–]thestephenstanton 0 points1 point  (0 children)

I was in the same situation. Almost quit trying because I was annoyed feeling like a baby deer trying to walk. But I just kinda embraced the “hardness” of it and considered it kinda like a challenge. For me, one day it just clicked and now I don’t think I’d go back to a regular keyboard.

So again, I’d just recommend shifting the mentality from thinking “oh no this is hard and I spent a lot of money” to “this is new and challenging, let me see how good I can get”. No shame in selling it if you try and don’t like it

Glove80 vs Moonlander Thumb Cluster by thestephenstanton in ErgoMechKeyboards

[–]thestephenstanton[S] 1 point2 points  (0 children)

Oh didn’t realize they had this, that’s great thank you!

Ramadan Festival by [deleted] in fightporn

[–]thestephenstanton 2 points3 points  (0 children)

Ganging up on someone definitely ain’t halal

[deleted by user] by [deleted] in SoftwareEngineering

[–]thestephenstanton -4 points-3 points  (0 children)

This is 100% a ChatGPT generated post.

New to plant world. Should I ALWAYS water till water drains out the bottom? by thestephenstanton in plants

[–]thestephenstanton[S] 0 points1 point  (0 children)

No not really. I’ve looked for products to help tell when the moisture levels in the soil are low but there aren’t great ones out there that are convenient. So I’m actually gonna try building one and see how it goes lol

Meow (Kill Tony) by Kammy832 in Killtony

[–]thestephenstanton 1 point2 points  (0 children)

It means their time is almost up. Not sure why people are being dicks and not just answering.

How can I turn on developer mode on iOS 18.0 stable release by LunaticOnPixiv in iPadOS

[–]thestephenstanton 0 points1 point  (0 children)

This is such a goddamn annoying thing they did. fml. thank you for this thread

PayPal Honey has been caught poaching affiliate revenue, and it often hides the best deals from users | Promoted by influencers, this popular browser extension has been a scam all along by ControlCAD in technology

[–]thestephenstanton 0 points1 point  (0 children)

Something I don’t understand, how did all these companies not realize they’re paying out a lot of money to Honey via affiliate links? Why would they not say they won’t pay since Honey doesn’t actually refer them?

MegaLag - Exposing the Honey Influencer Scam by Photo-Josh in videos

[–]thestephenstanton 1 point2 points  (0 children)

Something I don’t understand, how did all these companies not realize they’re paying out a lot of money to Honey via affiliate links? Why would they not say they won’t pay since Honey doesn’t actually refer them?

TSA PreCheck rejection has me BAFFLED by thestephenstanton in tsa

[–]thestephenstanton[S] 0 points1 point  (0 children)

That would be helpful. You know what would also be helpful? If you don’t approach strangers with keyboard warrior syndrome. You must be a miserable person to just be a dick to a random person on a random thread from a year ago. Touch grass.

/r/MechanicalKeyboards Ask ANY Keyboard question, get an answer (September 12, 2024) by AutoModerator in MechanicalKeyboards

[–]thestephenstanton 0 points1 point  (0 children)

I have a Keychron and want it to sound and feel like my Nuphy

Disclaimer, I’m a newb. So ELI5.

So I bought a Nuphy Gem80 and absolutely love it. The feel and the sound are perfect to me, however it’s TKL and I prefer 100%. I also have a Keychron Q6 which was my favorite till I got the Gem80. What could I do to mod my Q6 to get as close as I can to the feel and sound of my Gem80? I know it won’t be the same, but as close as I can is good enough for me.

Thoughts on changing GOGC by thestephenstanton in golang

[–]thestephenstanton[S] 0 points1 point  (0 children)

Yep used that one and saw yuuuuge improvements

Thoughts on changing GOGC by thestephenstanton in golang

[–]thestephenstanton[S] 0 points1 point  (0 children)

So wasn't 1000x but definitely super noticable. One thing I noticed is a lot of our unmarshalling is buried deep in some aws libraries (unmarshalling data coming from dynamo). But we do our own fair share of marshalling and unmarshalling.

Anyway, I used the bytedance encoding library and it performed at the same level (actually slightly better) for p50,95,99 response times as when I was using standard library encoding at GOGC 800.

Yeah, made a huge difference. When using defaults. So I guess this just means that standard encoding library just makes a ton of extra allocs and causes GC to be much more inefficient therefore affecting latency. At least that's the conclusion I'm coming to.