HNHacker News
TopNewBestAskShowJobs

yig

293 karma · joined February 3, 2014

submissionscomments
yig··on ACM Transitions to Full Open Access
New articles are Creative Commons (CC-BY or CC-BY-NC-ND).
yig··on Why you can't color calibrate deep space photos
Can we infer what that visible light would look like unobstructed and with appropriate intensity to activate our eyes' cones?
yig··on Deep learning gets the glory, deep fact checking gets ignored
option-shift-minus on a Mac (option-minus for an en dash).
yig··on Richard Garwin’s role in designing the hydrogen bomb was obscured
The quote is confusing, because it's not always clear which Hall brother "Hall" refers to. Edward Hall, who developed the Minuteman missiles, was the brother of Theodore Hall, the spy. After reading the source article: <https://www.thenation.com/article/world/ted-hall-espionage-f...>, I can annotate the quote with first names:

"journalist Dave Lindorff, writing in The Nation on January 4, 2022, obtained through the Freedom of Information Act, Hall's FBI file in 2021. This 130-page file included communications between FBI Director J. Edgar Hoover to the head of the Air Force Office of Special Investigations, Gen. Joseph F. Carroll, showing that Carroll had effectively blocked Hoover's intended pursuit of [Theodore] Hall and Sax, probably fearing that [Theodore] Hall's arrest would have, in the political climate of the McCarthy Era, forced the Air Force to furlough and lose their top missile expert, Edward Hall. Carroll, a former top aide to Hoover before he became the first head of the USAF OSI, ultimately allowed Hoover's agents to question Ed Hall on June 12, 1951 (with an OSI officer monitoring the interview). Within several weeks of that session, the Air Force, which had conducted and completed its own investigation into Edward Hall's loyalty (having their own investigators question him four times), promoted him to Lt. Colonel, and later Colonel, and elevated him from assistant director to director of its missile development program. The promotions were a clear slap in the face to Hoover. Ed Hall went on to complete the development of the Minuteman missile program, and then retired."

yig··on I Fought the IRS for Over $12K and won
Are you referring to this bit by Joe Zimmerman? <https://www.youtube.com/watch?v=RpWCK7t_iaw>
yig··on Writing your own C++ standard library from scratch
I think you may have misunderstood the proposal. Your 3rd party library example would have to write `pystd2025::HashMap<pystd2025::U8String, size_t> member;`. Isn't that stable?

From the post:

  The sample code above used the pystd namespace. It does not actually exist. Instead it is defined like this in the cpp file:

    #include <pystd2025.hpp> 
    namespace pystd = pystd2025;
yig··on YouTube DRM added on ALL videos with TV (TVHTML5) clients
I download videos I use for teaching. In future classes, I can still provide students with the video even if it disappears from YouTube. This happens from time to time.
yig··on Aider: Using Uv as an Installer
Why is this necessary? I just alias aider to:

uv tool run --python 3.11 --from aider-chat@latest aider

yig··on Demystifying Git Submodules
For C++, I've started using FetchContent as a kind of distributed package manager. When I think about it, why is that better than git submodules?
yig··on Polychromatic Pixels
Two adjustable wavelength emitters should be sufficient, right? So the picking-and-placing problem gets easier by factor of 3:2 rather than 3:1.
yig··on Ice – open source menu bar manager for macOS
Dozer [0] doesn't require any special permissions. I guess this is needed by Bartender because it creates a little pop-out menu that shows the icons somewhere else?

[0] https://github.com/aonez/Dozer/releases/tag/v4.2.1-silicon

