Better HN
topnewbestaskshowjobs
Log inSign up

GrumpySloth

4,901 karma · joined Sep 13, 2020 (6y ago) · 1,641 submissions

Submissions

comment 4y ago · link · parent

My least favourite “feature” of iOS now is shake-to-undo. I’ve never triggered it intentionally. It’s too weird of a thing to remember when I actually want to do it. It would also feel ridiculous even if I remembered it. The only times I trigger it, it’s by accident, and then I need to cancel it.

comment 4y ago · link · parent

It’s a legal requirement, where I am. I just know of several cases where that wasn’t done. And in the case of that Flickr account I do wonder whether the author stopped the cyclists to ask, where I’d guess he would often maybe not be able to.

comment 4y ago · link · parent

Yes, but that still leaves the problem, which shouldn’t exist in the first place (edit: and on Windows doesn’t).

comment 4y ago · link · parent

OOM killer is a pseudosolution to an artificially created problem.

https://lwn.net/Articles/104185/

comment 4y ago · link · parent

That’s the first time I see “selfie” used in that sense. Even descriptively, I don’t think the word means that.

comment 4y ago · link · parent

Whether it's worth to look around, instead of looking at an iPhone, may depend on the city. In my experience, Gdańsk, London, Tallinn and Edinburgh are examples of places where it's nice to walk and look around. Warsaw on the other hand gets depressing quickly. There is something dehumanising about its look and the way it's spacially structured.

comment 4y ago · link · parent

Do photographers posting such photos ask people in the photos for permission? I sometimes take such photos, but I don't post them, unless there are many people in them (as opposed to just 1-3), but that means I don't post a lot of really good photos, which is a shame. I'm a bit on the verge about it.

comment 4y ago · link · parent

I can see how it may be unlikely for a person posing for Instagram photos to be a person enjoying spending time in the woods. However I don't see why it would be unlikely for a person enjoying spending time in the woods to pose for photos.

comment 4y ago · link · parent

As long as you don’t use debuggers.

comment 4y ago · link · parent

Example program:

  #include <stdlib.h>

  int main() {
   for (size_t i = 0; i < 4096*4096; i++) {
    void* p = malloc(i * 4096);
    free(p);
   }
  }
