HNHacker News
TopNewBestAskShowJobs

mmmrk

223 karma · joined December 28, 2018

submissionscomments
mmmrk··on The Inuit agree on a common writing system
Two observations without much substance:

1. I love the logo of the ITK. So joyful! (See https://www.itk.ca/itk-board-of-directors-adopts-inuktut-qal...)

2. The comments section of https://nunatsiaq.com/stories/article/national-inuit-org-app... and https://nunatsiaq.com/stories/article/inuit-qaliujaaqpait-th... contains considerable toxicity. I was expecting general upvoting among a people here but I guess I expected too much from a comments section of a newspaper.

mmmrk··on My Time at Snap
Maybe that there's a lot of jealousy floating around that someone dared to look out for themselves. I suppose that's usually reserved for companies.
mmmrk··on Text Rendering Hates You
It can go the other way, too. It is mathematically impossible to make a font that has the exact same vertical metrics/line-spacing everywhere, so everyone sets the three value sets provided by the OpenType spec to the same values for web fonts. And then you try to render a font with tall glyphs (i.e. Arabic) on Android and find that it actually looks at the font-wide bounding box in the head table to determine metrics. You can't change them because then Android clips everything legitimately outside that box.
mmmrk··on Text Rendering Hates You
Subpixel antialiasing plus subpixel positioning :)

They are orthogonal concepts.

mmmrk··on Text Rendering Hates You
The primary visible difference is the way hinting works in both formats. TrueType-flavored fonts (.ttf) must be explicitly programmed; how good this looks depends on in which decade the font was hinted and how much money, time and skill went into it. Postscript-flavored fonts (.otf) can be outfitted with some hinting metadata and have an automatic hinting tool run on them, applying the hints is then completely up to the renderer. This has the disadvantage that the designer has less control over the end-result and the advantage that the renderer can interpret hints differently if some text display technology/stack changes.

I personally find Adobe's .otf renderer in FreeType the best compromise between aesthetically pleasing and legible and can only recommend using exclusively .otf fonts on FreeType platforms.

mmmrk··on Text Rendering Hates You
> So subpixel-AA is a really neat hack that can significantly improve text legibility, great! But, sadly, it's also a huge pain in the neck!

When playing around with FreeType's ftview demo program, text rendered with an OTF/CFF font using the Adobe CFF renderer with stem darkening enabled actually looks pretty good with grayscale rendering. Subpixel rendering is not strictly necessary.

> https://gankra.github.io/blah/text-hates-you/#aa-breaks-glyp...

I think the author mixes up two concepts here, hinting and subpixel positioning.

A TrueType font can change stuff around on the x and y-axis. Applying hinting on the x-axis messes with your layouting and prevents subpixel positioning on the x-axis. What you do is apply hinting on the y-axis only (FreeType calls this slight hinting, DirectWrite more or less does this -- not quite, but close enough) so you are free to shift glyphs around on the x-axis. This helps with displaying text with a more even texture on LoDPI screens. On *nixes, Chrome does this, Firefox doesn't.

mmmrk··on The secret life of open source developers [video]
> If you are fazed by some comments of random people on the internet then you are neither "mature" nor "confident". You either got to grow up or you will have a hard time.

Not sure if you're trying to troll here, but being fazed by negativity is a perfectly normal human response. Framing it as a matter of maturity or confidence seems disingenuous to me. One can be trained to handle it better and turn it around or into something productive (i.e. conflict training for health care professionals) but the response remains.

mmmrk··on Chinese people who show sympathy for HK protests risk getting doxxed by friends
> (which by the way, polls consistently have shown the majority of Americans disapprove of AA)

Popular opinion does not make something right or wrong. I have no opinion on AA, but sometimes, needed measures are unpopular.

> Called homophobic if you think gay pride parades are not a good idea [...] and also don't want almost-naked leathered men walking around your neighborhood)

This is only non-homophobic if the same non-want is applied to women, e.g. at some types of carnivals. Then you're just a prude ;)

> Called sexist if you suggest that rape victims should go to the police as soon as possible after, rather than wait months or years later.

I wouldn't call this opinion sexist, just ignorant. Yes, going ASAP is definitively recommended, but if you listen to testimonies of victims (I can recommend the Guilty Feminist podcast, which talks about this topic every now and then), violence of any sort but especially sexual violence can instill deep, long-lasting emotional trouble that people struggle hard to deal with, making them unable to go the authorities. It's as if you told someone with clinical depression to pull themselves together.

(Edit, addendum: also think of rape that happens in relationships with a power asymmetry. Reporting the perpetrator immediately might get you into even more trouble)

Note the common theme that sexual violence often goes on for a long time or is buried under silence before it comes to light. Think e.g. of the reports about children being abused by church clerics or by teachers in certain boarding schools. This is not an easy topic with a simple "duh, just go to the authorities" solution.

mmmrk··on How to set up a perfect Python project
Thanks. It's a tricky topic, as Google has found as well: https://static.googleusercontent.com/media/research.google.c....
mmmrk··on Chasing the Whale: Examining the ethics of free-to-play games
Not sure why you're getting down voted. What you say is true. Jim Sterling makes videos about this regularly over at YouTube.
mmmrk··on How to set up a perfect Python project
Interesting! How exactly do you run the tests and the linters then? Pytest with flake8+pylint plugins? Separately? Serially? In parallel? Why flake8 and pylint at the same time, did you find significant differences?
mmmrk··on How to set up a perfect Python project
> Git hooks with pre-commit

