Search found 355 matches

Wed Feb 16, 2011 6:33 pm UTC
Topic: 0861: "Wisdom Teeth"
Replies: 116
Views: 27311

Re: 0861: "Wisdom Teeth"

Randall has just made this user very happy. Also, the million+ purchases of the game must have too, I guess. And it's not even out of beta yet. I hope Notch comes back to the forums, but I think he's busy being all successful and stuff. I read them all the time! I just ran out of time to post, so I...
Wed Sep 08, 2010 1:18 pm UTC
Forum: Computer Science
Topic: Unary Processor
Replies: 37
Views: 6614

Re: Unary Processor

It's possible to store arbitrary data in an integer without knowing the value of the integer. The simplest example would be to treat the integer as a queue of 1 bit values: // Returns input%2 and sets input to input/2 public Pile nextBit(Pile input) { Pile output; Pile copy; // Put every other bit i...
Sat Sep 04, 2010 1:01 am UTC
Forum: Computer Science
Topic: Unary Processor
Replies: 37
Views: 6614

Re: Unary Processor

Yes. Or Game of Life, or Minesweeper.
Thu Sep 02, 2010 6:16 pm UTC
Forum: Computer Science
Topic: Unary Processor
Replies: 37
Views: 6614

Re: Unary Processor

how do you differentiate between III + IIII and IIIIII + III. How do you let the system know "Hey, we are doing this." Even just counting implies that there is some sort of identifier that signals that no more things exists (the non presence of something is datam).  Removed stupid a...
Thu Sep 02, 2010 6:06 pm UTC
Forum: Computer Science
Topic: Unary Processor
Replies: 37
Views: 6614

Re: Unary Processor

Argh, now I got stuck trying to implement Rule 110 (which is turing complete) in a unary computer that can only add and remove a single egg at a time from a pile, and the only test is whether the pile is empty or not.
Thu Sep 02, 2010 3:29 pm UTC
Forum: Computer Science
Topic: Unary Processor
Replies: 37
Views: 6614

Re: Unary Processor

I'm sorry, but WHAT? You CAN'T have a unary computer that does anything. Ever every single symbol is the same, you end up with a system that has no way of telling what is going on. The moment you introduce any sort of method to distinguish one instruction from another, you have created a binary sys...
Mon Aug 02, 2010 6:20 am UTC
Topic: 0774: "Atheists"
Replies: 1042
Views: 180877