Running strace on it gives me a whole spam of logs like:

  mmap(NULL, 139264, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0e7d46f000
  munmap(0x7f0e7d46f000, 139264)          = 0
  mmap(NULL, 143360, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0e7d46e000
  munmap(0x7f0e7d46e000, 143360)          = 0
  mmap(NULL, 147456, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0e7d46d000
  munmap(0x7f0e7d46d000, 147456)          = 0
  mmap(NULL, 151552, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0e7d46c000
  munmap(0x7f0e7d46c000, 151552)          = 0
  mmap(NULL, 155648, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0e7d46b000
  munmap(0x7f0e7d46b000, 155648)          = 0
  mmap(NULL, 159744, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0e7d46a000
  munmap(0x7f0e7d46a000, 159744)          = 0
That was run under a standard Debian 11 installation.

comment 4y ago · link · parent

That depends on the specific implementation. glibc does unmap memory[1]. Not in every free() call, but still. There are also implementations which unmap in every free(), which are used to quickly detect bugs. Honestly, I wouldn't want to use an implementation which never unmaps memory. I've already been irritated by Go's reluctance to return memory to the OS in the past. I'm certainly glad it's less of a problem in C. (Although I've read some reports of glibc being a bit suboptimal here in multithreaded programs, compared to allocators like tcmalloc or jemalloc.)

[1]: <https://github.com/bminor/glibc/blob/a364a3a7090b82ddd30e920...>

comment 4y ago · link · parent

There are sometimes leaks of deleted scenes from films.

comment 4y ago · link · parent

In my case, I used to want to be in a relationship, but with age the prospect lost all appeal, and people ceased being interesting to me in that way at all. I never get the thoughts "oh, this person is really nice, I wonder whether I should ask them out on a date" anymore. I do however value normal friends a lot more than I used to. Still I need space even from friends. My life wouldn't be as enjoyable without the solitary mountain hikes and shooting photos of animals for hours alone.

comment 4y ago · link · parent

What is missing here is a study of the desire to be alone.

comment 4y ago · link · parent

Does iOS use different libc dynamic libraries for applications compiled with different SDKs? I'm not an iOS developer, so I don't know, but I would assume there is only one libsystem_c.dylib[1] on iOS.

[1]: Or even 0, as in Big Sur, where it's provided inside the runtime linker(/loader), instead of being a separate file.

comment 4y ago · link · parent

That's true for memory which has been unmapped from the process (as long as something else isn't mapped to the same virtual address range). But different implementations of C malloc()+calloc()+free() don't necessarily unmap memory when you call free(). Instead they mark it as something that may be returned from subsequent calls to malloc()/calloc(), i.e. the memory isn't returned to the OS.

comment 4y ago · link · parent

I suspect by "liberal arts" you meant humanities and social sciences. Curiously, the term "liberal arts" encompasses natural sciences and mathematics as well. I wouldn't go quite as far as to say they're bullshit. For one, I do appreciate some poetry and other fine arts. Where my sympathies end, is appropriating the hard-earned credibility of science by so called social sciences and humanities, which often, as you wrote, use quotes of prior authors as some proof of truth. Rule of thumb: if papers in a field use "[famous author] wrote X, therefore Y" as the standard of proof, instead of "we conducted those experiments with this methodology and here is what we found", then it's closer to scholasticism[1] than to science and should have no business using the word "science" anywhere. To be fair, in each field of such a social science there are usually people trying to move it away from the authority-driven philosophy model and nearer the science model of experiments, so I wouldn't necessarily say it's all bullshit. But each time I hear someone "studying psychology" say "Freud wrote this", "Lacan said that" and expand that as if psychology was some Freud&Lacan fanfic, then proceeding to make conclusions from that about the real world with the asserted credibility of someone talking about discovery of the electron, I roll my eyes.

[1]: Reading works of scholasticism was dreadful. "Aristotle this, Aristotle that, I'm so insecure I'm afraid to utter a sentence without supporting it by something Aristotle said" and not a single experiment in sight.

comment 4y ago · link · parent

What do you use in place of Homebrew?

comment 4y ago · link · parent

Or we can acknowledge that and aim at restraint, stopping ourselves whenever we catch ourselves doing it, recognising that it's a bug in our software. I've spent most of my life reading philosophy. I've been clean for several years and I'm glad (it's no small feat for me). I recognise now that it was nothing but a bug in my mind. To younger people, I'd advise to focus on the actual mathematics and science, because that's where true knowledge lies.

Solution to talking nonsense is not talking better nonsense, but recognising that one speaks nonsense and should better be silent.

comment 4y ago · link · parent

Except SIMD code while faster may sometimes be less energy-efficient than scalar code. Different SIMD extensions have different energy efficiency characteristics. Also, multithreaded code may finish a task sooner, but spend more energy budget due to costs of synchronisation, spawning and joining threads, etc.

comment 4y ago · link · parent

That may be the case for numerical code. However, a big niche for Python (if not the biggest one) is web services. How common is calling C++/Fortran code in a Django/Flask project? Those projects seem to have layers upon layers of pure Python code, with metaprogramming and whatnot.

Additionally, going through the FFI from C++ to Python and back to C++ has a cost. Eliminating this overhead was one of the motivations behind Julia.

comment 4y ago · link · parent

Those are stunning:

1. <https://www.nhm.ac.uk/wpy/gallery/2021-shelter-from-the-rain>

2. <https://www.nhm.ac.uk/wpy/gallery/2021-night-eyes>

3. <https://www.nhm.ac.uk/wpy/gallery/2021-raw-moment>

4. <https://www.nhm.ac.uk/wpy/gallery/2021-storm-fox>

5. <https://www.nhm.ac.uk/wpy/gallery/2021-ibex-at-ease>

comment 4y ago · link · parent

Do you mean "C++ in Constrained Environments"? Honestly, to me it feels very abstract and hand-wavy, lacking demonstration of a real-world problem being solved. It also looks like the same talk Stroustrup's been giving for the last several years, with maybe minor tweaks.

To me talks by practitioners, who have experience in a given field allowing them to know what works and what doesn't, are more compelling. In the past Mike Acton and Chandler Carruth were such speakers. After quickly going over the schedule, this year Ben Saks, Andrew Drakeford, Ivica Bogosavljevic, Eyal Zedaka, Daniel Withopf, Andreas Weis and Ilya Burylov seem to be such speakers. I'll watch their talks when they become available.

comment 4y ago · link · parent

That's a broader theme. Watching TV is considered more childish than reading a book, even though TV content requires a lot more kinds of creative work in order to exist. The reason is that usually when the medium is richer, it demands less of its audience. Instead of imagining a scene, you're given its picture ready-made. Instead of actively following the lines of a story, you passively assimilate what appears before your eyes. It's less effort, and it's less active. It's common for people to watch TV in order to "turn off their brains" when exhausted. "Turning one's brain off" when reading a book is usually an accident, not an intentional thing, and happens a lot less.

Games demand more from their audience than TV, but you're still given a lot to consume passively, compared to a book: instead of imagining scenes, you're again given them as pictures. Games do compensate though with demanding that you make choices as you play a game, which may impact a story. Well... that's as long as the game is not an FPS, or a racing game, where choices don't matter for a story, as the story is either non-existent, or barely important; and what matters a lot more is your dexterity and reflex.

comment 4y ago · link · parent

I have a favourite restaurant I go to regularly, alone. The waiters and cooks there know me, as I've been going there for years now. I also have a fairly stable taste, so for some time I've been seeing and overhearing them making bets upon my arrival about what and in what quantity I will order, before I actually make the order. Rather than being embarrassed about it, I'm amused and always want to smile when I notice this happening. People noticing your personal quirks is really not that bad.

comment 4y ago · link · parent

Something being common sense is not a good argument for it making sense. The most obvious demonstration of that is physics. Our common sense is hopeless at modelling the world around us accurately. Maths is better at that. In programming, similarly, algebraic properties and representation in memory should be preferred over a reasoning that something is just “common sense”.

comment 4y ago · link · parent

I’ve had very limited contact with Perl, but for scripting purposes it does seem like the best option, so I intend to sit down to it and learn it better. It looks like a great next step after sed and awk (perl -pe). I love the ability to write terse scripts, reasonable speed for a scripting language and, as you said, backwards-compatibility (such a stark contrast compared to Python).

comment 4y ago · link · parent

I'm not a LoTR fan[1], but I would agree about the writing. Some of the dialogues are complete joke. The entire beginning with Galadriel, her brother and her bullies sounds as if it was written by a 6yo, wrt logic and poor attempts at gravitas. Also the choreography of Galadriel's fight with the troll and writing of the scenes immediately leading up to that moment don't make any sense. On top of that, the whole thing feels poorly paced and boring.

Note that in the above I haven't said anything about faithfulness to the lore, which I'm not particularly attached to. To me the show can't stand even on its own, much less as part of a larger whole.

When it comes to stylisation, with Elves, at one point I felt as if I was watching Vulcans from Star Trek rather than Elves from LoTR. They obliterated all their features except the ears, and most of them look ridiculous (what's with the haircuts?).

So: I'm not angry (since they didn't break anything I cared about). But I am completely unamused be the show. I won't continue watching it.

[1]: I didn't dislike LoTR, but neither is it something I care all that much for.

comment 4y ago · link · parent

Sometimes IMDB gets 10/10 reviews before the films are even aired anywhere on Earth. It's magical.

comment 4y ago · link · parent

Nit: I'm seeing 36%.
1
272829
55