lore.kernel.org

pr06lefs, to linux in Binder (Android's core IPC) Rust rewrite posted to LKML

IPC standing for Inter Process Communication in this instance.

pastermil,

What else would it stand for?

conciselyverbose,

It's instructions per clock/cycle in a hardware context, because you can't use clock speeds to compare performance between processors.

pastermil,

That is true…

pr06lefs,

I find it annoying when an article contains ATANE.

Atemu,
@Atemu@lemmy.ml avatar

Clear case of DOTA.

LaLiLuLuCo,

Interastral Peace Corp

Decker108,

What about Intraastral Peace Corps?

ElNuevo, (edited )
@ElNuevo@lemmy.lemist.de avatar

Instructions per cycle

Was what I first read anyways

Spectacle8011, to linux in Binder (Android's core IPC) Rust rewrite posted to LKML
@Spectacle8011@lemmy.comfysnug.space avatar

This is the kind of high-quality technical discussion I don’t understand a word of that rarely surfaced on reddit.

stardreamer, (edited )
@stardreamer@lemmy.blahaj.zone avatar

Having one program (process) talk to another is dangerous. Think of a stranger trying to come over to me and deliver a message. There’s no way I can guarantee that he isn’t planning to stab me as soon as he sees me.

That’s why we have special mechanisms for programs talking to other programs. Instead of having the stranger deliver the message directly to me, our mutual friend Bob (IPC Library, binder in this case) acts as an intermediary. This way at least I can’t be “directly” stabbed.

What’s preventing the stranger from convincing Bob to stab me? Not much (except for Bob’s own ethics/programming)

To work around this, we have designed programming languages (rust) that don’t work if there’s a possibility of it being corrupted (I would add “at least superficially”, but that’s not the main topic here). Bob was trained by the CIA in anti-brainwashing techniques. It’s really hard to convince Bob to stab me. That’s why it’s such a big deal. We now have a way of delivering messages between two programs that is much safer than before.

The only problem is that the CIA anti-brainwashing techniques (rust) tend to make people slow. So we deliver messages less efficiently than before. Good news is in this case we managed to make Bob almost as fast as before, so we don’t lose our own much while gaining additional security. The people who checked on Bob even made sure to have Bob do the exact same thing as before when delivering messages (using RB Trees), hence this evidence is most likely credible.

Spectacle8011,
@Spectacle8011@lemmy.comfysnug.space avatar

That’s a great explanation! Thank you, I get it now. I always did wonder what exactly IPC was about. Yay for Rust in the kernel.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • 200 @ domain_comments
    HTTP status 200 OK
    Route name domain_comments
    Has session yes
    Stateless Check no
    Time 322 ms
    Total time 322 ms
    Initialization time 54 ms
    Memory 14.0 MiB
    Peak memory usage 14.0 MiB
    PHP memory limit 128 MiB
    Logger 89
    Errors 0
    Warnings 0
    Deprecations 89
    Cache 76 in 194.51 ms
    Cache Calls 76
    Total time 194.51 ms
    Cache hits 43 / 78 (55.13%)
    Cache writes 24
    3
    Default locale en
    Missing messages 3
    Fallback messages 0
    Defined messages 111
    Security n/a
    Authenticated No
    Firewall name main
    Twig 246 ms
    Render Time 246 ms
    Template Calls 176
    Block Calls 14
    Macro Calls 0
    130 in 136 ms
    settings_row_switch 15
    entry_comment 12
    user_inline 12
    date 12
    date_edited 12
    user_avatar 12
    vote 12
    boost 12
    entry_comments_nested 12
    user_settings_row_switch 4
    magazine_inline 2
    entry_inline 2
    settings_row_enum 2
    domain 1
    domain_sub 1
    related_magazines 1
    active_users 1
    related_categories 1
    related_posts 1
    related_entries 1
    support_us_block 1
    featured_magazines 1
    17 in 65.68 ms
    Database Queries 17
    Different statements 9
    Query time 65.68 ms
    Invalid entities 0
    Cache hits 24
    Cache misses 8
    Cache puts 8
    6.4.0
    Profiler token c0f60f
    Environment dev
    Debug enabled
    PHP version 8.2.26   View phpinfo()
    PHP Extensions Xdebug ✗ APCu ✓ OPcache ✓
    PHP SAPI apache2handler