News for hackers. Stuff that matters.
Re:Great Presentation on MetaProgramming. Talks about pg/yco... by tokipin on Sunday April 06, 2008 @03:22AM (#156057)
that example with the audio generation could be done by keeping track of the random seed
Re:Great Presentation on MetaProgramming. Talks about pg/yco... by 0x44 on Sunday April 06, 2008 @09:37AM (#156145)
That's what his example was. Instead of saving 12 hours of generated music, he's logging the data that generated it as instructions on how to generate it.
Re:Great Presentation on MetaProgramming. Talks about pg/yco... by tokipin on Sunday April 06, 2008 @09:03PM (#156549)
that's still more data than just saving the seed. though maybe he was talking about saving basic things (seed,etc) and when you want to reconstruct them into audio, you basically generate a program instead of an mp3. not really much different than just saving the basics, except it's more shareable and takes up more space

but it didn't sound like that. it really sounded like it never occurred to him to just store the random seed(s) because he said when you hear a great piece in randomly-generated music, it's gone forever, even though the seed is a fundamental and controllable aspect of that

[edit]he said it would generate a log of code which would point back to the generating/generated code. i can't really tell what he was effectively storing though. to reproduce the music well, the seed would have to be in there somewhere, unless it's only in charge of choosing a few discrete items

Re:Great Presentation on MetaProgramming. Talks about pg/yco... by ken on Monday April 07, 2008 @04:01PM (#157150)
Sure, as long as you had exactly the same PRNG on every computer where you were going to read the logs, and as long as there was no other input (e.g., human input). Depending on how the music generation worked, it also might make seeking an O(time) operation.

Plus then he couldn't grep his music, which is the really cool part.