112 points · by jtauber · 14y ago · 68 comments
Even if you want to use the same license as notch, you must explicitly specify that, otherwise, no one can really use your code.
I'm not sure the phrasing is correct, at least for the most common example of this issue (european copyright tradition of moral rights): many european countries split the anglo-saxon copyright into estate rights (which are economic) and moral rights which are generally perpetual, inalienable, and imprescriptible.
As a result, while an author can assign (or waive) their estate rights they can not assign or waive their moral rights.
Unless there are additional special cases in the country's lawbooks an author in a moral-rights country can not put his works in the public domain (since it would require waiving rights he can't waive). Either the works can not be copyrighted (and are intrinsically in the public domain) or they will fall into the public domain when the author's rights expire.
I don't know of any countries that don't recognise public domain (that is, implement eternal copyright).
edit:
Assuming I'm a standard, competent web dev-ish Ruby, Python programmer with little experience below those languages.
Sort of a "Assembly Language for Python programmers" guide
It's expensive though; you might do just as well with a used older edition.
A somewhat perverse alternative approach: get a book on how debuggers work (like "How Debuggers Work").
This is basically part of most first year IT / CS courses, and kind of not used in day to day IT so many self taught programmers never learn it.
I wonder how long till someone implements it in minecraft?
But I was kind of imagining that you could essentially emulate a single virtual system per "Stream processor" or whatever they are labeling the basic units. I was factoring that they could run a couple of hundred "virtual cores" per card despite the fact they weren't that optimized. But I will be the first to admit to not really knowing the details.
The other option of course is something like intel's Knights Corner architecture, which wouldn't pay such a penalty on performance for branching.
ie.
self.registers = { 'A': 0x0000, ... }
then you could access it directly: self.registers['A'] = 0x0001 self.registers = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
instead is adding ".value" all over the place where it isn't necessary. I haven't actually tried this but it looks like dropping the Cell class entirely, putting that line in as the definition of registers, then s/.values//g ought to work, or very nearly work.PC, SP, and O are already defined as variables containing the index for that register, a fine way to do it.
By splitting the difference and playing with PyPy you should be able to use Python to dodge out on a lot of the C bookkeeping BS while potentially not paying very much on the speed penalty. Using a lot of Python constructs could result in a multiple orders of magnitude slowdown for only marginal gain in this case.
It arguably sucks less, but I'm looking for something better and currently trying various solutions involving __getitem__, closures, function attributes, decorators and a sprinkle of metaprogramming to keep things nicely separated and much less C-ish.
I've already defined opcodes this way (decorator+func) which makes it very descriptive and almost reduces the opcode dispatcher to a one-liner.
Why not use an integer instead of Cell? 42 is memory address 42, -3 is register R, including for SP, PC, etc. Or addresses >= 0x10000 are registers, then you can just have
def ife(self, a, b):
m = self.mem
self.skip = m[a] != m[b]
with Python's native indexing of the mem[] list, which could be an array().