Die Suche ergab 10 Treffer

von eustro
9. Dez 2019 20:50
Forum: Konzepte der Programmiersprachen
Thema: Assigment 6: TryDeref on Box?
Antworten: 4
Zugriffe: 240

Re: Assigment 6: TryDeref on Box?

I think the exercise doesn't account for that use case, but good point, I didn't think of that! You could also use TryDeref on regular references to NumV and Closure as well. You would need to decide if you want to replicate the bahavior of a normal Ref and throw an error, if it does not exist or su...
von eustro
8. Dez 2019 14:08
Forum: Konzepte der Programmiersprachen
Thema: Assigment 6: TryDeref on Box?
Antworten: 4
Zugriffe: 240

Re: Assigment 6: TryDeref on Box?

Here another test case where a WeakRef is bound (or rather rebound) to a box via SetId expression: test("NewBox for WeakRef and OpenBox") { assertResult(NumV(0)) { val (res, _) = interp( Let('b, -47098, If0(Seqn(SetId('b, WeakRef(NewBox(0))), OpenBox(TryDeref('b, 23))), OpenBox(TryDeref('b, 23)), 'b...
von eustro
8. Dez 2019 12:23
Forum: Konzepte der Programmiersprachen
Thema: Assigment 6: TryDeref on Box?
Antworten: 4
Zugriffe: 240

Re: Assigment 6: TryDeref on Box?

You mean to call TryDeref directly on a new Box or a reference to a Box instead? The latter should be possible, since we should be able to construct weak references to any construct of the language (if the reference was a WeakRef in the first place). This test for example should be possible: test("W...
von eustro
3. Dez 2019 11:26
Forum: Konzepte der Programmiersprachen
Thema: Submit-Server crashed?
Antworten: 2
Zugriffe: 157

Re: Submit-Server crashed?

Yeah, it works since Monday. The problem was apparently solved.
I was in TU-network on Sunday evening, I could not submit it due to this error.

But works fine now,
Thank You
von eustro
1. Dez 2019 18:21
Forum: Konzepte der Programmiersprachen
Thema: Submit-Server crashed?
Antworten: 2
Zugriffe: 157

Submit-Server crashed?

Hi everyone,

I was about to submit the assignment when the server returened a 500. The server is not reacheable anymore.
Error message from the browser and sbt console output are attached.
console-output.png
console-output.png (63.93 KiB) 157 mal betrachtet
submission-error.png
submission-error.png (11.21 KiB) 157 mal betrachtet
von eustro
27. Nov 2019 09:58
Forum: Konzepte der Programmiersprachen
Thema: Next assignment
Antworten: 1
Zugriffe: 211

Next assignment

Hello,

I noticed that there are no assignments uploaded for this week. Will there be no assignment this week?
von eustro
20. Nov 2019 21:20
Forum: Konzepte der Programmiersprachen
Thema: How do I know why I lost points in my submission?
Antworten: 7
Zugriffe: 441

Re: How do I know why I lost points in my submission?

I have exactly the same question. I am missing one point, but have no idea why.
A sort of feedback would be nice, even a couple of words. Especially if there are general mistakes. Odds are, I will repeat mistakes over and over again.
von eustro
29. Okt 2019 10:25
Forum: Konzepte der Programmiersprachen
Thema: Assignment submission
Antworten: 8
Zugriffe: 718

Re: Assignment submission

I get this error when I run the sbt command in a folder that does not contain the build.sbt file. Make sure that you run the command in the folder where the build.sbt (and the project folder) is located. $ ls build.sbt project src target $ sbt 'submit ab12abcd MYTOKEN' That worked, thank you! The p...
von eustro
28. Okt 2019 20:06
Forum: Konzepte der Programmiersprachen
Thema: Assignment submission
Antworten: 8
Zugriffe: 718

Re: Assignment submission

Hello, Yes, the tool also works on Windows. Can you try to start the SBT shell by simply typing sbt and then in the shell try to use submit myID myToken Also, you have to be in the TU network to access the submission site. That means that you have to be connected to eduroam or use the VPN ( https:/...
von eustro
27. Okt 2019 20:30
Forum: Konzepte der Programmiersprachen
Thema: Assignment submission
Antworten: 8
Zugriffe: 718

Assignment submission

Hello everyone, I am trying to submit the assignment0. When I type the submission command > sbt "submit myID myToken" I get following response: > myID was unexpected at this time. What is wrong here? Did anyone experience this error? I am on a Windows10 machine, I installed the Scala and sbt binarie...

Zur erweiterten Suche