▲ | petesergeant 4 hours ago | ||||||||||||||||
> Genera knows the actual type of everything I have this side-project fantasy of a very simple terminal pipe-types project. The basic idea is a set of very basic standardized types, demarcated using escape sequences. Dates, filenames, URLs, numbers, possibly one or two number units as well (time periods, file sizes only). Tools that already produce columnar data (ls) get a flag that lets them output this format, and tools that work with piped data (cut, sort, uniq) get equivalents or modes that let them easily work with this. Essentially, simple typed tables held in text, with enhancements for existing tooling to know how to deal with it. Would make my day-to-day on the command line much easier. | |||||||||||||||||
▲ | loa_in_ an hour ago | parent | next [-] | ||||||||||||||||
I always thought to do that by having a virtual file system that tags my files and so they are available at specific location if they fit the bill. | |||||||||||||||||
▲ | db48x 4 hours ago | parent | prev | next [-] | ||||||||||||||||
Could be fun :) But note that on the Lisp Machine/Genera, every type has a presentation and can be “printed” to the REPL. This includes any new classes that you create as part of your own programs. It’s not just a small list of standard types, but every type. The standard tutorial for the system is to implement Conway’s Game of Life. It has you create a class to hold the game board and then guides you through the process of defining a presentation for it so that the it can be displayed easily. | |||||||||||||||||
▲ | ramses0 3 hours ago | parent | prev [-] | ||||||||||||||||
https://kellyjonbrazil.github.io/jc/docs/parsers/ls.html ...glom on to this: "+JSONSchema" with some sort of UNIX-ish taxonomy. Everything from `man test`, add in `man du`, `date`, `... ago` (relative time) as you'd mentioned. `jc ls | add_schema...` => `jq ...` ...or `jc ls --with-schema | jq ...` (it appears as though `jc` already supports schema's, so perhaps it'd be `jc ls --with-types` or something, but there's your starting point!) | |||||||||||||||||
|