Macaulay2 / Macaulay2/M2

Delete unused files

Open
#1,091 8 comments 0 reactions 0 assignees View on GitHub
build issue
Dominant language
Macaulay2
Stars
435
Forks
297
Avg merge
4d 20h
Merged PRs (30d)
11

Description

This directory contains several simple utilities that either are not used or can be replaced with simpler tools:
- args.c: not used
- echoout.c: used once in Macaulay2/d to reverse a list. Possible alternative:
- `alias tac='perl -e "print reverse(<>)"'` (in case `tac` doesn't already exist)
- `(for d in ${MY_LIST}; do echo $$d; done) | tac`
- gc_demo.c: not used, though perhaps useful to keep it somewhere else for pedagogy.
- gc_test.c: used as a test, can be moved to Macaulay2/tests
- linkexec*: seems to be an overly complicated solution to making the programs relocatable
- setup.c: windows legacy
- timestamp.c: compiled, but not used as far as I can tell

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by inspecting the directory and searching build files and source references for args.c, echoout.c, gc_demo.c, gc_test.c, linkexec*, setup.c, and timestamp.c. Check the use of echoout.c in Macaulay2/d and the proposed destination Macaulay2/tests for gc_test.c. Done means each listed utility has a documented disposition: removed, moved, or replaced as described.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, perl, shell
Domain
build-system, tooling
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.