Pricefield | Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@[email protected] to Programmer [email protected]English • 2 years ago

thisIsGoingToBeASeriousDebate

programming.dev

message-square
40
fedilink
302

thisIsGoingToBeASeriousDebate

programming.dev

@[email protected] to Programmer [email protected]English • 2 years ago
message-square
40
fedilink
alert-triangle
You must log in or register to comment.
  • Arthur Besse
    link
    fedilink
    English
    3•
    edit-2
    2 years ago

    dc <<<'10435358689859 70511561 11297399 23 5 3 2 ******P'

    note: lemmy’s “smart quotes” vs its input sanitization required me to code-format the second half of that line (and not the first half) to make it copy+paste runnable.

  • @[email protected]
    link
    fedilink
    4•2 years ago

    Why do you call write() for every char? You can always just pass a pointer with its length.

    • @[email protected]OP
      link
      fedilink
      1•2 years ago

      I am not skilled enough to do that ngl

  • @[email protected]
    link
    fedilink
    3•2 years ago

    Camel case?

    this_is_not_going_to_be_a_serious_debate

  • @[email protected]
    link
    fedilink
    5•
    edit-2
    2 years ago
    #include &lt;stdio.h>
    
    int main(int argc, char** argv)
    {
        printf("hello, world");
    }
    
  • @[email protected]
    link
    fedilink
    3•2 years ago

    I thought the whole point of rust macros was to abstract away the scary asm at zero cost!

  • @[email protected]
    link
    fedilink
    5•
    edit-2
    2 years ago

    Ec Emm this side is the best one …

    ++++++++[< +++++++++>-]<. ++++[<+++++++>-]<+. +++++++… +++.

    ++++++[<+++++++>-]<++. ------------. ++++++[<+++++++++>-]<+. <. +++. ------. --------.

    ++++[<++++++++>-]<+.

  • Arthur Besse
    link
    fedilink
    1•
    edit-2
    2 years ago

    base64 -d <<<SGVsbG8gV29ybGQhCg==

  • Arthur Besse
    link
    fedilink
    8•2 years ago

    https://www.gnu.org/fun/jokes/helloworld.html

  • @[email protected]
    link
    fedilink
    4•2 years ago
    echo Hello World
    
  • @[email protected]
    link
    fedilink
    English
    21•2 years ago

    Console.WriteLine("Hello World!");

  • idunnololz
    link
    fedilink
    1•2 years ago

    Hello, world!

  • @[email protected]
    link
    fedilink
    10•2 years ago
    def main(): 
        print("Hello world") 
    
  • umbraroze
    link
    fedilink
    19•2 years ago

    Oh you fancy PC people and your fancy syscall instruction.

    I still don’t know why I could remember jsr $ab1e. I didn’t even write that much assembly.

    • @[email protected]
      link
      fedilink
      English
      1•2 years ago

      That looks like a 6502 instruction. What system is it from?

  • @[email protected]
    link
    fedilink
    English
    11•
    edit-2
    2 years ago

    console.log(“Hello World!”)

  • r00ty
    link
    fedilink
    18•2 years ago

    Or, you could just go the whole hog. Create your own simple CPU emulator, design a basic 8bitesque CPU, give it an output port that is the console, and load up some basic ASM to cycle through Hello World to the console port.

Programmer [email protected]

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

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
  • 39 users / day
  • 288 users / week
  • 1.11K users / month
  • 4.42K users / 6 months
  • 3 subscribers
  • 1.58K Posts
  • 55.9K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @[email protected]
  • Pierre-Yves Lapersonne
  • UI: 0.18.4
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org