HNHacker News
TopNewBestAskShowJobs

divyekapoor

199 karma · joined May 12, 2016

submissionscomments
divyekapoor··on $65k/month website running on one index.php file
There's a ton of hard work on this website. The single index.php file is not interesting. Most of the work is probably in Javascript / CSS.
divyekapoor··on Ask HN: What kind of ideas are not VC-backable but should exist in the future?
See Smartsheets (or Airtable) - they got it right.
divyekapoor··on Ask HN: How to employ the 30M Americans that will lose their jobs?
Everyone of us might be dead in the next 30-50 years, but the coming generation will bear the fiscal burden of this profligacy (either implicitly through inflation or through a currency devaluation).

If so much money is printed (& spent) and (real economic) inflation is not seen, the logical implication is: a) The wealthy absorbed the domestic money in (real) asset price inflation (hence lower yields and higher wealth inequality). b) The money was "exported" out of the country to purchase foreign goods and services (leaving an interest rate burden that will eventually suck the "real" tax budget dry).

divyekapoor··on How are Unix pipes implemented?
Great response - Thank you. Seems I misunderstood the question.
divyekapoor··on How are Unix pipes implemented?
If I remember correctly, this work was an end of semester advanced OS/Networking class presentation. I picked Pipes, others picked the filesystem, device drivers, CUDA, process scheduling etc. For the master’s thesis, my work was on active indoor localization and tracking (early work before indoor Google maps was launched).

Re: your second question, I guess you’re referring to identifying a FIFO on the filesystem - that’s a simple ls -la - FIFOs show up as regular files with the p attribute. For procfs or sysfs - just ls /proc or ls /sys

Man page: http://nersp.nerdc.ufl.edu/~dicke3/nerspcs/ls.html

You should see the p attribute for FIFOs on the filesystem. Sysfs and procfs map onto internal (in-memory) kernel data structures, so those might just show up as regular files in the “virtual” filesystem. So cat, grep etc. on these files will be just reads/writes from/to the appropriate memory space in the kernel or for read only files, they may be “code generated output” that allows for inspection of some internal state in the kernel.

divyekapoor··on How are Unix pipes implemented?
"The Linux Kernel Implementation of Pipes and FIFOs (2011)" is a detailed look at the Linux Kernel internals of Pipes and FIFOs.

https://www.slideshare.net/divyekapoor/linux-kernel-implemen...

Long story short: pipes and FIFOs are implemented on a virtual pipeFS and an internal 64K buffer is used for holding data in memory when transferring between processes. Locks on VFS inodes on pipefs are used for synchronization across threads / processes.

(Full Disclosure: I'm the author; this work was done as part of my Master's degree and discusses Pipes and FIFOs as implemented on pipefs for a kernel around 2011).

Hope this is interesting to the people on the thread.

divyekapoor··on Java's URL.equals() Performs DNS Resolution
And even with the DNS resolution, they'll get it wrong.
divyekapoor··on Show HN: Compound Interest Spreadsheet with Salary Increases
Inflation adjust those numbers and account for at least 1 bust and hyperinflation phase.
divyekapoor··on Finally a decent alternative to make?
I hate to break it to the author - despite the effort put in, task is solving the wrong problem. The biggest problem in build systems is not the syntax, it's dependency management and reproducibility.

Buck / Bazel and to a very minimal extent make, get this right. There are pattern match rules and extensibility rules. The dependency graph largely works.

Task is trying to be a decent make alternative, but it's solving a years old problem. The next problem in build systems needs more thought and execution.

Best wishes, Divye

divyekapoor··on Ask HN: Potentially Moving to SF / SV with a Family
School district homes in SV (3b 2b 1300sqft+) are in the 1.5M range or higher near the top employers in the Peninsula. If you're ok accepting a 40min+ commute, the cost reduces to about 900K Townhome + HOA in a good school district.

A family of 4 in the bay area with household income at $105350 is low income (http://www.mercurynews.com/2017/04/22/in-costly-bay-area-eve...). At 150K you'll be living in rented accommodations with $3K - $3500 in rent per month.

If you consider that your wife will start working, please be aware that daycare starts at about $1.5K++ per month (it might be advantageous for your wife to be a stay at home mom below a certain salary level).

I would recommend targeting a 200K+ total household income for this to work for you.

divyekapoor··on An Introduction to Geometric Algebra
Thanks for the clear and concise exposition. It was quite useful.
divyekapoor··on Epic Games chief pays $15M to protect 7,000 acres of North Carolina wilderness
A conservation easement is not a payment. Sweeney didn't actually pay $15 million. He just gave up the right to develop on a piece of land he wasn't ever going to develop on anyway. This gives him a $15 million tax deduction over several years that he can use to offset his tax liabilities. Since he donated $15 million worth of property rights, he probably has a lot of them.

Not very different from Trump's conservation easement donation in New York.

divyekapoor··on The Linux kernel hidden inside Windows 10
Excellent preso. Thank you.
divyekapoor··on SyntaxDB – Quickly look up syntax for programming languages
Bash... sorely missing and sorely needed. :)
← PreviousPage 2 of 2