HNHacker News
TopNewBestAskShowJobs

abjKT26nO8

730 karma · joined March 19, 2016

submissionscomments
abjKT26nO8··on Bill Joy's greatest gift to man – the vi editor (2003)
But what does "chron" have to do with cron? Or was that a typo?
abjKT26nO8··on Circle – A C++ compiler with compile-time imperative metaprogramming
I'm not debating that there are a lot of projects written in C++. I only argue that C is enough to be able to learn about state-of-the-art tech in this area.

I'm not even going to debate C++'s merits at this point. Everybody's had enough of that already. There are people who stick to it and there are those who bailed after a while. It's just that, if I have a choice, I won't work with the people who belong to the former group.

abjKT26nO8··on Bill Joy's greatest gift to man – the vi editor (2003)
What is chron?
abjKT26nO8··on Circle – A C++ compiler with compile-time imperative metaprogramming
I was replying to this part:

> Irrespective of what language you actually choose to write your project in, if you want to learn how databases, caching servers, language runtimes, compilers, allocators, message buses, games, rendering engines, browsers, distributed systems, AI runtimes etc are implemented then the cutting edge as it exists right now is mostly written in C++.

First things that come to mind when one hears:

- databases: PostgreSQL (C), MySQL (C), Berkeley DB (C), SQLite (C)

- caching: memcached (C)

- language runtimes: Java (C++), Python (C), Go (Go), Chez Scheme (C + Scheme)

- compilers: GCC (C compiled as C++), Clang (C++), GHC (C + Haskell)

- allocators: glibc malloc (C), jemalloc (C), tcmalloc(C++)

- message buses: DBus (C)

- games: some people write C, some people write C++, some people write C# and some write Swift

- rendering engines: C++ is admittedly popular here, if that's your thing

- distributed systems: this thing is so hyped that it's implemented in every language in existence

- AI runtimes: people here change the language every 2 decades. they started with Lisp, now it's C++ + Python, later it will be JavaScript

- browsers: I pity anyone who has to work on this software (I have to)

Now let's add one obvious category which was suspiciously left out from this list: operating systems: Unix, BSDs, Linux, Plan 9, Illumos, GNU Mach, Windows NT, XNU --- there is almost no C++ here (and any C++ that there is in just the last two).

So personally, if I were to write something new in this area, I would choose neither C, nor C++, but when it comes to learning something, it's clear that C is more than enough.

I've been working a lot with C++. I've seen its horror. No more.

abjKT26nO8··on Circle – A C++ compiler with compile-time imperative metaprogramming
C will more than suffice in this case.
abjKT26nO8··on Measuring the Cost of Regression Testing in Practice
> But your test multiply those probabilities creating a much bigger probability for failure.

Minor nitpick: when probabilities multiply, they get smaller. Such is the nature of numbers in the range [0, 1].

Multiplication would happen when counting the probability of two (independent) events coinciding. What you're thinking about here is the probability of any one of several events occuring. That will be a (rather convoluted) sum, not a product.

abjKT26nO8··on Time on Unix
I just retried viewing this page after rebooting into Windows and it looks completely different. The text is a lot smaller than on Linux. So Windows handles HiDPI a lot differently, it seems. But my own website looks exactly the same on Linux and Windows. I'm using a "reset.css" --- maybe that's what's at play here.

In any case, our impressions being different only prove my point about standardized styling of webpages.

abjKT26nO8··on Time on Unix
Screenshot: https://i.imgur.com/MfEAvRp.png

I see you used "width: 60%" to specify the width of the article text. That's probably good for narrower screens, but on its own can have unpleasant effects on wider ones. Consider adding "max-width: 39em" to mitigate it. You may fiddle a bit with the exact value there to see what works for your website.

As to the text size, you used "font-size: 1.4em". I think that in this regard it's best to rely on the defaults and set "font-size: 100%" in "html, body" and then "font-size: 1rem" for the tag where the main text is contained.

abjKT26nO8··on Time on Unix
This font is gigantic. And the text is a bit too wide. It feels as if I had to do a marathon from left to right on each line.

