Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2] 3 4 5

Author Topic: Practical uses for a dwarfputer?  (Read 8991 times)

Ampersand

  • Bay Watcher
    • View Profile
Re: Practical uses for a dwarfputer?
« Reply #15 on: January 08, 2009, 12:54:34 pm »

Build a complex sewer system with garbage dumps connecting it to where the dwarves are. Using the levers, devise a way to use the sewers to open water flow from any given direction and push dumped items into the appropriate stockpile below, where the water is then drained away. Won't work for stones but it should work for many crafts and refuse.
Logged
!!&!!

soundandfury

  • Bay Watcher
  • Code monkey
    • View Profile
    • Just to the Left of Venus (aka dev-null)
Re: Practical uses for a dwarfputer?
« Reply #16 on: January 08, 2009, 02:31:31 pm »

No no no! your missing the knowlege, so i should appolgise im talking about a TRUE computer. A computer is by definition a mechanical device that uses a source of power (either electric or mechanical) to follow a set set of instructions programed by a user. Of which it then solves by itself, no user input apart from activation is needed.

now that is a computer, but remember a computer also needs another vital bit of equipment to function with its programmed data.... damn, i love being cryptic

I beg to differ... http://en.wikipedia.org/wiki/Turing_machine THAT is a true computer, if you want to start bandying definitions about.  (It doesn't even have to be mechanical) Whether one could build a Turing Machine in DF, I don't know. Any ideas?
Logged
It's maths, it must be true!
DF Designer

duro

  • Bay Watcher
  • On Break
    • View Profile
Re: Practical uses for a dwarfputer?
« Reply #17 on: January 08, 2009, 02:49:34 pm »

I beg to differ... http://en.wikipedia.org/wiki/Turing_machine THAT is a true computer, if you want to start bandying definitions about.  (It doesn't even have to be mechanical) Whether one could build a Turing Machine in DF, I don't know. Any ideas?

If you're able to implement an infinite tape, I'll help with the rest.

However it will be a hell of work to load a program (but then again it can be hard coded).
Logged
If slavery, barbarism and desolation are to be called peace, men can have no worse misfortune.

aaaabaaccaadfda

  • Bay Watcher
  • Call me A4!
    • View Profile
Re: Practical uses for a dwarfputer?
« Reply #18 on: January 08, 2009, 06:25:07 pm »

The turring machine is EXACTLY what i was being cryptic about, good work for working it out :P

anyway i've developed my plans for it including a memory like contraption inplementing the infinite tape i was refering to in the turing machine

i cant say to much but, sound if your happy to work with me, all i need is my memory bank completed i'm sure we could work together
Logged
if the world were binary all DF fans would be represented by smily faces

soundandfury

  • Bay Watcher
  • Code monkey
    • View Profile
    • Just to the Left of Venus (aka dev-null)
Re: Practical uses for a dwarfputer?
« Reply #19 on: January 09, 2009, 12:46:10 pm »

I beg to differ... http://en.wikipedia.org/wiki/Turing_machine THAT is a true computer, if you want to start bandying definitions about.  (It doesn't even have to be mechanical) Whether one could build a Turing Machine in DF, I don't know. Any ideas?

If you're able to implement an infinite tape, I'll help with the rest.

However it will be a hell of work to load a program (but then again it can be hard coded).

I'm afraid I'm not even sure if it's possible to implement a finite tape, except for one possibility: tiles full/empty of water?
i.e.:
Code: [Select]
1
#######
≈¢≈≈¢≈≈
#######

2
#######
X¢_X¢_X
#######

3
#######
+++++++
#######
¢=hatch, X=floodgate, #=rock/wall, +=floor, _=pressure plate, ≈=water source

In each case, the pressure plate tells us whether it's a 0 or a 1, and the two hatches allow us to 'write 0' and 'write 1' respectively.  (1 is >4/7, 0 is <3/7)  Cells can be combined in a vertical direction to allow for more than 1-bit.  So you can have any finite number of symbols.

The main problem is that you can't move the 'tape'.  So what is needed is an 'airlock' arrangement of floodgates (with pumps) so that you can transfer EVERY symbol one cell to the left or right.  This is left as an exercise for the reader! :p

Ok, duno, your mission (should you choose to accept it) is to build a Turing Machine to do... erm, something.
(Adding two binary numbers would be a good one to start on)

For testing out Tables of Behaviour, you could download my Finite State Machine emulator at www.justtotheleftofvenus.tk (click 'downloads', then scroll down).  The download contains a few ToBs and one of them is binary addition.
Logged
It's maths, it must be true!
DF Designer

Flaede

  • Bay Watcher
  • Beware the Moon Creatures.
    • View Profile
Re: Practical uses for a dwarfputer?
« Reply #20 on: January 09, 2009, 07:46:35 pm »

how about just have a machine that actively sorts incoming dwarves and counts them? (bonus duplicate for incoming goblins). then you can have an accurate "at a glance" count of how many dwarves you HAD. have a lever dwarf keep a running tally of the dead... subtract dead from total... arrive at current dwarf population.

this seems a simpler first-use of a dwarf-puter.

