HNHacker News
TopNewBestAskShowJobs

garrison

215 karma · joined May 23, 2010

As of November 2021, I work as a developer for IBM Quantum. My comments on HN are my own, and don't necessarily represent IBM's positions, strategies, or opinions.

I have prior experience working as a theoretical physicist in government and academia, and also as a software engineer. Before that, I worked as public relations coordinator at the Software Freedom Law Center.

On the web: https://jimgarrison.org/

submissionscomments
garrison··on John Carmack on mutable variables
This reminds me of an earlier blog post by the same author: https://web.archive.org/web/20121111234839/http://www.altdev...
garrison··on Trial results for new lung cancer drug are 'off the charts'
There is https://www.fda.gov/drugs/resources-information-approved-dru...
garrison··on Trial results for new lung cancer drug are 'off the charts'
It also inherently takes at least 5 years from when a study starts to show that progression-free survival is at least 5 years.
garrison··on Show HN: Wave – Modern Open-Source Terminal (macOS and Linux)
Looks neat. A screenshot or video would be much appreciated.
garrison··on We have reached an agreement in principle for Sam to return to OpenAI as CEO
If OpenAI remains a 501(c)(3) charity, then any employee of Microsoft on the board will have a fiduciary duty to advance the mission of the charity, rather than the business needs of Microsoft. There are obvious conflicts of interest here. I don't expect the IRS to be a fan of this arrangement.
garrison··on Password protect a static HTML page
My recent solution to this problem -- for an entire static site -- was to use HTTP Basic authentication with CloudFlare Pages: https://github.com/garrison/cloudflare-pages-shared-password
garrison··on The Art of LaTeX: Common mistakes and advice for typesetting proofs
The final point, involving labels and references, could be improved by mentioning cleveref: https://ctan.org/pkg/cleveref?lang=en
garrison··on Correctness and composability bugs in the Julia ecosystem
Similar correctness issues are a big part of the reason that, several years ago, I submitted a series of pull requests to Julia so that its entire test suite would run without memory errors under Valgrind, save for a few that either (i) we understood and wrote suppressions for, or (ii) we did not understand and had open issues for. Unfortunately, no one ever integrated Valgrind into the CI system, so the test suite no longer fully runs under it, last time I checked. (The test suite took nearly a day to run under Valgrind on a fast desktop machine when it worked, so is infeasible for every pull request, but could be done periodically, e.g. once every few days.)

