Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
For the out-of-band Slashdot experience (mostly headlines), follow us on Twitter, or Facebook. ×

Comment: A bit outdated but still runs new games well (Score 1) 558 558

Desktop
CPU: AMD Phenom II X6
GPU: AMD Radeon 6970
SSD: Crucial 256 GB M4
HDD: 2 TB Seagate
RAM: 16 GB Mushkin
Optical: BD-ROM / HD-DVD Combo and BD-RW
Display: 2x 1920x1200 28" LCD's

Works well for gaming and OpenGL development.

I also have an Alienware M17 laptop; works well for same reasons but not great at multitasking
CPU Intel Extreme 2 core
RAM: 16GB
SSD: 256 GB SSD
HDD: 1 TB

As well as a HTPC
CPU: AMD 1090T
GPU: AMD Radeon 5450
RAM: 8GB
HDD: 120GB

And a File Server
CPU: AMD Phenom X4
GPU: don't remember, doesn't really output ever
RAM: 32 GB
HDD: 8x Seagate 4TB, 8x WD 3TB
RAID: 4x SAS 8086 card
Setup: FreeNAS with 20TB RAID-Z2 and 15TB RAID-Z2

Comment: Re:Check their work or check the summary? (Score 1) 486 486

This is exactly why Java has a StringBuilder class.

final long startTimeBad = System.nanoTime()
String s = ""

for(int i = 0 i s += (char)Math.floor(Math.random() * 256)
}

final long endTimeBad = System.nanoTime()
System.out.println(s)
System.out.println("bad: " + (endTimeBad - startTimeBad) + " ns")


final long startTime = System.nanoTime()
final StringBuilder sb = new StringBuilder()

for(int i = 0 i sb.append((char)Math.floor(Math.random() * 256))
}

final long endTime = System.nanoTime()
System.out.println(sb.toString())
System.out.println("good: " + (endTime - startTime) + " ns")

System.out.println("diff: " + (endTimeBad - startTimeBad) / (double)(endTime - startTime))


bad: 399644443512 ns
good: 76023788 ns
diff: 5256.834130811792

Note: semicolons removed because yay slashdot comments

Comment: Graphics Card - Software Support (Score 1) 307 307

Out of all hardware I've used, I've had the most trouble with graphics cards; not with installing them or having them fail but with them being properly supported by their manufacturers in the OS I'm using and by the OS I'm using not adversely interacting with their drivers. All other pieces of hardware have very specific software interfaces and most use a generic driver or a very stable driver comes with the OS. Graphics Cards are the biggest pain in the ass out of all pieces of hardware.

Comment: Re:Java dynamically typed languages (Score 1) 648 648

I completely disagree. Dynamic typing makes keeping track of what you're doing more difficult; at least for a beginner. If they don't understand the difference between a string, an "object", and a numerical value (which is confusing itself) then they cannot be an effective programmer. Also, writing more code and being demanding aren't what I would define as being a additional bonus you get for using a dynamically typed language. You write more code because it doesn't work well and you need to fight with the language more than use it. Also, the dynamically typed aspect makes it more demanding the same way driving with your eyes closed makes driving more demanding; it is not helping you in any way shape or form.

Java's "syntactic clutter" I call "helpful verbosity" and most scripting-turned-application languages are sorely lacking in readability; something Java has been getting better at in recent years. Java forces readability and corectness more than most scripting languages I've ever used, at least. Structure is more beneficial to a beginner than freedom.

Comment: Java dynamically typed languages (Score 1) 648 648

Stop using dynamically typed languages altogether. Java is much more C-like than python or VB and can be used to teach most of what C can do in a relatively painless fashion. Kids aren't stupid; stop trying to dumb things down for them. Java handles memory allocation and other object-creation issues that might hamper someone learning a programming language while still containing classes, abstraction, inheritance, and a typed object/primitive hierarchy that will do a lot more to teach students about programming than confusing them with "hey this can be a number or a string or a pig object." Java also has many IDE's (Eclipse and NetBeans mainly) that help with the memorization issue in most API's and are very useful when learning. Compiling is much easier than in C as well but still retains the items necessary for understanding how compiling should work.

Comment: Re: Agner Krarup Erlang - The telephone in 1909! (Score 3, Insightful) 342 342

Yeah, my first thought was "one queue for tokens and another location for pickup using the single-queue-to-multiple-registers". This blog post was more along the lines of, "durr, me like ice, get now" than an actual "algorithm."

news: gotcha

Working...