(bonus points: In a completely finished dwarf-puter (umbrella corp) complex you can have this number automatically seal/unseal or flood/drain rooms for habitation, food production, brewing into population approprate amounts... but if you don't want to accidentally kill MORE dwarves with the automation... it gets tricky)
Logged
Toady typically doesn't do things by half measures.  As evidenced by turning "make hauling work better" into "implement mine carts with physics".
There are many issues with this statement.
[/quote]

aaaabaaccaadfda

  • Bay Watcher
  • Call me A4!
    • View Profile
Re: Practical uses for a dwarfputer?
« Reply #21 on: January 09, 2009, 09:51:40 pm »

Unfortuanalty for me ( and for the dwarfven community as a whole). I seem to have junked my computer plan, I understand how difficult it is to create a memory unit in either mechanical OR fluid commputing but, what i do remember from my plan was that i proposed to combine both types of logic, with one serving as the 'computer' or 'manipulator' and the other serving as a memory device. If my memory is correct I purposed to to use water as the memory device and the mechanical gears etc to "read" the the input of the water. Thus soundandfury eliminating the need for screw pumps in your system ( or so i think off the top of my head). And can compute quite fast.
Then all we need is a language to programm it in!
 
Logged
if the world were binary all DF fans would be represented by smily faces

aaaabaaccaadfda

  • Bay Watcher
  • Call me A4!
    • View Profile
Re: Practical uses for a dwarfputer?
« Reply #22 on: January 09, 2009, 10:00:57 pm »

By the way Flaede what your describing there is a differnt type of logic known as Borg knowlege
(see the wiki under borg logic http://www.dwarffortresswiki.net/index.php/Computing#Borg_Logic ) it consists of the dwarfs walking in a paticular patern throught your fortress see the wiki for more on it

But anyhow ill get to redrawing my plans i'll upload them when i can today, ( when there finished)
Logged
if the world were binary all DF fans would be represented by smily faces

Flaede

  • Bay Watcher
  • Beware the Moon Creatures.
    • View Profile
Re: Practical uses for a dwarfputer?
« Reply #23 on: January 09, 2009, 10:33:25 pm »

sorry. I wasn't wanting the whole thing controlled by this BORG thing, just one input number.
I thought that differed slightly, but on second glance you're right.

Make it entirely poor compSci dwarf, then. Pulling levers to tally population numbers.
Logged
Toady typically doesn't do things by half measures.  As evidenced by turning "make hauling work better" into "implement mine carts with physics".
There are many issues with this statement.
[/quote]

aaaabaaccaadfda

  • Bay Watcher
  • Call me A4!
    • View Profile
Re: Practical uses for a dwarfputer?
« Reply #24 on: January 09, 2009, 10:44:32 pm »

to do what your sujesting would i would have to do is create some way for my computer to create a programm which simply counts the number of dwarfs in a fort (using a pressure plate system) and then stores it in the memory, simple engough but i the programmer have to litteraly construct the programm in dwarf fort
Logged
if the world were binary all DF fans would be represented by smily faces

Peewee

  • Bay Watcher
  • Watcher Of Bays
    • View Profile
Re: Practical uses for a dwarfputer?
« Reply #25 on: January 09, 2009, 11:59:29 pm »

Well, I don't have any suggestions for your many levered set up.
I usually use dwarfputers for making tasks easier... like instead of having five levers to control flooding and draining a farm, I make a elaborate mechanism to do it on command with a single lever pull.

aaaabaaccaadfda

  • Bay Watcher
  • Call me A4!
    • View Profile
Re: Practical uses for a dwarfputer?
« Reply #26 on: January 10, 2009, 12:07:13 am »

Peewee thats not a dwarfputer, it's alot of levers conected to things of which you have to operate manually, a computer is something that you tell it to go look/do something and it does it without your interferance
Logged
if the world were binary all DF fans would be represented by smily faces

duro

  • Bay Watcher
  • On Break
    • View Profile
Re: Practical uses for a dwarfputer?
« Reply #27 on: January 10, 2009, 01:04:29 am »

For memory, one could use a purely mechanical implementation of flip-flops, because DF mechanics have no random switching/transfer delays. Fluid mechanic is not that stable (and fast!).
Spoiler (click to show/hide)
So depending on the alphabet size of the tape there is a need for a number of flip-flops per cell on the tape. Then there's need to define the implementation of the head: either the whole tape is a shift register with only one cell being the head, or the actual head is indexed, limiting the numbers of cells.

For now I think implementation as a shift register is easier, as there's only one pattern to implement on and on while the logic needs access to only one cell for read/write.
Logged
If slavery, barbarism and desolation are to be called peace, men can have no worse misfortune.

Flaede

  • Bay Watcher
  • Beware the Moon Creatures.
    • View Profile
Re: Practical uses for a dwarfputer?
« Reply #28 on: January 10, 2009, 01:25:11 am »

simple engough but i the programmer have to litteraly construct the programm in dwarf fort

yes. yes you would. you would have to construct a program to count and store the number of incoming dwarves. (and probably clear to zero each lap of 200) WOuldn't you have to construct whatever program you want to use? I thought this thread was asking for suggestions for practical uses for a dwarfputer, that was the only one I could think of.

I was hoping to get some practical designs to build myself. the wiki wasn't big on extended uses for the dwarfputers last I checked, and I know if I try I'll get it wrong ;)  (and flood my fortress trying to add in a Y2K patch)
Logged
Toady typically doesn't do things by half measures.  As evidenced by turning "make hauling work better" into "implement mine carts with physics".
There are many issues with this statement.
[/quote]

duro

  • Bay Watcher
  • On Break
    • View Profile
Re: Practical uses for a dwarfputer?
« Reply #29 on: January 10, 2009, 01:32:16 am »

practical uses for a dwarfputer

Erm...
  • Be sure to have stuff like interrupts.
  • Write a multiprogramming operating system for it.
  • Build a graphical output device, e.g. a matrix of floodgates.
  • Then use it to watch dwarf porn.
Logged
If slavery, barbarism and desolation are to be called peace, men can have no worse misfortune.
Pages: 1 [2] 3 4 5