Better HN
topnewbestaskshowjobs
Log inSign up

returningfory2

2,464 karma · joined Jun 25, 2020 (6y ago) · 493 submissions

Submissions

comment 4y ago · link · parent

In the book The Affordable City [0], this is illustrated with a really powerful analogy:

Every year in the United States, the Toyota motor company sells about 2 million regular Toyota cars and 300,000 expensive luxury Lexus cars. Suppose that we introduced a law that each motor company can only sell 300,000 cars a year. Which cars would Toyota continue to make?

[0] https://islandpress.org/books/affordable-city [1] https://pressroom.toyota.com/toyota-motor-north-america-repo...

comment 4y ago · link · parent

The point of view in Go is that the specific format is irrelevant. The design choices made by the format don't matter. What you think is "nice" code and what someone else thinks is "nice" code doesn't matter. The benefit of formatting has nothing to do with making the code conform to anyone's definition of "nice". It's just about having a format that's passable and that is then applied uniformly.

comment 4y ago · link · parent

That seems to be a very theoretical approach to me.

But in the end I have literally sat in an interview with someone who has professional experience and who couldn't write a function to find the smallest element in an array without significant help from me. That's just a fact. I'm not sure what the theoretical basis of that was. I'm not sure how the person could have experience and not be able to complete such a simple thing. All I know is that it literally happened.

Trying to argue from some theoretical principles that it couldn't have happened doesn't make much sense to me given that, like, it actually happened.

comment 4y ago · link · parent

For example, I have interviewed candidates with professional experience who weren't able to correctly write a function to find the minimum element in the array. This is what I meant by "basic things".

comment 4y ago · link · parent

> I wish a company would run an experiment where they just higher at random from a stack of team vetted resumes. I think the results would almost be the same as being super picky.

Have you ever interviewed someone whose resume looked good but who couldn't code basic things? The kind of candidate FizzBuzz was invented for?

I interview at a FAANG and encounter these candidates all the time. I feel the approach of "if their resume looks good they must be fine technically" makes sense until precisely the point when you interview one of these candidates.

comment 4y ago · link · parent

For me the problem with Ireland's weather is the lack of sunshine. It gets about 1500 hours of sunshine a year, compared to 2500 in New York and over 3000 in California. Growing up in Ireland I didn't identify this as a problem, but after moving to the US I realized that lots of sun, even on freezing days, is just so nice.

comment 4y ago · link · parent

> Is this not considered reasonable these days?

There's currently a backlash against LeetCode style interviews, and I think one part of this backlash is that dismissing anything that feels LeetCodey (like asking about time complexity) is considered reasonable.

comment 4y ago · link · parent

I think the test infrastructure for the book described in that post is just so smart.

For those who haven't read the post: the test infrastructure compiles (and runs?) the interpreter code as it exists at the end of each chapter in the book. So not only is the code as a whole guaranteed to compile, but if you follow along correctly, at the end of each chapter you are guaranteed to get something runnable.

comment 4y ago · link · parent

Having a "clubby" culture is one explanation, but another factor could be that the NYRB just gets very high profile contributors. For example Zadie Smith has written essays for the NYRB, while also being the subject of reviews. Does this mean Zadie Smith is a part of the club? Or that NYRB is just able to get high profile authors like Smith to write for them?

I'm sure you could run the same experiment with e.g. prestigious math journals. There is probably a significant overlap between authors and reviewers.

comment 4y ago · link · parent

I wonder if you would be willing to share how it worked out with Oxide? Did you submit the candidate materials and go further into the process? Of course, feel free to ignore these questions. :)

I (like many people around here) think Oxide looks like an awesome place, but I was disappointed to discover how onerous their initial candidate screen is. For me it's just a huge risk to put in a lot of work for a single company because they may (for whatever reason) not follow up afterwards.

comment 4y ago · link · parent

I entirely get the desire to live in a rural environment and keep Port Reyes as it is. The problem is that this desire is in direct conflict with housing being affordable. If everyone who lives in a non-dense neighborhood forces it to stay that way, new housing cannot be built and housing prices skyrocket because the population is increasing. This is literally the story of the Bay Area housing market.

I think there is a balance between not changing the built environment too much (the NIMBY position, say) and building enough new housing to keep prices reasonable (the YIMBY position). The problem is that over the last decades public policy has been dramatically in favor of the NIMBY position. And I think what we're seeing now is a backlash against this.

comment 4y ago · link · parent

> If trees needed to photosynthesise faster they would already be doing it.

I find this theoretical comment so strange because it completely contradicts our experimental knowledge of plants.

Humans been selectively breeding plants for food for thousands of years. Corn that was selectively bred in the Americas looks and functions almost nothing like its wild ancestors. But - by this theoretical argument - this selective breeding shouldn't have worked! If making the plant more food-efficient was possible the corn "would already be doing it".

comment 4y ago · link · parent

Just a nit, really: this is true at smaller companies but many bigger companies have a "batch PERM" system such that individuals essentially skip the wage determination and recruitment steps. See e.g. [1]. In such cases hiring to PERM approval is 7-11 months.

