Better HN
topnewbestaskshowjobs
Log inSign up

returningfory2

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

Submissions

comment 2y ago · link · parent

I had a similar experience! At first I thought freetaxusa was too good to be true so I filled out TurboTax as well. When I finished, my freetaxusa refund was larger! Like you, I had made a mistake when using TurboTax.

comment 2y ago · link · parent

Do you think there should also be a “--make-type-violations-into-warnings’ flag?

comment 2y ago · link · parent

It doesn’t need to be either/or. We can simultaneously increase housing supply through new construction and disincentivize suboptimal uses of housing you describe.

comment 2y ago · link · parent

My initial suspension is that this falls into the "In most cases it's not even an optimization" case, but do correct me if I'm wrong.

When you create a new Docker image with a recompiled Rust binary, only the last Docker layer will need to be downloaded to the device. Incremental caching means Docker won't re-download the base layer. The last layer is basically the new binary itself. So I don't see how it would be slower than copying the raw binary. But maybe I'm missing something.

comment 2y ago · link · parent

Minimizing Docker image size is my favorite premature optimization.

In most cases it's not even an optimization! Docker's layered caching means the most relevant size is the diff between the base image and the final image. This is generally independent of which base image you use.

It has a bunch of negative consequences like in this blog post.

It's something that many people new to Docker feel they should be doing, so you see it a lot.

Just an all-round great premature optimization.

comment 2y ago · link · parent

This is a disgusting comment.

comment 2y ago · link · parent

Are Finnish families flying to the Mediterranean and the Canary Islands for culture or for a beach vacation? I'm guessing the latter. And to replicate this, Americans don't need to leave the US - they can fly to south Florida any time of year, and a bunch of other places like California during the summer.

Americans travel a bunch, and I'm not convinced they travel shorter distances than Europeans. It's just because the country's so big, it's not international.

comment 3y ago · link · parent

This comment is factually incorrect. As part of the deal with OpenAI, Microsoft has access to all of the IP, model weights, etc.

309.

Canada's untapped talent: the remote hiring opportunity you're missing(shotwell.ca ↗)

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

comment 3y ago · link · parent

Just a note that it seems many people think the main problem isn't the context switch. Rather, Linux by default allocates a very large stack to every thread, and thus many threads lead to high memory usage. Async makes this better.

See e.g. this recent clip from one of the engineers on Project Loom in which they argue that the context switch is relatively low overhead: https://youtu.be/07V08SB1l8c?si=i0v9w90Kb_M0I4gP&t=966

comment 3y ago · link · parent

Agreed, though I'm guessing the "why" is that those parts of the constitution are not considered relevant anymore. It's like the part of article 1 section 2 of the Federal Constitution that describes the initial apportionment of seats in the House [1]. It makes sense it was put in there, but nowadays it's irrelevant.

[1] "until such enumeration shall be made..." https://www.archives.gov/founding-docs/constitution-transcri...

comment 3y ago · link · parent

To be clear, the problem in the article is not quite the location per se (although the author tries to make it about that because it makes their position more defensible). The problem is that they were proposing to continue their research in the same university as their PhD. Which is generally considered not ideal.

If they wanted to work at another university in Minnesota it would have been fine.

comment 3y ago · link · parent

I don't see this as being a counterpoint. From the perspective of Pike's advice both "binary search over a sorted array" and a "BinaryTree object" are identical. They are just different implementations of the same data structure.

comment 3y ago · link · parent

Hey, your NYC job postings do not seem to have salary ranges, but they are now required. https://www.nyc.gov/site/cchr/media/pay-transparency.page

comment 3y ago · link · parent

I believe there is no publicly available data that allows one to calculate the exact percent of new H-1B numbers used by a specific company.

But if I go into USCIS's H-1 data hub, I can find some information. For FY-2022 Amazon had 12.5k petitions approved. But drilling into the data we see that less than 4k of those were for _new_ petitions - the others were extensions of existing petitions. 4k out of the H-1B quota is less than 5% (there are 85k new H-1B visas per year). But even that is an overestimate because a new employee transferring to Amazon will require a new petition but won't count against the quota.

Overall, the best guess would be that Amazon use low single digits percent.

comment 3y ago · link · parent

Those LCA applications aren’t 1-1 with H1B quota numbers. Eg after 3 years when renewing a H1B the employer needs to file an LCA but that won’t count against the cap. Similar for H1B transfers and renewals past 6 years.

Overall the claim that Amazon takes 25 percent of H1Bs is extremely incorrect.

comment 3y ago · link · parent

I think just running Postgres via the standard Docker image solves most of these issues.

Also an in memory Postgres would be nice, but Docker again gives an easy way of setting up “throwaway Postgresses”.

