HNHacker News
TopNewBestAskShowJobs

juliusgeo

338 karma · joined October 1, 2018

github.com/juliusgeo
submissionscomments
juliusgeo··on “Fortune” Typing Speed Test in 80 Lines of Python
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.
juliusgeo··on Arrest made in SF killing of Bob Lee – alleged killer also worked in tech
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.
juliusgeo··on Arrest made in SF killing of Bob Lee – alleged killer also worked in tech
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.
juliusgeo··on Google CEO Sundar Pichai Says Search to Feature Chat AI
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!
juliusgeo··on PyCharm 2023.1
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.
juliusgeo··on PyCharm 2023.1
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.
juliusgeo··on These Stupid Trucks are Literally Killing Us
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.
juliusgeo··on Show HN: 'Hello, World ' in x86 assembly, but make it gibberish
Beautiful! I love obfuscated code, but I normally do it in high level languages. Always wanted to pick up golfing in asm.
juliusgeo··on 20M digits of pi in 1 minute using Julia
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.
juliusgeo··on 20M digits of pi in 1 minute using Julia
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.
juliusgeo··on 20M digits of pi in 1 minute using Julia
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.
juliusgeo··on 20M digits of pi in 1 minute using Julia
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.
juliusgeo··on 20M digits of pi in 1 minute using Julia
Interesting! What does Gauss Legendre look like in Gambit-Scheme? I also wonder if perhaps there is a way to get the Julia implementation up to par…
juliusgeo··on 20M digits of pi in 1 minute using Julia
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.
juliusgeo··on 20M digits of pi in 1 minute using Julia
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.
juliusgeo··on 20M digits of pi in 1 minute using Julia
That is why I compared it to the stdlib implementation.
juliusgeo··on 20M digits of pi in 1 minute using Julia
That is true, but isn’t it then more useful to provide an open source method of computation at these ranges?
juliusgeo··on 20M digits of pi in 1 minute using Julia
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
juliusgeo··on 20M digits of pi in 1 minute using Julia
Thank you for posting this! This is exactly what I was looking for.
juliusgeo··on 20M digits of pi in 1 minute using Julia
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.
juliusgeo··on 20M digits of pi in 1 minute using Julia
y-cruncher is the state of the art but it is also not written in a language like julia, and doubtlessly occupies many more lines of code
juliusgeo··on 20M digits of pi in 1 minute using Julia
Thanks for the data!
juliusgeo··on 20M digits of pi in 1 minute using Julia
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!
juliusgeo··on 20M digits of pi in 1 minute using Julia
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).
juliusgeo··on 20M digits of pi in 1 minute using Julia
My algorithm only takes about 1.5 seconds for 1M digits. These are very cool resources though, I will read them.
juliusgeo··on 20M digits of pi in 1 minute using Julia
This is absolutely true—I was just putting them everywhere possible in an attempt to avoid allocations.
juliusgeo··on Twitter shut off its internal Slack, and now ‘everyone is barely working’
“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.
juliusgeo··on Twitter shut off its internal Slack, and now ‘everyone is barely working’
The severity of the reaction doesn’t really matter as long as it’s illogical in relation to the last input
juliusgeo··on The Billionaire’s Daughter Knows What You’re Thinking
> “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.

juliusgeo··on Twitter shut off its internal Slack, and now ‘everyone is barely working’
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.
← PreviousPage 4 of 5Next →