programming.dev
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Maven (famous)@lemmy.world to Programmer Humor@lemmy.ml · 1 year ago

STOP WRITING C

lemmy.world

message-square
154
link
fedilink
786

STOP WRITING C

lemmy.world

Maven (famous)@lemmy.world to Programmer Humor@lemmy.ml · 1 year ago
message-square
154
link
fedilink
  • Hadriscus@lemm.ee
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Is brainfuck efficient ?

    • dejected_warp_core@lemmy.world
      link
      fedilink
      arrow-up
      13
      ·
      edit-2
      1 year ago

      For the programmer? Very no.

      For saving space if run via interperter? No.

      For running compiled for conventional CPUs? No.

      Compared to CISC instruction sets? Absolutely no.

      BF might be highly efficient if crunched down to a bit-packed representation (3 bits per instruction) and run on an FPGA that understands it.

      • frezik@midwest.social
        link
        fedilink
        arrow-up
        6
        ·
        1 year ago

        For demonstrating to CS freshmen that Turing Completeness isn’t that remarkable of a language feature: very highly efficient.

      • MinekPo1 [it/she]@lemmygrad.ml
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        its efficient in terms of compiler size ! nya

    • MeanEYE@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

      Can be compressed very efficiently. I do dread the thought of writing a driver in brainfuck.

      • MatFi@lemmy.thias.xyz
        link
        fedilink
        arrow-up
        5
        ·
        edit-2
        1 year ago

        Can be compressed very efficiently.

        Which basically means: “You have to write more code than actually needed”. It’s more a con than a pro in my eyes.

      • dejected_warp_core@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        Hot take: As a VM with only eight instructions, it’s very easy to code and securely sandbox. Maybe BF has utility as a compilation target?

      • MinekPo1 [it/she]@lemmygrad.ml
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        decided to check : mandelbrot can be compressed by 87.5% by gzip on maximum compression strength

      • Hadriscus@lemm.ee
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Why specifically a driver ?

        • MeanEYE@lemmy.world
          link
          fedilink
          arrow-up
          5
          ·
          1 year ago

          Hardware is complex and mysterious enough without added complexity of an esoteric language.

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

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: [email protected]

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

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

  • 24 users / day
  • 1.75K users / week
  • 2.51K users / month
  • 9.89K users / 6 months
  • 730 local subscribers
  • 35.7K subscribers
  • 1.75K Posts
  • 38.6K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org