Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. Regular reminder to self

Regular reminder to self

Scheduled Pinned Locked Moved Uncategorized
23 Posts 11 Posters 0 Views
  • 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.
  • shana@mastodon.gamedev.placeS shana@mastodon.gamedev.place

    Regular reminder to self

    Link Preview Image
    lemgandi@mastodon.socialL This user is from outside of this forum
    lemgandi@mastodon.socialL This user is from outside of this forum
    lemgandi@mastodon.social
    wrote last edited by
    #4

    @shana

    This is life-changing for me.

    1 Reply Last reply
    0
    • shana@mastodon.gamedev.placeS shana@mastodon.gamedev.place

      Regular reminder to self

      Link Preview Image
      N This user is from outside of this forum
      N This user is from outside of this forum
      nyx@lgbtqia.space
      wrote last edited by
      #5

      @shana not really for loops. In math a sum can and often does go up to infinity, whereas a for loop cannot do that.

      As an analogy to convey some information is fine, I'm just reminding that it ain't the same thing.

      hjvt@hachyderm.ioH shana@mastodon.gamedev.placeS 2 Replies Last reply
      1
      0
      • R relay@relay.infosec.exchange shared this topic
      • N nyx@lgbtqia.space

        @shana not really for loops. In math a sum can and often does go up to infinity, whereas a for loop cannot do that.

        As an analogy to convey some information is fine, I'm just reminding that it ain't the same thing.

        hjvt@hachyderm.ioH This user is from outside of this forum
        hjvt@hachyderm.ioH This user is from outside of this forum
        hjvt@hachyderm.io
        wrote last edited by
        #6

        @nyx @shana while not quite a for-loop, in lazy languages that have bignums, you could yield partial sums forever, at least until your sum grows to millions of digits

        shana@mastodon.gamedev.placeS 1 Reply Last reply
        0
        • shana@mastodon.gamedev.placeS shana@mastodon.gamedev.place

          Regular reminder to self

          Link Preview Image
          zmz@mastodon.socialZ This user is from outside of this forum
          zmz@mastodon.socialZ This user is from outside of this forum
          zmz@mastodon.social
          wrote last edited by
          #7

          @shana for some value of "are just"

          shana@mastodon.gamedev.placeS 1 Reply Last reply
          0
          • shana@mastodon.gamedev.placeS shana@mastodon.gamedev.place

            Regular reminder to self

            Link Preview Image
            mousey@mastodon.seattlematrix.orgM This user is from outside of this forum
            mousey@mastodon.seattlematrix.orgM This user is from outside of this forum
            mousey@mastodon.seattlematrix.org
            wrote last edited by
            #8

            @shana Unironically:

            OOOOOOOOOOOH! I've *always* wondered!!

            shana@mastodon.gamedev.placeS 1 Reply Last reply
            0
            • mousey@mastodon.seattlematrix.orgM mousey@mastodon.seattlematrix.org

              @shana Unironically:

              OOOOOOOOOOOH! I've *always* wondered!!

              shana@mastodon.gamedev.placeS This user is from outside of this forum
              shana@mastodon.gamedev.placeS This user is from outside of this forum
              shana@mastodon.gamedev.place
              wrote last edited by
              #9

              @mousey ikr??

              1 Reply Last reply
              0
              • zmz@mastodon.socialZ zmz@mastodon.social

                @shana for some value of "are just"

                shana@mastodon.gamedev.placeS This user is from outside of this forum
                shana@mastodon.gamedev.placeS This user is from outside of this forum
                shana@mastodon.gamedev.place
                wrote last edited by
                #10

                @zmz oh yeah, "just" and "simply" should be banned from most sentences, I agree

                1 Reply Last reply
                0
                • shana@mastodon.gamedev.placeS shana@mastodon.gamedev.place

                  Regular reminder to self

                  Link Preview Image
                  tautology@infosec.exchangeT This user is from outside of this forum
                  tautology@infosec.exchangeT This user is from outside of this forum
                  tautology@infosec.exchange
                  wrote last edited by
                  #11

                  @shana when I was doing the maths parts of my degree, I very quickly realised that maths notation is the problem with why maths is difficult.

                  Borring from the field of computer science to remove all the greek characters that often have multiple uses [1] and rename operators with descriptors could make it way more accessible.

                  [1] Okay this is mainly astrophysics's fault that one equation used sigma in both cases for three different things.

                  shana@mastodon.gamedev.placeS 1 Reply Last reply
                  0
                  • N nyx@lgbtqia.space

                    @shana not really for loops. In math a sum can and often does go up to infinity, whereas a for loop cannot do that.

                    As an analogy to convey some information is fine, I'm just reminding that it ain't the same thing.

                    shana@mastodon.gamedev.placeS This user is from outside of this forum
                    shana@mastodon.gamedev.placeS This user is from outside of this forum
                    shana@mastodon.gamedev.place
                    wrote last edited by
                    #12

                    @nyx Super nitpickity, if you don't have a stop condition, a for-loop will happily go on until the death of the universe (or your pc, whichever comes first)

                    But in general, the sigma is the abstract definition, the for-loop is a possible concrete implementation of that definition, in a language that the target of this PSA (non mathy programmers) can understand and go "oooh ok I get it now". It would have saved me like half a semester if someone had shown me this up front, no other words needed.

                    nyovaya@transfem.socialN 1 Reply Last reply
                    0
                    • xerz@soc.masfloss.netX xerz@soc.masfloss.net

                      @shana that, and equations over planes also implicitly translate into loops over each value of the plane

                      that's basically what made maths finally click for me

                      shana@mastodon.gamedev.placeS This user is from outside of this forum
                      shana@mastodon.gamedev.placeS This user is from outside of this forum
                      shana@mastodon.gamedev.place
                      wrote last edited by
                      #13

                      @xerz If only someone had just put a couple of for-loops as footnotes in my school texts! It would have been such a time saver.

                      1 Reply Last reply
                      0
                      • hjvt@hachyderm.ioH hjvt@hachyderm.io

                        @nyx @shana while not quite a for-loop, in lazy languages that have bignums, you could yield partial sums forever, at least until your sum grows to millions of digits

                        shana@mastodon.gamedev.placeS This user is from outside of this forum
                        shana@mastodon.gamedev.placeS This user is from outside of this forum
                        shana@mastodon.gamedev.place
                        wrote last edited by
                        #14

                        @hjvt hey, why have one for-loop when you can have Parallel.ForEach() and turn *all* your cpu cores into one toasty personal heating unit!

                        1 Reply Last reply
                        0
                        • tautology@infosec.exchangeT tautology@infosec.exchange

                          @shana when I was doing the maths parts of my degree, I very quickly realised that maths notation is the problem with why maths is difficult.

                          Borring from the field of computer science to remove all the greek characters that often have multiple uses [1] and rename operators with descriptors could make it way more accessible.

                          [1] Okay this is mainly astrophysics's fault that one equation used sigma in both cases for three different things.

                          shana@mastodon.gamedev.placeS This user is from outside of this forum
                          shana@mastodon.gamedev.placeS This user is from outside of this forum
                          shana@mastodon.gamedev.place
                          wrote last edited by
                          #15

                          @tautology That might have been why my high school math teacher made me promise I would not go into maths in exchange for a passing grade.

                          I ended up in computers instead which totally has no maths whatsoever!

                          (in hindsight, not the best maths teacher)

                          tautology@infosec.exchangeT 1 Reply Last reply
                          0
                          • shana@mastodon.gamedev.placeS shana@mastodon.gamedev.place

                            Regular reminder to self

                            Link Preview Image
                            jupiter@mastodon.gamedev.placeJ This user is from outside of this forum
                            jupiter@mastodon.gamedev.placeJ This user is from outside of this forum
                            jupiter@mastodon.gamedev.place
                            wrote last edited by
                            #16

                            @shana Please tell mathematicians to write fewer infinite loops -.-

                            Link Preview Image
                            shana@mastodon.gamedev.placeS 1 Reply Last reply
                            0
                            • jupiter@mastodon.gamedev.placeJ jupiter@mastodon.gamedev.place

                              @shana Please tell mathematicians to write fewer infinite loops -.-

                              Link Preview Image
                              shana@mastodon.gamedev.placeS This user is from outside of this forum
                              shana@mastodon.gamedev.placeS This user is from outside of this forum
                              shana@mastodon.gamedev.place
                              wrote last edited by
                              #17

                              @jupiter for (sum=0, k=0;;k++) sum+=pow(a*r,k)

                              Now if you had left the starting index out of the notation, that would have been a stumper 😜

                              jupiter@mastodon.gamedev.placeJ 1 Reply Last reply
                              0
                              • shana@mastodon.gamedev.placeS shana@mastodon.gamedev.place

                                @nyx Super nitpickity, if you don't have a stop condition, a for-loop will happily go on until the death of the universe (or your pc, whichever comes first)

                                But in general, the sigma is the abstract definition, the for-loop is a possible concrete implementation of that definition, in a language that the target of this PSA (non mathy programmers) can understand and go "oooh ok I get it now". It would have saved me like half a semester if someone had shown me this up front, no other words needed.

                                nyovaya@transfem.socialN This user is from outside of this forum
                                nyovaya@transfem.socialN This user is from outside of this forum
                                nyovaya@transfem.social
                                wrote last edited by
                                #18

                                @nyx@lgbtqia.space @shana@mastodon.gamedev.place You just cant calculate the result of the infinite sum notation ^^

                                shana@mastodon.gamedev.placeS 1 Reply Last reply
                                0
                                • nyovaya@transfem.socialN nyovaya@transfem.social

                                  @nyx@lgbtqia.space @shana@mastodon.gamedev.place You just cant calculate the result of the infinite sum notation ^^

                                  shana@mastodon.gamedev.placeS This user is from outside of this forum
                                  shana@mastodon.gamedev.placeS This user is from outside of this forum
                                  shana@mastodon.gamedev.place
                                  wrote last edited by
                                  #19

                                  @nyovaya @nyx Of course, that's neither the point of the infinite summation nor the point of the translation of the math notation into the for-loop.

                                  The point is that there is a translation from the notation to a computer language format that allows a person not versed in maths to understand the underlying concept of the math notation in an intuitive way, as a starting point. If you can't understand what sigma does at its most basic, you cannot understand its actual math purpose as a whole.

                                  1 Reply Last reply
                                  0
                                  • shana@mastodon.gamedev.placeS shana@mastodon.gamedev.place

                                    @jupiter for (sum=0, k=0;;k++) sum+=pow(a*r,k)

                                    Now if you had left the starting index out of the notation, that would have been a stumper 😜

                                    jupiter@mastodon.gamedev.placeJ This user is from outside of this forum
                                    jupiter@mastodon.gamedev.placeJ This user is from outside of this forum
                                    jupiter@mastodon.gamedev.place
                                    wrote last edited by
                                    #20

                                    @shana Well the problem with this is, the series may or may not converge.

                                    But the program does not terminate.

                                    So the program cannot answer *either*, so it's not "just a for loop" 😊

                                    shana@mastodon.gamedev.placeS 1 Reply Last reply
                                    0
                                    • jupiter@mastodon.gamedev.placeJ jupiter@mastodon.gamedev.place

                                      @shana Well the problem with this is, the series may or may not converge.

                                      But the program does not terminate.

                                      So the program cannot answer *either*, so it's not "just a for loop" 😊

                                      shana@mastodon.gamedev.placeS This user is from outside of this forum
                                      shana@mastodon.gamedev.placeS This user is from outside of this forum
                                      shana@mastodon.gamedev.place
                                      wrote last edited by
                                      #21

                                      @jupiter https://mastodon.gamedev.place/@shana/116528612214892516

                                      shana@mastodon.gamedev.placeS 1 Reply Last reply
                                      0
                                      • shana@mastodon.gamedev.placeS shana@mastodon.gamedev.place

                                        @jupiter https://mastodon.gamedev.place/@shana/116528612214892516

                                        shana@mastodon.gamedev.placeS This user is from outside of this forum
                                        shana@mastodon.gamedev.placeS This user is from outside of this forum
                                        shana@mastodon.gamedev.place
                                        wrote last edited by
                                        #22

                                        I can be as nitpicky as you like, and point out that the sigma also lacks information on the stopping conditions, and it is only by unspoken shared understanding that mathematicians agree on what the infinite summation is doing/what information they're getting out of it, and you can encode that unspoken shared understanding in the for-loop by coding up a stop condition when a convergence is detected.

                                        But, again, not the point of Freya's original point, nor of my posting of it.

                                        1 Reply Last reply
                                        0
                                        • shana@mastodon.gamedev.placeS shana@mastodon.gamedev.place

                                          @tautology That might have been why my high school math teacher made me promise I would not go into maths in exchange for a passing grade.

                                          I ended up in computers instead which totally has no maths whatsoever!

                                          (in hindsight, not the best maths teacher)

                                          tautology@infosec.exchangeT This user is from outside of this forum
                                          tautology@infosec.exchangeT This user is from outside of this forum
                                          tautology@infosec.exchange
                                          wrote last edited by
                                          #23

                                          @shana Mine told me outright that I would fail A-level math[s] (in the UK, the exam you take at 18 before you leave school).

                                          More fool him: I scraped a decent grade and have now (decades later) done math[s] modules at degree level.

                                          Unless, that was his plan all along, to try and shame me into putting some effort in?

                                          1 Reply Last reply
                                          1
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups