Discussion:
Scheme outputs
(too old to reply)
T. Lam
2004-07-24 15:17:32 UTC
Permalink
When I follow the commands on the A6 website i.e. scm < 1.scm ; diff ...

My outputs don't follow the given outputs exactly.
I get:
#<output-port /dev/pts/11>
instead of the first #<unspecified>
and I don't get the ">" denoting the inputs.

Am I supposed to do something to get these precise inputs? The actual
results are identical though, so should I worry about it?

Thanks
Felix Lo
2004-07-24 22:14:57 UTC
Permalink
Hi,

Same deal with me. I get hte #<output-port /dev/pts/11> thing.

Also the > i'm missing so this output is different thatn the testcases *.out

Could it be that we're using a different SCM now?


Thanks,
Felid
Post by T. Lam
When I follow the commands on the A6 website i.e. scm < 1.scm ; diff ...
My outputs don't follow the given outputs exactly.
#<output-port /dev/pts/11>
instead of the first #<unspecified>
and I don't get the ">" denoting the inputs.
Am I supposed to do something to get these precise inputs? The actual
results are identical though, so should I worry about it?
Thanks
Andre Masella
2004-07-25 03:33:44 UTC
Permalink
Post by T. Lam
My outputs don't follow the given outputs exactly.
#<output-port /dev/pts/11>
instead of the first #<unspecified>
This is just SCM telling you that it's putting its output /dev/pts/11 which
is the pseudo-terminal you logged into.
Post by T. Lam
and I don't get the ">" denoting the inputs.
I think that is due to the new version.
Post by T. Lam
Am I supposed to do something to get these precise inputs? The actual
results are identical though, so should I worry about it?
I think these aren't worth diffing directly. Just make sure the output lines
are the same.
--
--Andre Masella (***@engmail, www.eng/~apmasell)

As a computer, I find your faith in technology amusing.
Tiuley Alguindigue
2004-07-27 20:49:05 UTC
Permalink
The output should be exact if this is to be marked by automated software.

So, we'll have to agree on the first two lines of this output or ignore
them.
Post by Andre Masella
Post by T. Lam
My outputs don't follow the given outputs exactly.
#<output-port /dev/pts/11>
instead of the first #<unspecified>
This is just SCM telling you that it's putting its output /dev/pts/11 which
is the pseudo-terminal you logged into.
Post by T. Lam
and I don't get the ">" denoting the inputs.
I think that is due to the new version.
Post by T. Lam
Am I supposed to do something to get these precise inputs? The actual
results are identical though, so should I worry about it?
I think these aren't worth diffing directly. Just make sure the output lines
are the same.
Dan Heidinga
2004-07-27 21:05:11 UTC
Permalink
Hi,

The simple solution to this problem is for one of our TA's to run the
working code, which was used to generate the original output, on one of
our ECE unix machines. This will ensure that the outputs are in the
correct format for automarking.

As to the first two lines, they should probably be ignored as they are
dependent on the terminal. It appears to always be of the
form: dev/pts/## where ## is a number.

As to the automarking, is something akin to diff used? Or is the approach
adaptable enough to ignore minor formating issues?

Regards,
Dan
Post by Tiuley Alguindigue
The output should be exact if this is to be marked by automated software.
So, we'll have to agree on the first two lines of this output or ignore
them.
Post by T. Lam
My outputs don't follow the given outputs exactly.
#<output-port /dev/pts/11>
instead of the first #<unspecified>
Andre Masella
2004-07-27 23:12:47 UTC
Permalink
Post by Tiuley Alguindigue
The output should be exact if this is to be marked by automated software.
Uhhh, please tell me the automarker isn't diff.
Post by Tiuley Alguindigue
So, we'll have to agree on the first two lines of this output or ignore
them.
Really, the correct way to do this is wrap the appropriate lines from the
test file with (display $0) and run scm 1.scm, not scm < 1.scm, so no
random junk (including the input lines) is displayed, only the output.
--
--Andre Masella (***@engmail, www.eng/~apmasell)

To iterate is human, to recurse divine.
Troy Mark Gonsalves
2004-07-28 15:32:22 UTC
Permalink
Post by Andre Masella
Post by Tiuley Alguindigue
The output should be exact if this is to be marked by automated software.
Uhhh, please tell me the automarker isn't diff.
Actually it's a poorly documented super-diff framework.

As for the missing '>'s and the other stuff. I don't anticipate any
problems in the marking since you're scheme programs will be run by the
automarker and compared (or super-diffed) to the solution. So you'll end
up running on the same version of scm that was used to generate the
solution. If things end up breaking then we'll fix it (probably using
one of the approaches you folks have suggested).

For now, don't bother using diff...just eyeball it. That is, compare
your output to the sample output using your eyes and brain (a highly
advanced verion of diff).
Post by Andre Masella
To iterate is human, to recurse divine.
Nice.

Continue reading on narkive:
Loading...