71 karma · joined Nov 11, 2009 (17y ago) · 22 submissions
comment 13y ago · link · parent
The relevant portion is: "A person born in the United States to a foreign diplomatic officer accredited to the United States, as a matter of international law, is not subject to the jurisdiction of the United States. That person is not a United States citizen under the Fourteenth Amendment to the Constitution. Such a person may be considered a lawful permanent resident at birth."
comment 15y ago · link · parent
As it happens, the JVM can't tell if a .class file was generated from compiling Java code, or handwritten, or generated from another programming language altogether. As long as the class file is valid, the JVM will run it. In the case of Scala, "continue" isn't in the language, so bytecode that performs the operation is never generated by scalac. In fact, "break" and "continue" don't even have any meaning at the JVM level. Java bytecode works at the level of gotos and conditional branches.
comment 15y ago · link · parent
If you had a form where the number of checkboxes scaled with the number of items on the list, then you might end up with an O(n^2) algorithm, depending on how exactly they scale.
comment 15y ago · link · parent
comment 15y ago · link · parent
The actual legislation does not make any reference to "pixels" or "frame" or "resolution" at all. If anything, this legislation an example of how write laws so they don't rely on current day technology.
comment 15y ago · link · parent
comment 15y ago · link · parent
I don't think anyone actually expects the JVM to beat C++ using stack allocated objects[2]. Our concern is how well a garbage collector handles lots of small objects.
[1] Details on how the JVM GC works: http://www.oracle.com/technetwork/java/gc-tuning-5-138395.ht... [2] There is a switch, which will be on by default one day, that lets the JVM do escape analysis so it can allocate objects on the stack automatically.
comment 15y ago · link · parent
The Oracle JVM uses generational garbage collection[1]. Glossing over some details, this garbage collector divides objects into generations depending on how long they've been around, and also keeps track of references that cross generations. Objects that are newly created go into the first generation. If the objects don't refer to objects outside of the first generation, it is very cheap for the VM to determine they are in fact garbage. When the garbage collector gets run, objects that a still live get copied to another generation. Once the still live objects are copied out, the VM doesn't need to do any cleanup to get rid of the dead objects, it simply marks the whole memory block the first generation was in as available.
[1] Not that other JVMs don't, but I only know the official one.
comment 15y ago · link · parent
[1] http://gs.statcounter.com/#browser-ww-monthly-200905-201105
comment 15y ago · link · parent
comment 15y ago · link · parent
Due to how scoping and how do-comprehensions actually work, you can do some things that look like assignment, but are really creating a new binding in a nested scope. But if you try to bind a name twice in the same scope, the program fails to compile.
comment 15y ago · link · parent
The one before that said the timesheets were used to do reporting for R&D grants from the government.
comment 16y ago · link · parent
Looking at the course ( I take it this is what you are talking about? http://www.cs.colorado.edu/ugrad/seniorproject/ ), it seems that your project is based on a proposal from a sponsor, so I'm not sure why you're trying to come up with something already.
I don't know why you have a problem with the past projects. That a couple of undergrads can put together a working, useful (I presume), application is freaking awesome! I wouldn't dare assume a random CS major fresh out of university could pull something like that off.