Yes, I tried atspkg. At the time I tried it, it didn't quite work, though I can't quite remember what didn't work. I like building for x86 and ARM. There is no binary for ARM, and since it's written in Haskell, building for ARM from Haskell source is a pain. Conan makes this super simple. Also, once binaries are uploaded for a particular CPU architecture, those packages can be consumed without needing to compile again. atspkg doesn't include a package repository. Including plain C dependencies is super simple in Conan, too. No need to rely on your system version of a particular dependency. Take my ATS wrapper around sqlite, for example. It depends on the sqlite library and will either fetch the binary or else build sqlite from source when building the wrapper.
On Sun, May 30, 2021, 5:16 PM Elijah Stone <[email protected]> wrote: > Have you seen atspkg (https://github.com/vmchale/atspkg)? > > Haven't used it myself, but it seems to be what you're looking for. > I think Vanessa reads this list so she can probably say more. > > On Sun, 30 May 2021, [email protected] wrote: > > > > > Hey all, > > > > I just wanted to let everyone know that I updated a bunch of the > libraries that I created last year (ats-http, ats-epoll, ats-result, and a > bunch of others). I was sort of frustrated with the overall build > experience when working with ATS libraries. I wanted a similar experience > to Rust's cargo tool. I found conan (https://conan.io) and > > it works really well, so I reworked all my libraries to use it to manage > library dependencies. Using conan, you can specify libraries that an > app/library depends on and their specific versions. You can specify build > dependencies (like ats-unit-testing) and pre-built binaries are used, if > available, otherwise the dependencies are built > > from source and cached locally. I created a simple python class to be > used in a conan recipe to set the correct ATS include paths for all the > dependencies (https://github.com/xran-deex/atsconan). All of my ATS > libraries on my github account have been converted to use conan. I'm also > hosting these packages in my self-hosted conan package > > repo (https://pkg.us.to) in case anyone decides to try this out. You > can either depend on any of these packages and just include the binaries, > or you can build everything from source. Anyway, I think it's pretty neat > that I can fetch all the dependencies, (optionally) build all the deps from > source, and build my package all in a few > > simple commands. Finally, I updated my docker image to include conan ( > https://github.com/xran-deex/ats-docker), the docker image is on > dockerhub at xrandeex/ats2:0.4.2. I removed nodejs and npm from the docker > image only because it made the image size huge. I'm pretty sure no one is > using it anyways (lol). I can add it back, if anyone > > is actually using it. Also, I updated the ATS2 version to the latest > (0.4.2). > > > > Has anyone ever used conan? I'd love to hear about your experience with > it. Anyway, hopefully this makes it easier to create and share ATS2 > libraries with other developers. > > > > Thanks! > > Randy > > > > -- > > You received this message because you are subscribed to the Google > Groups "ats-lang-users" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected]. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/ats-lang-users/6bff8383-791f-4f2c-aca6-7008e6673e03n%40googlegroups.com > . > > > > > > -- > You received this message because you are subscribed to the Google Groups > "ats-lang-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ats-lang-users/71e3c857-758a-db74-7156-f9a28af61c9%40elronnd.net > . > -- You received this message because you are subscribed to the Google Groups "ats-lang-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/CADVf3kFBQXnQaJT%2BxEnjGanPcdTrmYMs0jiB9Lj9F88uR3upgQ%40mail.gmail.com.
