GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Notices by Tom Hayward (hattom@mastodon.social)

  1. Embed this notice
    Tom Hayward (hattom@mastodon.social)'s status on Friday, 04-Jul-2025 17:17:56 JST Tom Hayward Tom Hayward

    My share of #teaching for this semester is done (at least the lecturing part of it).
    An 11 lecture course on all topics of nuclear fusion research, I adopted a 50% share this year after my boss wasn't available to teach this semester.

    Was I the best lecturer ever? No.
    Do I feel like I was getting better as I went? Slightly.
    Do I think it'll be easier/I'll be better if I do it next year as well? Certainly.

    #academia #physics #fusion

    In conversation about 7 months ago from mastodon.social permalink
  2. Embed this notice
    Tom Hayward (hattom@mastodon.social)'s status on Sunday, 29-Dec-2024 23:35:28 JST Tom Hayward Tom Hayward
    in reply to
    • Arne Babenhauserheide
    • Jeff

    @ArneBab @jeffscience I really don't remember for sure. But I think it wasn't quite that, but rather that it's not a normal mathematical operation; traditional operators have been words. I don't know where I read the discussion, but it was a long time ago.

    In conversation about a year ago from mastodon.social permalink
  3. Embed this notice
    Tom Hayward (hattom@mastodon.social)'s status on Sunday, 29-Dec-2024 22:31:26 JST Tom Hayward Tom Hayward
    in reply to
    • Arne Babenhauserheide
    • Jeff

    @ArneBab iirc, @jeffscience wrote something about it before -- committee argued against it for some strange reason (because it's not pronounceable??) and shot down the proposal.

    Thanks for the link, I'll take a look!

    In conversation about a year ago from mastodon.social permalink
  4. Embed this notice
    Tom Hayward (hattom@mastodon.social)'s status on Sunday, 29-Dec-2024 22:14:41 JST Tom Hayward Tom Hayward
    in reply to
    • Arne Babenhauserheide

    @ArneBab we have all 3 (real function X; function X + real::X; function X result(Y) + real::Y) in our production code.

    I only use the result option if the function name is quite long; or the function name and the return value name are not logical enough [e.g.: function get_integral_from_shape(shape) result(integral)].

    Definitely don't want to be writing code with lines like:
    get_integral_from_shape_cubic = get_integral_from_shape_cubic + func(get_integral_from_shape_cubic)

    Oh... I wish "+="

    In conversation about a year ago from mastodon.social permalink
  5. Embed this notice
    Tom Hayward (hattom@mastodon.social)'s status on Sunday, 29-Dec-2024 20:12:30 JST Tom Hayward Tom Hayward
    in reply to
    • Arne Babenhauserheide

    @ArneBab while I'm at it with unnecessary comments, you don't *have* to set the return value of a function to a variable of the same name, but if you don't want to, you need to be explicit about what the name of the result is called.

    function myfunc result(ans)
    real :: ans
    ans = 3.0
    end function

    In conversation about a year ago from mastodon.social permalink
  6. Embed this notice
    Tom Hayward (hattom@mastodon.social)'s status on Sunday, 29-Dec-2024 19:52:44 JST Tom Hayward Tom Hayward
    in reply to
    • Arne Babenhauserheide

    @ArneBab lots of good stuff in there!

    "Alternative: Declare the return type of a function inside the function" -- this is what I do for any function which returns anything other than a scalar of one of the simple built-in types.

    The part about accumulation is quite subtle -- variables can have a property "save" which makes them persistent across calls.
    Any initialisation in the declaration line implicitly makes them "save", which is often counter intuitive.
    Reminds me of python's: def a(b=[]):

    In conversation about a year ago from mastodon.social permalink
  7. Embed this notice
    Tom Hayward (hattom@mastodon.social)'s status on Wednesday, 12-Jun-2024 04:59:49 JST Tom Hayward Tom Hayward
    in reply to
    • Colin the Mathmo

    @ColinTheMathmo What's the diagonal line?

    In conversation Wednesday, 12-Jun-2024 04:59:49 JST from mastodon.social permalink

User actions

    Tom Hayward

    Tom Hayward

    Fusion plasma physicist, computational scientist.Scientist at the Max Planck Institute for Plasma Physics (views here strictly my own).Juggler. Runner.He/him

    Tags
    • (None)

    Following 0

      Followers 0

        Groups 0

          Statistics

          User ID
          264855
          Member since
          11 Jun 2024
          Notices
          7
          Daily average
          0

          Feeds

          • Atom
          • Help
          • About
          • FAQ
          • TOS
          • Privacy
          • Source
          • Version
          • Contact

          GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

          Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.