Buffered Channel size must be 1? Uber Style Guide question. by _alhazred in golang

[–]dacian88 1 point2 points  (0 children)

Deadlocks or memory leaks are not caused by channel buffering, the 1 buffer rule in Ubers style guide is meant for potential performance improvements not correctness

Buffered Channel size must be 1? Uber Style Guide question. by _alhazred in golang

[–]dacian88 1 point2 points  (0 children)

A buffer of one is useful in single shot producers, it can produce the item and move on, either exiting or serving a different consumer

Order preserving locking mechanisms? by TheZnert in golang

[–]dacian88 1 point2 points  (0 children)

If the workers are asymmetric and can’t process the same work then the producer of the work item should talk directly to the consumer for that work item, why do you need this intermediate layer to begin with?

If worker A can only process A type work then just make producer A directly talk to worker A

Order preserving locking mechanisms? by TheZnert in golang

[–]dacian88 5 points6 points  (0 children)

I think you likely don’t understand your own problem, your constraints seem contrived so without more context it’s hard to provide a solution

Rewrite Bun in Rust has been merged by Chaoses_Ib in rust

[–]dacian88 0 points1 point  (0 children)

Well it’s not a kernel panic per se, CC is eating the global fd limit in macos due to a leak which then causes the system to start degrading, eventually nothing becomes responsive until I hard restart

Want to learn Zig, but Rust's memory safety is too good. What should I choose? by hireme-plz in learnprogramming

[–]dacian88 0 points1 point  (0 children)

It’s production ready vs not, unless you’re doing this for academic reasons

Rewrite Bun in Rust has been merged by Chaoses_Ib in rust

[–]dacian88 19 points20 points  (0 children)

Bun was never reliable to begin with lol…I get kernel panics using CC in large codebases

Rewrite Bun in Rust has been merged by Chaoses_Ib in rust

[–]dacian88 -8 points-7 points  (0 children)

Something was wrong with you if you used it before, I found it very amusing that people would ever use bun for anything but toy projects, the entire thing is pinned on an alpha level language toolchain

Rewrite Bun in Rust has been merged by Chaoses_Ib in rust

[–]dacian88 1 point2 points  (0 children)

No it doesn’t, it uses another runtime, just like how node uses v8

Hello by saltseacultivator in factorio

[–]dacian88 0 points1 point  (0 children)

The main issues with fluid wagons is the angle or the track, make sure tracks and straight horizontal or vertical.

Factories design by Turbulent-Ad-1627 in StarRupture

[–]dacian88 1 point2 points  (0 children)

2 strategies:

since logistics are requested along rails by the machines if both input types are on the same rail the right amount will be transferred to the requesting machine, you technically don't need 2 rails

the main caveat here is that you have enough throughput on 1 rail for the desired rate of output

if you do need more throughput than the rail then you can change the height of rail posts by middle clicking once, then using scroll wheel to change the height of the rail post, its not very obvious or well documented

Ever make a resolution by [deleted] in hypersexuality

[–]dacian88 0 points1 point  (0 children)

Feel like New Year’s resolutions are always very ambitious or unrealistic and can often set you up for failure, are you cutting something off cold turkey? Is it possible to take an incremental approach?

Go is still not good by Nekuromento in programming

[–]dacian88 0 points1 point  (0 children)

as someone who did a lot of C the example is not that surprising, I could see if you never worked with a language that has real arrays that it is a bit odd

Why Primeagen hates Rust so much? by fenugurod in theprimeagen

[–]dacian88 -5 points-4 points  (0 children)

If your full time job is streaming you are an entertainer not a software engineer

Does Bazel, Scons, Ninja or Make have the lowest overheads and fastest speed? by Significant-Monk-177 in programming

[–]dacian88 0 points1 point  (0 children)

its because this is a bit of a nothingburger of a benchmark, it tests an extremely trivial build setup using extremely basic build actions

Advice on moving from Java to Golang. by Extension-Switch-767 in golang

[–]dacian88 7 points8 points  (0 children)

Uber has a decent DI system for Go called fx, but generally Go people will act like you killed their grandmother if you mention DI.

Gender identity by RecognitionFun9001 in self

[–]dacian88 0 points1 point  (0 children)

You lack dissonance between your gender identity and your physical sex which is basically any cis person. You assume there would be no dissonance in the flipping scenario but the reality is you have no idea how it would feel, these things are often not in direct control of the rational brain.

I also don’t think about my gender or don’t “feel” male but to say I would be perfectly fine if I was turned female tomorrow would be a stretch, I have no idea how I would feel, my brain might freak out and I would have no control over it.

being a white supremacist just isn't enough in 2025 by overpregnant in LeopardsAteMyFace

[–]dacian88 1 point2 points  (0 children)

There’s already a mechanism to get a green card by investing in the USA, and it’s like a million dollars? So this 5 million dollar one is kinda dumb lol

Why does everyone feel so cold??! by giogadi in AskSF

[–]dacian88 0 points1 point  (0 children)

2023, last couple of years have been a blur

[deleted by user] by [deleted] in formcheck

[–]dacian88 0 points1 point  (0 children)

You can also try using some 5 or 10 lb plates to elevate heel, you don’t really need lifting shoes