{"id":30741938,"url":"https://github.com/ceritium/pascalina","last_synced_at":"2025-09-04T01:10:26.860Z","repository":{"id":42391409,"uuid":"467697733","full_name":"ceritium/pascalina","owner":"ceritium","description":"Small Ruby based calculus oriented expression parser","archived":false,"fork":false,"pushed_at":"2022-04-07T10:53:22.000Z","size":64,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-04-13T08:24:19.748Z","etag":null,"topics":["calculus","dsl","math","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/ceritium.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-08T22:36:21.000Z","updated_at":"2022-04-05T18:32:33.000Z","dependencies_parsed_at":"2022-09-15T17:40:13.065Z","dependency_job_id":null,"html_url":"https://github.com/ceritium/pascalina","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/ceritium/pascalina","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceritium%2Fpascalina","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceritium%2Fpascalina/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceritium%2Fpascalina/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceritium%2Fpascalina/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ceritium","download_url":"https://codeload.github.com/ceritium/pascalina/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceritium%2Fpascalina/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273535047,"owners_count":25122769,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["calculus","dsl","math","ruby"],"created_at":"2025-09-04T01:10:25.892Z","updated_at":"2025-09-04T01:10:26.849Z","avatar_url":"https://github.com/ceritium.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pascalina\n\n## Usage\n\nTODO: ...\n\n### AST cache\n\nPascalina doesn't handle the AST cache like other alternatives, but you can\ncache it your-self and pass it with `evaluate_ast`.\n\nCheck the `benchmark/ast.rb` to see the usage:\n\n```ruby\n\nWarming up --------------------------------------\n            evaluate   634.000  i/100ms\nmarshal evaluate_ast     1.464k i/100ms\n direct evaluate_ast     1.595k i/100ms\nCalculating -------------------------------------\n            evaluate      5.783k (±14.2%) i/s -     29.164k in   5.146870s\nmarshal evaluate_ast     14.502k (±18.1%) i/s -     70.272k in   5.015046s\n direct evaluate_ast     22.910k (±19.1%) i/s -    106.865k in   5.046620s\n\nComparison:\n direct evaluate_ast:    22910.4 i/s\nmarshal evaluate_ast:    14502.0 i/s - 1.58x  (± 0.00) slower\n            evaluate:     5782.7 i/s - 3.96x  (± 0.00) slower\n```\n\n## Similar stuff\n\n- [keisan](https://github.com/project-eutopia/keisan):  A Ruby-based expression parser, evaluator, and programming language\nTopics\n- [dentaku](https://github.com/rubysolo/dentaku): Math and logic formula parser and evaluator\n- [rlox](https://github.com/malavbhavsar/rlox): Ruby implementation of Lox, the language described in Crafting Interpreters\n- [stoffle](https://github.com/alexbrahastoll/stoffle): A toy programming language developed as a series of blog posts for the Honeybadger blog.\n\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'pascalina'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install pascalina\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/ceritium/pascalina. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/ceritium/pascalina/blob/master/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Pascalina project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/ceritium/pascalina/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceritium%2Fpascalina","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fceritium%2Fpascalina","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceritium%2Fpascalina/lists"}