Re: "Atheists" discussion (#774)

Those of you making a distinction between "atheist" and "agnostic" do realize that they are not mutually exclusive, right? Theism/Atheism simply refer to theistic BELIEF, while Gnosticism/Agnosticism refer to whether or not you feel you have KNOWLEDGE of something. Theist simply...
Sat Jul 17, 2010 8:17 am UTC
Forum: Coding
Topic: What is good code?
Replies: 38
Views: 6738

Re: What is good code?

Another important factor of good code is the terminology used. It should be carefully considered, so that names are immediately clear and understandable to anyone who understands the problem space. If you're making a Buffy the Vampire Slayer simulation that takes place in a forest, the Willow class ...
Wed Jun 16, 2010 9:17 am UTC
Forum: Coding
Topic: Manufactoria - Make Turing Machines with Conveyor Belts
Replies: 350
Views: 114074

Re: Manufactoria - Make Turing Machines with Conveyor Belts

It fails the first test?
Mon Jun 07, 2010 11:37 am UTC
Forum: Coding
Topic: Manufactoria - Make Turing Machines with Conveyor Belts
Replies: 350
Views: 114074

Re: Manufactoria - Make Turing Machines with Conveyor Belts

I implemented a Rule 110 interpreter in it, effectively proving it Turing complete for an unbounded tape.

Check it out!
Wed May 26, 2010 10:57 am UTC
Forum: Gaming
Topic: Alan Wake
Replies: 9
Views: 2244

Re: Alan Wake

I'm seriously not trolling here - is this game really interactive and clever and skill-based, or is it mostly driven forward by scripting and context-sensitive actions where you just kind of watch stuff happen? It's all scripted, and there's virtually no puzzles in the game at all (you have to time...
Wed May 12, 2010 9:16 am UTC
Forum: Mathematics
Topic: Benford's Law for the Layman?
Replies: 9
Views: 2788

Re: Benford's Law for the Layman?

Compare this with a flat distribution from 0 to 1,000,000, which doesn't follow Benford's law: [snip] In this list, 12 out of 100 of the numbers start with a 1. As the length of this list increases and the randomness averages out, it will approach 11.1%. As for why things often follow logarithmic d...
Mon May 10, 2010 11:12 am UTC
Forum: Science
Topic: If two possibilites exist theoretically...
Replies: 7
Views: 1596

Re: If two possibilites exist theoretically...

My example, technically, is a possibility. Starting tommorow, for the rest of our lives, we could only flip a coin to land in the heads position. The chance, due to the number times the event happens daily, are miniscule at best, but exists. Assuming coin flipping is truly random, and the many worl...
Thu May 06, 2010 4:48 pm UTC
Forum: Forum Games
Topic: Count to a Million
Replies: 92958
Views: 7142827

Re: Count to a Million

29161
Thu May 06, 2010 9:41 am UTC
Forum: Logic Puzzles
Topic: Transmission
Replies: 6
Views: 1974

Re: Transmission

I thought the same.. I doubt it's coincidental!
Wed May 05, 2010 12:34 pm UTC
Forum: Logic Puzzles
Topic: Transmission
Replies: 6
Views: 1974

Re: Transmission

Not a solution, but some initial deciphering: The length of the message is the product of two primes. Splitting the message up along the smaller factor and turning 1's into #'s and 0's into .'s produces this: #.#.##.##.### ..#.#..##.##. ............. ###.####.#... ###.###...#.. ........
Wed May 05, 2010 8:30 am UTC
Forum: Gaming
Topic: Minecraft
Replies: 9415
Views: 1478782

Re: Minecraft

I love making menger sponges, but I've never actually finished a level 3 one, though.
I got pretty close once on a public server somewhere.

In awesomer news, only three more weeks until I work on it full time!
Mon May 03, 2010 9:42 am UTC
Forum: Coding
Topic: HTML/Javascript/Greasemonkey question
Replies: 8
Views: 1562

Re: HTML/Javascript/Greasemonkey question

"max-width:800px", or similar, should work. (ie it works for me here, using firebug)
But that's not relative to the window size.
Mon Apr 19, 2010 11:28 am UTC
Forum: Science
Topic: Could quantum computers generate random numbers?
Replies: 32
Views: 4328

Re: Could quantum computers generate random numbers?

Yes. All they do is generate randomness in more or less predicable and manipulable ways. You don't get 100% certain results from quantum computers. [edit: Well, that's not really an accurate description.. but it fits this topic. :D] There are other ways of getting random numbers, though, such as sam...
Wed Apr 14, 2010 8:46 am UTC
Forum: Coding
Topic: Agile: Flash in the pan or Future of development
Replies: 15
Views: 2465

Re: Agile: Flash in the pan or Future of development

I don't use TDD myself (mostly due to me being the sole cowboy programmer in my project), but Berengal speaks the truth. There's a lot of nice synergies here. The main thing that makes sense to me about agile development is that it DOESN'T try to mimic traditional projects where the expensive parts ...
Mon Apr 12, 2010 9:05 am UTC
Forum: Coding
Topic: coworker rants
Replies: 92
Views: 14032

Re: coworker rants

Yes, agile is the way to go, both in terms of project management and coding style! My worst coworker experience ever was a "java guru" (jguru.com), employed for his amazing java powers. He wasted weeks of our time setting up some architecture that would enable us to make deep copies of dat...
Wed Mar 31, 2010 1:25 pm UTC
Topic: 0721: "Flatland"
Replies: 125
Views: 49824

Re: "Flatland" Discussion

Well, this comic just ruined my april fools joke.. Get out of my head, Randall!
(I was going to announce minecraft 4d)
Wed Mar 24, 2010 4:31 pm UTC
Forum: Coding
Topic: 2D OpenGL Performance Help
Replies: 5
Views: 1391

Re: 2D OpenGL Performance Help

Display Lists can be a lifesaver for anything static. For example, for rendering text, you can set up one display list per character like this: for (char=a to z) glNewList(letterLists+char, GL_COMPILE) renderChar(char) glTranslatef(characterwidth, 0, 0) glEndList() then use glCallLists to render the...
Wed Mar 24, 2010 4:25 pm UTC
Forum: Gaming
Topic: Minecraft
Replies: 9415
Views: 1478782

Re: Minecraft

There's an interview with me up on Gamasutra now!

That makes me happy. Very happy.
Fri Mar 19, 2010 1:34 pm UTC
Topic: 0716: "Time Machine"
Replies: 112
Views: 23356

Re: "Time Machine" Discussion

That's awesome.
Mon Mar 15, 2010 10:30 am UTC
Topic: 0714: "Porn For Women"
Replies: 298
Views: 66074

Re: Porn For Women

