Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

FUCKING JAVA

Name: Anonymous 2010-03-31 21:23

Now, I have to write a crossword solver using Java for an AI class - no problem, right?
...until you factor in FUCKING JAVA.

First, I created an arraylist of constraint objects - now there are only 16 of them on the example I'm running, and it just holds something like four integers. Then I get OUT OF HEAP MEMORY or some gay shit error like that, after swearing at the automatic garbage collection and calling it manually I saw that it didn't help, and then I thought I shouldn't have used a faggy arraylist in the first place - so I make an array.

I use a set of 36 to ensure it fits but I get an out of bounds index error
huh
I increase array size to 90
same error
reduce to 17
same error

WHAT THE FUCK

JAVA SHOULD DIE IN A FUCKING FIRE

Name: not >>24 2010-04-02 11:27

>>25
C's fine, but humans tend to be less fine. We tend to forget various details when we have to keep a lot of information in your head. which sometimes leading to subtle bugs. While C is excellent for low-level tasks, I think for high-level ones, languages which let you build abstraction on top of abstraction, while hiding everything else neatly underneath(after you've tested and make sure it all works) are more suitable as they let you just think at the problem at hand and you can take care of low-level details once, and then just forget about them, instead of having to keep them in mind at each step.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List