Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411511 Posts in 69375 Topics- by 58430 Members - Latest Member: Jesse Webb

April 26, 2024, 01:44:55 PM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)The happy programmer room
Pages: 1 2 3 [4] 5 6 ... 279
Print
Author Topic: The happy programmer room  (Read 678531 times)
Devlin
Guest
« Reply #60 on: January 21, 2009, 09:28:38 PM »

I ported a lib I wrote for BlitzMax into Game Maker - it fits in one script, and only needs one sprite(containing 256 frames, one for every piece of the ASCII charset) and it works really well.

If anyone wants it, i'll be putting it on my webpage soonish.
Logged
cpets
Level 0
**


View Profile WWW
« Reply #61 on: January 21, 2009, 10:06:53 PM »

I've finally found a reason to use boost::variants.  A spurious reason, but, a reason nonetheless.  Hurrah!

After noticing your post in the "post your main function" thread, and noticing the entire game in (literate!) haskell, I can guess that after living in a language with pattern matching and algebraic types, you're suffering from the same infection I am. I can't look at C++ without feeling a little sad that there isn't syntactical support for boost::variant.
Logged
increpare
Guest
« Reply #62 on: January 21, 2009, 10:19:13 PM »

literate
if only nominally  :D

Quote
I can guess that after living in a language with pattern matching and algebraic types, you're suffering from the same infection I am. I can't look at C++ without feeling a little sad that there isn't syntactical support for boost::variant.
Oh; I actually hadn't consciously thought about using boost variant for pattern-matching.  Good idea, though!  Though quite likely the reason I've ended up finding a need for it was owing to my experience with Haskell (actually, almost certainly).

Are there any particular such languages that you have a fondness for?

EDIT: Ah! I see you mention ML on the introduction thread.  Warm hugs to you!
« Last Edit: January 21, 2009, 10:48:54 PM by increpare » Logged
cpets
Level 0
**


View Profile WWW
« Reply #63 on: January 21, 2009, 10:50:17 PM »

Are there any particular such languages that you have a fondness for?

ML, mostly ocaml, but also some of the more experimental ocaml derivatives. Writing game code with ocaml and gl bindings has made me very happy, in the spirit of the thread. But I also think about and mess around with dependent typing as it relates to my school life. Relating back to games, I will be the happiest programmer ever when I can write declarative statements about my game logic and have them proved and checked by my compiler. Of course, I'll probably also be dead by this time.

Meanwhile, I'll just keep searching for a way to query my game entities for their capabilities that doesn't involve gratuitous upcasting or giant visitor classes. Until I get frustrated, of course, and go back to ml or haskell for day-to-day hacking...
Logged
increpare
Guest
« Reply #64 on: January 21, 2009, 11:28:57 PM »

Writing game code with ocaml and gl bindings has made me very happy, in the spirit of the thread.
Anything to show for it? (link, for instance?)

Quote
I will be the happiest programmer ever when I can write declarative statements about my game logic and have them proved and checked by my compiler. Of course, I'll probably also be dead by this time.
Yeah; I get that in haskell as well sometimes; I'd settle for a robust language that would let me prove them myself though  :D
Logged
Ivan
Owl Country
Level 10
*


alright, let's see what we can see


View Profile
« Reply #65 on: January 22, 2009, 12:38:17 AM »

I discovered Lua today. I mean, I've always known about it, but was always hesitant to use it. Then I read a paper describing its implementation and understood just how small and fast and beautiful it was and now I'm completely in love.
Logged

http://polycode.org/ - Free, cross-platform, open-source engine.
increpare
Guest
« Reply #66 on: January 22, 2009, 01:30:20 AM »

I discovered Lua today. I mean, I've always known about it, but was always hesitant to use it. Then I read a paper describing its implementation and understood just how small and fast and beautiful it was and now I'm completely in love.
I wrote my first lua script just yesterday; it was...also a breakthrough moment for me! (I'm not quite in love yet though.  Care to linky to the paper of which you speak?)
Logged
Ivan
Owl Country
Level 10
*


alright, let's see what we can see


View Profile
« Reply #67 on: January 22, 2009, 01:50:58 AM »

I discovered Lua today. I mean, I've always known about it, but was always hesitant to use it. Then I read a paper describing its implementation and understood just how small and fast and beautiful it was and now I'm completely in love.
I wrote my first lua script just yesterday; it was...also a breakthrough moment for me! (I'm not quite in love yet though.  Care to linky to the paper of which you speak?)

http://www.tecgraf.puc-rio.br/~lhf/ftp/doc/jucs05.pdf
Logged

http://polycode.org/ - Free, cross-platform, open-source engine.
Will Vale
Level 4
****



View Profile WWW
« Reply #68 on: January 22, 2009, 01:19:23 PM »

If you're using Lua it may be worth giving it its own heap - there have been a few mentions on sweng-gamedev that it tends to allocate and free lots of small, odd sized memory chunks leading to fragmentation over time.
Logged
BorisTheBrave
Level 10
*****


View Profile WWW
« Reply #69 on: January 23, 2009, 05:23:10 AM »

Just discovered Bulk Loader for AS3. You can easily load wanted content straight away while preloading other stuff on lower priority. It's sometimes the simple things that please you.
Logged
Chris Whitman
Sepia Toned
Level 10
*****


A master of karate and friendship for everyone.


View Profile
« Reply #70 on: January 23, 2009, 08:31:24 AM »

With Lua and tolua++ I implemented pretty basic scripting of game objects in about two days. It was pretty magical.
Logged

Formerly "I Like Cake."
Ivan
Owl Country
Level 10
*


alright, let's see what we can see


View Profile
« Reply #71 on: January 23, 2009, 08:48:47 AM »

How is tolua++?

I'm using SWIG for my bindings because it doesn't require any dependencies and seems to wrap things quite nicely.
Logged

http://polycode.org/ - Free, cross-platform, open-source engine.
Chris Whitman
Sepia Toned
Level 10
*****


A master of karate and friendship for everyone.


View Profile
« Reply #72 on: January 23, 2009, 09:20:22 AM »

I've on occasion run across syntax it doesn't like, but by and large no complaints. From never having used Lua before, I was actually amazed at how quickly and painlessly I got up and running with it.
Logged

Formerly "I Like Cake."
increpare
Guest
« Reply #73 on: January 23, 2009, 03:12:32 PM »

Fuck, I just tried out the Iup gui library in lua...It's fantastically easy to use/concise.  Took me but a second to embed an opengl context in my windows, with buttons festooned all about it(though I've yet to master the layout settings, so I might end up migrating back to wxlua...).

Yes, I think I'm going to write a game in lua proper.  Will be good fun, I think.
Logged
TeaAndBiscuits
Level 0
***


View Profile
« Reply #74 on: January 23, 2009, 03:32:51 PM »

I love LUA. This weeks work has been made SO much easier cos I went for LUA not C++. Got so much done.

Happy. Fact.

-T&B
Logged
increpare
Guest
« Reply #75 on: January 23, 2009, 03:33:49 PM »

Got so much done.
Care to share?
Logged
Ivan
Owl Country
Level 10
*


alright, let's see what we can see


View Profile
« Reply #76 on: January 23, 2009, 03:43:07 PM »

increpare, you want to test my Lua framework editor?
Logged

http://polycode.org/ - Free, cross-platform, open-source engine.
increpare
Guest
« Reply #77 on: January 23, 2009, 04:05:49 PM »

increpare, you want to test my Lua framework editor?
Yes, it would be an honour and a delight.
Logged
Kaelan
Level 1
*


Malcontent


View Profile WWW
« Reply #78 on: January 23, 2009, 05:53:03 PM »

Yes, I think I'm going to write a game in lua proper.  Will be good fun, I think.
Doing that is a great idea. I spiked a small game in pure lua (with the exception of a really primitive C++ library for opening a win32 window and drawing to an OpenGL context - and when I say primitive, I mean *primitive*) and it was really a mind-opening experience. I was consistently impressed by how much I could express in short lua code snippets, and the performance was suprisingly good (in some cases, I could implement algorithms in Lua that actually ran faster than the equivalent C++, due to the fact that the C++ had to marshal types and interact with lua bindings - this was a real surprise to me).

The lack of integer types, along with a lack of good libraries for some of the things I wanted in Lua made me decide not to use it for my current project, but it's still an excellent platform. I'm really looking forward to seeing what Lua 6 can bring in this area.

Do pay attention to the lua GC, though. It can absolutely murder your performance if you don't pay attention to how it works, though it's thankfully quite flexible and easy to work with once you understand it.

In the event that you might find it useful, the lua source is here:
http://code.google.com/p/fracture/source/browse/?r=33#svn/trunk/bin/lua
and the C++ source is here:
http://code.google.com/p/fracture/source/browse/?r=33#svn/trunk/src

(on that note, if you do find yourself having to write some C to get your game finished, I don't recommend using luabind. Sad )
Logged

TeaAndBiscuits
Level 0
***


View Profile
« Reply #79 on: January 24, 2009, 04:37:29 AM »

Quote
Quote
Got so much done.
Care to share?

Well simply got through 3 separate game-play proto-types running. Each one very unique (rhythm game, movement interaction and started work on item interaction). Got each one setup with sounds, particles, animations the works! Even had a stab at some funky AI. Was so fast not having to wait for C++ to compile and link. Instead making run-time changes. BRILLIANT!

The thing I love about LUA is its power to create complex relationships in data very simply. Indexing a table using number, string, another table, a function!?!?!? CRAZY!

Love it!!!
-T&B
Logged
Pages: 1 2 3 [4] 5 6 ... 279
Print
Jump to:  

Theme orange-lt created by panic