Even a revived effort on getting core Julia tests to pass under Valgrind would not do much to help catch correctness bugs due to composing different packages in the ecosystem. For that, running in testing with `--check-bounds=yes` is probably a better solution, and much quicker to execute as well. (see e.g. https://github.com/JuliaArrays/OffsetArrays.jl/issues/282)

garrison··on Changes at Basecamp
> I'm giving Basecamp the benefit of the doubt

It's not clear that they deserve the benefit of the doubt, if we are to believe Casey Newton's article, "What really happened at BaseCamp":

> Employees say the founders’ memos unfairly depicted their workplace as being riven by partisan politics, when in fact the main source of the discussion had always been Basecamp itself.

> “At least in my experience, it has always been centered on what is happening at Basecamp,” said one employee — who, like most of those I spoke with today, requested anonymity so as to freely discuss internal deliberations. “What is being done at Basecamp? What is being said at Basecamp? And how it is affecting individuals? It has never been big political discussions, like ‘the postal service should be disbanded,’ or ‘I don’t like Amy Klobuchar.’

> Interviews with a half-dozen Basecamp employees over the past day paint a portrait of a company where workers sought to advance Basecamp’s commitment to diversity, equity, and inclusion by having sensitive discussions about the company’s own failures. After months of fraught conversations, Fried and his co-founder, David Heinemeier Hansson moved to shut those conversations down.

https://www.platformer.news/p/-what-really-happened-at-basec...

EDIT: formatting

garrison··on Ask HN: Why are e-ink note-taking devices so expensive compared to iPads?
I have had great luck with "reMarkable Connection Utility." It bypasses reMarkable's cloud, which I have never once connected to. http://www.davisr.me/projects/rcu/
garrison··on DigitalOcean App Platform
I tried deploying a static site. DO App Platform makes the file page1/index.html available both at /page1 and at /page1/. If the page contains any relative links or images, it is impossible for both URLs to reference these links correctly. Most web servers handle this by redirecting /page1 to /page1/ before serving it. Netlify does this as well. Vercel works the same as DO in its default mode, but it allows the user to configure the trailing slash behavior to get the redirect. Hugo, for one, assumes all files are served with a trailing slash.
garrison··on I Love MDN, or the cult of the free in action
It sounds like MDN could benefit from being the work of a 501(c)(6) business league, which is how the Linux Foundation's work is funded. Money could initially come from the big existing browser vendors. It is in everyone's interest to see it continue.
garrison··on Microsoft President: We Need a Hippocratic Oath for Software Engineers
Brad Smith in 2007: Linux violates 235 MS patents, and the FOSS community must pay up. https://web.archive.org/web/20070514143032/https://money.cnn...

Brad Smith in 2020: We Need a Hippocratic Oath for Software Engineers.

garrison··on Ask HN: What scientific phenomenon do you wish someone would explain better?
Several years ago, I gave a presentation on quantum computing to the Los Angeles Hacker News Meetup. The slides are at https://jimgarrison.org/quantumcomputingexplained/ . Unfortunately, there is no video recording so they are currently lacking explanations.

My goal was to explain quantum computing in a way that is mathematically precise but doesn't require one to learn linear algebra first. To do this, I implemented a quantum computer simulator in Javascript that runs in the web browser. Conceptually (in mathematical language), in each simulation I present, I've started by enumerating the computational basis of the Hilbert space (all possible states the qubits could be in) and represented the computational state by putting an arrow beside each of them, which really is a complex number. (This similar to how Feynman explains things in his book QED.) The magnitude of the complex number is the length of the arrow, and its phase is the direction it points (encoded redundantly by its color). I've filled out the amplitude symbol with a square so that at any given point, its probability of a measurement resulting in that outcome is proportional to the area of that square. Essentially, in this language, making a measurement makes the experimenter color blind -- only the relative areas of the amplitudes matter and there is no way to learn directly phase information without doing a different experiment.

I could make a further document explaining along these lines if people are interested. The source is on github too: https://github.com/garrison/jsqis

garrison··on Raspberry Pi 4
> the much more powerful, out-of-order, Cortex-A72 core

Does this mean the new Raspberry Pi is now susceptible to Spectre-type vulnerabilities?

garrison··on Brave expands Basic Attention Token platform to YouTube
This is effectively how Amazon Smile works, although the technical details are different: instead of soliciting "donations" they promise that 0.5% of each purchase is given (by Amazon) to the user's charity of choice. But the charity does not receive the money until they "register" their organization with Amazon, and as far as I can tell there is no way for me to know if my chosen organization has done so.
garrison··on Show HN: Julia Observer – Package Browser for the Julia Language
There was a long thread about Julia / Julia Computing here: https://groups.google.com/forum/#!topic/julia-users/1zIlXQYb... . Viral said in the first post that "We will respond [to questions] back with a detailed blog post." They answered a subset of concerns on the list, but to my knowledge such a blog post does not exist.

Other than issues I mentioned in that thread, my main ongoing concern is that it is unclear where the boundary between Julia the community project (which includes their non-profit fiscal sponsorship via Numfocus) and Julia Computing, the company. Who owns the Julia trademark? Who owns the julialang.org domain? Who, ultimately, controls the direction of the project?

Ultimately, I want Julia to last for a long time, and for it to remain free software. I get the impression that all the founders want the same thing, which is encouraging. But even more encouraging would be to see the community's governance structured in a way that enforces this.

garrison··on Ask HN: How can I stop forgetting “things”?
As for an ATM card, I make a special point of keeping my wallet in my hands while I am using the ATM and my ATM card (or anything else that belongs in the wallet) is not in my wallet. If I put my wallet back in my pocket while something is missing from it, I am much more likely to walk away and leave it behind without realizing it until later.
garrison··on Hjson, the Human JSON
I see many mentions of YAML in the comments, but why not TOML? (https://github.com/toml-lang/toml)
garrison··on Why we revert to original titles
> The only option is to revert to the original title, which is at least what the author intended.

This is true when linking to blogs, but frequently in the media it is the editor of a publication, not the article's author, that chooses the title.

garrison··on Linus on "acting professionally"
I don't believe that quote is what she had an issue with.

See http://marc.info/?l=linux-kernel&m=137390362508794&w=2

garrison··on MIT's $1000 House Project
I don't know much about the MIT project, but a criticism of a related project is available in a nytimes op-ed at http://www.nytimes.com/2011/06/01/opinion/01srivastava.html

I have strong doubts that mass-produced anything is the key to solving poverty. Having people rely on outsourced production rather than encouraging the local construction industry is no way to empower them.

EDIT: That said, having such housing available for rebuilding after a natural disaster doesn't sound like such a bad idea.

garrison··on Marc Andreessen on Why Software is Eating the World
> The days when a car aficionado could repair his or her own car are long past, due primarily to the high software content.

More likely, it's because all said software is proprietary. If people got the source code to their cars' computers, you'd see a lot more people repairing their cars (and a lot more interest in automobiles in the current generation, leading to real, open innovation in the space).

It's interesting to consider how cars went from being something anybody could hack on, to something that only a few "qualified" people are now able to service. I don't expect the same thing will happen with software (in other words, I don't think "trusted computing" will ever become the norm), but we must be sure that it never does if we want innovation to continue in the software space.