{ "info": { "author": "Jeong YunWon", "author_email": "aheui@youknowone.org", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "\uc54c\ud30c\ud76c - \uc54c\ud30c\ud76c\uc36c(rpython)\uc73c\ub85c \ub9cc\ub4e0 \uc5d4\ud130\ud504\ub77c\uc774\uc988\uae09 \uace0\uc131\ub2a5 \uc544\ud76c\n====\n\n[![Build Status](https://travis-ci.org/aheui/rpaheui.svg?branch=master)](https://travis-ci.org/aheui/rpaheui)\n\n* English: [README.en.md](https://github.com/aheui/rpaheui/blob/master/README.en.md)\n* Working log (English): [LOG.md](https://github.com/aheui/rpaheui/blob/master/LOG.md)\n\n* \ube4c\ub4dc \ubc0f \uc2e4\ud589 \uc601\uc0c1: [Youtube](https://www.youtube.com/watch?v=mjoj69i_f8s)\n* 2015 \ud55c\uad6d \ud30c\uc774\ucf58: [PyPy/RPython\uc73c\ub85c 20\ubc30 \ube68\ub77c\uc9c0\ub294 JIT \uc544\ud76c \uc778\ud130\ud504\ub9ac\ud130](http://www.slideshare.net/YunWonJeong/pypyrpython-20-jit)\n\n\uc54c\ud30c\ud76c\uc36c(RPython)\uc740 PyPy\ub97c \uac1c\ubc1c\ud558\uae30 \uc704\ud574 \uac1c\ubc1c/\uc0ac\uc6a9\ub41c python\uc758 \ubc29\uc5b8\uc73c\ub85c\uc11c \uc815\uc801 \uc5b8\uc5b4\ub85c \ucef4\ud30c\uc77c\ub418\uace0 tracing-JIT\ub97c \uc9c0\uc6d0\ud558\uae30 \uc704\ud55c \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \ub0b4\uc7a5\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4.\n\uc54c\ud30c\ud76c\uc36c\uc73c\ub85c \uac1c\ubc1c\ud55c \uc5b8\uc5b4\ub294 \uc190\uc27d\uac8c \ud30c\uc774\uc36c\uc73c\ub85c \uc2e4\ud589\ud558\uac70\ub098 \ubc14\uc774\ub108\ub9ac\ub85c \ube4c\ub4dc\ud560 \uc218 \uc788\uace0, JIT\ub97c \uc801\uc6a9\ud558\uae30\ub3c4 \uc27d\uc2b5\ub2c8\ub2e4.\n\n\uc774 \ud504\ub85c\uc81d\ud2b8\ub294 RPython\uc73c\ub85c JIT \uc778\ud130\ud504\ub9ac\ud130\ub97c \uac1c\ubc1c\ud558\ub294 \uc608\uc81c\ub85c \ud65c\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc704\uc758 \ub9c1\ud06c\uc5d0\uc11c LOG.md\ub97c \ud655\uc778\ud574 \ub354 \uc54c\uc544\ubcf4\uc138\uc694.\n\n* \ud30c\uc774\uc36c\uc774\ub780?\n\n\uc544\uc9c1 \ud30c\uc774\uc36c\uc744 \ubaa8\ub974\uc138\uc694? [\uc54c\ud30c\ud76c \uac1c\ubc1c\uc790\uac00 \ubc88\uc5ed\ud55c \ucc45](http://www.yes24.com/24/Goods/15240210?Acode=101)\uc73c\ub85c \ud30c\uc774\uc36c\uc744 \uacf5\ubd80\ud574 \ubd05\uc2dc\ub2e4.\n\n* \uc54c\ud30c\ud76c\uc36c\uc774\ub780?: [http://rpython.readthedocs.org][rpython]\n\n\n```\ngit clone https://github.com/aheui/rpaheui\nmake # set RPYTHON in Makefile. You can get pypy by: hg clone http://bitbucket.org/pypy/pypy\n./aheui-c \n```\n\nJIT\ub85c \uc18d\ub3c4 \uc62c\ub9ac\uae30\n----\n\nPyPy \uae30\uc220\uc740 PyPy\ub97c CPython\ubcf4\ub2e4 \ube60\ub974\uac8c \ub3d9\uc791\ud558\uac8c \ub9cc\ub4ed\ub2c8\ub2e4. ([http://speed.pypy.org/](http://speed.pypy.org/) \ucc38\uace0)\n\n\uc54c\ud30c\ud76c\ub3c4 \uc774 \uae30\uc220\uc744 \uc774\uc6a9\ud574 JIT\ub85c \ube68\ub77c\uc9c0\uace0 \uc788\uc2b5\ub2c8\ub2e4. \ubca4\uce58\ub9c8\ud06c\uc5d0 \ub110\ub9ac \uc4f0\uc774\ub294 \ub85c\uace0 \uc2e4\ud589\uc774 caheui\ubcf4\ub2e4 30\ubc30 \uc774\uc0c1 \ub354 \ube60\ub985\ub2c8\ub2e4!\n\n```\n$ time ./rpaheui-c snippets/logo/logo.aheui > /dev/null\n\nreal 0m0.915s\nuser 0m0.640s\nsys 0m0.269s\n```\n\n```\n$ time ../caheui/aheui snippets/logo/logo.aheui > /dev/null\n\nreal 0m26.026s\nuser 0m25.970s\nsys 0m0.035s\n```\n\n\uc2e4\ud589 \uc635\uc158\n----\n- \uc635\uc158\uc744 \uc81c\uc678\ud55c \uccab \uc778\uc790\ub294 \ud30c\uc77c \uc774\ub984\uc785\ub2c8\ub2e4. \ud30c\uc77c\uc774\ub984\uc774 `-`\uba74 \ud45c\uc900 \uc785\ub825\uc785\ub2c8\ub2e4.\n- --help,-h: \ub3c4\uc6c0\ub9d0\n- --version,-v: \ubc84\uc804\n- --opt,-O: \ucd5c\uc801\ud654 \uc218\uc900. \uae30\ubcf8\uac12\uc740 `1`\uc785\ub2c8\ub2e4. `0`\uacfc `2` \uc0ac\uc774\uc758 \uc815\uc218\ub97c \uc4f8 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n - 0: \ucd5c\uc801\ud654 \uc5c6\uc74c.\n - 1: \uac04\ub2e8\ud55c \uc2a4\ud0dd\ud06c\uae30 \ucd94\uc815\uc73c\ub85c \ube60\ub974\uac8c \uc4f0\uc774\uc9c0 \uc54a\ub294 \ucf54\ub4dc\ub97c \uc81c\uac70\ud558\uace0 \uc0c1\uc218 \uc5f0\uc0b0\uc744 \ubcd1\ud569\ud569\ub2c8\ub2e4.\n - 2: \uc2a4\ud0dd\ud06c\uae30 \ucd94\uc815\uc73c\ub85c \uc644\ubcbd\ud558\uac8c \uc4f0\uc774\uc9c0 \uc54a\ub294 \ucf54\ub4dc\ub97c \uc81c\uac70\ud558\uace0, \ucf54\ub4dc \uc870\uac01\uc744 \uc9c1\ub82c\ud654\ud574 \uc7ac\ubc30\uce58\ud558\uace0, \uc0c1\uc218 \uc5f0\uc0b0\uc744 \ubcd1\ud569\ud569\ub2c8\ub2e4.\n - usage: `--opt=0`, `-O1` or `-O 2`\n- --source,-S: \uc18c\uc2a4 \uc720\ud615. \uae30\ubcf8 \uac12\uc740 `auto`\uc785\ub2c8\ub2e4. `auto`, `bytecode`, `asm`, `text` \uac00\uc6b4\ub370 \ud558\ub098\ub97c \uc4f8 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n - `auto`: \uc18c\uc2a4 \uc720\ud615\uc744 \ucd94\uce21\ud569\ub2c8\ub2e4. \ud30c\uc77c\uc774\ub984\uc774 `.aheuic`\uc774\uac70\ub098 \ubc14\uc774\ud2b8\ucf54\ub4dc \uc885\ub8cc \ud328\ud134\uc774 \ub2f4\uaca8 \uc788\uc73c\uba74 `bytecode`\ub85c \ucd94\uce21\ud569\ub2c8\ub2e4. \ud30c\uc77c\uc774\ub984\uc774 `.aheuis`\uc774\uba74 `asm`\uc73c\ub85c \ucd94\uce21\ud569\ub2c8\ub2e4. \ud30c\uc77c\uc774\ub984\uc774 `.aheui`\uc774\uba74 `text`\ub85c \ucd94\uc815\ud569\ub2c8\ub2e4. \ucd94\uc815\ud560 \uc218 \uc5c6\uc73c\uba74 `text`\ub85c \ucd94\uc815\ud569\ub2c8\ub2e4.\n - `bytecode`: \uc544\ud76c \ubc14\uc774\ud2b8\ucf54\ub4dc. (`\uc55f\uc148\ube14\ub9ac`\uc758 \ubc14\uc774\ud2b8\ucf54\ub4dc \ud45c\ud604\ud615)\n - `asm`: `\uc55f\uc148\ube14\ub9ac` \ucc38\uace0\n - usage: `--source=asm`, `-Sbytecode` or `-S text`\n- --target,-T: \uacb0\uacfc\ubb3c \uc720\ud615. \uae30\ubcf8\uac12\uc740 `run`\uc785\ub2c8\ub2e4. `run`, `bytecode`, `asm` \uac00\uc6b4\ub370 \ud558\ub098\ub97c \uc4f8 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n - `run`: \uc8fc\uc5b4\uc9c4 \ucf54\ub4dc\ub97c \uc2e4\ud589\ud569\ub2c8\ub2e4.\n - `bytecode`: \uc544\ud76c \ubc14\uc774\ud2b8\ucf54\ub4dc. (`\uc55f\uc148\ube14\ub9ac`\uc758 \ubc14\uc774\ud2b8\ucf54\ub4dc \ud45c\ud604\ud615)\n - `asm`: `\uc55f\uc148\ube14\ub9ac` \ucc38\uace0\n - usage: `--target=asm`, `-Tbytecode` or `-T run`\n- --output,-o: \uacb0\uacfc\ubb3c \ud30c\uc77c. \uae30\ubcf8\uac12\uc740 \uc544\ub798\uc640 \uac19\uc2b5\ub2c8\ub2e4. \uac01 \uacb0\uacfc\ubb3c \uc720\ud615\uc5d0 \ub530\ub77c \uc790\uc138\ud55c \ub0b4\uc6a9\uc744 \ud655\uc778\ud558\uc138\uc694. `-`\uc774\uba74 \ud45c\uc900 \ucd9c\ub825\uc785\ub2c8\ub2e4.\n - --target=run: \uc774 \uc635\uc158\uc740 \ubb34\uc2dc\ub429\ub2c8\ub2e4.\n - --target=bytecode: \uae30\ubcf8 \uac12\uc740 `.aheuic` \ud30c\uc77c\uc785\ub2c8\ub2e4.\n - --target=asm: \uae30\ubcf8 \uac12\uc740 `.aheuis` \ud30c\uc77c\uc785\ub2c8\ub2e4.\n- --cmd,-c: \ucf54\ub4dc\ub97c \ud30c\uc77c \ub300\uc2e0 \ubb38\uc790\uc5f4\ub85c \ubc1b\uc544 \ub118\uaca8\uc90d\ub2c8\ub2e4.\n- --no-c: `.aheuic` \ud30c\uc77c\uc744 \uc790\ub3d9\uc73c\ub85c \uc0dd\uc131\ud558\uc9c0\uc54a\uc2b5\ub2c8\ub2e4.\n - `.aheuic` \ud30c\uc77c\uc740 \uc65c \uc0dd\uc131\ub418\ub098\uc694?: [https://github.com/aheui/snippets/commit/cbb5a12e7cd2db771538ab28dfbc9ad1ada86f35](https://github.com/aheui/snippets/commit/cbb5a12e7cd2db771538ab28dfbc9ad1ada86f35)\n\n\uc55f\uc148\ube14\ub9ac\uc640 ahsembler\n----\n\n* \uc54c\ub9bc: `ahsembler`\ub294 `./aheui-c --source=asm --output=-`\uc640 \uac19\uc740 \uba85\ub839\uc785\ub2c8\ub2e4.\n\n\uc55f\uc148\ube14\ub7ec\ub85c \uc544\ud76c \ucf54\ub4dc\ub97c \ucef4\ud30c\uc77c\ud574 \uc9c1\ub82c\ud654 \ub41c \uc55f\uc148\ube14\ub9ac\ub85c \ub9cc\ub4dc\uc138\uc694!\n\uc544\ud76c \ucf54\ub4dc\ub97c \uc120\ud615\uc73c\ub85c \ub514\ubc84\uadf8\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4!\n\n\uc6d0\uc2dc \uba85\ub839\n\n- halt: \u314e\n- add: \u3137\n- mul: \u3138\n- sub: \u314c\n- div: \u3134\n- mod: \u3139\n- pop: \u3141 without \u3147/\u314e\n- popnum: \u3141 with \u3147\n- popchar: \u3141 with \u314e\n- push $v: \u3142 without \u3147/\u314e. Push THE VALUE $v. $v is not an index of consonants.\n- pushnum: \u3142 with \u3147\n- pushchar: \u3142 with \u314e\n- dup: \u3143\n- swap: \u314d\n- sel $v: \u3145. $v is always an integer order of final consonants.\n- mov $v: \u3146. $v is always an integer order of final consonants.\n- cmp: \u3148\n- brz $v: \u314a. If a popped value is zero, program counter is set to $v; otherwise +1.\n\n\ud655\uc7a5 \uba85\ub839 (\uc120\ud615 \ucf54\ub4dc\ub294 \uc704\uce58 \uc815\ubcf4\ub97c \uc783\uace0 \uc77c\ubd80 \uba85\ub839\uc774 \uc2a4\ud0dd \ud06c\uae30 \uc810\uac80\uc744 \ud558\uc9c0 \uc54a\uc73c\ubbc0\ub85c \ucd94\uac00 \uba85\ub839\uc774 \ud544\uc694\ud569\ub2c8\ub2e4)\n\n- brpop2 $v: If current stack doesn't have 2 values to pop, program counter is set to $v; otherwise +1.\n- brpop1 $v: If current stack doesn't have 1 values to pop, program counter is set to $v; otherwise +1.\n- jmp $v: Program counter is set to $v.\n\n\uc0ac\uc6a9\ubc95\n\n```\ngit clone https://github.com/aheui/rpaheui\npython ahsembler.py \n```\n\n [rpython]: http://rpython.readthedocs.org", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/aheui/rpaheui", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "aheui", "package_url": "https://pypi.org/project/aheui/", "platform": "", "project_url": "https://pypi.org/project/aheui/", "project_urls": { "Homepage": "https://github.com/aheui/rpaheui" }, "release_url": "https://pypi.org/project/aheui/1.2.3/", "requires_dist": null, "requires_python": "", "summary": "Aheui runtime tools with an interpreter.", "version": "1.2.3" }, "last_serial": 3629138, "releases": { "1.1": [ { "comment_text": "", "digests": { "md5": "a47c5f3a689ddcc2cd4dd788e865e82c", "sha256": "d69ff2db51175df951dc711a5e0ca675050ae2e81363f907ebc0fa5ebc2893dc" }, "downloads": -1, "filename": "aheui-1.1.tar.gz", "has_sig": false, "md5_digest": "a47c5f3a689ddcc2cd4dd788e865e82c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4277, "upload_time": "2015-04-16T22:57:07", "url": "https://files.pythonhosted.org/packages/c2/6d/100a8306f4c757f9c32c7cc2011a66bcb85649b51baa7e01e65300e8581c/aheui-1.1.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "245094729f848a5079d0d9ecd23708de", "sha256": "7306129c6a0947b217a1e7be09a6f9bda407630db134580a163ee0604885eeb2" }, "downloads": -1, "filename": "aheui-1.1.1.tar.gz", "has_sig": false, "md5_digest": "245094729f848a5079d0d9ecd23708de", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14229, "upload_time": "2015-04-16T23:14:58", "url": "https://files.pythonhosted.org/packages/3f/e0/4d3769575e1d984ec451f0e5e4e886bf6dff0114544ed53b1bd78add36c5/aheui-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "fa6e36315b9ee1f9b7be303438fd4e64", "sha256": "524b7e9e6fd3e296d8ae3f0dbe8548e4408fd9f5f2b3390ff8002906fd36eacf" }, "downloads": -1, "filename": "aheui-1.1.2.tar.gz", "has_sig": false, "md5_digest": "fa6e36315b9ee1f9b7be303438fd4e64", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14269, "upload_time": "2015-04-17T00:38:23", "url": "https://files.pythonhosted.org/packages/18/da/048b8393b69e4b588c970c564e6cab98447d29643d2324738354c9f897b8/aheui-1.1.2.tar.gz" } ], "1.2.2": [ { "comment_text": "", "digests": { "md5": "f763028d1fbb8c69cbf35b532de1a4b0", "sha256": "c8c1b1e549904ed04e93b0b591d20a2eb0d75ecc0f9d996aaba98acf5995287d" }, "downloads": -1, "filename": "aheui-1.2.2.tar.gz", "has_sig": false, "md5_digest": "f763028d1fbb8c69cbf35b532de1a4b0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20051, "upload_time": "2016-01-18T19:59:44", "url": "https://files.pythonhosted.org/packages/5e/b0/2ff5c2a9c6a482bce805d2e76c5ce146e6259802d9dfc71332fc1e6e09b9/aheui-1.2.2.tar.gz" } ], "1.2.3": [ { "comment_text": "", "digests": { "md5": "de292671ca78b723cb1eec45b9a9def0", "sha256": "d4882c08b8bf102f118dabd0969ee844cd8d439515e8a36f743d4aae56c1028b" }, "downloads": -1, "filename": "aheui-1.2.3.tar.gz", "has_sig": false, "md5_digest": "de292671ca78b723cb1eec45b9a9def0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21139, "upload_time": "2018-03-01T16:56:33", "url": "https://files.pythonhosted.org/packages/cd/cc/8ec33dce28c4f1f44e44ec93bf50d0f2734dddad3bbb16f3a11945213571/aheui-1.2.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "de292671ca78b723cb1eec45b9a9def0", "sha256": "d4882c08b8bf102f118dabd0969ee844cd8d439515e8a36f743d4aae56c1028b" }, "downloads": -1, "filename": "aheui-1.2.3.tar.gz", "has_sig": false, "md5_digest": "de292671ca78b723cb1eec45b9a9def0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21139, "upload_time": "2018-03-01T16:56:33", "url": "https://files.pythonhosted.org/packages/cd/cc/8ec33dce28c4f1f44e44ec93bf50d0f2734dddad3bbb16f3a11945213571/aheui-1.2.3.tar.gz" } ] }