{"id":22034269,"url":"https://github.com/konrad1991/ast2ast","last_synced_at":"2025-04-03T02:11:20.173Z","repository":{"id":37390212,"uuid":"346692129","full_name":"Konrad1991/ast2ast","owner":"Konrad1991","description":"Translates an R function into a to a C++ function which is callable from within R. The typical use case intended by 'ast2ast' are functions describing ode-systems. ","archived":false,"fork":false,"pushed_at":"2025-03-12T09:49:45.000Z","size":100654,"stargazers_count":35,"open_issues_count":6,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T02:11:16.869Z","etag":null,"topics":["abstract-syntax-tree","c","c-plus-plus","expression-template","matrix","r","rcpp","transpiler","vector"],"latest_commit_sha":null,"homepage":"https://konrad1991.github.io/ast2ast/ ","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Konrad1991.png","metadata":{"files":{"readme":"Readme.md","changelog":"NEWS","contributing":null,"funding":null,"license":"License","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":"2021-03-11T12:19:26.000Z","updated_at":"2025-03-12T09:49:48.000Z","dependencies_parsed_at":"2023-11-20T09:30:22.255Z","dependency_job_id":"ce3165b9-0008-49ee-90ff-ec2d261f5282","html_url":"https://github.com/Konrad1991/ast2ast","commit_stats":{"total_commits":491,"total_committers":3,"mean_commits":"163.66666666666666","dds":0.06924643584521384,"last_synced_commit":"6b4bfdbc77f61acea856068ddcb48ba6bc56f3c6"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Konrad1991%2Fast2ast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Konrad1991%2Fast2ast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Konrad1991%2Fast2ast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Konrad1991%2Fast2ast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Konrad1991","download_url":"https://codeload.github.com/Konrad1991/ast2ast/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246922248,"owners_count":20855345,"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":["abstract-syntax-tree","c","c-plus-plus","expression-template","matrix","r","rcpp","transpiler","vector"],"created_at":"2024-11-30T09:07:36.134Z","updated_at":"2025-04-03T02:11:20.149Z","avatar_url":"https://github.com/Konrad1991.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- badges: start --\u003e\n[![](http://cranlogs.r-pkg.org/badges/last-month/ast2ast?color=green)](https://cran.r-project.org/package=ast2ast)\n[![](https://www.r-pkg.org/badges/version/ast2ast?color=green)](https://cran.r-project.org/package=ast2ast)\n[![License: GPL2](https://img.shields.io/badge/license-GPL2-blue.svg)](https://cran.r-project.org/web/licenses/GPL-2)\n\u003c!-- badges: end --\u003e\n\n\n# R package ast2ast\n\n## News\n\n* see more on: https://konrad1991.github.io/ast2ast/ \n* 11-04-2023: version 0.3.1 is now on CRAN\n* I gave a talk at the *useR! 2022* conference about *ast2ast*. The record can be watched using the following link: https://m.youtube.com/watch?v=5NDPOLunQTA\u0026list=PL77T87Q0eoJjvKVFHuJZ5_BGVbPPpB8LL\u0026index=8,\n\n## Overview\n\nTranslates an R function into a C++ function. An external pointer to the C++ function or an R function is returned to the user. To install the Github version of the package use *devtools::install_github(\"Konrad1991/ast2ast\", build_vignettes = TRUE)*. The package is also on CRAN and can be installed via *install.packages(\"ast2ast\")*. \n\nThe motivation to write the package was that it is often cumbersome using R functions in applications which have to call the R function very often (\u003e 100 calls) (e.g. ODE solving, Optimization). One possiblity is to write the function in a faster programming language e.g. C. However, learning languages such as C is difficult and time consuming. Therefore *ast2ast* is a decent alternative as the function can be written in R.\n\nAs an example solving a simple ODE-System. The translated code is considerable faster then R code and almost as fast as C++. Code for the example can be found in the vignettes.\n\n![Benchmark](https://github.com/Konrad1991/ast2ast/blob/master/vignettes/benchmark.png)\n\n## Documentation:\n\nDocumentation for the function [translate](https://konrad1991.github.io/ast2ast/translate.html).\nIf you want a detailed documentation please read this vignette: https://konrad1991.github.io/ast2ast/DetailedDocumentation.html\nIn case you are interested on using ast2ast in your R package please refer to: https://konrad1991.github.io/ast2ast/InformationForPackageAuthors.html\n\n## Contribution\n\n\nContribution would be warmly appreciated (See Code of Conduct).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkonrad1991%2Fast2ast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkonrad1991%2Fast2ast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkonrad1991%2Fast2ast/lists"}