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

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

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    mcc (mcc@mastodon.social)'s status on Wednesday, 08-Jan-2025 03:46:54 JSTmccmcc
    in reply to

    Anyway here's my 45-line code for a harness that reads in lines of ASCII numbers and prints and dumps the stack after each.

    https://github.com/mcclure/aoc2024/blob/beba6adc719247e61123ad1be7d2339c4a6f7f22/02-01-nuclear/src/puzzle.f

    It's… awkward in places. It would have helped to have else-if, character literals for whitespace (like '\t' and '\r'), and a better story for complex boolean exps
    (`DUP DUP DUP 9 = SWAP 13 = OR SWAP 32 = OR`. Ouch.) Parts feel nice and parts feel real bad.

    I expect the ACTUAL PROGRAM will be a few lines long, and possibly only take mere minutes.

    In conversationabout 4 months ago from mastodon.socialpermalink
  • 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.