Off Topic
    • Categories
    • Tags
    • Users
    • Groups
    • Amazon
    • OT Fundraiser
    • Register
    • Login

    The OFFICIAL programming thread

    Tech
    22
    1.4k
    10.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • HogH
      Hog
      last edited by Hog

      Love this: A new language called Spellscript.

      Hello world:

      begin the grimoire.
      inscribe whispers of "hello, world!".
      close the grimoire.
      

      Longer code example:

      begin the grimoire.
      summon the power with essence of 7.
      conjure ritual named amplify with value to return value multiplied by value.
      enchant power with essence 0 of through ritual amplify with power.
      inscribe whispers of "the power is amplified: " bound with power.
      close the grimoire.
      

      On a quick scan, I’m guessing the above creates a variable named power and initializes it to 7. Then it declares a function called amplify that returns the square of whatever value is passed to it. (Looks like it might be pass by reference). Then it calls the function and prints the result.

      I’d never use the language but I’d get a kick out of it if some nutter wrote an operating system in it, it took off and the kernel maintainers were referred to as the “conclave of wizards of the inner sanctum” or something.

      Show HN: I made an esoteric programming language that's read like a spellbook | Hacker News
      1 Reply Last reply Reply Quote 4
      • eWildcatE
        eWildcat
        last edited by

        Nerdery in the nerdery. Nerd inception, I love the idea.

        1 Reply Last reply Reply Quote 2
        • HogH
          Hog
          last edited by Hog

          I have no idea wtf she is doing in the below but is interesting to watch.

          Coding Trance Music (Full Narrated)

          I only clicked the link because, besides for dropping E and dancing to it all night like it’s 1995, I find trance music is good for coding sessions and I couldn’t understand how what I read as “trance music for coding” could be narrated without ruining it. Turns out she’s actually programming trance music.

          1 Reply Last reply Reply Quote 0
          • Gators1G
            Gators1
            last edited by

            That syntax though. Kinda repetitive, most musicians use a timeline to compose. But still looks fun. Here’s the cli site.

            Strudel REPL

            alt text

            HogH 1 Reply Last reply Reply Quote 1
            • HogH
              Hog @Gators1
              last edited by

              @Gators1 said in The OFFICIAL programming thread:

              That syntax though. Kinda repetitive, most musicians use a timeline to compose. But still looks fun. Here’s the cli site.

              Strudel REPL

              The interactive tutorial they have is great. I guess it almost needs to be since it’s pretty cryptic on the face of it.

              Gators1G 1 Reply Last reply Reply Quote 0
              • JamJ
                Jam
                last edited by Jam

                @Hog

                I felt I was going to be dismissive just looking at the link image, but I did find the creation process and the result fascinating.

                At the end, when it faded and got quiet though, I felt a sense of relief.

                ;-)

                "laissez les bons temps rouler!"

                HogH 1 Reply Last reply Reply Quote 1
                • HogH
                  Hog @Jam
                  last edited by

                  @Jam Yeah I felt the same. As Gators said, it’s was repetitive. Irritatingly so.

                  Might be a limitation of the tool/language but she had at least one other song that sounded better and was more of regular song but still not my cup of tea. I mostly posted it for the process not the music.

                  1 Reply Last reply Reply Quote 2
                  • Gators1G
                    Gators1 @Hog
                    last edited by

                    @Hog said in The OFFICIAL programming thread:

                    @Gators1 said in The OFFICIAL programming thread:

                    That syntax though. Kinda repetitive, most musicians use a timeline to compose. But still looks fun. Here’s the cli site.

                    Strudel REPL

                    The interactive tutorial they have is great. I guess it almost needs to be since it’s pretty cryptic on the face of it.

                    Don’t get too excited. Sorry to tell you this, but you are an old man and don’t have the abs to ever be a great DJ.

                    alt text

                    GustafG 1 Reply Last reply Reply Quote 2
                    • HogH
                      Hog
                      last edited by

                      Same lady:

                      Switch Angel - Morrow

                      Still not my thing but better than the other one.

                      Gators1G 1 Reply Last reply Reply Quote 1
                      • JamJ
                        Jam
                        last edited by Jam

                        Better!

                        I could do without the banging on the garbage cans though, especially with the loose lids. ;-)

                        A touch of poetry as well . . .

                        I can enjoy listening to this one.

                        "laissez les bons temps rouler!"

                        1 Reply Last reply Reply Quote 1
                        • GustafG
                          Gustaf @Gators1
                          last edited by

                          @Gators1 said in The OFFICIAL programming thread:

                          @Hog said in The OFFICIAL programming thread:

                          @Gators1 said in The OFFICIAL programming thread:

                          That syntax though. Kinda repetitive, most musicians use a timeline to compose. But still looks fun. Here’s the cli site.

                          Strudel REPL

                          The interactive tutorial they have is great. I guess it almost needs to be since it’s pretty cryptic on the face of it.

                          Don’t get too excited. Sorry to tell you this, but you are an old man and don’t have the abs to ever be a great DJ.

                          On the upside, Gators may become obsessed with you

                          "Let's give it a week! Still a disaster? Let's give it another week…" -Tazz

                          Gators1G 1 Reply Last reply Reply Quote 2
                          • Gators1G
                            Gators1 @Hog
                            last edited by

                            @Hog said in The OFFICIAL programming thread:

                            Same lady:

                            Switch Angel - Morrow

                            Still not my thing but better than the other one.

                            At least it’s not just repeating loops.

                            This is a synth channel, but you can kind of see how they compose stuff on the program where they record the individual tracks and then combine it later. Have not done this in years, but you could play/record or even just write the score in the program. Either way you are learning music theory to have something decent come out of the process.

                            'Take On Me' Recreated From Scratch

                            Also if you are hell bent on programming, seems like there are bunch of Python libraries to do stuff.

                            GitHub - andreimatveyeu/awesome-python-audio: Awesome Python resources related to audio and music

                            GitHub - andreimatveyeu/awesome-python-audio: Awesome Python resources related to audio and music

                            Awesome Python resources related to audio and music - andreimatveyeu/awesome-python-audio

                            alt text

                            1 Reply Last reply Reply Quote 1
                            • Gators1G
                              Gators1 @Gustaf
                              last edited by

                              @Gustaf said in The OFFICIAL programming thread:

                              @Gators1 said in The OFFICIAL programming thread:

                              @Hog said in The OFFICIAL programming thread:

                              @Gators1 said in The OFFICIAL programming thread:

                              That syntax though. Kinda repetitive, most musicians use a timeline to compose. But still looks fun. Here’s the cli site.

                              Strudel REPL

                              The interactive tutorial they have is great. I guess it almost needs to be since it’s pretty cryptic on the face of it.

                              Don’t get too excited. Sorry to tell you this, but you are an old man and don’t have the abs to ever be a great DJ.

                              On the upside, Gators may become obsessed with you

                              It’s the green hair that gets me and Hog will never have that. Maybe a green head…that might work?

                              alt text

                              1 Reply Last reply Reply Quote 2
                              • GustafG
                                Gustaf
                                last edited by

                                Hog is Shrek?

                                "Let's give it a week! Still a disaster? Let's give it another week…" -Tazz

                                HogH 1 Reply Last reply Reply Quote 0
                                • O
                                  oyaji
                                  last edited by

                                  N'dea Yancey-Bragg  /  May 19, 2020

                                  Man who wore watermelon on head while stealing from convenience store arrested, police say

                                  Man who wore watermelon on head while stealing from convenience store arrested, police say

                                  Virginia police arrested one suspect accused of stealing alcohol from a convenience store while wearing a hollowed-out watermelon on his head.

                                  © 2015 - 2025 oyaji

                                  1 Reply Last reply Reply Quote 1
                                  • HogH
                                    Hog @Gustaf
                                    last edited by

                                    @Gustaf said in The OFFICIAL programming thread:

                                    Hog is Shrek?

                                    Some would say that our diets are similar.

                                    1 Reply Last reply Reply Quote 0
                                    • GustafG
                                      Gustaf
                                      last edited by

                                      I can’t make it for dinner any more.

                                      "Let's give it a week! Still a disaster? Let's give it another week…" -Tazz

                                      1 Reply Last reply Reply Quote 1
                                      • eWildcatE
                                        eWildcat
                                        last edited by eWildcat

                                        It all tastes like chicken anyway.
                                        The initial number of legs isn’t quite as relevant as it first sounds, really.

                                        1 Reply Last reply Reply Quote 2
                                        • GustafG
                                          Gustaf
                                          last edited by

                                          Snails don’t have legs!

                                          "Let's give it a week! Still a disaster? Let's give it another week…" -Tazz

                                          JamJ 1 Reply Last reply Reply Quote 0
                                          • eWildcatE
                                            eWildcat
                                            last edited by

                                            My point.

                                            1 Reply Last reply Reply Quote 2
                                            • First post
                                              Last post