[1] https://www.teamblind.com/post/Which-companies-have-a-BATCH-...

comment 4y ago · link · parent

> 9. Use docker-slim to remove unnecessary files

Doesn't this, in practice, make the Docker image size situation worse? Docker caches images in layers and reuses e.g. base layers for all operations. Creating a custom single-layer image for each of your binaries negates all the benefits of the layered caching. You have to download the full image on each pull, rather than just the diffs.

Conversely, when I pull the Docker image for an updated version of my software, I typically only have to pull the last few small layers because the base image hasn't changed.

comment 4y ago · link · parent

+1, I find it bizarre that a new language feature is being added to save two lines in a corner case.

comment 4y ago · link · parent

Interestingly Go is very disciplined about not adding new features in general - and it gets a lot of criticism for that!

comment 4y ago · link · parent

Congratulations on finally getting on a path to citizenship, that's really great to hear.

Yeah, in general the US immigration system discriminates between undocumented immigrants who (a) entered on a visa, and then never left versus (b) those who crossed the border illegally. People in category (a) can apply for green cards in many situations (e.g. marriage, or employment sponsorship after getting TPS) that those in (b) can't. Often times the wider public is not aware of this distinction.

comment 4y ago · link · parent

> But I resent that we live in a system where any independent creativity is exploited for financial gain.

So what's the alternative system? One in which creators of delightful projects like Wordle are prevented somehow from making money from their creations? That seems weird and bad.

comment 4y ago · link · parent

Yeah, I think I messed up which things you need to partition. Given a set of possible solutions, and a guess, you partition the solutions based on which result Wordle gives back. Then you can calculate the expected number of solutions that will be left after you make that guess. This takes O(N). Going this for all guesses is then O(N^2).

comment 4y ago · link · parent

FWIW, your O(N^3) algorithm can be equivalently implemented in O(N^2) by using the following observation: a word is not eliminated by a guess if and only if the result of testing the word against the solution is the same as the result of testing the guess against the solution. Using this, you can implement the algorithm like so: for a given solution, partition all of the guesses based on the result of testing them against that solution. This partitioning takes O(N). Then, the set of words that will be left over from a guess is equal to all the words in the same partition as the guess. This makes it easy to calculate "how many words can be eliminated from a particular guessed word".

I'm making this comment because I started with the same O(N^3) approach and then realized this. :)

comment 4y ago · link · parent

+1 I think this point is really important.

When discussing pay versus employee retention, the toy model people present often implicitly assumes a high percentage of employees will leave if pay lags. But the economics totally change based on the percentage, and empirical data suggests the percentage is actually pretty low.

comment 4y ago · link · parent

A word of warning for anyone inspecting the Wordle source code: the answers for each day are stored in a list ordered by day. If you search for today's answer, the next word in the list will be tomorrow's answer, etc. Be careful not to ruin the fun by seeing tomorrow's answer in advance!

comment 4y ago · link · parent

RE small images: advice like this always seems to ignore that Docker images are cached incrementally. If you build, say, a Go binary and then put it in a popular stock Debian or Alpine Docker image, pushing the final image to a registry will only transfer the diff over the network. The size of the diff is basically the compressed Go binary and doesn’t depend on the base image you’re using!

Then when you pull the Docker image onto a machine it’s likely the base image is already in cache so again it’s only the diff that is transferred.

It’s sometimes said this Alpine stuff is a premature optimization, but in most cases it’s not even an optimization.

comment 5y ago · link · parent

> It looks like I am will be going with London, purely based on clarity of visa procedure.

Have you a sense of which US visa you would qualify for? Most people don’t qualify for a US work visa from outside the US. Folks are often surprised to learn this. If you’re considering moving to the US the first step is to figure out what visa you could get, otherwise it will just be disappointment when you’ve invested in the idea of moving and then realized later it’s not possible legally.

comment 5y ago · link · parent

> That said, I don't believe that racism/social issues are worse in the US than Spain

My current theory is that the difference between Europe and the US right now is that discrimination is about the same but that in the US racism is openly discussed and criticized. This leads to an illusion that racism is worse in the US because we hear about it more. In this theory Europe like the US in the 60s in which racism was prevalent but sort of more hidden in the dominant white public consciousness.

comment 5y ago · link · parent

> What were the steps 10 years ago that weren’t complex?

I would really like to hear the answer to that! And why the 10-years-ago thing can't be done today.

447.

C++ Move Semantics Considered Harmful (Rust Is Better)(thecodedmessage.com ↗)

8 points · by returningfory2 · 5y ago · discuss

comment 5y ago · link · parent

Anything of type `&T` has the same sizing property as `num::NonZeroU64`: the size of `Option<&T>` is the same as the size of `&T`. So I think you would just use a plan old Option?

449.

New Typesetting System (2001 Java Reimplementation of TeX)(github.com ↗)

3 points · by returningfory2 · 5y ago · 1 comment

comment 5y ago · link · parent

> I don't really understand this article, or the current trend of job hopping.

The answer is in your comment: your friend who started recently at Intel is getting more than double the salary of the long-timers. What's not to understand?

1
1314151617