A statistic of approximately one in four women being raped in their lifetime might oppose that view. :| Fuck, really? Source? I feel ignorant and ashamed for humanity now. Well, I've researched it a fair bit, so I don't keep track of all the sources I see. I usually look at statistics for the UK an...
Mon Mar 15, 2010 10:20 am UTC
Topic: 0714: "Porn For Women"
Replies: 298
Views: 66074

Re: Porn For Women

Poppy Appletree wrote:A statistic of approximately one in four women being raped in their lifetime might oppose that view.

Fuck, really? Source?

I feel ignorant and ashamed for humanity now.
Fri Mar 12, 2010 11:54 am UTC
Forum: Coding
Replies: 114
Views: 18491

.. that runs for 99% of the people running the web, and brings in millions in revenue for a lot of people.
Thu Mar 11, 2010 8:56 pm UTC
Forum: Coding
Replies: 114
Views: 18491

Well, it's trivial to freeze up firefox with javascript or java as well.
For example, the jsMath thing on these forums regularly freeze my firefox when I open a thread that uses it.
Thu Mar 11, 2010 3:08 pm UTC
Forum: Coding
Topic: Multi-variable conditionals
Replies: 24
Views: 2083

Re: Multi-variable conditionals

urobythos wrote:

Code: Select all

`x&&y?  case1:!x&&y? case2:x&&!y? case3: case4;`

Pft, that's long.

x?y?case1:case2:y?case3:case4
Thu Mar 11, 2010 3:04 pm UTC
Forum: Coding
Replies: 114
Views: 18491

This is an example where C# is a better language than Java. You can code like you were using public members, while hiding the fact that you could actually be using getters and setters. Things are simpler and less verbose, while achieving the same benefits. That's the sign of a better language. Acti...
Wed Mar 10, 2010 8:25 pm UTC
Forum: Coding
Topic: Multi-variable conditionals
Replies: 24
Views: 2083

Re: Multi-variable conditionals

That only works if the language guarantees that true==1 and false==0 and nothing else ever. And it's not really much clearer than what Berengal said.
Wed Mar 10, 2010 11:36 am UTC
Forum: Coding
Topic: Multi-variable conditionals
Replies: 24
Views: 2083

Re: Multi-variable conditionals

Here's how you should not do it in java: (This is what Sc4Freak did, but encapsulated) I always use the if/else ladder in real life, or if it gets complicated, see if I can't make the code logically branch on the first test to make it clearer. public enum CompoundBoolean { Neither, First, Second, Bo...
Tue Mar 09, 2010 3:27 pm UTC
Forum: Coding
Replies: 114
Views: 18491

I'm not quite sure I follow. If there are things that make it less verbose, surely that would be a sign of the language "is better", not "could be better"?
I took it to imply you meant there is some fundamental flaw with java, but I'm sorry if I misunderstood.
Tue Mar 09, 2010 8:13 am UTC
Forum: Coding
Replies: 114
Views: 18491

I'll go out on a limb here and say "no, it isn't". Avoiding writing code has been around since macros in assembler, and probably earlier. It's not a sign that the language is bad. And since this thread is about bad things about java, here's something that's been bugging me for quite some t...
Mon Mar 08, 2010 12:46 pm UTC
Forum: Coding
Replies: 114
Views: 18491

Aaeriele wrote:Which seems to me like a fairly decent sign that the language itself could be better.

To me it's just another layer, like templates in C++ that help automate the task of writing repetitive C++ code.
Mon Mar 08, 2010 8:48 am UTC
Forum: Coding
Replies: 114
Views: 18491

I'd rather have list and map literals. Java only has number, string, character, boolean and array literals, of which the array is the only collection type. Let's face it, who uses arrays anyway? List and Map literals are coming in Java 7, which should be released about the same time as Half-Life 4....
Wed Mar 03, 2010 1:40 pm UTC
Forum: Coding
Replies: 114
Views: 18491

Congratulations, you have torn down one of the fundamentals of Java with a single statement. "Is Java that bad?", indeed... How do you think it should work? What would C++ do? To me, this is a pretty natural result of java working hard to avoid having anything with undefined behavior. The...
Wed Mar 03, 2010 1:28 pm UTC
Forum: Computer Science
Topic: Rant: Java's Type System
Replies: 56
Views: 11850

Re: Rant: Java's Type System

I still strongly doubt this whole "money is always handled in ints" claim. Any proof on this? I don't see any reason whatsoever why money wouldn't be handled using something like BigDecimal (Java) Because BigDecimal works well in every way but one. Performance. Financial institutions are ...
Mon Mar 01, 2010 5:17 pm UTC
Forum: Coding