I wish the web didn't have the possibility of styling its content and would only use standard options which would be customizable by users. E.g. as a webdev, you wouldn't be able to set the font face beyond "serif", "sans-serif", "monospace" and then everybody could just set those to what they like. Similarly, there would be no "font-size". You'd have to use semantically correct HTML tags and the user would choose the font size for these tags. I'm tired of 99% pages being unreadable. Reader mode is a hack.

EDIT: To clarify, the text on this page renders on my 4k screen with 170% scaling as ~31cm wide and each character is ~1cm tall.

And sure enough, the CSS responsible for this part contains "font-size: 22.4px;". That's beyond reasonable for normal body text.

abjKT26nO8··on Why my book can be downloaded for free (2014)
Viewing graphs and mathematical formulas is painful on the small screen, regardless of the file format. The problem is the small screen, not PDF.

And AFAIK EPUB gets into the same mess of MathJax as web pages do when they want to render mathematics. No thanks.

abjKT26nO8··on Why my book can be downloaded for free (2014)
You can bookmark individual pages in PDFs. PDFs also have the advantage that they are trivial to archive (just copy the file), whereas with websites you'd have to download all the assets (and know which assets to download, so you don't download the whole domain). Another thing is that web browsers these days are pain to use. I'd much rather view a book in a proper document viewer. PDFs also allow for much better typography than web browsers. And forget about having a standard way to render mathematics well in at least 3 different web browsers.
abjKT26nO8··on Twitter Thinks My Gender Is [EICAR String] (Or “Server-Side Checks Matter”)
> It's also just really bizarre and rude. Imagine referring to a cis woman with a beard as an 'it', or 'he'.

I do that sometimes, unintentionally (regardless of the person in question having a beard or not). It's just that gender in language is most of the time redundant and it only introduces noise into conversation. For most topics, the gender of the persons involved is irrelevant. But many languages force you to choose one, which just creates confusion if this piece of information is crucial or if it's just this bloat that the language forced you to include in your sentence.

Oh, and genders are much more prevalent in my native language. English is actually better than most languages in this respect. But let's go a step further and just get rid of it. I've heard the Swedes chose to move to "person/thing" pronouns, as opposed to "male/female/thing".

In my native language, verbs change their forms based on subject's gender. And then when you have sentences like "if I were in your shoes, I would verb", my brain tells me to assume the gender of the other speaker when I say verb. I mean, it's only logical: if I were in your shoes, I would be of your gender. But the language works otherwise. It's just stupid.

As to people's reactions to my occasional misnamings, most people don't care at all, some are amused. Because, really, this part of language is ridiculous. And making an issue out of it is immature.

abjKT26nO8··on Libschrift: A lightweight TrueType font rendering library
> UNIX could be simple, because it was targeted for a very small group of people, mostly always using ASCII. Trying to cater to a large group of people will always be complex. And trying to cater to a large group of people is NOT the definition of ‘bloated’.

The main author of UNIX is also the author of UTF-8[1]. The software hosted at suckless.org often isn't very useful and the people associated with the project often aren't very nice, but the comment about the people behind UNIX here is unfounded.

[1]: https://www.cl.cam.ac.uk/~mgk25/ucs/utf-8-history.txt

abjKT26nO8··on Ask HN: How would you download a browser without a browser?

  sudo apt install firefox
abjKT26nO8··on Decision-making over social distancing is taking a toll on our mental health
Correction: you are a social creature. There are humans who are different, OP and myself included.
abjKT26nO8··on Trello handed over my personal account to my previous company
> Try suggesting that you can run a software business without using GitHub as your single point of failure^W^W^W^Wsource control system, and a lot of young developers will just laugh and wonder what you've been smoking.