This all assumes Linux ofc.

comment 3y ago · link · parent

There’s a good video in which a YouTube creator gets a tour around the US-Mexico border with an Arizona sheriff and discusses these kinds of issues: https://youtu.be/GdYAYgbf5Uc?si=RD8b8NTfxsyv0urz

There’s also a Texas sheriff video, but the Arizona video is more interesting IMO because the sheriff knows more about how immigration law impacts border enforcement.

comment 3y ago · link · parent

There’s an optimization technique I’ve used that I think could be useful for this kind of problem. It’s similar in spirit to the post.

The post deals a lot both with strings and maps with strings as keys. One idea is to intern these strings using an interer like [1] which returns string keys as monotonically increasing integers starting at 0. Then instead of a map you can just have a regular vector with the interned key as the index into the vector. This gives you the map functionality with very good performance.

[1] https://docs.rs/string-interner/latest/string_interner/

comment 3y ago · link · parent

Out of curiosity, do you make a lot of money from the ads? I find small niche sites like this to be somewhat less nice to use because of the ads, especially on mobile where they take up lots of limited real estate. And it seems to me that they can’t be generating that much money given the niche topic. But maybe I’m wrong!

comment 3y ago · link · parent

> Comparing those numbers with a similar api built using fastapi and asyncpg, there was if i remember correctly at least 4x to 5x throughput increase.

I wonder to what extent this improvement comes from not using Python, as opposed to using this alternative solution? For example after Python to Go migrations it’s common to see this kind of speed up I believe.

comment 3y ago · link · parent

I've seen it a few times, but honestly in the US I feel it's not much more than "thoughts and prayers". If you're on a H-1B and get laid off, you need to find a new job within 2-4 months or else you have to leave the US. No amount of "visa support" from the company that laid you off gets around this rule.

comment 3y ago · link · parent

I feel your comment is equivalent to the author's statement, rather than being a refutation of it. Most work at Google involves writing web servers. Thus, e.g., "simplifying building web services" and "improving productivity of Google engineers" are kind of the same thing.

comment 3y ago · link · parent

There's one small part of the article that IMO is sort of key to understanding the why:

> [for every account] we keep two separate strictly positive integer amounts: one for debits and another for credits

It is not sufficient that their integer type is able to handle individual transactions. Their integer type must be able to handle the sum of the absolute value of all transactions that have occurred on an account. And I think it's easy to come up with realistic situations where you hit that.

So say you take the NYSE, which trades about ~$18 billion per day [0]. This is ~$1.8 trillion cents, or about 2^51 microcents. After 2^12 business days (~=16 years) you'll already be hitting the limit. (This is just a toy example ofc.)

[0] https://www.nyse.com/trading-data#:~:text=The%20New%20York%2....

comment 3y ago · link · parent

I'm not sure what you mean by "dynamic scoring" here - maybe you mean a points based immigration system? The article is not about this. It's about how Congress scores legislation based on its economic impact, and is advocating for using a system called "dynamic scoring" for scoring immigration law. It has nothing to do with how workers are treated by companies.

comment 3y ago · link · parent

Right right, but I wonder if there is some weird edge case where some Java program relies on threads being real OS threads...like, for sure Java threads being OS threads is an observable feature of a running Java program (you can see it in htop!). And maybe someone has built a Java based system somewhere that uses that...

comment 3y ago · link · parent

> Asylum seekers and refugees are U.S. persons under current law.

Just a nit: there is a difference between an asylum seeker (someone who has made an application for asylum) and an asylee (someone whose application for asylum has been approved). Only the latter are US persons for ITAR purposes.

Given the long waiting times for asylum applications (multiple years), the low approval rate (~25%) and the fact that asylees can apply for permanent residence after 1 year, I would expect the number of asylees to be dramatically smaller than the number of asylum seekers.

comment 3y ago · link · parent

Can you just use green threads (goroutines) from the get-go? Or, by Hyrum's law, is the fact that legacy Java threads are really OS threads part of Java's de facto public API?

comment 3y ago · link · parent

An asylee is someone whose application for asylum has been approved. The hack in which you cross the border illegally and then apply for asylum does get you a work permit, but won't get you one of these jobs.

comment 3y ago · link · parent

By the way, SpaceX's updated job descriptions are consistent with this interpretation. They now say:

"To conform to U.S. Government export regulations, applicant must be a (i) U.S. citizen or national, (ii) U.S. lawful, permanent resident (aka green card holder), (iii) Refugee under 8 U.S.C. § 1157, or (iv) Asylee under 8 U.S.C. § 1158, or be eligible to obtain the required authorizations from the U.S. Department of State. Learn more about the ITAR"

They have explicitly added refugee and asylee.

1
101112
17