This is a relatively fully-featured typing test in only 80 lines of Python code. It uses escape sequences to style the text, and does not have any external dependencies.
This is true—some of the people I met in Philly had serious drug addictions but their rent was only 300 a month for a whole house. I genuinely don’t think there is any equivalent in SF. That is probably also why I almost never saw tents or similar in Philly.
I have only lived for extensive periods of time in two cities: SF (2 years about) and Philadelphia (4 years). The biggest difference between them is that even in some of the worst areas of Philadelphia in terms of drug crime, there were far fewer people actively dealing or doing drugs on the streets in large groups. It was more spread out—there were issues in all areas of the city, but there was no area with the sheer concentration of say the Tenderloin or SOMA. There were basically no differences in terms of the transit systems—I don’t think BART or MUNI are any worse than SEPTA.
I find sometimes the only way to get good results for obscure movies like that is to search in the original language. For example, searching for “tian zhu ding” surfaces pretty good results for me. Also those real life events are listed on the wikipedia page at the bottom of the synopsis for each vignette. I’m obsessed with that movie, though. Good taste!
To be honest I don’t use the type annotations given by the IDE that much, and I also only encounter them in my work code base (pymongo), so I can’t comment on that part. I was mainly commenting just on its ability to handle large code bases.
I use PyCharm for my job as well as for personal projects, and it handles large codebases with type annotations very well. I would compare it to Visual Studio (not Code) in the sense that it’s a batteries included deal, which means larger initial size but I use maybe two plugins.
This is referred to as “straight piping” in the car community, and you are correct it’s basically replacing the entire exhaust system with a straight pipe from the engine to the back. Even very weak Honda’s can be absurdly loud with this.
Mathematica is both closed source, and very idiosyncratic. It is primarily useful as a way to check things, but I have never seen anyone in actual research use Mathematica.
Also one additional comment is that you are setting precision in number of bits, not in decimal digits. It obviously runs much faster when it is only computing log2(20000000) not 20000000 digits of precision.
It definitely does calculate it otherwise it would diverge significantly at lower digits from the Gauss Legendre and Chudnovsky algorithm that I compared it to. It just defers calculation to MPFR, the C library Julia binds to for BigFloat calculations.
Thanks for looking into this! That is interesting, I wonder if it varies a great deal based on the implementation of the BigFloat rather than the language that it is implemented in.
While this is impressive, it is neither the same algorithm, nor even the same type of language (I already know Julia is much slower than C). I don’t think it is much of a relevant comparison for a benchmark when almost nothing is the same except for the expected answer. Perhaps if Gauss Legendre were implemented in Mathematica it would only take 3 seconds! There’s no way for us to know.
BigFloat internally is not binary, it uses an array because it is made for arbitrary precision. There will absolutely be small errors at the end but it’s easier to say 20M than 1.999999M digits of pi.
Thank you for the feedback. I will try to remove as many of the explicit type hints as possible. The main reason I added them everywhere is because I found sometimes there would be instability at super low decimal ranges because of type promotion
No, it is basically only useful as a programming exercise. You only need like 40 digits to compute the circumference of the universe to the precision of a hydrogen atom.
I would love to see the timings for Java runtimes. The various implementations of BigFloats seem to be very customized to the language, so maybe you could do it faster!
In the article I compare my implementation to the MPFR pi implementation which is in pure C. So the fact I’m able to get close to that performance in Julia is impressive(I think).
“when the final slight is extremely out of proportion compared to the previous ones, having that be "the final straw" becomes farcical.” I think we are arguing past each other because this is exactly what I’m saying—the phrase is intended to be used for these exact farcical situations. You seem to want there to be a ton of nuance in an aphorism, which you will simply rarely get. The phrase is used to communicate a sense of someone not reacting and then reacting all at once—your arguments about the exact differential between different events in the sequence leading up to the breakage of the back are irrelevant because that is not the point of the phrase.
> “She’s never said or done anything to distance herself from her family,” Hilary Plum, an author and academic, wrote in Fence, a nonprofit literary magazine.
Kind of buried the lede here…and then this point is never addressed again.
> “I was skeptical when I met her,” Ms. Gregorian added. “And then I just opened up to her, as if she had hypnotized me.”
I very much wish the article gave us the pleasure of reading some of the arguments that Ms Koch made that ameliorated her family’s funding of climate change denial. Enjoy the profits of climate change for ~40 years, rebrand once you’ve made your money—kinda genius.
The reason the phrase was coined to describe exactly that kind of illogical reaction you are describing. It is used to describe seemingly insignificant additions that will cause people to buckle.