Also, Kolmogorov-random sequences vastly outnumber non-random sequences in general, so with a long-enough file, I wonder how certain he can be that he has generated such a file.
http://en.wikipedia.org/wiki/Kolmogorov_complexity#Kolmogoro...
87 karma · joined October 7, 2011
Also, Kolmogorov-random sequences vastly outnumber non-random sequences in general, so with a long-enough file, I wonder how certain he can be that he has generated such a file.
http://en.wikipedia.org/wiki/Kolmogorov_complexity#Kolmogoro...
It sort of mushes together the two steps ("lexing" and "parsing"), which, as far as I can tell, are traditionally distinguished from one another.
I guess that the "token" definitions really just reside within the EBNF rules..
When you don't use inheritance, you often get to refer to another module by name. E.g.
`my_dependency.fetch_data(123523)`
With multiple inheritance, however, that other module has become your own "self"!
Suddenly you're stuck with:
`self.fetch_data(123523)`.
And if you want to find the source of `fetch_data()`, you basically have to grep / look through all seven of your base classes.
If you're lucky, the definition you were looking for calls `self.flush()`, where `flush` isn't defined on this class. It's actually intended to be defined on another base class, which is imported by the multiple-inherited subclass.
So, you effectively have a "DSL" whose "statements" consist of your choice of base classes. It's impossible to determine what's a legal "program" in this "DSL" until you run the thing and get method-missing errors.
Also, the more official-looking temporary housing for construction workers has windows, but it's pretty dense. All those dudes can fit their whole lives into a single duffle.
This may have changed since I was last working with Clojurescript.
The "deserializer"'s job is to perform validation and type coercion of incoming requests. It returns a "native" dictionary, which the application code then saves to ORM.
The "serializer" is basically a presentation layer. It calls out to other nested serializers [this is awesome!], and it throws in convenience-fields that make the API response easier to consume.
This pattern makes it a little bit less "magical", and it's easier to distinguish between the API's "incoming" behavior and its "outgoing" behavior.
I think it's a really cool concept if you think of it as more of a Lens. The so-called serializer lets you declare properties of "fields", and these properties will influence both the native-to-ORM conversion, as well as the ORM-to-native conversion.
https://gist.github.com/skatenerd/72281cadd2ae3e44d6cf
For some reason, stashing the variable inside of a list will fix the variable resolution..?
http://stackoverflow.com/questions/4851463/python-closure-wr...
I got hung up for like ten minutes, before I realized it could also be written as "foldr f z = go", or "foldr f z elements = go elements"
A: Pasting changed code into repl
B: Re-typing code
C: Hitting "previous command" and "return"
The overhead of automating this process (by making a test suite) seems high, but I haven't ever regretted it.
en.wikipedia.org/wiki/Marxism
http://www.cs.usfca.edu/~wolber/SoftwareDev/C/CStructs.htm
Particularly this part: "// automatic allocation, all fields placed on stack"