[–] 3 points 1 week ago

Let me ask a question, then: why were the Linux kernel and the Linux ecosystem written in C rather than Python?

... because C is a systems langauge that you can use to build a kernel? While Python is an interpreted runtime that cannot target bare-metal?

Rust can easily take the place of C, as Rust can also target bare-metal. It can do everything that C can do (perhaps aside from compiling to some very esoteric platforms). The reason Linux is written in C is cause C was the best option at the time, not because C is some magical language that can do stuff that no other language can.

Also, just because Linux was written in C doesn't mean it is the best-known, most famous or most widely used language. Python is much more well-known and widely used than C.

  • source
  • parent
  • context
  • [–] 4 points 1 week ago (1 child)

    I don't know where you've heard this, but none of it is true. Rust is definitely used for low-latency trading, and that's actually one place where it really shines.

    sharing memory addresses across code intentionally having the same address written to and read from across threads. Something rust is sort of designed to not support.

    C++ does not "support" that either. C++ will let you write that code, but if you write code like that in C++, it's undefined behavior and trust me, no low-latency trading firm wants undefined behavior in their trading software (just imagine what could go wrong...).

    Rust helps you avoid such issues. However, Rust definitely "supports" undefined behavior in the exact same way. If you want to share mutable pointers across threads and you don't give a crap about undefined behavior... I mean, that's really, really stupid but you can just write unsafe and then you can do exactly what you can do in C++ as well.

  • source
  • parent
  • context
  • [–] -1 points 1 week ago (2 children)

    While my comment is about c++, not c, I did learn about one use case where rust is strictly worse than c++. Unbelievably low latency applications. Such as software that trades stocks. The way it's implemented, is by sharing memory addresses across code intentionally having the same address written to and read from across threads. Something rust is sort of designed to not support.

    It's the only use case I know of where that's true.

  • source
  • parent
  • context
  • [–] 5 points 1 week ago* (1 child)

    C is currently the best-known programming language in the world

    By what metric? It's certainly not the most popular language. I don't think it's the most famous language either. Probably more people have heard of Python than C.

  • source
  • parent
  • context
  • [–] 1 point 1 week ago*

    Ive had it make me a few iphone apps to sideload, a crossplatform manga reader with the goal supporting all backups/extensions/repos and having every paid feature all those apps have, it works suprisingly well, even implemented internet archive as an extension. Haven't tested anything other than mihon, komga, and suwayomi support but that works well. Mostly just get stuck in a loop testing and tweaking the ui for hours.

    Also an rss reader with hidden/pinned categories and the ability to rearrange feeds, multiple pane views with the ability to dynamically rearrange the layout on the fly, I fking love it, I couldnt find any that let you hide categories which led to me having it make an extension for freshrss, eventually just turned into making an app. It fits all my needs for an rss reader and is seemingly stable.

    Couple blender extensions too, they dont create anything, just speed up my workflow by adding options that used to require workarounds.

  • source
  • parent
  • context
  • [–] 2 points 1 week ago

    But if you want to lecture others about the (relatively small) environmental impact of AI you can't ignore the environmental impact of all your other habits can we? But for some reason people here are so adamant about the horrible environmental cost of AI but comparatively silent about everything else.

  • source
  • parent
  • context
  • [–] 6 points 1 week ago (5 children)

    but no language can take the place of C

    Why do you say that? I definitely think Rust can take the place of C. Not just can actually, I'd go as far as to say that Rust should take the place of C. C is much too unsafe to be used in today's age. There's really no excuse to use a memory unsafe language today if you're starting something new.

    It would not have been better if it was written in C. Rust is just as fast and much better.

  • source
  • parent
  • context
  • [–] 9 points 1 week ago

    It is less of a marketing for Rust rather giving it a new name: Slop Language.

    Not because it is slop, it is great but the way people are using it is not very great

  • source
  • [–] 0 points 1 week ago* (last edited 1 week ago)

    You're talking loud, but say so little.

    Your post history is an argument. You made it - in public. I’m just citing it.

    PS: I believe in you too, champ.

    PPS: Still waiting on well...frankly anything not resembling a brain fart from you. You can do it! Maximum effort!

  • source
  • parent
  • context
  • view more: ‹ prev next ›