200 karma · joined Oct 22, 2018 (8y ago) · 131 submissions
comment 10mo ago · link · parent
comment 11mo ago · link · parent
I'd actually compare screen OCR to screenshots. Instead of every app and every website implementing their own screenshot functionality, the system provides one for you.
Same goes for text selection. Instead of every context having to agree on tagging the text and directions, your phone has a quick way of letting you scan the screen for text.
To be fair, I still use the "hold the text to select it" approach when I want to continue with the "select all" action and have some confidence that is going to do what I want.
5.
Colonial spider community sustained by chemoautotrophy(subtbiol.pensoft.net ↗)
3 points · by porkbrain · 1y ago · discuss
comment 1y ago · link · parent
It's easier and quieter than stopping the clock and searching for a free queen piece if your position is decisive and your opponent stubborn. Or your piece to be captured immediately. So not necessarily "cocky" as the answers suggest but rather "mindful to other players".
comment 1y ago · link · parent
UPDATE: as sibling pointed out indirectly, it's eight thousand Popocatépetls [0].
[0]: https://www.wolframalpha.com/input?i=449.5+*10%5E9+*+%28thic...
13.
Ask HN: What engineering trivia earned you the most cred
5 points · by porkbrain · 1y ago · 4 comments
comment 1y ago · link · parent
2. A key of a function is something like `keccak256(function's signature + docstring)`
3. A value is a list of the function's implementation (index being the implementation's version) and some other useful metadata such as the contributor's signature and preferred function name. (Compiler emits a warning that needs to be explicitly silenced if preferred name is not used.)
4. IDE hints and the developer confirms to auto import the function from the global KV store.
5. Import hash can be prepended with a signers name that's defined in some config file. This makes it obvious in git diffs if a function changes its author. Additionally, the compiler only accepts a short hash in import statements if used with a signer.
package.toml
[signers]
mojmir = "mojmir's pubkey"
radislava = "radislava's pubkey"
source.file // use publisher and short hash
import "mojmir@51973ec9d4c1929b@1" as log_v1;
// or full hash
import "51973ec9d4c1929bdd5b149c064d46aee47e92a7e2bb5f7a20c7b9cfb0d13b39" as log_latest;
import "radislava@c81915ad12f36c33" as ln;
log_v1("Hello");
log_latest(ln(0));comment 1y ago · link · parent
comment 1y ago · link · parent
You can set the shell for some commands, for example:
```
set shell := [ "python3", "-c"]
# I can run python!
[no-cd]
foo-bar:
@import sys; major, minor = sys.version_info[:2];
assert (major, minor) >= (3, 7), "This script requires at least Python 3.7. Please link \"python3\" to Python 3.7 or higher and try again."
```And the API for your commands stays consistent for a very little effort. Of course you can achieve all this with just bash scripts but I find it faster and easier to provide a good devex this way.
comment 2y ago · link · parent
Encode a white's move exd8=N with white pawns on e7 and c7 and three black queens on f8, d8 and b8.
comment 2y ago · link · parent
comment 3y ago · link · parent
The Great Debate @ARITH23: John Gustafson and William Kahan
https://www.youtube.com/watch?v=LZAeZBVAzVw
Kahan points out disadvantages of interval maths.
comment 3y ago · link · parent
Jokes aside, I understand the fear of your own language erroding in front of you. I see how this plays into the sentiment of "these goddamn young people, polluting the language of my youth with words I don't understand!"
Yet, after calming down my own emotions, I realise that I cherish the Polish and German words in my own accent of Czech. I value immensely the work of Czech intellectuals fighting for my language against German "overlords" in the 19th century. However, I wouldn't want to give up the trace influence of German on own language. I hope future Italians feel the same way.
I think about this general problematic often. My girlfriend and I are both Czech. Yet, considerable chunk of our conversation happens in English. We both intellectually grew and continue to grow with English, making it typically a more effective modus of discussion. But Czech has its unassailable place in our relationship. The fact that we use both languages and associated idioms, cultural baggage, ..., makes for a richer life.
Good luck to other non native speakers who have to ponder and navigate the same concerns about their identity.
comment 3y ago · link · parent
- The factories are not joint ventures, they are fully owned by Taiwan.
- Build-outs in US are not going to be the most cutting edge technology.
- TSMC has ~$36bn in capital expenditures in 2022. The Arizona fab is ~$9bn a year. Majority of TSMC investment remains in Taiwan.
- TSMC produces ~15m waifers a year, ~80% produced in Taiwan. Arizona fab will produce ~250k waifers a year from 2024, ~500k from 2026.
- TSMC has at least 5 other build outs in Taiwan.
- The notion that US is going to be self sufficient in terms of chips thanks to the Arizona fab is flawed: 1. By volume, most chips are not what this fab is going to ship. 2. There are other chip foundries with specialty processes in Taiwan. 3. Taiwan leads the rest of the pipeline: assembly, packaging and testing.