2,464 karma · joined Jun 25, 2020 (6y ago) · 493 submissions
comment 2y ago · link · parent
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
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
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.
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
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
[1] "until such enumeration shall be made..." https://www.archives.gov/founding-docs/constitution-transcri...
comment 3y ago · link · parent
If they wanted to work at another university in Minnesota it would have been fine.
comment 3y ago · link · parent
comment 3y ago · link · parent
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
Overall the claim that Amazon takes 25 percent of H1Bs is extremely incorrect.
comment 3y ago · link · parent
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
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.
comment 3y ago · link · parent
comment 3y ago · link · parent
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
comment 3y ago · link · parent
comment 3y ago · link · parent
> [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
comment 3y ago · link · parent
comment 3y ago · link · parent
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
"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.