CARVIEW |
Select Language
HTTP/2 200
date: Sun, 20 Jul 2025 08:31:58 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"938c3d22b1356403898f1d9f7a072ea1"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=iN%2FuowWvECujQAKaF6wGEyg8gJb%2FVt%2FROt1xzE%2BAs20V%2BCy3yEeANPkDfXCZCGfbwOv3T7yyOD6dP%2BFSQnEEkZmCDaY1N%2ByBbK%2Fr6jasjKhI5TfBH%2BgwptqOhMr9GvA29RCMl4%2BQEAbDlHewfCE6B7Y3MNGAVERaKSoCiwuujiHK5UnG5hZayONtYqB8xi3ncD1xjORQZYlhqhRMsE4ur2UIeG87liLGXtVCH8LufiUwmsIXN2G60MiP6g6I77aF%2BEPfQKElRxP6BRdweuraxw%3D%3D--Q%2BKKfQWiDXxbARYH--q5LPzMthmC%2FuXX%2FO1xrrdg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1616483061.1753000318; Path=/; Domain=github.com; Expires=Mon, 20 Jul 2026 08:31:58 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 20 Jul 2026 08:31:58 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: B528:2E2A0B:B49575:E9258E:687CA97E
GitHub - dkasak/tinypy-panda: tinypy is a minimalist implementation of python
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 3
tinypy is a minimalist implementation of python
License
dkasak/tinypy-panda
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
64k tinypy "batteries not (yet) included" Copyright (c) 2008 Phil Hassey Check it out: $ python setup.py linux pygame $ ./build/tinypy examples/julia.py $ ./build/tinypy your-program-goes-here.py Depends on: - python (only for bootstrapping) - sdl (for the pygame module) - gcc Credits: - math module - Rockins Chen <ybc2084@gmail.com> - VS support - Krzysztof Kowalczyk - bug fixin' - Dean Hall & Allefant Thanks to allefant and the python community for all the tips and feedback! Thanks to John M. for a python 2.5 compat. patch. And to illume and the rest of #ludumdare for morale support. Also thanks to python.org, lua.org, valgrind.org, nekovm.org, pypy.org https://javascript.crockford.com/tdop/tdop.html https://www.memorymanagement.org/articles/recycle.html https://shed-skin.blogspot.com/ Other "tiny" python implementations: https://pymite.python-hosting.com/ https://students.ceid.upatras.gr/~sxanth/pyvm/ F.A.Q.s: Q. If I run boot.py it says you've got like 80k of code! That's TOTALLY not 64k! I want my money back. A. Err... that's true. But 64k sounds *SO* much better than 80k. If you *really* want it to be 64k, just run: $ python mk64k.py This does the following things: - changes 4 spaces into tabs and removes blank lines - removes comments - removes the "namespacing" i.e. "tp_print" becomes "print" Q. The binary is bigger than 64k. I hate big binaries. A. I don't really care, but if you run "upx tinypy" it makes the tinypy binary smaller than 64k. Q. No matter how you spin this, it's just plain NOT 64k. A. Let the buyer beware? I dunno, it's close enough. Let's call it a rounding error, shall we? Q. How come some oddball combinations of variable and named arguments don't work? A. Ask me some other time. Short answer: I do it like lua does it. Only calls like this make sense: call_with_var_args(a,b,c,*d) call_with_named_args(a=b,**c) mixes of both just don't work, sorry! Q. At the end of build.py tinypy doesn't work! A. This is probably because of my use of -O3 in the final step. Run the command again without -O3. Some versions of GCC are buggy and don't do well with it.
About
tinypy is a minimalist implementation of python
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
You can’t perform that action at this time.