HNHacker News
TopNewBestAskShowJobs

SassyBird

163 karma · joined April 23, 2024

submissionscomments
SassyBird··on VPN ban is strangling communication in Myanmar
Thanks for taking the most uncharitable interpretation of what I wrote possible. It’s so productive.
SassyBird··on VPN ban is strangling communication in Myanmar
Is it standard for people in the Andes to take offence at people taking pictures of them? I don’t know, maybe it is, haven’t been there. It is not in Europe.
SassyBird··on VPN ban is strangling communication in Myanmar
If you avoid the slightest possibility of unpleasant and pointless confrontations, then you’re going to lead a very dull life. I sometimes photograph random people. Never has anyone had an issue with that. Sometimes they approach me and we have a chat. That’s all that happens. I’ve had more chances of being hit by a car than anyone having an issue with me taking pictures of them. Boils down not being a dick about it.
SassyBird··on Building a data compression utility in Haskell using Huffman codes
Hopefully k is natural. ;)
SassyBird··on What makes e natural? (2004)
It doesn’t matter which definition you pick. I e.g. had it defined axiomatically when I studied, i.e. we were given a list of properties which identify exp unambiguously and then we were given a proof of its existence. The fact that those properties were part of the definition doesn’t take away from their profoundness. The function could still just not exist. Same thing with defining by formulas. The map is not the territory.
SassyBird··on What makes e natural? (2004)
Transcendental numbers like e are a lot more "unnatural" than imaginary numbers.
SassyBird··on Sublime Merge
Following fashion has nothing to do with hacking.
SassyBird··on Maker of RStudio launches new R and Python IDE
It’s great to hear. Thanks.
SassyBird··on Maker of RStudio launches new R and Python IDE
It’s Qt: https://github.com/rstudio/rstudio/blob/main/src/cpp/desktop...

It seems with some JavaScript generated from Java via Gwt. Regardless, I prefer it over VSCode UI.

SassyBird··on Maker of RStudio launches new R and Python IDE
Are they going to drop RStudio? I very much prefer its Qt interface over whatever VSCode invented. It’s fast, has nice keyboard shortcuts, none of that pointless padding and it just feels great to use.
SassyBird··on Maker of RStudio launches new R and Python IDE
The base graphics packages make the plots as ugly as the ones generated by gnuplot though. ggplot2 on the other hand has very pretty output. And the concept of grammar of plots just makes so much sense to me.
SassyBird··on Flame Graphs: Making the opaque obvious (2017)
> So, what, exactly, am I looking for?

This can’t be answered in general. Flamegraphs are measurements of what happened. But just like a ruler doesn’t tell you whether a given human is atypically short or tall for its species, a flamegraph can’t tell you which portion of the program takes too long a time. You need to have prior knowledge about data structures, algorithms, memory bandwidth etc in order to confront your justified expectations with the reality and be surprised with something. And it will all depend on the particular program you profile.

SassyBird··on Structured logs are the way to start
This has nothing to do with GCC being a first-class citizen in Linux. It’s a kernel feature. The kernel doesn’t care which compiler or debugger you’re using. You can dump core of any process regardless of the language it’s written in. Every modern OS supports that.
SassyBird··on Microsoft breached antitrust rules by bundling Teams and Office, EU says
You must not have seen Bloomberg Terminal then. Most devs on this forum wouldn’t be even able to build anything this performant and ergonomic.
SassyBird··on Formal methods: Just good engineering practice?
> 100% branch coverage means that you've fundamentally covered all potential states your software can enter.

No, it doesn’t.

  bool is_even(int n) {
      return true;
  }

  bool test_is_even() {
      return is_even(2);
  }
100% test coverage. And yet.
SassyBird··on Own Constant Folder in C/C++
And even if you do know what it does, it’s very impractical given that it’s a global option. Turning it on for selected portions of code would be a completely different game.
SassyBird··on Comparing OCaml and Standard ML (2008)
> It's still not a feature you can expect all implementations to have, so OCaml is not in a bad position there I think.

The number of SML implementations supporting this feature is greater than the number of OCaml implementations. ;)

