mpiechotka

  • karma: 1
  • comment karma: 18
  • user for 11 months

A Confirmation

mpiechotka 1 point2 points 9 months ago[-]

What's the name of auto-destruct BIOS rutine in my computer?

Back In Time

mpiechotka 0 points1 point 10 months ago[-]

Shouldn't there be no paradox in the first place?

VCS Best Practices

mpiechotka 2 points3 points 10 months ago[-]

Being a beliver I think that it's nothing wrong with such jokes.

Encounter With A Depressed Computer Scientist

mpiechotka 1 point2 points 10 months ago[-]

O notation have nothing to do with time. O(n^2) algorithm takes n^2 steps whatever the length of step is.

In this case in timeless space they simply have no length (and are instantienious?) but they still exists.

Encounter With A Depressed Computer Scientist

mpiechotka 2 points3 points 10 months ago[-]

But he can still consider goto harmful...

Microsoft's Secret Research Facility

mpiechotka 2 points3 points 11 months ago[-]

Shouldn't it be Hurd? Well - managing a project the is 25-years old with no production release is hell.

Cons Of Omniscience

mpiechotka 0 points1 point 11 months ago[-]

I had to use RandomAccessFile class to get points ;) As the only library I know about that contains is Java...

PS. I do not blame the teacher - it was IB PPS. I tried not to implement this class in other language - not with my future depending largly on it.

Cons Of Omniscience

mpiechotka 0 points1 point 11 months ago* [-]

Hmm. Someone who said it have never programmed in VB or Java I'd guess. Java have many cons - in High School (project could be in any language as long as it was Java) I spent some time how to catch locally an exception thrown from constructor of an object which was supposed to be reached from closur... anonymous class. Solution was something like:

ObjectType _t;
try {
    _t = new ObjectType(...);
} catch(...) {
    // ...
}
final ObjectType t = _t;

But it's not entirly bad language or platform especially considering the age.

Well - JavaScript is of course a different story.

Cons Of Omniscience

mpiechotka 0 points1 point 11 months ago[-]

Java? Well - Java is not so bad (to begin with it's open).

I'd rather expect Cobol or Visual Basic.

Optimize Any Code 10x Faster

mpiechotka 1 point2 points 11 months ago[-]

Sometimes this optimalization does not work:

#include <stdio.h>
#include <stdlib.h>

void noop() {}

int main() {
    int stop = 0;
    while(stop == 0) {
        noop();
        noop();
        noop();
        noop();
        noop();
        noop();
        noop();
        noop();
        noop();
        stop = 1;
        noop();
        noop();
    }
}