Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: The Creation of The Dwarven Programming Language  (Read 1910 times)

Nostril actor

  • Bay Watcher
    • View Profile
The Creation of The Dwarven Programming Language
« on: December 05, 2012, 07:38:16 pm »

https://github.com/Frib/Armok

Above is an amazing Turing tarpit representation of a very dorfish coding language. My suggestion is simply to implement this language into the game creating a simple (sort of?) coding language for the dwarves to use to make things automated.
Logged
"Let me out! Let me out! Let me out!"
"Stay in there 'til ye rot, vampire scum!"
"Let me- Asvirgrail, Asvirgrail, Asvrigrail...! I NEED STONE! I NEED METAL! I NEED SHELLS!"
"Wait, what? 'Asvirgrail?' Ye mean ye've got a plan?! Well why didn't ye say so! Quick now, gimme the keys! HEAR THAT LADS, VAMPIRE'S GOT A PLAN!"
"A plan you say?! 'a's wonderful! Let 'im out, gotta see what 'e's gonna make!"

FearfulJesuit

  • Bay Watcher
  • True neoliberalism has never been tried
    • View Profile
Re: The Creation of The Dwarven Programming Language
« Reply #1 on: December 05, 2012, 07:54:42 pm »

That looks like brainfuck...is it qualitatively different in any way?
Logged


@Footjob, you can microwave most grains I've tried pretty easily through the microwave, even if they aren't packaged for it.

Alpha Dwarf

  • Bay Watcher
    • View Profile
Re: The Creation of The Dwarven Programming Language
« Reply #2 on: December 05, 2012, 07:57:09 pm »

Congratulations.
Logged

Nostril actor

  • Bay Watcher
    • View Profile
Re: The Creation of The Dwarven Programming Language
« Reply #3 on: December 05, 2012, 11:09:08 pm »

That looks like brainfuck...is it qualitatively different in any way?

Yeah I think it was mainly based on brainfuck but with a spice of dwarf. I think it would be the perfect thing for dwarves to compute with!
Logged
"Let me out! Let me out! Let me out!"
"Stay in there 'til ye rot, vampire scum!"
"Let me- Asvirgrail, Asvirgrail, Asvrigrail...! I NEED STONE! I NEED METAL! I NEED SHELLS!"
"Wait, what? 'Asvirgrail?' Ye mean ye've got a plan?! Well why didn't ye say so! Quick now, gimme the keys! HEAR THAT LADS, VAMPIRE'S GOT A PLAN!"
"A plan you say?! 'a's wonderful! Let 'im out, gotta see what 'e's gonna make!"

GreatWyrmGold

  • Bay Watcher
  • Sane, by the local standards.
    • View Profile
Re: The Creation of The Dwarven Programming Language
« Reply #4 on: December 05, 2012, 11:42:20 pm »

Why would dwarves even compute? Outside of megaprojects, of course.

That being said...could this be made into a dorfputing language?
Logged
Sig
Are you a GM with players who haven't posted? TheDelinquent Players Help will have Bay12 give you an action!
[GreatWyrmGold] gets a little crown. May it forever be his mark of Cain; let no one argue pointless subjects with him lest they receive the same.

Cool Guy

  • Bay Watcher
  • inlcude <iostream>
    • View Profile
Re: The Creation of The Dwarven Programming Language
« Reply #5 on: December 06, 2012, 08:46:10 pm »

And where would we input this 'code'?
Logged

Nostril actor

  • Bay Watcher
    • View Profile
Re: The Creation of The Dwarven Programming Language
« Reply #6 on: December 06, 2012, 11:53:15 pm »

And where would we input this 'code'?

Perhaps we build certain code blocks that are constructed (essentially the '+') which then act as the dwarf and are given instructions via inputs such as pressure plates or minecarts and then continue to execute along a path planned in through a menu. I think it would be confusing but very dwarfy!
Logged
"Let me out! Let me out! Let me out!"
"Stay in there 'til ye rot, vampire scum!"
"Let me- Asvirgrail, Asvirgrail, Asvrigrail...! I NEED STONE! I NEED METAL! I NEED SHELLS!"
"Wait, what? 'Asvirgrail?' Ye mean ye've got a plan?! Well why didn't ye say so! Quick now, gimme the keys! HEAR THAT LADS, VAMPIRE'S GOT A PLAN!"
"A plan you say?! 'a's wonderful! Let 'im out, gotta see what 'e's gonna make!"

thisisjimmy

  • Bay Watcher
    • View Profile
Re: The Creation of The Dwarven Programming Language
« Reply #7 on: December 08, 2012, 01:21:23 pm »

Other than for novelty purposes, no one would actually want to use such a language.  It makes writing even the simplest programs very complicated (look at the "True Hello World!" example).  The programs also tend to take a very long time to execute.  It wouldn't be feasible to make a program of reasonable complexity. 

If you want a language to automate tasks in game, you're going to want to choose a more conventional language.  Turing tarpits aren't intended for actual use.
Logged

Cobbler89

  • Bay Watcher
  • Cobbler cancels celebrate Caesar: mending soles
    • View Profile
Re: The Creation of The Dwarven Programming Language
« Reply #8 on: December 08, 2012, 09:00:57 pm »

Aside from having robots do dwarf tasks for the dwarves, I can't see a way to make things in DF more automated than a well-managed fortress already is.

And we already have programmable dwarven computers in-game.

Really, it's an amusing tribute to both DF and the underpinnings of computing*, but it isn't something that would actually make sense in the game, nor does it demonstrate anything that would make sense in the game and isn't already in it, at least potentially.

Now, don't get me wrong -- I think it would be helpful for someone to apply dwarven computing to controlling a fortress's work somehow; I just don't think it needs some sort of "programming language" addition to do it... If it can't be done with current in-game computing techniques, then what we'd really need is an extremely simple ability for the overseer (the player) to assign jobs that persist and are performed based on conditions, e.g. "queue up ten more drinks to be brewed each time drink quantity drops below twenty," not a programming language that involves turing-like processing -- that's for dwarven computing that already exists, for kicks and giggles.

*I've actually done the sort of computing that involves storing values in a register, so I understand a little of that when I read about new ARM processors and assembly/machine language and the like; similarly, I've read about turing machines, so I have some idea how turing tarpits demonstrate how one gets from the underlying concept of a turing machine to an actual computer that reads data from RAM and acts on it with a processor (as turing machines go, to my understanding, the hard disc is more like the long-term data storage unit where the tape is retrieved from, and the RAM more like the tape, although the ease of moving data between the two makes the matter appear more complex than it is in essence). Now, if I understood the different types of OS kernels and how an OS manages a whole computer, I'd have a complete overview of the technology...
Logged
Quote from: Mr S
You've struck embedded links. Praise the data miners!
Quote from: Strong Bad
The magma is seeping under the door.

Quote from: offspring
Quote from: Cobbler89
I have an idea. Let's play a game where you win by being as quiet as possible.
I get it, it's one of those games where losing is fun!
I spend most of your dimension's time outside of your dimension. I can't guarantee followup or followthrough on any comments, ideas, or plans.

Taren

  • Bay Watcher
    • View Profile
Re: The Creation of The Dwarven Programming Language
« Reply #9 on: December 16, 2012, 09:35:09 pm »

Hmm I think if you were doing any kind of advanced work, or large megaproject steampunk kind of circuitry it'd work in binary, just a series of switches and leavers mostly, cogs and levers churning away.  I can picture dwarves building that kind of setup and then everything exploding horribly.

Not sure what to use it for, golems or large engineering works like dams and automated projects perhaps. Maybe something for adventure mode or lore?
Logged