Compare commits

..

No commits in common. "857063da34e975dcfaf133d0fbc3fccf55d6942f" and "db785d80da8cb40fe934b5476439c3ddc164397f" have entirely different histories.

3 changed files with 17 additions and 12 deletions

View File

@ -1,8 +1,9 @@
# scrap is not scrap # sins - scrap is not scrap
The scrap-is-not-scrap (sins) experiment began out of a public school education in biology and dissatisfaction with genetic algorithms with their ability to do work. This experiment began out of a fascination with a public school education in biology and a dissatisfaction with genetic algorithms with their ability to do work.
Work is for chumps; entropy is less energy... er.
[artificial life slideshow](https://docs.google.com/presentation/d/1P5wEIuympcGkyadeAofbZbJqTmpwpZGw9-DXg5_P7Ms) [Artifical Life Slideshow](https://docs.google.com/presentation/d/1P5wEIuympcGkyadeAofbZbJqTmpwpZGw9-DXg5_P7Ms)
# usage # usage
@ -12,19 +13,19 @@ docker-compose up
# (not so) faq # (not so) faq
## what biology? all i see is bad code. ## What biology? All I see is bad code.
Biology is a great example of a tremendous waste of time and thus this is inspiring. Biology is a great example of a tremendous waste of time, so I love to be inspired by it.
There isn't really anything else here except pseudoscience with regard to decent with modification. Other than that, there isn't really anything else here except a bunch of pseudoscience regarding dissent with modification.
Computers are generally deterministic except in specific circumstances which makes producing new functionality in code the programmer's responsibility. Computers are generally deterministic except in specific circumstances which makes producing new functionality in code the programmer's responsibility.
The field of artificial intelligence attempts to reproduce human intelligence through deterministic computing and has come a long way in recent years. The field of artificial intelligence attempts to reproduce human intelligence through deterministic computing and has come a long way in recent years.
Artificial intelligence still has predictable results--we have a few tests for human intelligence, the most common being the [Turing test](https://en.wikipedia.org/wiki/Turing_test). Artificial intelligence still has predictable results--we have a few tests for human intelligence, the most common being the [Turing test](https://en.wikipedia.org/wiki/Turing_test).
## intelligence is a bad thing now? ## Intelligence is a bad thing now?
Yes, Siri. Yes, Siri.
## what does this all have to do with scrap not being scrap? ## What does this all have to do with scrap not being scrap?
I have a habit of calling new projects "scrap" until I can think of a better name for them. I have a habit of calling new projects "scrap" until I can think of a better name for them.
I like to think that scrap is no longer scrap but you get to decided that one for yourself. I like to think that scrap is no longer scrap but you get to decided that one for yourself.

View File

@ -1,6 +1,4 @@
version: '3' version: '3'
volumes:
scraps:
services: services:
sins_run: sins_run:
image: sins image: sins
@ -8,7 +6,6 @@ services:
context: . context: .
volumes: volumes:
- ${PWD}:/app - ${PWD}:/app
- scraps:/out
working_dir: /app working_dir: /app
command: python3 -m sins -o /out/ command: python3 -m sins -o out/
# command: yasm seed.asm -o seed # command: yasm seed.asm -o seed

View File

@ -39,6 +39,13 @@ def sins():
stream_handler.setFormatter(log_format) stream_handler.setFormatter(log_format)
logger.addHandler(stream_handler) logger.addHandler(stream_handler)
if args.output:
log_path = f'{args.output}/sins-{now}.log'
file_handler = logging.FileHandler(log_path)
file_handler.setLevel(log_level)
file_handler.setFormatter(log_format)
logger.addHandler(file_handler)
logger.info(now) logger.info(now)
if args.output: if args.output: