Jump to content

  • Log In with Google      Sign In   
  • Create Account

kuramayoko10

Member Since 18 Sep 2009
Offline Last Active Jul 06 2014 05:16 AM

Topics I've Started

Programming languages characteristics and behaviors

26 February 2013 - 01:50 PM

I am trying to find characteristics in programming languages that "define" or indicate that it is compiled or interpreted.

 

I even tried asking it on StackOverflow. However no one answered it and 5 users downvoted it without explanation.

Either the answer is "There is none" or people misunderstood it.

 

The first misunderstanding is people answering:

 - Compiled languages are translated to the machine code of a specific machine, it analyzes the whole code at once, can perform optmizations on compile time, etc.

 - Interpreted languages are translated to a different kind of bytecode where a Virtual Machine has to interpret it and then translate to the machine it is running on; It analyzes the code on the fly, can present more precise error message, it distributes the program as a small package, etc.
 

Those are characteristics of the process compilation/interpretation and not the language itself.

 

I am looking for something like:

  1) Compiled languages present system calls or OS specific code.

 

Does anyone know any reference or example that confirm/deny the above?


Dirty Tricks

25 February 2013 - 09:01 PM

Well, I was reading Patrick Wyatt's blog the past week and he cited an article from Gamasutra that list some Dirty Tricks that shipped some games.

 

I don't know how rude/good it is to post references to blogs here. But the things discussed there are pretty funny.

Worth sharing smile.png

 

On this topic I will share one experience of mine from college:

 

We had to create a game in Assembly (our own Assembly language btw smile.png) and apply it to a processor we created using hardware description language and run it on a FPGA board.

 

Me and my friend were developing a Treasure Hunt kind of game. I remember it clearly... I wrote the moveLeft "method", labeled it and tested.

It worked pretty well, so lets just copy/paste it as moveRight, moveDown, moveUp.

As soon I did this, moveLeft stopped working.

We spent hours trying to debug (there was not much code to debug) and we couldnt find out the problem.

I then had a brilliant idea... lets just swap the code position of moveLeft to moveRight, moveUp or moveDown. Just doing that made moveRight/moveUp/moveDown would break.

We couldn't believe this, the code was breaking because of a specific line (or block). That line, a thousand something, was on strike.

 

The solution we found: we created a method moveFu** (sorry for the obscenity... college kids) This code didn't do anything and was never called, but we inserted it at the "broken line position". Just like that the movement was fixed.


Auto-threading Compiler

18 December 2012 - 10:27 AM

I know people in this forums like to talk about compilers and paralelism.

In recent news, some folks at Microsoft Research published a paper about an auto-threading compiler. Yes, it should be able to analyze a single-threaded code and determine what parts are safe to run in parallel.

Research on this field is happening for some time now, but this is the most recent (promising) news I've seen so far.

Castle Crashers OST

16 December 2012 - 11:47 AM

Hi guys,

I have been looking for references of game soundtracks that I think are catchy and inspiring.
From everything I heard so far Castle Crashers soundtrack is the most brilliant and my ears can't get tired of listening to it.

I want to show the collection (on grooveshark as well) to my friend who is interested in creating the soundracks for my game. I know he uses mainly Guitar Pro and I was wondering if this software could achieve such effect.

Additionally, have you guys more references for soundtracks like Castle Crashers'?

[Mac] Firefox bug with the new dropdown Menu

19 November 2012 - 07:06 PM

Hey guys, looks like the website was updated and the forums tabs were grouped under nested menus.

However the Firefox for Mac is not displaying it right.
It looks like an isolated problem, but I thought that putting it here would be a good idea.
On Chrome and Safari it worked fine.
On Windows it worked fine, including IE.

The bug happened on Firefox 16.0.2 on Mac Mt Lion.
It shows the nested options, however it has a gap between them (see attached screenshot). So when I try hovering the sub-item, the mouse goes over the gap and the menu loses focus, making it unusable.

PARTNERS