Re: I need serious help!

Dont try to tackle more than one at a time (my problem) thats for sure.

Skt wrote:

Dont try to tackle more than one at a time (my problem) thats for sure.

Great idea. My first problem is I need to know if coding games is
possible in Ruby. According to Why’s, atleast Text Based Games are
possible. Problem solved. Next problem, I need to learn Ruby. Now im
gunna read thru some of Why’s.

On Fri, Jul 13, 2007 at 12:40:54PM +0900, Joe W. wrote:

Skt wrote:

Dont try to tackle more than one at a time (my problem) thats for sure.

Great idea. My first problem is I need to know if coding games is
possible in Ruby. According to Why’s, atleast Text Based Games are
possible. Problem solved. Next problem, I need to learn Ruby. Now im
gunna read thru some of Why’s.

You can create just about any piece of software you like with Ruby.
Ruby
is better suited for some things than others, however. For instance,
writing an operating system in Ruby might be a bit challenging
(especially since I’m not sure how practical it is to embed a Ruby
interpreter in your bootloader).

So . . . yes, you absolutely can write games in Ruby. I’m not a game
programmer myself, however, so it’s a little outside my range of
expertise.

Chad P. wrote:

On Fri, Jul 13, 2007 at 12:40:54PM +0900, Joe W. wrote:

Skt wrote:

Dont try to tackle more than one at a time (my problem) thats for sure.

Great idea. My first problem is I need to know if coding games is
possible in Ruby. According to Why’s, atleast Text Based Games are
possible. Problem solved. Next problem, I need to learn Ruby. Now im
gunna read thru some of Why’s.

You can create just about any piece of software you like with Ruby.
Ruby
is better suited for some things than others, however. For instance,
writing an operating system in Ruby might be a bit challenging
(especially since I’m not sure how practical it is to embed a Ruby
interpreter in your bootloader).

So . . . yes, you absolutely can write games in Ruby. I’m not a game
programmer myself, however, so it’s a little outside my range of
expertise.

What do you do with Ruby? I’v heard that programming better graphic
games like WoW would be hellishly hard. To my friend Matt, this stuff
seems to come naturally. To me, not so. I read 8 chapters of Why’s and
took the in-browser tutorial of Ruby, and most of what I learned
involves making (“Damn those syntax errors!”) go backwards. With (“Damn
those syntax errors!”).reverse. And most of the other stuff just floated
around like jelly in space.

On Sat, Jul 14, 2007, Joe W. wrote:

What do you do with Ruby? I’v heard that programming better graphic
games like WoW would be hellishly hard. To my friend Matt, this stuff
seems to come naturally. To me, not so. I read 8 chapters of Why’s and
took the in-browser tutorial of Ruby, and most of what I learned
involves making (“Damn those syntax errors!”) go backwards. With (“Damn
those syntax errors!”).reverse. And most of the other stuff just floated
around like jelly in space.

If your ambition is to create a game like WoW, then you’re barking up
the wrong tree. It’s possible in Ruby, sure… but you’re not going to
like it.

WoW embeds a language called Lua… it’s what is used to write mods.
However, it’s not a powerful enough language for the actual game to be
written in.

Having a game that was scriptable in Ruby would be outstanding, and
certainly possible now… but I think it’s going to be a long time
before there’s a successful game that’s written in a langauge that’s
higher level than C/C++.

Ben

On Sat, Jul 14, 2007 at 02:53:08AM +0900, Joe W. wrote:

You can create just about any piece of software you like with Ruby.
What do you do with Ruby? I’v heard that programming better graphic
games like WoW would be hellishly hard. To my friend Matt, this stuff
seems to come naturally. To me, not so. I read 8 chapters of Why’s and
took the in-browser tutorial of Ruby, and most of what I learned
involves making (“Damn those syntax errors!”) go backwards. With (“Damn
those syntax errors!”).reverse. And most of the other stuff just floated
around like jelly in space.

Me, personally? Glorified shell scripting, data munging, and web
development, mostly. I’m thinking about hacking together some minimal
GUI configuration tools using something like the Glade library. The
occasional “stupid programmer trick” for fun is also amongst the things
I
do. I’m probably forgetting three or four more things I do with Ruby,
but at the moment the sysadmin scripts and web development work is
taking
up more of my programming time than anything else.

Writing something like WoW from scratch would indeed be a herculean
task.
There are some libraries for various languages that eliminate a lot of
the more complex work, but that requires a fair bit of research to
choose
your libraries well and learn their APIs.

In message [email protected], Chad P. writes:

Me, personally? Glorified shell scripting, data munging, and web
development, mostly. I’m thinking about hacking together some minimal
GUI configuration tools using something like the Glade library. The
occasional “stupid programmer trick” for fun is also amongst the things I
do. I’m probably forgetting three or four more things I do with Ruby,
but at the moment the sysadmin scripts and web development work is taking
up more of my programming time than anything else.

