HNHacker News
TopNewBestAskShowJobs

mansr

619 karma · joined September 17, 2009

submissionscomments
mansr··on Object Oriented Programming is Inherently Harmful
Congratulations, you just discovered the great RISC vs CISC debate.
mansr··on Is Firefox really that bad? (2009)
Post is from 2009.
mansr··on The Unreasonable Effectiveness of C (2013)
Borland used to tout the virtues of their single-pass C/C++ compiler too, even as far back as version 2.0.

Most modern C compilers have used an integrated preprocessor for quite some time, and Clang/LLVM can emit machine code directly without going through a separate assembler.

mansr··on ECAT (Low Energy Nuclear Reactions) Test Report 2014 “Supports” Rossi Effect
That guy is a bit of a black sheep at KTH.
mansr··on How to Be Happy
I'm inclined to think that there is some threshold below which that function is constant. "Dust in eye" is definitely below this threshold.
mansr··on How to Be Happy
I share your views of religion. I also feel pretty much the same way if compelled to fake extroversion and attend, say, a fancy dinner reception. In the eyes of the article author, it is fine to dismiss religion while extroversion is to be coveted. I assume this to be because he is himself an extrovert atheist and can't imagine other people being happy in another way.
mansr··on How to Be Happy
There is also, as the author mentions, a correlation between religiosity and happiness. Still, "start going to church" is not on the list of things to do. I'll hazard a guess that the author is not religious and thus doesn't consider it relevant. While I don't personally believe this a worthy pursuit, it does show the arbitrariness of the selection.

EDIT: Point 8 does touch on religion but does not (directly) endorse it.

mansr··on How to Be Happy
Most self-help advice boils down to the author saying "be more like me." This is no exception.
mansr··on Why does the sum 7x8 catch people out?
My substitution works without contradictions there too.
mansr··on Why does the sum 7x8 catch people out?
That's pretty useless as a mnemonic. "30 days hath September, August, March and December" fits the pattern equally well.
mansr··on Systemd has 6 service startup notification types, and they're all wrong
It's "systemd is garbage" vs "everything else is garbage".
mansr··on I'm About as Good as Dead: The End of Xah Lee
He made a lot of people mad on the internet, enough that nobody is willing to hire him.
mansr··on I'm About as Good as Dead: The End of Xah Lee
He spent decades trolling everyone and everything on Usenet and mailing lists. He had it coming.
mansr··on I'm About as Good as Dead: The End of Xah Lee
He used to be trolling all over Usenet. There's a good chance he's made a very bad impression on just about anyone now in a position to hire him.
mansr··on Why is NaN not equal to NaN?
> On the other hand, X/0 (integer division-by-zero, where X is not a floating-point value either) usually does cause an exception.

That's true for x86, but not for most other architectures.

mansr··on Why is NaN not equal to NaN?
> If they had chosen NaN == NaN, then the test for NaN could be simply x == NaN...

There are many NaN values. Should they all compare equal to each other?

mansr··on Comic Sans, meet Comic Neue
Arial is a sloppy-looking knockoff of Helvetica. It's the typographical equivalent of fake designer clothes.

There's nothing inherently wrong with using Verdana as a screen font.

mansr··on Comic Sans, meet Comic Neue
The "fo" pair looks decent, but many others leave a lot to be desired. I don't have an explanation for the differences though. Maybe Libreoffice is using a different layout engine.
mansr··on Comic Sans, meet Comic Neue
That's because the kerning tables in this font are woefully incomplete. The only pairs defined are "//", "Ke", "To", "We", "Ze", "Zo", "iz", "oz", "yp", "'r", and "'s".

Then again, Comic Sans from MS has no kerning at all.

mansr··on Comic Sans, meet Comic Neue
I have one of those too. It's quite rare that anyone comments on it.
mansr··on Comic Sans, meet Comic Neue
Then all we'll need is a pair of augmented reality glasses that replace Papyrus when looking at restaurant menus.
mansr··on Comic Sans, meet Comic Neue
Chrome seems to ignore all kerning on all platforms. Firefox does a much better job.
mansr··on Linus blocks system d maintainer from further kernel commits
It's not. Usually they are much worse.
mansr··on Ask HN: is there still a country without web censorship?
All of the things you mention can be illegal without imposing pre-publication censorship as has been the case with printed material for centuries.
mansr··on Ask HN: is there still a country without web censorship?
Not all ISPs implement this.
mansr··on Ask HN: is there still a country without web censorship?
None of the filtering in the UK is legally mandated, and only the major ISPs implement it. Smaller ISPs still offer a completely unfiltered service.
mansr··on When you see a Heisenbug in C, change your compiler's optimization level (2010)
GCC can produce all of those warnings.
mansr··on When you see a Heisenbug in C, change your compiler's optimization level (2010)
In C99 there are three levels of not fully specified behaviour:

1. Undefined: anything is permitted, the standard imposes no requirement whatsoever. A typical example is what happens when a null pointer is dereferenced.

2. Unspecified: anything from a constrained set is permitted. Examples include the order of evaluation of function arguments (all must be evaluated once though any order is allowed).

3. Implementation-defined: the implementation is free to choose the behaviour (possibly from a given set), but must document its choice. An example is the representation of signed integers.

mansr··on When you see a Heisenbug in C, change your compiler's optimization level (2010)
C99 explicitly does \-splicing of lines before comment processing:

  //\
  this is a comment

  /\
  / this is also a comment
GCC has an option (-Wcomment, enabled by -Wall) to warn about this and other likely mistakes involving comments (e.g. nested /* */ comments).
mansr··on Volatiles Are Miscompiled, and What to Do about It [pdf]
The ARMv7-M architecture (which the popular Cortex-M series microcontrollers implement) allows reordering as I described. Even if a Cortex-M3 probably doesn't ever do it, nobody is making any promises. If a particular behaviour is not documented, it is wrong to rely on it.
← PreviousPage 2 of 9Next →