-
Notifications
You must be signed in to change notification settings - Fork 7
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
Updated mvar.t to stream.t wherever needed #7
Conversation
Thank you for working on this. I can see from the code changes that this won't compile - but this is a good start. If you follow the instructions on the First, try to see if you can make the compiler happy - and if you have any questions, just ask here (: |
can I work on this :)? |
@0x0god - @prernadabi23 is already working on this, and I believe I saw you being active on another PR in another repository. Maybe finish one PR at a time |
@prernadabi23 - have you got progress on compilation, or do you have questions on this? |
@rand00 I am working on it. My laptop is having some issues, when I am done with that I'll finish this. |
@rand00 I am having issues in running |
Hmm, I havn't used the If that succeeds, try to run Edit: I intentionally didn't give |
Ah just had a look at
Did you have internet access at the point of writing the command? |
If it's the internet connection that was the problem, just try out running |
okay I'll try it again. |
Hello @rand00, I have done those steps successfully. What to do next?😁 |
is this issue fixed now? |
I am working on it @0x0god. I just have to complete the setup. @0x0god Have you completed the setup? What are the steps to follow after the ss that I have attached above? |
Hello @rand00, I am a little stuck and would appreciate your help. |
Sorry for the downtime - was sick since the weekend :/ Next step is to compile |
So you earlier transformed the sourcecode a bit by replacing |
So the last line before you cloned the |
It should now have generated a When you then begin to develop on |
Yes, I am getting errors now. |
Is there any guide or reference that I can use? |
There are several - what are the specific things you want to know about? |
For OCaml here are some good references:
|
For finding out what is possible with the code at hand you can do several things:
|
Thank you @rand00. |
Remember that there is a deadline april 3. for making the contribution |
@rand00 I was getting syntax errors, so I decided to learn more about the language. |
@rand00 I need help, I am just getting endless errors😭. |
I'm sorry you have trouble with it - but it's normal that there is a high learningcurve if you havn't worked with typed functional languages before! Can you explain what you find hardest? |
I changed the file which needed change - then the compiler gave an error and I now don't know how to solve it. |
It's smart to start making changes from "one end" of the code, and then make the rest of the code "conform" to that change. So in this case, the type of The difference between these two types is how to push new elements to the stream. Let's take outset in the It's hard to help with the specific error when I don't have the code, but concerning the category of error you are getting, it's about what type of monad you are in. So in MirageOS, the
In the error it's complaining that the last value in the expression is missing the I can also understand that this part of the error is confusing: If you go to definition the type type 'a or_eof = [`Data of 'a | `Eof ] |
Btw. in the top It's possible to go to definition on these.
The reason why both |
@rand00 I am new to Ocaml, It would take time to learn it and to implement it in the code which is basically a hard task. |
It is totally understandable that it's hard when you are new. It is really cool that you've been motivated and gotten further towards a PR! Hope you can keep up the motivation, and remember to ask for advice if you get stuck. |
In the final application, what should I write in the timeline? |
You should just write what you think makes sense - the timeline is not "written in stone", but a suggestion for what will happen. You can look at the existing project description and write down the issues you would like to work on during the internship. Remember that you need to have comitted something to a PR to be accepted - the PR doesn't have to be finished by the deadline, but there should be some progress. |
Is there anything else an extension or package that we need to have on vscode? |
What is the issue with VSCode? Do you e.g. have type-checking and autocompletion? |
I havn't tried VSCode, but I can see that there is some extension that seems to be needed: I found that link on this guide for setting up your editor: https://ocaml.org/docs/up-and-running#configuring-your-editor |
https://docs.google.com/document/d/1Ja2gOdcFU5n03FvDP2ZScqSI1lZd1cngk5ObH8BN2UA/edit?usp=sharing I had made a lot of changes, but I undid them. Now, I am wondering if this was the right way to solve the issue. Therefore, I created a file detailing the changes I have made since the beginning. I was thinking that there may be some packages that are not installed, as I am getting some errors that I cannot find a solution for. |
Which platform do you recommend then? |
I think VSCode is fine from what I hear, so I recommend that, as it's a simpler editor than e.g. Thanks for the document - is well structured - but would make more sense to push the code-changes to this PR instead, as I would be able to comment directly on the code here via Github then (and run the code easily myself). This will also count more towards the internship application (code doesn't need to compile, even though it's preferred). I'll try to comment here based on the document:
Try to fix these things and it should become less confusing. Another thing: it's both the |
The extension |
Good that you got it working \o/. Was it an error that you closed the PR? |
Yes I don't know why I was not able to commit in this branch. |
Updated the changes required. I tried to solve it, if there's any fault I will try to solve it again.
fixes: #4
Signed-off-by: Prerna Dabi [email protected]
@rand00