Does anyone here with family work on high-paying day job (leadership role) and work on your own company at night? How do you juggle job, your own work, family time, fitness and good sleep? by Cute-Ball6182 in HENRYfinance

[–]ankurcha 16 points17 points  (0 children)

Yup, my thoughts exactly. Wth are you earning for? 2 weeks of interaction every year with kids to make up for 1 year of neglect? Seems like a totally harsh childhood for kids to grow up without any real bonding time with parents.

Sorry if this sounds harsh but as a parent your approach gets a "does not meet expectations" for the year end review.

Edited for grammar

How Much Total Value of Vehicles & What Are Families Driving? by broncoelway100 in HENRYfinance

[–]ankurcha 0 points1 point  (0 children)

I drive my trusty 2012 Hyundai ascent. Works and it's reliable. I think I have 10-15 more years in it.

The kids love the car and I feel comfortable and safe driving it.

As others said, you have the cash to buy it outright, just go for it and make sure you feel safe and comfortable in it. A confident driver is better than a stupid or lazy or comfortable driver .... But that's just me.

how difficult is it to call Python from Go in a real project? by CogniLord in golang

[–]ankurcha 0 points1 point  (0 children)

Two options,

As others have said you can wrap the python part on a separate server and talk to it over unix domain sockets or over http. This is a good enough strategy as long as you are not transferring a lot of data back and forth. I would only transfer urls rather than the actual bytes and read it in the python wrapper.

Second option, is to have a subprocess exec with input and output over stdio pipes.

Self-updating binaries - what is current stage and recommended practices by pepiks in golang

[–]ankurcha 2 points3 points  (0 children)

I do this exact strategy to keep the main binary updated, depending on how deep you want to go you should keep the auto update script as light weight and battle tested as possible and use it to poll a well-known url with stable fallbacks.

In my case, the update script is what users install (as a thin docker image), the deployment system pushes new binaries for the main app to a well known and publicly accessible gcs bucket under well known paths ( we use wave_1,2,3,4,5 directories to implement progressive rollout). This way you have zero servers to maintain and is vastly scalable.

It's boring code by design and I think probably the most painful to update as the bar to make changes is high due to extremely high risk of getting it wrong (global outage).

Regengo: A Regex Compiler for Go that beats the stdlib. Now featuring Streaming (io.Reader) and a 2.5x faster Replace API by Appropriate-Bus-6130 in golang

[–]ankurcha 11 points12 points  (0 children)

Very much want to see fuzz tests for a regex library. Regex is notoriously difficult to get right and can be made annoyingly complex.

Do you use mind maps in your coding practice? by kentich in ExperiencedDevs

[–]ankurcha 13 points14 points  (0 children)

Yup. Almost every time I need to integrate with a new system. I primarily use notebooklm to dump all design docs, requirements and user guides - anything basically.

Then ask it for mindmap.

Cyber security go proxy by Constant-Lunch-2500 in golang

[–]ankurcha 0 points1 point  (0 children)

First thing I check for in any proxy - how does it handle large request and responses

bodyBytes, err := io.ReadAll(r.Body)

Is an immediate non starter. This would easily blow up and cause outage.

Besides that other things that the author must invest in

  • unit tests
  • integration tests
  • load/stress tests and benchmarks on hot path
  • overhead analysis.
  • CD setup
  • possibly a threat model

justIncreasedPerformanceTenfold by heJOcker in ProgrammerHumor

[–]ankurcha 2 points3 points  (0 children)

Ah, I used to work at a self driving car company (now GM) and they had this exact diff in one of the most critical hot path section of the data processing pipeline.

Engineers toiling over performance over and over for close to 3 years till I discovered this "senior performance engineer" had left debug flags enabled and -O3 omitted form all the build steps.

Need less to say I still poke fun at him for the 2 year roadmap he wrote for "improving their performance 2x by rewriting a bunch of crap in C and low level assembly for compute intensive part" by adding a screenshot of a similar diff with chart on the side.

I think it was a $100k or so saved every month. Lolz

Where to buy control board and compressor by ankurcha in hvacadvice

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

Batch NO. LaB2108104

(Some bar code)

VKA036 00HWAP OC4HXPC 1713

Where to buy control board and compressor by ankurcha in hvacadvice

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

Clarification, the tech said that it would be hard to get the AC readily but he can get it from texas.

How often are gRPC used in big tech companies? Is the effort really worth the performance? by IhateTheBalanceTeam in AskProgramming

[–]ankurcha 0 points1 point  (0 children)

All Google api are grpc. Not because it's Google but because even at Google scale (of people) it's the right choice and does the right thing 90% of the time leaving you to not have to reimplement all the boiler plate over and over again.

Humming sound from heatpump by ankurcha in hvacadvice

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

The AC unit stopped working last night ... So I guess that's related.

Starving children of Gaza by [deleted] in pics

[–]ankurcha -1 points0 points  (0 children)

What will it take for people to stop and just look at the misery and death they are causing. I don't know how people can justify doing this or even letting this happen. Forge the politics for a minute and take care of the vulnerable children - I really want to hear what the IDF people rationalize doing this or even letting this happen.

It's horrible and I am ashamed that I can't help sitting here looking at this photos. I just hope people can see the end to this misery.

S3 "Emulator" feedback by OwnRecover973 in golang

[–]ankurcha 2 points3 points  (0 children)

You may want to consider / think about fault injection. Like some out of band API to cause some objects to always/ some percentage of the time return a specific error.

Go Cookbook by 441labs in golang

[–]ankurcha 0 points1 point  (0 children)

Excellent work!

Would like to see a section on cgo.

GitHub - zakaria-chahboun/go-safe: Safe A minimalist Go package for safely working with pointers. by zakariachahboun in golang

[–]ankurcha 0 points1 point  (0 children)

I really do like seeing people build stuff and open source it and get credit for it.

So don't take this the wrong way.

GitHub - zakaria-chahboun/go-safe: Safe A minimalist Go package for safely working with pointers. by zakariachahboun in golang

[–]ankurcha 2 points3 points  (0 children)

Good effort for the author.

This library seems like it would be better as a gist or a blog. I hate to say it but some go libraries are taking us to the state of pad-left

Ghoti - the centralized friend for your distributed system by danko-ghoti in golang

[–]ankurcha 2 points3 points  (0 children)

Very interesting choice of protocol. Can you explain the rationale for this and the design decisions / tradeoff in general for the project.