TBH, I've never worked at a company that would host their source code at a third party service. At my first job, we wouldn't even use a web UI for the repositories (I still think that's not all that useful to begin with). At my current job, we use cgit. We use Jira (that we pay for, obviously), but as to source control --- a company hosting it on GitHub? Never seen it with my own eyes. But I work as a C++ dev, so maybe it's different here than, say, in webdev world.

abjKT26nO8··on Some Notes on Christopher Alexander (2008)
Shadows aren't bad. They're the best thing that can happen during summer. Well... Them and the wind.
abjKT26nO8··on Trump Halts U.S. Funding of World Health Organization
> WHO has been proactive, even though late,

According to Merriam-Webster[1]:

«proactive» · acting in anticipation of future problems, needs, or changes

[1]: https://www.merriam-webster.com/dictionary/proactive

abjKT26nO8··on How to Avoid the Assignment Statement (2010)
I think the OP is referring to the imperative version using recursion as inefficient. It isn't tail-recursive, so the stack will grow to infinity, even though we only need a constant amount of memory (plus the memory to store the list) to calculate the result. Most likely, they will cause the program to crash, when invoked on moderately big input. Most implementations of "reduce" are tail-recursive (and if they're not, that's a bug), so they're more efficient.
abjKT26nO8··on Breaking LastPass: Instant Unlock of the Password Vault
As far as I understand, Apple's Keychain lets you save passwords and then grant access to them on per-application basis, instead of leaving them lying in text files for any program to read. Could anybody confirm that? I've never had a Mac, but I've been thinking about this issue for quite some time.

(EDIT: TFA doesn't clarify that.)

abjKT26nO8··on How coronavirus infected my brain: anxiety, the internet, and keeping up to date
> Have you tried sitting alone in a room with no music, no TV, and no phone for an hour? It's actually quite liberating.

I'd love to be able to do that. But then, instead of hearing the music, I hear the neighbours, their dogs and their kids, their TVs and their music. It's awful. I would very much like to experience silence, but the modern world denies me this possibility.

abjKT26nO8··on Theia: Cloud and Desktop IDE
I tried it, saw rendering glitches like the ones you see when you scroll a webpage using Firefox or Chromium on X, looked at the RAM usage, saw that its UI is its own thing that doesn't integrate with the rest of the system[1] and concluded that it's not for me.

[1]: Well, this last point isn't all that exceptional on Linux, but it adds up and I suspect that for people using macOS this is a downgrade.

abjKT26nO8··on Theia: Cloud and Desktop IDE
> This Electron-bashing is getting rather old - it's possible to write crappy code on any platform.

It's possible to write crappy code on any platform, but some platforms (like Electron) make writing apps that don't suck impossible.

> Yes, some Electron apps are resource hogs, but many are not. VS Code is a perfect example of how Electron can enable development of a performant, cross-platform IDE.

All Electron apps are resource hogs, including VS Code. Just because Slack made it a standard to ignore the fact that not everybody has loads of RAM and that there are other apps running on the system, doesn't mean everybody's standards of performance and UX should race to the bottom.

abjKT26nO8··on WhyTheName
> Apache-Licensed PINE, where pine was the old (non-DFSG-free) "Program for Internet News and E-mail" - formerly known as "Pine Is Nearly Elm", named after a yet older electronic mail program. Nowadays contains its fork realpine, which the developers insist is re-alpine (alpine development restarted, since the original team seems to not be doing much) and not real-pine…

Ok, I guess…?

abjKT26nO8··on Doing a math assignment with the Lean theorem prover
It's a bit ironic, but the author repeated the same error every time they wrote the formula involving sigma. What they wanted to write was $\sum_{0}^{n} k$. What they actually wrote ($\sum_{0}^{n} n$) is equal to $n \cdot (n+1)$ (without the division by 2).
abjKT26nO8··on OBS Studio: Open-source software for video recording and live streaming
On X:

1. Implementing a screenlocker in a secure and working manner on X is impossible.

2. Screenlockers cannot be activated when there the context menu (or something similar) is open.

3. There is a lot of screen tearing, in particular in Firefox and Chromium on X scrolling is a joke.

4. Dual-DPI is a no.

5. Everything is in a shared buffer, so security is a joke.

On Wayland these things should be fixed.

abjKT26nO8··on April Is Canceled
And had a lot of inherited wealth to support his intellectual endeavours without being exhausted by a day job.
abjKT26nO8··on Three-Domain System
According to Wikipedia[1]:

> Scientific opinions differ on whether viruses are a form of life, or organic structures that interact with living organisms.

And:

> Viruses are now recognised as ancient and as having origins that pre-date the divergence of life into the three domains.

[1]: https://en.wikipedia.org/wiki/Virus

abjKT26nO8··on You’re not writing code, you’re solving problems
I wouldn't bet on the "true" part in philosophy. More like nonsensical.
abjKT26nO8··on The Impact of Coronavirus on Global Activity
Smartwatch users are not representative, forget about the brands.
← PreviousPage 3 of 7Next →