-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello World #44
Hello World #44
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If all this PR does is add dependencies, without any actual hello-world code, then the title of the PR should reflect that. I think it could possibly be bad practice to prematurely add deps for code we haven't wrote yet, though. This is effectively experimenting, and expecting experimentation to be merged, rather than actual work being merged, so it gives a false impression, and is impossible to audit or criticise.
For example, suppose I add 500 dependencies right now, and pretend I need them for some theoretical future piece of code I'm writing. Then I find out I only really needed 10 of those dependencies. This would not be good practice.
If this PR is going to be the full PR for the hello-world application, code and all, then it should be converted to a draft.
@tbidne We should use the DanaSwap-Plutarch also uses |
If I understand correctly that updating Plutarch to the latest commit on staging solves the problem this is trying to solve, #45 solves this. |
@Geometer1729 Unfortunately it's more complicated than that.
So for now, if we want |
Converted to draft for now because:
|
@tbidne I'd also add to that list that we need to figure out what to do about the overlap between this PR and #45. The latter is close to being merge-ready, so I'd suggest this one be built on top of that. Given #45, what would now become the scope of this PR? Is it about adding the |
@srid As I understand it, this is not only a matter of adding the |
Yes to both @srid and @CSVdB. The intention of this PR is to add a minimal contract (though the contract itself is not up), though of course #45 appears to do that as well. My belief was that we are going to want involve the PAB, hence That said, we are not currently using the PAB, so maybe this concern is premature. I was basing the minimal contract on Dan's here, though that doesn't appear to use the PAB either. It's possible that by the time we do end up using the PAB (if we decide to go that route), then So to sum up, we cannot currently add |
@Geometer1729 @srid From talking with Nick, it appears that we are going to try to maintain a consistent set of plutus hashes organization-wide, possibly using Dan's plackage. Furthermore, it looks like the way forward for this particular problem is to try to get For you all, this means we want a It's also possible that iohk has a different Thoughts? |
Update: This pins |
@srid You're right that it doesn't, but it does not appear to be too hard to fix. I've been working on this to see what it would look like. Incidentally, do you know why # https://github.com/input-output-hk/plutus/pull/4328
inputs.plutus.url = "github:L-as/plutus?ref=master"; But that PR has since been merged. Maybe it's no longer needed? |
@tbidne Ya, his plutus fork is no longer needed. We are using only upstream in #45. If you want to downgrade plutus in Plutarch, go ahead. I'd first check with L-as to see why he chose a newer revision of Plutus, and whether he'd be open to downgrading it. If you are forking Plutarch be sure to base off |
Got it, thanks @srid. Yes, there's no reason to downgrade |
I have a Currently this all compiles fine in this repository. For some reason I had to upgrade |
it's been mentioned here input-output-hk/haskell.nix#519 you maybe able to gleam something like that, or get a work around. However, it maybe be a feature that can be easily added but it creates and anti pattern of ignoring errors when building. I know in gcc warning are just warning, but errors are always show stoppers. |
Thanks for the link. Yeah the ideal response is to "fix the warnings", but that's not always possible if you don't own the deps. I'm all for enabling The usual way to deal with this with cabal is to not enable
I remember bringing this up before and being told that we can't do this with |
The target branch has been changed from |
@tbidne Is there a way to disable warnings for dependencies only, rather than our own code? |
@MatthewCroughan Normally the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this a PR to a feature branch (hello-world-ftr
), this looks good and can be merged, so the Apps team can continue development.
This is an initial PR for the hello-world application. There is one issue that needs to be resolved:
You will notice, in the
cabal-haskell.nix.project
, that I have exchanged the officialplutarch
for my fork:It has an extremely trivial change: https://github.com/tbidne/plutarch/commit/7a6c878b7c065c3304676c808492ab076b1a71e8. This is unfortunately necessary, as I had to upgrade
plutus
in order to use some new dependencies -- e.g.plutus-ledger-constraints
-- andplutus
replaced that module. While this branch ofdUSD
with my fork builds just fine, my attempts at buildingplutarch
itself fails, likely because I'm missing some steps in that process. I presume we will wantplutarch
to be upgraded so that we are not on my fork indUSD
. Unfortunately that trivial change is not backwards-compatible, so we should have someone familiar withplutarch
weigh in. @srid?