As an example from my own experience, I do weekly summaries of a mailing
list I’m on. I wrote a Ruby CGI script to do most of the repetitive
parts for me, so I just browse through writing up annotations and making
sure subject line drift is managed cleanly. (Harder than it sounded at
first.) It took maybe three-four hours to get the script working well
enough to meet my needs, and it saves me about an hour a week…

I also used Ruby to write a program to generate suitably-arcane
passwords
and remember which sites it generated passwords for. Nothing fancy.
Mostly
just an excuse to mess around a bit with Ruby’s string handling.

Writing something like WoW from scratch would indeed be a herculean task.
There are some libraries for various languages that eliminate a lot of
the more complex work, but that requires a fair bit of research to choose
your libraries well and learn their APIs.

Ruby would not be my first choice for the bulk of the game, just because
that’s a task that really DOES need the performance of a high-end
system,
and even a factor of two slowdown might not be acceptable.

It’d be interesting to compare with Lua for the in-game GUI engine.

-s

"My first problem is I need to know if coding games is possible in Ruby.
"

Yes, but come to freenode (irc) #rubygame (if you want to use the SDL
wrapper that is, i dont think allegro or clanlib have one. There is also
ShatteredRuby (?) but i think the dev was a bit silent the last some
months on it)

Joe W. wrote:

I’v heard that programming better graphic
games like WoW would be…

You’re kidding right? WoW is written in C++ (Objective C for Mac which
is C++). Lua (another scripting language) is embedded and is used for
moding by Blizzard and the community. Games have to be fast and work
closely with hardware (like graphic cards). They are witten in the
lowest language you can hire. Right now, that’s c/c++. Though be fun to
see WoW written in Assembler. But good luck finding programmers.

Can you write games in Ruby? Of course. But would it make sense? No.
Well mabe text-based games. Or games that wouldn’t require 3D graphics.

On Sun, Jul 15, 2007 at 04:19:41AM +0900, Stephen Cox wrote:

see WoW written in Assembler. But good luck finding programmers.
I’m not sure what you mean by “Objective C for Mac which is C++”.
Objective C and C++ are two entirely separate languages. Both are (in
theory at least) object oriented extensions of C, but they take very
different approaches to it with substantially different ideas of how to
accomplish that object orientation. ObjC is also an actual proper
superset of C, whereas C++ is not, strictly speaking.

In fact, Objective C’s object model might be said to have more in common
with Ruby’s than with C++'s.

If you didn’t mean that ObjC is C++ for the Mac, then I apologize for
misunderstanding.

Chad P. wrote:

On Sun, Jul 15, 2007 at 04:19:41AM +0900, Stephen Cox wrote:

see WoW written in Assembler. But good luck finding programmers.
I’m not sure what you mean by “Objective C for Mac which is C++”.
Objective C and C++ are two entirely separate languages. Both are (in
theory at least) object oriented extensions of C…

And that’s what I meant. Bad placement of words on my part.

On Sat, Jul 14, 2007 at 02:20:06PM +0900, Peter S. wrote:

It’d be interesting to compare with Lua for the in-game GUI engine.
Agreed, on all counts.

On Sun, Jul 15, 2007 at 07:19:13AM +0900, Stephen Cox wrote:

Chad P. wrote:

On Sun, Jul 15, 2007 at 04:19:41AM +0900, Stephen Cox wrote:

see WoW written in Assembler. But good luck finding programmers.
I’m not sure what you mean by “Objective C for Mac which is C++”.
Objective C and C++ are two entirely separate languages. Both are (in
theory at least) object oriented extensions of C…

And that’s what I meant. Bad placement of words on my part.

Cool. It’s always nice to share blame for a misunderstanding.

On Jul 14, 2007, at 3:39 PM, Chad P. wrote:

closely with hardware (like graphic cards). They are witten in the
superset of C, whereas C++ is not, strictly speaking.
Ben Franklin: “As we enjoy great Advantages from the Inventions of
others
we should be glad of an Opportunity to serve others by any
Invention of
ours, and this we should do freely and generously.”

Objective C does have some similarity to Ruby, but that’s because
both inherited similar object ideas from SmallTalk.
But Obj-C is still a strict superset of C. There is also Obj-C++
which is not as clearly a superset of C++ (some C++ doesn’t work in
Obj-C++)

That said, Obj-C is about to undergo its biggest changes since it was
created, Objective-C 2.0 is coming with the new OS X in the Fall. It
is going to be garbage collected by default, which should make the
writing of code much less troublesome. And it may make it more Ruby-
like, but it is still a strongly typed language, even though it
allows you to do things with objects similar to Ruby, by checking at
run-time if an object responds to some method call.

On Sun, Jul 15, 2007 at 02:08:42PM +0900, John J. wrote:

Objective C does have some similarity to Ruby, but that’s because
both inherited similar object ideas from SmallTalk.
But Obj-C is still a strict superset of C. There is also Obj-C++
which is not as clearly a superset of C++ (some C++ doesn’t work in
Obj-C++)

I hadn’t heard of Objective C++. That sounds like a bad joke.