In projects where I am involved in, we usually set up hooks that run a few checks from https://github.com/pre-commit/pre-commit-hooks plus https://github.com/asottile/pyupgrade plus https://github.com/psf/black plus maybe the mypy and flake8 hooks. These hooks are also run in a "lint" stage by by tox, which is also run on the CI system. This catches some lints that slip through every now and then, before you go on to commit them. Also, a tox run will as a side effect also reformat the code before you check it in, which is a nice laziness feature.

I am currently thinking if I should move to the pytest plugins for mypy and flake8 because I find they make more sense as tests, especially if I'm developing inside a venv and repeatedly run pytest instead of tox. That would also mean that the mypy and flake8 checks are run repeatedly for every Python interpreter I want to tox, unkess I invest some time into coming up with better TOXENVs. Hm.

mmmrk··on How to set up a perfect Python project
Solution: write in whatever way you want and hit "reformat code" before you git add/commit. Reality reconciled, opinion great again.

Addendum for clarification: part of the appeal of autoformatters is that what you type into your editor does not matter. I don't see the "difference of reality" because thanks to black, I don't need to care.

mmmrk··on Modern text rendering with Linux: Part 1
What makes integration of HarfBuzz difficult?
mmmrk··on Modern text rendering with Linux: Part 1
OP specifically mentions his 300 dpi displays, where you indeed don't need subpixel rendering. Low-DPI displays do need to continue to use tricks to make text halfway pleasant though. Windows with its hinting philosophy and off-by-default vertical smoothing is a bit of a special case though... like every other system out there. Oh well.

> they still don’t get it and continue to insist that “it’s too hard to do it right”

What is wrong with that reply? It _is_ hard to do it correct _and_ quick.

mmmrk··on Modern text rendering with Linux: Part 1
If you use Qt 5.9+ and set the UI font to a .otf font, you get alpha-blended and gamma corrected text.
mmmrk··on Brave Improves Its Ad-Blocker Performance with New Engine in Rust
Subpixel rendering is different from subpixel positioning.

See e.g. https://bugs.chromium.org/p/chromium/issues/detail?id=824153 for some gory details.

mmmrk··on Brave Improves Its Ad-Blocker Performance with New Engine in Rust
What do you mean by ugly? That GDI text rendering is used on Windows instead of DirectWrite for some font families? This can be disabled in about:config by assigning `gfx.font_rendering.cleartype_params.force_gdi_classic_for_families` an empty value. Or do you mean that there's no subpixel positioning on non-Windows/macOS? That one has no fix, except when the text rendering part of WebRender goes into production.
mmmrk··on Oberlin College case shows how universities are losing their way
> Especially at elite universities, there is this interesting phenomenon of mostly upper middle class white women from on average the most privileged upbringings in the western hemisphere arriving at a university they (anyone) could only attend by incredible privilege and luck. Yet they arrive fully convinced they have been held back by the patriarchy their entire lives. Same for other groups and their pet causes.

This does not have to be a contradiction.

1. If you come from a wealthy family, attending a prestigious university might be par for the course instead of an incredible privilege; you can still be "held back by the patriarchy" (no sarcasm intended). The two things can work in orthogonal ways.

2. They might realize they are privileged and are leveraging their position in an attempt to help others up, i.e. by raising/forcing awareness, a valid thing to do. Feminists aren't the only ones to do it.

I perceive these two points to be common themes in "The Guilty Feminist" podcast I like to listen to.

mmmrk··on Show HN: Sourcetrail – Visual Source Explorer Now Supports Python
Looks very interesting, but seems to be excruciatingly slow at indexing Python projects. Ran it on https://github.com/fonttools/fonttools/tree/master/Lib/fontT... (~230 files) and it took 45 minutes while keeping all 16 cores of my Ryzen 1700 at full load, sometimes using ~16 GB of RAM. Exiting the application ends in a SEGV, but seemingly without consequences? Also, after moving the database files to a different folder and renaming the "source group", it now asks me run re-index everything. AAAARRRGHHH.
mmmrk··on The lingua franca of LaTeX
Hm. Looks like the PDF sample has some light (auto)hinting and a bit of linear alpha blending and gamma correction applied (compare diagonal stems, e.g. on the "A"), while the DVI sample doesn't. I suppose this is less about DVI vs. PDF and more about Adobe doing text rendering properly, while Evince is probably using Cairo, which doesn't.
mmmrk··on Public Sans – A strong, neutral typeface for text or display
You mean how e.g. the base of "o" drops below the base of "r"? That's standard optical compensation because if you make them level, the curved base seems to sit higher than the flat base. The amount of compensation needed differs depending on point size.
mmmrk··on The Wasting of Britain's Marshall Aid
I currently live in London and the first thing that came to mind is, so this is why the entire city feels so run down outside a few rich spots.
mmmrk··on Why I Don't Want to Live in Silicon Valley
I find this a fascinating foreigner's view on something that you hear little about otherwise.

The paragraph about not being able to joke about certain "categories of people" is somewhat... questionable though (i.e. I don't understand why people feel the need to joke about them).

← PreviousPage 3 of 3