Bay 12 Games Forum

Please login or register.

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

Author Topic: What language is Dwarf Fortress made in?  (Read 47990 times)

guitarxe

  • Bay Watcher
    • View Profile
What language is Dwarf Fortress made in?
« on: September 08, 2010, 03:16:27 pm »

I'm just curious to know what language was used to write Dwarf Fortress? Does anyone know?
Logged
Feeling down? Click Here!

G-Flex

  • Bay Watcher
    • View Profile
Re: What language is Dwarf Fortress made in?
« Reply #1 on: September 08, 2010, 03:20:32 pm »

It's written in C++ (not that this means C++ is particularly good for this sort of thing, or that it isn't, but that's another debate entirely).
Logged
There are 2 types of people in the world: Those who understand hexadecimal, and those who don't.
Visit the #Bay12Games IRC channel on NewNet
== Human Renovation: My Deus Ex mod/fan patch (v1.30, updated 5/31/2012) ==

Still Standing

  • Bay Watcher
    • View Profile
Re: What language is Dwarf Fortress made in?
« Reply #2 on: September 08, 2010, 03:31:11 pm »

English?
Logged
Diggy diggy hole.

darius

  • Bay Watcher
  • ^^
    • View Profile
Re: What language is Dwarf Fortress made in?
« Reply #3 on: September 08, 2010, 04:27:48 pm »

Logged

guitarxe

  • Bay Watcher
    • View Profile
Re: What language is Dwarf Fortress made in?
« Reply #4 on: September 08, 2010, 04:32:34 pm »

Lol... English, haha  :D

G-Flex, do you think a game of this type could be made in Java?
Logged
Feeling down? Click Here!

MaDeR Levap

  • Bay Watcher
    • View Profile
Re: What language is Dwarf Fortress made in?
« Reply #5 on: September 08, 2010, 04:37:38 pm »

G-Flex, do you think a game of this type could be made in Java?
Sure it can. Speed will be completely different matter, he, he, he.
Logged

Kholint

  • Bay Watcher
    • View Profile
Re: What language is Dwarf Fortress made in?
« Reply #6 on: September 08, 2010, 04:56:24 pm »

Let's not forget that java comes with a host of powerful concurrency tools and data structures built directly into the core language that make it a lot easier to write parallel programs without any faffing about with external libraries.

Java's inherently slower than C++ (ignore low level micro-benchmarks that put java and C++ on a roughly equal footing - it's the real world usage that counts, and java programs generally use heavier design using lots more objects and so on), but it'd be interesting to see whether a single threaded C++ pathfinding or flow simulation could be outperformed by a fully multithreaded java equivalent on a quad or octocore processor!

« Last Edit: September 08, 2010, 04:58:14 pm by Kholint »
Logged

devek

  • Bay Watcher
  • [KILL_EVERYTHING]
    • View Profile
Re: What language is Dwarf Fortress made in?
« Reply #7 on: September 08, 2010, 07:33:36 pm »

It isn't even about that.

If you wouldn't use Java because it is slow.. you shouldn't use C either. You should write everything in assembly because it is the fastest language.

Logged
"Why do people rebuild things that they know are going to be destroyed? Why do people cling to life when they know they can't live forever?"

KrunkSplein

  • Bay Watcher
    • View Profile
Re: What language is Dwarf Fortress made in?
« Reply #8 on: September 08, 2010, 07:42:18 pm »

Forget all that noise - what I want to know is how long it takes for a fresh build to compile.
Logged

Creamcorn

  • Bay Watcher
  • [FANCIFUL]
    • View Profile
Re: What language is Dwarf Fortress made in?
« Reply #9 on: September 08, 2010, 08:26:17 pm »

Forget all that noise - what I want to know is how long it takes for a fresh build to compile.

This, I imagine that this is when we wait for the next update.
Logged
"OH NO! That carp is gulping at me menacingly, even though it cannot really threaten me from here on land!  I KNOW! I'll dodge into the water, where I'll be safe!"

ZCM

  • Bay Watcher
    • View Profile
Re: What language is Dwarf Fortress made in?
« Reply #10 on: September 08, 2010, 11:35:50 pm »

It isn't even about that.

If you wouldn't use Java because it is slow.. you shouldn't use C either. You should write everything in assembly because it is the fastest language.
These days a good C compiler will outperform hand-coded assembly.
Logged
Badger badgers badger badger badgers badgers badger.

devek

  • Bay Watcher
  • [KILL_EVERYTHING]
    • View Profile
Re: What language is Dwarf Fortress made in?
« Reply #11 on: September 08, 2010, 11:49:28 pm »

Keep telling yourself that.
Logged
"Why do people rebuild things that they know are going to be destroyed? Why do people cling to life when they know they can't live forever?"

thewonderidiot

  • Bay Watcher
    • View Profile
Re: What language is Dwarf Fortress made in?
« Reply #12 on: September 09, 2010, 01:09:27 am »

Depends on who wrote the assembly code. Let's face it, unless you're an assembly guru, there are a lot of tricks up the compiler's sleeve that most people would never think of.

That being said, well-written assembly code will always be the fastest.
Logged

Medicine Man

  • Bay Watcher
  • Pile the bodies, set them aflame.
    • View Profile
Re: What language is Dwarf Fortress made in?
« Reply #13 on: September 09, 2010, 01:17:14 am »

Ultimate

unRestricted

Internet

Super

Terrific
Logged

devek

  • Bay Watcher
  • [KILL_EVERYTHING]
    • View Profile
Re: What language is Dwarf Fortress made in?
« Reply #14 on: September 09, 2010, 01:21:56 am »

Are you kidding? I rarely see compilers bust out SIMD and some of the shitty ones (like MSVC) don't even make sense. The argument doesn't follow. You can't say that a c compiler will beat a bad programmer. By that logic, Java blows away C because it can implement a hash better than a bad C coder.

I've still yet to see any compiler make a functional program in less than 1000 bytes. If I wrote dwarf foreman in assembly it would be like 10k, and I would love to see any C program touch it for speed.

Logged
"Why do people rebuild things that they know are going to be destroyed? Why do people cling to life when they know they can't live forever?"
Pages: [1] 2 3 ... 10