{"id":21164564,"url":"https://github.com/polsys/peisik","last_synced_at":"2026-04-27T17:04:08.601Z","repository":{"id":85272509,"uuid":"90603083","full_name":"polsys/Peisik","owner":"polsys","description":"A tiny, verbose and very impractical programming language.","archived":false,"fork":false,"pushed_at":"2018-05-06T17:13:54.000Z","size":180,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-21T09:48:52.587Z","etag":null,"topics":["basic-programming-language","c-sharp","cpp11","interpreter","programming-language"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/polsys.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-08T08:15:27.000Z","updated_at":"2018-05-01T13:35:13.000Z","dependencies_parsed_at":"2023-03-13T20:04:14.762Z","dependency_job_id":null,"html_url":"https://github.com/polsys/Peisik","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polsys%2FPeisik","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polsys%2FPeisik/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polsys%2FPeisik/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polsys%2FPeisik/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/polsys","download_url":"https://codeload.github.com/polsys/Peisik/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243610088,"owners_count":20318894,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["basic-programming-language","c-sharp","cpp11","interpreter","programming-language"],"created_at":"2024-11-20T14:07:03.207Z","updated_at":"2025-12-29T17:26:48.893Z","avatar_url":"https://github.com/polsys.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Peisik\n\nPeisik is a statically-typed procedural verbose slightly-pure programming language. On the current language spectrum, it falls somewhere between Excel cells and BASIC. It is a safe language - no actor, malicious or not, can achieve anything useful with it. (The runtime, however, might not be safe.)\n\nFor an example, see the [MonteCarloPi benchmark](PeisikEndToEndTests/PerformanceSuite/MonteCarloPi.peisik).\n\nThis implementation compiles Peisik into custom bytecode which is then interpreted. The compiler is implemented in C# and the interpreter in C++. This has been my tiny programming project and therefore purposefully simple. Quite a bit after the original implementation I wrote a new compiler backend, which is now merged. It knows a couple optimizations, but there is still (interesting!) work to do.\n\n_An x64 (Windows) native compiler is in the `x64` branch. This work is very PROOF-OF-CONCEPT, with no test coverage._\n\n## Features\n- A verbose syntax designed to put off users\n- Strict type system with reals, integers and booleans\n- A powerful import system for modular code\n- No goto statement\n\n### Omitted features\n- Textual, user-defined or array data types\n- For loops\n- Useful standard library (for example, I/O)\n\n## Building\n### Windows\n* Visual Studio 2017\n\nThe only dependencies are `System.ValueTuple` NuGet package for the compiler and `NUnit` (also from NuGet, though you'll need a runner) for the tests. The compiler is written in C# 7, which requires the VS2017 compiler (or later). The interpreter is written in standard C++11 and _should_ compile and run on anything. \n\n### Linux\nFor building the compiler, you will need Mono. With minor changes, the compiler should also build nicely with .Net Core. (Note to self: Make it happen!)\n\nThe interpreter is easily built and accepts `.cpeisik` files compiled on Windows. As of now there is no build script or makefile. You can build the interpreter by executing the following in the `PeisikInterpreter` directory:\n```\ng++ *.cpp -std=c++11 -O2 -o peisik\n```\nConsult the compiler manual for using the precompiled header to speed up compilations.\n\n## Usage\nAfter building the solution and gathering the output together:\n```\npeisikc (Filenames without extension or .peisik)\npeisik (Filenames without extension or .cpeisik)\n```\nEach input file is compiled/run in order. Imports are resolved automatically. Use the `--help` flag for information on command line parameters.\n\n## Contributing\nAs this is a tiny side project, I'm not really expecting any contributions. However, if you do use or improve this in some way, I'm very interested!\n\nHappy hacking.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolsys%2Fpeisik","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolsys%2Fpeisik","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolsys%2Fpeisik/lists"}