yig··on Ice – open source menu bar manager for macOS
There is an Apple Silicon build under Releases. It's work fine. It doesn't ask for extra permissions.
yig··on Compilable Lightweight Markup Language for Linear Algebra
I just realized I wrote "Mathematics" instead of "Linear Algebra" in the suggested longer and clearer title. That was a mistake.
yig··on Compilable Lightweight Markup Language for Linear Algebra
I've only used Desmos occasionally, but I like typing math in it. Desmos also supports juxtaposition multiplication.
yig··on Compilable Lightweight Markup Language for Linear Algebra
Ah, I didn't realize. I guess that would work for the case of 2-row tall statements.
yig··on Compilable Lightweight Markup Language for Linear Algebra
I like this. I created a GitHub issue: https://github.com/iheartla/iheartla/issues/138
yig··on Compilable Lightweight Markup Language for Linear Algebra
Unicode actually has semantic symbols that could be used for a nicer 2D monospaced layout here, such as ⎧ ⎪ ⎨ ⎩ ( (LEFT CURLY BRACKET UPPER HOOK, MIDDLE PIECE, LOWER HOOK, and CURLY BRACKET EXTENSION). With more conditional rows, you could use these. One downside is that you would have to do a 2D parse, since the = wouldn't be on the first line. We've been loath to go there. It also seems painful as a user to have to type all the right bracket symbols in all the right places.

We do support the Unicode ⎡|⎦ symbols for matrices. The grammar is that a matrix starts with either [ or ⎡ and ends with either ] or ⎦. Rows can be optionally surrounded by |. I find this too cumbersome to use myself.

yig··on Compilable Lightweight Markup Language for Linear Algebra
I (speaking as a designer of I Heart LA empathizing with a user) wouldn't have thought to use that character as an approximation of {.
yig··on Compilable Lightweight Markup Language for Linear Algebra
We're using MathJax 3.x, which dropped support for inserting MathML into the DOM due to uneven browser support [0]. The example you linked uses MathJax 2.x.

[0]: https://docs.mathjax.org/en/latest/output/mathml.html

yig··on Compilable Lightweight Markup Language for Linear Algebra
AsciiMath is a lightweight markup language for mathematical notation. Most mathematical notation isn't compilable. I Heart LA is focused on a compilable subset of mathematics. We chose to write our own grammar for various reasons.
yig··on Compilable Lightweight Markup Language for Linear Algebra
I forgot that Julia can do juxtaposition multiplication with literal prefixes. (My guess is symbols that can't begin an identifier.) Otherwise, the types of the terms must be known at parse-time to correctly interpret, for example, f(x)².
yig··on Compilable Lightweight Markup Language for Linear Algebra
A longer and more accurate title would be "Compilable Lightweight Markup Language for Mathematics" [0]. Using Markdown instead is like saying "Uber for X".

Our follow-up project HeartDown (linked) explores embedding I Heart LA in markdown documents.

[0] https://en.wikipedia.org/wiki/Lightweight_markup_language

yig··on Compilable Lightweight Markup Language for Linear Algebra
Julia syntax is pretty nice! No multiplication by juxtaposition, element access uses [], and then your code is specific to Julia rather than convertible to lots of environments. I would love to see a Julia backend for I Heart LA.
yig··on Compilable Lightweight Markup Language for Linear Algebra
It's not common to close that brace when writing math. (I've not seen it.)
yig··on Compilable Lightweight Markup Language for Linear Algebra
We point to several ways to type Unicode: https://github.com/iheartla/iheartla/wiki#unicode

One of them on macOS is dragging-and-dropping a Text Substitutions.plist (in the extras/ folder on GitHub) into the substitutions panel in System Preferences.

yig··on Compilable Lightweight Markup Language for Linear Algebra
Author here. Ask me anything.
yig··on Ask HN: Math books that made you significantly better at math?
Our project IHeartLA is a language with syntax designed to closely mimic conventionally-written linear algebra, while still ensuring an unambiguous, compilable interpretation: https://iheartla.github.io/
yig··on Blaze: A high-performance C++ math library
Here is a benchmark from 2020 comparing Eigen, Blaze, Fastor, Armadillo, and XTensor (run-time and compile time performance):

https://romanpoya.medium.com/a-look-at-the-performance-of-ex...

yig··on Ken Thompson really did launch his "trusting trust" trojan attack in real life
I wonder how much of the uploaded content is public versus private or unlisted.
yig··on Hacking anything with GNU Guix
xmake [1] gives you something like this via `xrepo env shell`.

[1] https://xrepo.xmake.io/

Page 1 of 3Next →