Jonkman Microblog
  • Login
Show Navigation
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. tekk (tekk@social.tekk.in)'s status on Sunday, 01-Oct-2017 16:38:32 EDT tekk tekk
    Not far off from a complete programming language made in 24 hours. Sadly I need to get some physics homework out of the way..
    In conversation Sunday, 01-Oct-2017 16:38:32 EDT from social.tekk.in permalink
    1. tekk (tekk@social.tekk.in)'s status on Sunday, 01-Oct-2017 18:23:33 EDT tekk tekk
      in reply to
      For the curious: http://github.com/tekktonic/onward , it's a forth and the pushed version isn't really there yet; it's pretty much just an rpn calculator. Locally I'm closer to working but still broken so I haven't pushed.
      In conversation Sunday, 01-Oct-2017 18:23:33 EDT from social.tekk.in permalink

      Attachments

      1. tekktonic/onward
        from GitHub
        Contribute to onward development by creating an account on GitHub.
      1. clacke (clacke@social.heldscal.la)'s status on Monday, 02-Oct-2017 03:59:38 EDT clacke clacke
        in reply to
        https://github.com/tekktonic/onward/blob/master/onward.c is a !forth ("pretty much just an rpn calculator") by @tekk , made in 24 hours.
        In conversation Monday, 02-Oct-2017 03:59:38 EDT from social.heldscal.la permalink

        Attachments

        1. tekktonic/onward
          from GitHub
          Contribute to onward development by creating an account on GitHub.
        1. tekk (tekk@social.tekk.in)'s status on Monday, 02-Oct-2017 04:01:44 EDT tekk tekk
          in reply to
          @clacke I meant it in the literal sense; the pushed version really is just a rpn calculator. Like I said I have a version which implements words on my desktop, but I had to do stuff like homework so it didn't quite catch the "24 hour forth" mark. Not too much work left to be done before then though; I predict <700 sloc total.
          In conversation Monday, 02-Oct-2017 04:01:44 EDT from social.tekk.in permalink
        2. tekk (tekk@social.tekk.in)'s status on Monday, 02-Oct-2017 04:09:47 EDT tekk tekk
          in reply to
          @clacke The current commit is now what I have locally, although it shouldn't be on master (think I hit a bug in magit). Basically just need to put together the infrastructure to make the builtins evaluate their arguments. Currently "1 1 - 3 +" will die because - isn't a number, even though the result of its evaluation (0) is a number. Once I have that working I just need to implement the begin and end keywords (when you see end on the top of the stack, create a) 1/2
          In conversation Monday, 02-Oct-2017 04:09:47 EDT from social.tekk.in permalink
          1. tekk (tekk@social.tekk.in)'s status on Monday, 02-Oct-2017 04:11:38 EDT tekk tekk
            in reply to
            2/2 new word with the assigned name and pop from the stack into the word's stack until "begin" is hit. Evaluation of a word is just copying all of the contents of the word's stack into the stack in reverse order so that it's as if you were typing the commands in literally. With words and arbitrarily long loops (do math on numbers to feed to rep) I should be turing complete; then just a problem of exposing syscalls and stuff.
            In conversation Monday, 02-Oct-2017 04:11:38 EDT from social.tekk.in permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.

Switch to desktop site layout.