SassyBird··on 'Equals' has more than one meaning in math
> In the first year of the University you write cpngruence with three horizontal lines. In the second, you just use two lines, aka an equal sign.

Obviously in the next step you achieve enlightenment when you then write them as just one horizontal line, but most don’t reach that stage.

SassyBird··on Why you shouldn't parse the output of ls(1)
When would you use it?

Emacs dired works fine on other platforms, which don’t have GNU ls on them, so I’m guessing by default it doesn’t run ls on its own.

SassyBird··on Photographer Disqualified from AI Image Contest After Winning with Real Photo
You can see part of its black beak on the right hand side.
SassyBird··on WebKit fix: Quirk news.ycombinator to skip TextAutoSizing
Without HiDPI (sic!) scaling that means that a correctly-sized display for that resolution would have a 30" diagonal on Windows (standard PPI: 96) and 40" on Mac (standard PPI: 72). If you don’t have HiDPI (sic!) scaling enabled in your system and your display is smaller than that, then you’re basically browsing everything zoomed out.
SassyBird··on WebKit fix: Quirk news.ycombinator to skip TextAutoSizing
9pt == 12px on the web. You can check that in Web Inspector in computed styles.

Alternatively:

  1px = (1/96)in
  1pt = (1/72)in = (1/72)*(96/72)*(72/96)in = (96/72)*(1/96)in = (4/3)*1px = (4/3)px
  9pt = 9*1pt = 9*(4/3)px = 12px
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Values_...
SassyBird··on WebKit fix: Quirk news.ycombinator to skip TextAutoSizing
It’s the opposite for me. I keep finding dumb bugs in Chromium, when it comes to correct website rendering and event handling (always regressions). Safari and Firefox on the other hand never have those issues.

The only problem is: Safari has piss-poor ad blockers. Firefox blocks custom system-wide keyboard shortcuts (on Mac).

SassyBird··on Inline Assembly Dangers
I’m not a fan of concatenating strings either. I was thinking about the MSVC/Pascal-style inline assembly here, which isn’t based on strings.

Correct me if I’m wrong, but I don’t think that you can guarantee a routine is constant-time by using intrinsics. You need asm for that. Asm that won’t be changed by the compiler. So you need to write an external asm file for that now, which is fair enough, but I just wouldn’t present intrinsics as all-around superior.

SassyBird··on Inline Assembly Dangers
It seems that MSVC supports inline assembly only on 32-bit x86. For amd64 and ARM they moved entirely to intrinsics.
SassyBird··on Is there a BNF grammar of the TeX language? (2010)
1. Justified text without hyphenation is a quick recipe for very odd-looking uneven spacing, like in your example.

2. The inset used by the headings is jarringly big.

3. The text is too wide for comfortable reading.

4. The fonts used in the body and in the figures don’t match.

Other than that, it’s probably the best-formatted Word document I’ve seen.

I wouldn’t want to use Word, because in my experience even outside of maths its UI is working against me. In particular it’s hard to recreate the same document in two different major versions of Word. The spacing, the sizes are always off. Moreover, I don’t like how formatting is very sticky based on where you position your text cursor. I constantly need to disable styling copied from some text nearby.

SassyBird··on Is there a BNF grammar of the TeX language? (2010)
> Finally, there's never going to be a readable error message from LaTeX.

FTFY. If you learn TeX from Knuth’s TeX book, along with the typographical concepts it works with, the error messages generated by documents written in raw TeX are understandable.

LaTeX on the other hand is what the metaprogramming-heavy Boost/STL libraries are to C or C++. Abandon all hope.

SassyBird··on X has new rules that officially allow porn
You just need a toggle to comply with the rules, so that the user decides what they’ll see. One example is Flickr. Another is Tumblr. They both have toggles for explicit content.
SassyBird··on X has new rules that officially allow porn
App Store allows and contains plenty apps with NSFW content.
SassyBird··on X has new rules that officially allow porn
What a world we live in that allowing NSFW content is seen as desperation, while monetisation through ads isn’t.
Page 1 of 2Next →