Interesting coding idea

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bruno R. Dias

    #1

    Interesting coding idea

    Perhaps it would be interesting to program a virtual machine simulating
    an ancient computer (such as the pdp-7). Then, it would be rather
    interesting to code for it (porting gcc to it maybe?). I think it would
    be fun to play with the long-forgotten art of coding in machine language.

    And what about a fictional computer, such as one that works on an
    entirely different way (such as a non-binary computer)?

    It wouldn't be very useful, but it wouold be a very fun and very
    interesting thing to hack on.

    --
    -----BEGIN GEEK CODE BLOCK-----
    Version: 3.1
    GCS/E/L d-- s+:+ a--- C++ UL+ P--- L++>+++ E W++ N+ o+ K++ w---
    !O M-- V--PS++ PE++ Y>+ PGP>+ t++(+++) 5? X R+ tv@ b+++@ DI++++ D--- G+
    e- h! r-- y
    ------END GEEK CODE BLOCK------
  • Jack Klein

    #2
    Re: Interesting coding idea

    On Sat, 23 Oct 2004 18:54:55 -0300, "Bruno R. Dias"
    <bruno@octantis .com.br> wrote in comp.lang.c:
    [color=blue]
    > Perhaps it would be interesting to program a virtual machine simulating
    > an ancient computer (such as the pdp-7). Then, it would be rather
    > interesting to code for it (porting gcc to it maybe?). I think it would
    > be fun to play with the long-forgotten art of coding in machine language.
    >
    > And what about a fictional computer, such as one that works on an
    > entirely different way (such as a non-binary computer)?
    >
    > It wouldn't be very useful, but it wouold be a very fun and very
    > interesting thing to hack on.[/color]

    And what exactly does this have to do with the C language? I suspect
    it is equally off-topic in comp.lang.pytho n.

    --
    Jack Klein
    Home: http://JK-Technology.Com
    FAQs for
    comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
    comp.lang.c++ http://www.parashift.com/c++-faq-lite/
    alt.comp.lang.l earn.c-c++

    Comment

    • Andrew Dalke

      #3
      Re: Interesting coding idea

      Bruno R. Dias wrote:[color=blue]
      > Perhaps it would be interesting to program a virtual machine simulating
      > an ancient computer (such as the pdp-7).[/color]

      Google "PDP-7 emulator".




      And this is off-topic to comp.lang.pytho n

      Andrew
      dalke@dalkescie ntific.com

      Comment

      • Bruno R. Dias

        #4
        Re: Interesting coding idea

        Jack Klein wrote:
        [color=blue]
        > On Sat, 23 Oct 2004 18:54:55 -0300, "Bruno R. Dias"
        > <bruno@octantis .com.br> wrote in comp.lang.c:
        >
        >[color=green]
        >>Perhaps it would be interesting to program a virtual machine simulating
        >>an ancient computer (such as the pdp-7). Then, it would be rather
        >>interesting to code for it (porting gcc to it maybe?). I think it would
        >>be fun to play with the long-forgotten art of coding in machine language.
        >>
        >>And what about a fictional computer, such as one that works on an
        >>entirely different way (such as a non-binary computer)?
        >>
        >>It wouldn't be very useful, but it wouold be a very fun and very
        >>interesting thing to hack on.[/color]
        >
        >
        > And what exactly does this have to do with the C language? I suspect
        > it is equally off-topic in comp.lang.pytho n.
        >[/color]
        It would be *programmed* in a language, obviously. It's just that C is
        rather appropriate for that kind of stuff, It's one of my favorite
        languages, and It's a subject that should interest C programmers. The
        same goes for Python.

        --
        -----BEGIN GEEK CODE BLOCK-----
        Version: 3.1
        GCS/E/L d-- s+:+ a--- C++ UL+ P--- L++>+++ E W++ N+ o+ K++ w---
        !O M-- V--PS++ PE++ Y>+ PGP>+ t++(+++) 5? X R+ tv@ b+++@ DI++++ D--- G+
        e- h! r-- y
        ------END GEEK CODE BLOCK------

        Comment

        • Paul Foley

          #5
          Re: Interesting coding idea

          On Sat, 23 Oct 2004 18:54:55 -0300, Bruno R Dias wrote:
          [color=blue]
          > Perhaps it would be interesting to program a virtual machine simulating
          > an ancient computer (such as the pdp-7). Then, it would be rather
          > interesting to code for it (porting gcc to it maybe?). I think it would
          > be fun to play with the long-forgotten art of coding in machine language.[/color]



          --
          Malum est consilium quod mutari non potest -- Publilius Syrus

          (setq reply-to
          (concatenate 'string "Paul Foley " "<mycroft" '(#\@) "actrix.gen.nz> "))

          Comment

          • CBFalconer

            #6
            Re: Interesting coding idea

            Jack Klein wrote:[color=blue]
            > <bruno@octantis .com.br> wrote in comp.lang.c:
            >[color=green]
            >> Perhaps it would be interesting to program a virtual machine
            >> simulating an ancient computer (such as the pdp-7). Then, it
            >> would be rather interesting to code for it (porting gcc to it
            >> maybe?). I think it would be fun to play with the long-forgotten
            >> art of coding in machine language.
            >>
            >> And what about a fictional computer, such as one that works on
            >> an entirely different way (such as a non-binary computer)?
            >>
            >> It wouldn't be very useful, but it wouold be a very fun and
            >> very interesting thing to hack on.[/color]
            >
            > And what exactly does this have to do with the C language? I
            > suspect it is equally off-topic in comp.lang.pytho n.[/color]

            If he moves to alt.folklore.co mputers, he will find plenty of
            people who have programmed such beasts, and even be on-topic.
            Follow-ups set.

            --
            Chuck F (cbfalconer@yah oo.com) (cbfalconer@wor ldnet.att.net)
            Available for consulting/temporary embedded and systems.
            <http://cbfalconer.home .att.net> USE worldnet address!


            Comment

            • Malcolm

              #7
              OT: Interesting coding idea


              "Bruno R. Dias" <bruno@octantis .com.br> wrote[color=blue]
              >[color=green][color=darkred]
              > >>And what about a fictional computer, such as one that works on an
              > >>entirely different way (such as a non-binary computer)?[/color][/color]
              >
              > It would be *programmed* in a language, obviously. It's just that C is
              > rather appropriate for that kind of stuff, It's one of my favorite
              > languages, and It's a subject that should interest C programmers. The
              > same goes for Python.
              >[/color]
              Just because a program could be implemented in C doesn't make it on-topic
              for comp.lang.c. However "is C the the most appropriate language for this
              program?" is probably topical.

              There are plenty of emulators out there, an emulator is not an especially
              difficult program to write, and it is often useful. For instance if you want
              to play 80's vintage Spectrum games from the comfort of your PC it is
              possible using emulation software and program dumps (it is illegal to sell
              such dumps unless you own the copyright, it is OK to make a copy of a game
              you own for personal use, taking a copy from a friend without payment is a
              grey area).

              An interesting project would be a Fibonnaci computer. Instead of using a
              exponent-based system (binary, decimal, hex etc) you represent numbers as
              Fibonnaci sequences. This has some interesting properties, for instance
              there are never two consecutive 1s in a valid number.



              Comment

              • Bruno R. Dias

                #8
                Re: OT: Interesting coding idea

                Malcolm wrote:
                <snip>[color=blue]
                > An interesting project would be a Fibonnaci computer. Instead of using a
                > exponent-based system (binary, decimal, hex etc) you represent numbers as
                > Fibonnaci sequences. This has some interesting properties, for instance
                > there are never two consecutive 1s in a valid number.[/color]

                It would be a bitch to code for such a machine, but it sure would be
                interesting.

                --
                -----BEGIN GEEK CODE BLOCK-----
                Version: 3.1
                GCS/E/L d-- s+:+ a--- C++ UL+ P--- L++>+++ E W++ N+ o+ K++ w---
                !O M-- V--PS++ PE++ Y>+ PGP>+ t++(+++) 5? X R+ tv@ b+++@ DI++++ D--- G+
                e- h! r-- y
                ------END GEEK CODE BLOCK------

                Comment

                • Albert Hofkamp

                  #9
                  Re: Interesting coding idea

                  On Sat, 23 Oct 2004 18:54:55 -0300, Bruno R. Dias <bruno@octantis .com.br> wrote:[color=blue]
                  > Perhaps it would be interesting to program a virtual machine simulating
                  > an ancient computer (such as the pdp-7). Then, it would be rather
                  > interesting to code for it (porting gcc to it maybe?). I think it would
                  > be fun to play with the long-forgotten art of coding in machine language.[/color]

                  If you want to have fun coding in machine language, why not see whether
                  you can squeeze Python into a 68H05 (or something close to that number)?

                  That is a popular micro controller that can be programmed in BASIC.
                  Obviously, if it could be programmed in Python, it would be much easier
                  to use :-)


                  Albert
                  --
                  Unlike popular belief, the .doc format is not an open publically available format.

                  Comment

                  Working...