NekuSoul-Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
lemme in@lemm.ee to Programming@programming.dev · 6 months ago

The US government wants devs to stop using C and C++

www.theregister.com

external-link
message-square
91
fedilink
208
external-link

The US government wants devs to stop using C and C++

www.theregister.com

lemme in@lemm.ee to Programming@programming.dev · 6 months ago
message-square
91
fedilink
Does anyone want to tell Linus Torvalds? No? I didn't think so
  • ScreaminOctopus@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    6 months ago

    In my understanding, you can’t interface with the C abi without using an unsafe block.

    • FizzyOrange@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      6 months ago

      I think there are some crates that wrap the unsafe code for you, e.g. https://github.com/rodrimati1992/abi_stable_crates/ (I haven’t ever tried it).

    • calcopiritus@lemmy.world
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      6 months ago

      You can just use an unsafe block though. Or make a thin wrapper that is just safe functions that inside just have an unsafe block with the C ABI function.

      Even if rust had a stable ABI, you would still need that unsafe block.

Programming@programming.dev

programming@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programming@programming.dev

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 169 users / day
  • 1.05K users / week
  • 2.33K users / month
  • 7.14K users / 6 months
  • 1 local subscriber
  • 20.1K subscribers
  • 2.05K Posts
  • 32K Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • MaungaHikoi@lemmy.nz
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org