That said, Obj-C is about to undergo its biggest changes since it was
created, Objective-C 2.0 is coming with the new OS X in the Fall. It
is going to be garbage collected by default, which should make the
writing of code much less troublesome. And it may make it more Ruby-
like, but it is still a strongly typed language, even though it
allows you to do things with objects similar to Ruby, by checking at
run-time if an object responds to some method call.

I think you mean “statically”, not “strongly”, typed.

Chad P. wrote:

I hadn’t heard of Objective C++.

When you run GNU C, you can generally mix and match any keyword and
operation from any C language, including a few that GNU made up.

That sounds like a bad joke.

Maaster!! You have created … a monster!!

Yes, Igor! By tr-r-ransplanting Smalltalk’s virtual dispatch system into
zee
skull of my cadaver of zee C language, zee virtual messages shall move
zee
arms and zee legs of structs and ints! Und zey vill doo our biddings!!
Vee
vill rool zee wooorld!! Mwha-ha-haha!

Vhat vill you call heem, Maaster??

I vill call him… Id.

On Sun, Jul 15, 2007 at 04:03:17PM +0900, John J. wrote:

I hadn’t heard of Objective C++. That sounds like a bad joke.

More a poorly documented and perhaps wisely neglected creature.
Not many people know much about it.
AFAIK it allows you to wrap C++ in Obj-C much the way C can easily be
wrapped in Obj-C, but the obvious limitations are if you get too much
C++ stuff happening, things could go crazy.
Even apple quietly uses C++ for some things like device drivers.

Device drivers written in C++ sound like a bad joke, too. Why sacrifice
stability and speed for, uh, nothing? I don’t think I’ve ever heard of
a
device driver that needed to be so big that the OOP characteristics of
C++ actually provided any benefit.

On 7/15/07, Chad P. [email protected] wrote:

That said, Obj-C is about to undergo its biggest changes since it was
created, Objective-C 2.0 is coming with the new OS X in the Fall. It
is going to be garbage collected by default, which should make the
writing of code much less troublesome. And it may make it more Ruby-
like, but it is still a strongly typed language, even though it
allows you to do things with objects similar to Ruby, by checking at
run-time if an object responds to some method call.

I think you mean “statically”, not “strongly”, typed.

Objective-C has an id type, which is anything, so you can do dynamic
typing easily. I think the name strongly typed fits better.

spawn= 2598 2413 5152 0 0 0 0 0 0 tjad game
spawn= 2591 2401 5137 0 0 0 0 0 0 tjad game
spawn= 2598 2383 5155 0 0 0 0 0 0 tjad game
spawn= 2610 2399 5164 0 0 0 0 0 0 tjad game
spawn= 2598 2404 5151 0 0 0 0 0 0 tjad game
spawn= 2591 2339 5158 0 0 0 0 0 0 tjad game
spawn= 2598 2392 5143 0 0 0 0 0 0 tjad game
spawn= 2610 2389 5161 0 0 0 0 0 0 tjad game
spawn= 2598 2415 5150 0 0 0 0 0 0 tjad game
spawn= 2591 2403 5135 0 0 0 0 0 0 tjad game
spawn= 2598 2381 5153 0 0 0 0 0 0 tjad game
spawn= 2610 2401 5166 0 0 0 0 0 0 tjad game
spawn= 2598 2406 5153 0 0 0 0 0 0 tjad game
spawn= 2591 2342 5161 0 0 0 0 0 0 tjad game
spawn= 2598 2395 5148 0 0 0 0 0 0 tjad game
spawn= 2610 2393 5165 0 0 0 0 0 0 tjad game
spawn= 2598 2408 5155 0 0 0 0 0 0 tjad game
spawn= 2591 2395 5139 0 0 0 0 0 0 tjad game
spawn= 2598 2376 5153 0 0 0 0 0 0 tjad game
spawn= 2610 2395 5160 0 0 0 0 0 0 tjad game
spawn= 2598 2400 5155 0 0 0 0 0 0 tjad game
spawn= 2591 2335 5154 0 0 0 0 0 0 tjad game
spawn= 2598 2392 5145 0 0 0 0 0 0 tjad game
spawn= 2610 2396 5165 0 0 0 0 0 0 tjad game
[ENDOFSPAWNLIST]

smirk Java… So much funner, and easier, than Ruby. And so much more
fruitful. I just spawned like 50 monsters in a game. Of course I didn’t
make the game itself from scratch. That would have taken years. I just
rearanged it in my favorite way. My way! Now I am off to bigger and
better things. Like learning Logo. And people said Ruby was the best
learning language. Arrrggghhh! Im off to be making my pirate themed
games!

On Jul 15, 2007, at 1:27 AM, Chad P. wrote:

More a poorly documented and perhaps wisely neglected creature.
Not many people know much about it.
AFAIK it allows you to wrap C++ in Obj-C much the way C can easily be
wrapped in Obj-C, but the obvious limitations are if you get too much
C++ stuff happening, things could go crazy.
Even apple quietly uses C++ for some things like device drivers.