HackerTrans
TopNewTrendsCommentsPastAskShowJobs

_dhruva

no profile record

comments

_dhruva
·3년 전·discuss
Beautiful! Reinstates my faith in humanity, thank you.
_dhruva
·3년 전·discuss
When I worked at NetApp, this was a problem there too.

IIRC, the fix was for directory entries were later stored in sorted buckets (aka hash map) and only the corresponding bucket for the file name would get locked. This reduced scope of lock for atomic operations like rename and also allowed faster lookup instead of O(n) based scan.
_dhruva
·4년 전·discuss
We implemented a full blown profiler for win32 platform using RAII to track profiling data back in ~2000

https://bitbucket.org/dhruva/cramp
_dhruva
·4년 전·discuss
This is my standpoint too.

Assuming Google uses gRPC and protobufs extensively, I can only imagine a chaotic polyglot environment where buffers are copied and transformed very often.

I work at a fairly large Python shop using libraries in C. Cost of FFI is non-trivial, memory management and moving data is the usual culprit.
_dhruva
·4년 전·discuss
I work at a fairly large Python shop and we have some real performance problems with Python.

Most real world software will use many core libraries implemented in C/C++ for doing the heavy lifting. Just the FFI and creating all those Python objects makes it slow.

Python is a great language for prototyping and/or usage as a glue code.

Personally, I am more inclined to use Go for anything quick and performant. If Carbon language becomes a reality, I would bet on that since it allows seamless interoperability with C++ (and there is a large existing eco system). Else, time to learn Rust.
_dhruva
·4년 전·discuss
Over a video call, the interviewer asked a coding question and immediately put on headphones and I am sure was listening to music. There was no dialogue and I had to use visual cues to get his attention.

I coded using C++ and pass by reference. He had never seen it in his life. He refused to believe modification on a reference would modify the value in the calling function! I hoping he would be willing to discuss or run the code, this was a total let down.

Note: I have 2+ decades of coding experience
_dhruva
·4년 전·discuss
> Maybe a few companies selling build pipeline services could be persuaded, like Github and Gitlab

The problem is almost all CI/CD jobs use custom docker images bundled with distro provided compiler toolchains.

Replacing linker in CI/CD jobs transparently is extremely hard/impossible/undesirable.
_dhruva
·4년 전·discuss
I thought the original Nushell was written by Jonathan Turner.

Is this different? Some attribution in the article would help.

(Thanks for pointing, there are links to original in the article)

https://www.nushell.sh/
_dhruva
·4년 전·discuss
Having gone through a very similar journey, it took around 2 years for me to completely disassociate myself from a specific programming language. It was more a 'me' problem since I leaned on to a programming language rather than a problem domain.

I still consider myself a systems programmer mostly writing glue code in Go/Python and jumping into C/C++ as required to improve performance when required.
_dhruva
·4년 전·discuss
More out of curiosity, I tried with a newer llvm from home-brew on Mac and it worked.

    $ /usr/local/Cellar/llvm/15.0.3/bin/clang++ -fmodules -std=c++2b hello.cpp 
    $ ./a.out
    Hello, World!
_dhruva
·4년 전·discuss
Apple does not seem to think this is a problem. Their default Message app supporting both SMS/text and iMessage. They have an opt-in to send via SMS if iMessage fails and this gives it more reliability too.
_dhruva
·4년 전·discuss
Recommendation from group I trust has more significance than something based on an impersonal collection.

If Google+ groups took off and started taking social graph into search results and used it for ranking, that might have been a game changer.
_dhruva
·4년 전·discuss
Nearing 50 and am still coding. Been doing it for last 25 years and will hopefully continue till retirement.

I had a brief stint as a manager, ended up doing more coding than my team. That was the moment I decided to step back into coding again.

For me, coding is puzzle solving or playing with Lego. It is therapeutic. If someone can continue to pay me to play, why not!