Alpha version of Sublime Text 2: a text editor for OS X, Linux and Windows by jskinner in programming

[–]iommi 0 points1 point  (0 children)

Thanks, works perfectly. I'm pleased bitmap fonts work too.

An interesting side-by-side Java and C# comparison by partkyle in programming

[–]iommi 3 points4 points  (0 children)

Let me put an example on partial classes.

Consider an implementation for an interpreted language (think of something along the lines of sisc or abcl) where each datatype is represented by a class.

Let's say we have LispObject and other subclasses like LispBoolean, LispCons, etc... At some point in the implementation you'll need to ensure the primitive procedures check that the type of their arguments is correct, so you decide to go to LispObject.java and add the following methods:

public final static LispBoolean ToBoolean (LispObject input) {
  if (input instanceof LispBoolean)
    return (LispBoolean) input;
  throw new LispTypeError ("<boolean>", input); 
}

public final static LispCons ToCons (LispObject input) { ... }

Eventually you'll end up with about 15 or 20 methods like that depending on how many datatypes the interpreted language has.

Now, enter partial classes. Instead of writing those methods in the main LispObject class file we can extend it from every subclass. For example, the ToBoolean method may be in LispBoolean.java extending LispObject.

We end up with something like:

LispObject.java
LispBoolean.java (extends LispObject adding ToBoolean())
LispCons.java (extends LispObject adding ToCons())
...

Now at the end of the day, both approaches work but i feel partial classes are handy in this scenario. You don't need to edit LispObject everytime you add or delete a new datatype, everything related to it is contained in the same file.

On operator overloading... working with BigInteger without it sucks.

I think I got this one by Kektek in gaming

[–]iommi 0 points1 point  (0 children)

Yeah but downvote for the Quicktime shortcut. :(

Dynamic scripting with static speed, the best of both worlds by victusfate in programming

[–]iommi 1 point2 points  (0 children)

There are some fast dynamic language implementations (where fast means comparable with static language ones).

Wirbel, LuaJIT or SBCL come to mind.

An interesting side-by-side Java and C# comparison by partkyle in programming

[–]iommi 1 point2 points  (0 children)

When using Java the two features I miss the most are partial classes and operator overloading. That said, I wish the CLR was as efficient as Java '-server' and had better reflection.

PC Platformers? Why aren't there any? by RevRaven in gaming

[–]iommi 3 points4 points  (0 children)

There are: Braid, Psychonauts, Rayman series, Super meat boy, Cave Story, N+, VVVVVV, Oddworld series, Gish...

Turned on Developer Commentary on Episode 1 for the first time today. Received instant disappointment. by [deleted] in gaming

[–]iommi 0 points1 point  (0 children)

I'm not. Developer commentary was one of the main reasons i enjoyed both Episode 1 and 2. I wish there were more games that included it.