pikelet icon indicating copy to clipboard operation
pikelet copied to clipboard

Package manager

Open brendanzab opened this issue 6 years ago • 4 comments

It would be neat to have a way to define Pikelet packages!

I'm also thinking it would also be neat to be able to define packages using Pikelet records!

record {
    name = "prelude";
    version = "0.1.0";
    copyright = "Apache-2.0";
    dependencies = [];
}

Having custom literals or something, perhaps like in relit might make this nicer 🤔

TODO List

  • [ ] add a pikelet-package crate
  • [ ] ???

brendanzab avatar Nov 05 '18 11:11 brendanzab

Might be interesting to have a look at cargo to see what ideas we can steal. I'd also like to pick Yehuda Katz's brain on what he would do differently. I think he was doing work here: argon-package. It would also be interesting to look at Nix too.

brendanzab avatar Nov 06 '18 08:11 brendanzab

That right there is valid Nix syntax, though record would be parsed as a function rather than a keyword because it doesn't have to disambiguate between types and values (dynamically typed). It wouldn't know what to do with it, but it would parse and it wouldn't be too hard to translate that into a valid Niix derivation.

boomshroom avatar Mar 11 '19 06:03 boomshroom

Yeah, I think being able to abstract Pikelet to Nix, Dhall, JSON, etc. would be kind of neat! It would be cool if one could statically verify that a bit of Pikelet code could be transformed into one of those formats. Not sure how hard that would be though.

brendanzab avatar Mar 11 '19 07:03 brendanzab

I'm definitely interested in languages that can be their own data formats - like REBOL, Lisp, Scheme, JavaScript, etc.

brendanzab avatar Mar 11 '19 07:03 brendanzab