290 karma · joined Jun 16, 2015 (11y ago) · 111 submissions
comment 5y ago · link · parent
GC.TryStartNoGCRegion Method
Attempts to disallow garbage collection during the execution of a critical path.
https://docs.microsoft.com/en-us/dotnet/api/system.gc.trysta...
comment 6y ago · link · parent
Moishe Lettvin - What I Learned Doing 250 Interviews at Google. It is on Etsy Eng channel Youtube url with the relevant time frame https://youtu.be/r8RxkpUvxK0?t=532
comment 6y ago · link · parent
H1-B do get sponsored green cards, at least for the non-startup companies. IIRC, any H1-B having more than one extension i.e. > 6 years has to have a green card application pending. H1-B doesn't have country caps.
The green card system however has per country caps, which impacts primarily people born in India, China, Mexico,El Salvador, Guatemala, Honduras, Vietnam and Philippines. If you are born in Greece and come to USA on H1-B where a company sponsors green card for you, you would get it in around 1-3 years.
Source: Was born in India and also had a roommate from Greece who got green card in about 14 months after being in USA.
EDIT: Added El Salvador, Guatemala, Honduras and Vietnam to list of countries impacted based on https://travel.state.gov/content/travel/en/legal/visa-law0/v...
comment 8y ago · link · parent
I mean it would be like Amazon paying Apple a cut, if I buy a TV from amazon. AFAIK, it is only for digital goods that Apple charges, but I am not sure how the demarcation works.
On the flip side, if Apple/Google allow any app to use in-app purchases without a commission, then all apps will use in-app purchases for everything.
comment 8y ago · link · parent
For example, opportunities like say going to Recurse Center, or having the freedom to have a decently long sabbatical etc. even with a 6 month emergency fund are not available. The other thing is no freedom to pursue any other job, i.e working on a startup idea during the evenings or weekend, or writing a technical book etc. for money is not allowed.
There are certainly issues with the H1b system, i.e. the lottery, low salary cap, multiple applications per person to game the system etc, but employer stickiness is not one of them, at least for people who are qualified.
The major problem is due to long wait for green card for people from China, and almost impossible wait for people from India. My friends who were not born in these two countries have been able to get a green card within about a year, after getting an H1B, while I am looking at a more than 20-30 year wait.
comment 8y ago · link · parent
I don't know how easy/difficult would it be for companies to move from equity based compensation to normal salary though, if something like that is implemented.
comment 8y ago · link · parent
For example, if you have a passion for say writing and computer science, I would recommend to get a job in CS, since money/time ratio is usually higher there.
16.
Rise of citizen developer: assessing security impact of online app generators(blog.acolyer.org ↗)
2 points · by akshat_h · 8y ago · discuss
comment 8y ago · link · parent
I work mostly in enterprise backend so variable names are typically boring, but I have never heard of emojis being used in var names.
20.
The most important study of the Mediterranean diet has been retracted(qz.com ↗)
2 points · by akshat_h · 8y ago · discuss
comment 8y ago · link · parent
It is kinda at a certain level in your career you are expected to just know how to do it. For other skills like management, you at least have your peers who are doing the work day in day out, who you can learn from. Interviews are closed room, usually, though I have had some where one person was shadowing the interviewer.
Also, if you take a terrible interview, its not gonna really impact you. There is no performance report that'll negatively impact you. There will be another candidate, who you'll have a rapport with. Or someone else will interview someone else.
As you said in your anecdote about the binary search problem, not everyone is best at being an interviewer.
But aside from there being a dedicated person for interviewing for big companies, or outsourcing interviews for startups, I don't really see a solution. And outsourcing, whether internally or externally comes up with its own set of problems.
comment 8y ago · link · parent
Weird tricks in bit manipulation, linked lists, array, hash problems etc. are all standard in interviewing and are still used, even at Google, at least 2 years ago, when I last interviewed there.
This works though as Google's, and the industry in general has a policy of rejecting candidates, rather than accepting them, because hiring is very risk-averse. Candidates switch jobs frequently at the beginning of their career and so there is a rotating pool of good candidates the companies can pick from.
comment 8y ago · link · parent
Is there any comprehensive resource for these, or does everyone kind of fiddle around and stumble on these independently. I have always been curious about 'hacks' such as the Fast inverse square root method. How does anyone figure these out in the first place?
24.
Greater speed in memory-bound graph algorithms with just straight C code(lemire.me ↗)
1 points · by akshat_h · 8y ago · 1 comment
comment 8y ago · link · parent
My main point here is, even if you are writing about the most mundane topic, in CS there is bound to be something, a different command line flag, a different point of view, something old rediscovered etc. just by the virtue of writing on it. Will it happen on your first attempt? Probably not.
You can start to write about the most mundane or the most esoteric thing. Only with practice would you find a niche, and there eventually will be some gems.
28.
Validating UTF-8 strings using as little as 0.7 cycles per byte(lemire.me ↗)
20 points · by akshat_h · 8y ago · 1 comment
comment 8y ago · link · parent
Another thing that stuck me was about the use of a semicolon, comma etc to get working. It is a common pet peave when searching for documentation.
For example for a command
$ program <file_name>
Is file name in quotes, <>, or something else? What to do if there are quotes in the filename? Single or double quote? Two examples in the documentation, one simple, and one as complex as possible would be great. This is one thing I end up going to stack overflow again and again.
30.
The Story of Me-A real programmer(hackernoon.com ↗)
1 points · by akshat_h · 8y ago · 1 comment