The Bard's Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@JPDev@programming.dev to Programmer Humor@programming.dev • 1 year ago

COMEFROM

programming.dev

message-square
23
fedilink
372

COMEFROM

programming.dev

@JPDev@programming.dev to Programmer Humor@programming.dev • 1 year ago
message-square
23
fedilink
alert-triangle
You must log in or register to comment.
  • @MajinBlayze@lemmy.world
    link
    fedilink
    15•1 year ago

    So, an aspect

  • Sonotsugipaa
    link
    fedilink
    English
    54•1 year ago

    Wh… what do you mean, “originally as a joke”?

  • @onlinepersona@programming.dev
    link
    fedilink
    English
    17•1 year ago

    I honestly thought C++ (aka dumping ground of programming concepts) would implement this for “completeness”.

    Anti Commercial-AI license

    • @NeatNit@discuss.tchncs.de
      link
      fedilink
      9•1 year ago

      They should add it in C++26

      • @uis@lemm.ee
        link
        fedilink
        1•1 year ago

        C++60

  • @pro3757@programming.dev
    link
    fedilink
    87•1 year ago

    It’s in Intercal, a joke language from '70s. Mark Rendle describes it here in his talk at NDC. This whole talk is ridiculous btw.

    • @frezik@midwest.social
      link
      fedilink
      122•1 year ago

      This is the same language where you have to say PLEASE sometimes or it won’t compile. But if you say PLEASE too much, the compiler will think you’re pandering and also refuse to compile. The range between too polite and not polite enough is not specified and varies by implementation.

      • @Whelks_chance@lemmy.world
        link
        fedilink
        15•1 year ago

        I love how arbitrary, cultural and opinionated that must be to work with. You’d learn something about the implimenter of the compiler by using it for a while.

      • CO5MO ✨
        link
        fedilink
        10•1 year ago

        This is hilarious!

  • @schnurrito@discuss.tchncs.de
    link
    fedilink
    9•1 year ago

    TBH I fail to see the significant difference between this and a function declaration.

    • 𝕽𝖚𝖆𝖎𝖉𝖍𝖗𝖎𝖌𝖍
      link
      fedilink
      21•1 year ago

      Doesn’t it steal control flow? More like a break point, except you define where execution continues.

      I wonder if it’s a compile error to have multiple conflicting COMEFROM statements, or if it’s random, kind of like Go’s select statement.

      How awesome would it be to be able to steal the execution stack from arbitrary code; how much more awesome if it was indeterminate which of multiple conflicting COMEFROM frames received control! And if it included a state closure from the stolen frame?

      Now I want this.

      • @davidgro@lemmy.world
        link
        fedilink
        6•1 year ago

        I wonder if it’s a compile error to have multiple conflicting COMEFROM statements

        I think there’s at least one INTERCAL implementation where that’s how you start multi-threading

    • @sudo@programming.dev
      link
      fedilink
      3•1 year ago

      Its like if subroutine bar could say its going to execute at line N of routine foo. But if you were just reading foo then you’d have no clue that it would happen.

      You can simulate this effect with bad inheritance patterns.

  • @mossy_@lemmy.world
    link
    fedilink
    31•1 year ago

    Guy who worked at my place before me kept using these and GOTO statements all over the place.

    His name? Cotton-eyed Joe

    • @hakunawazo@lemmy.world
      link
      fedilink
      6•
      edit-2
      1 year ago

      Thanks for the catchy tune, now the song sticks in my mind again. Last time was long time ago. :)

  • @starman@programming.dev
    link
    fedilink
    English
    3•1 year ago

    Looks like C# 12 interceptors:

    [InterceptsLocation(@"C:\testapp\Program.cs", line: 4, column: 5)]
    

    I know it looks awful, but it’s not intended for direct use, but rather for source generators for native ahead of time compilation.

    https://andrewlock.net/exploring-the-dotnet-8-preview-changing-method-calls-with-interceptors/

  • @MadMadBunny@lemmy.ca
    link
    fedilink
    3•
    edit-2
    1 year ago

    You’re gonna love HCF then!

  • @jbk@discuss.tchncs.de
    link
    fedilink
    2•1 year ago

    til

  • ☂️-
    link
    fedilink
    3•
    edit-2
    28 days ago

    deleted by creator

    • @MindTraveller@lemmy.ca
      link
      fedilink
      English
      4•1 year ago

      It’s basically a simpler version of a callback

  • THCDenton
    link
    fedilink
    6•1 year ago

Programmer Humor@programming.dev

!programmer_humor@programming.dev
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: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
  • 22 users / day
  • 112 users / week
  • 733 users / month
  • 2.47K users / 6 months
  • 1 subscriber
  • 1.17K Posts
  • 20.7K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org