Connecting Tech Pros Worldwide Forums | Help | Site Map

Interesting coding idea

Bruno R. Dias
Guest
 
Posts: n/a
#1: Jul 18 '05
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
Guest
 
Posts: n/a
#2: Jul 18 '05

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.python.

--
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.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Andrew Dalke
Guest
 
Posts: n/a
#3: Jul 18 '05

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".

http://www.aracnet.com/~healyzh/pdp7emu.html


And this is off-topic to comp.lang.python

Andrew
dalke@dalkescientific.com
Bruno R. Dias
Guest
 
Posts: n/a
#4: Jul 18 '05

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.python.
>[/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------
Paul Foley
Guest
 
Posts: n/a
#5: Jul 18 '05

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]

http://simh.trailing-edge.com

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

(setq reply-to
(concatenate 'string "Paul Foley " "<mycroft" '(#\@) "actrix.gen.nz>"))
CBFalconer
Guest
 
Posts: n/a
#6: Jul 18 '05

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.python.[/color]

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

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


Malcolm
Guest
 
Posts: n/a
#7: Jul 18 '05

re: 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.



Bruno R. Dias
Guest
 
Posts: n/a
#8: Jul 18 '05

re: 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------
Albert Hofkamp
Guest
 
Posts: n/a
#9: Jul 18 '05

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.
Closed Thread


Similar Python bytes