Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-47) was last changed on 27-Sep-2017 15:19 by John Thywissen  

This page was created on 27-Sep-2010 12:18 by JohnThywissen

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 13 removed one line
!! 4: {{misra_philosopher.orc}} throwing {{~ArgumentTypeMismatchException}}
At line 15 removed 3 lines
| __Reporter:__ | John Thywissen
| __Report date-time:__ | 2010-12-16 16:06
| __Orc version:__ | 2.0.0 rev. 2260
At line 19 removed 113 lines
! Code:
[{orc runnable='false'
-- Excerpt of lines 51-59:
def thinking() =
def on(("rumble", _)) =
println(name + " hungry") >>
map(requestFork, missing) >>
hungry()
def on(("request", p)) =
sendFork(p) >>
thinking()
on(receive())
}]
! Actual output:
{{{
(0, 0) thinking
(0, 1) thinking
(1, 0) thinking
(1, 1) thinking
(0, 0) hungry
(1, 0) hungry
(1, 1) hungry
(0, 1) hungry
orc/lib/includes/prelude/list.inc:38:5: orc.error.runtime.ArgumentTypeMismatchException: Expected type List for argument 0, got class java.util.HashSet instead
def map(f,[]) = []
^
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:54:7
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:109:1
orc/lib/includes/prelude/list.inc:39:5: orc.error.runtime.ArgumentTypeMismatchException: Expected type List for argument 0, got class java.util.HashSet instead
def map(f,h:t) = f(h):map(f,t)
^
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:54:7
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:109:1
orc/lib/includes/prelude/list.inc:38:5: orc.error.runtime.ArgumentTypeMismatchException: Expected type List for argument 0, got class java.util.HashSet instead
def map(f,[]) = []
^
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:54:7
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:109:1
orc/lib/includes/prelude/list.inc:39:5: orc.error.runtime.ArgumentTypeMismatchException: Expected type List for argument 0, got class java.util.HashSet instead
def map(f,h:t) = f(h):map(f,t)
^
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:54:7
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:109:1
orc/lib/includes/prelude/list.inc:38:5: orc.error.runtime.ArgumentTypeMismatchException: Expected type List for argument 0, got class java.util.HashSet instead
def map(f,[]) = []
^
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:54:7
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:109:1
orc/lib/includes/prelude/list.inc:39:5: orc.error.runtime.ArgumentTypeMismatchException: Expected type List for argument 0, got class java.util.HashSet instead
def map(f,h:t) = f(h):map(f,t)
^
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:54:7
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:109:1
orc/lib/includes/prelude/list.inc:38:5: orc.error.runtime.ArgumentTypeMismatchException: Expected type List for argument 0, got class java.util.HashSet instead
def map(f,[]) = []
^
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:54:7
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:109:1
orc/lib/includes/prelude/list.inc:39:5: orc.error.runtime.ArgumentTypeMismatchException: Expected type List for argument 0, got class java.util.HashSet instead
def map(f,h:t) = f(h):map(f,t)
^
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:54:7
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:109:1
}}}
! Reporter's comments:
Path to example in Eclipse: {{~OrcExamples/distributed_algorithms/misra_philosopher.orc}}
! Orc team response
|| Analysis
| __Repeatable:__ | Yes
| __Root Cause:__ | List extractor sites no longer perform extractions on objects implementing Iterable; this feature is deprecated in 2.0.
| __Proposed Fix:__ | Change the code to use some native Set implementation with a native iteration strategy rather than list recursion.
|| Implementation
| __Fix Made:__ | __Rev:__ __Date:__ __By:__
----
!! 5: {{randomized_byzantine.orc}} refers to an old {{Map}} site that no longer exists
| __Reporter:__ | John Thywissen
| __Report date-time:__ | 2010-12-16 16:06
| __Orc version:__ | 2.0.0 rev. 2260
! Code:
[{orc runnable='false'
val table = Map()
}]
! Actual output:
{{{
OrcExamples/distributed_algorithms/randomized_byzantine.orc:18:15: Variable Map is unbound [[OrcWiki:UnboundVariableException]]
val table = Map()
^
}}}
! Reporter's comments:
Path to example in Eclipse: {{~OrcExamples/distributed_algorithms/randomized_byzantine.orc}}
! Orc team response
|| Analysis
| __Repeatable:__ | Yes
| __Root Cause:__ | Orc's Map has been removed from the prelude due to Java compatibility issues and is no longer available
| __Proposed Fix:__ | Use a Java or Scala map implementation directly
|| Implementation
| __Fix Made:__ | __Rev:__ __Date:__ __By:__
----
At line 208 added 166 lines
!! %%strike 4: {{misra_philosopher.orc}} throwing {{~ArgumentTypeMismatchException}} %%
| __Reporter:__ | John Thywissen
| __Report date-time:__ | 2010-12-16 16:06
| __Orc version:__ | 2.0.0 rev. 2260
! Code:
[{orc runnable='false'
-- Excerpt of lines 51-59:
def thinking() =
def on(("rumble", _)) =
println(name + " hungry") >>
map(requestFork, missing) >>
hungry()
def on(("request", p)) =
sendFork(p) >>
thinking()
on(receive())
}]
! Actual output:
{{{
(0, 0) thinking
(0, 1) thinking
(1, 0) thinking
(1, 1) thinking
(0, 0) hungry
(1, 0) hungry
(1, 1) hungry
(0, 1) hungry
orc/lib/includes/prelude/list.inc:38:5: orc.error.runtime.ArgumentTypeMismatchException: Expected type List for argument 0, got class java.util.HashSet instead
def map(f,[]) = []
^
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:54:7
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:109:1
orc/lib/includes/prelude/list.inc:39:5: orc.error.runtime.ArgumentTypeMismatchException: Expected type List for argument 0, got class java.util.HashSet instead
def map(f,h:t) = f(h):map(f,t)
^
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:54:7
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:109:1
orc/lib/includes/prelude/list.inc:38:5: orc.error.runtime.ArgumentTypeMismatchException: Expected type List for argument 0, got class java.util.HashSet instead
def map(f,[]) = []
^
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:54:7
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:109:1
orc/lib/includes/prelude/list.inc:39:5: orc.error.runtime.ArgumentTypeMismatchException: Expected type List for argument 0, got class java.util.HashSet instead
def map(f,h:t) = f(h):map(f,t)
^
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:54:7
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:109:1
orc/lib/includes/prelude/list.inc:38:5: orc.error.runtime.ArgumentTypeMismatchException: Expected type List for argument 0, got class java.util.HashSet instead
def map(f,[]) = []
^
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:54:7
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:109:1
orc/lib/includes/prelude/list.inc:39:5: orc.error.runtime.ArgumentTypeMismatchException: Expected type List for argument 0, got class java.util.HashSet instead
def map(f,h:t) = f(h):map(f,t)
^
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:54:7
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:109:1
orc/lib/includes/prelude/list.inc:38:5: orc.error.runtime.ArgumentTypeMismatchException: Expected type List for argument 0, got class java.util.HashSet instead
def map(f,[]) = []
^
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:54:7
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:109:1
orc/lib/includes/prelude/list.inc:39:5: orc.error.runtime.ArgumentTypeMismatchException: Expected type List for argument 0, got class java.util.HashSet instead
def map(f,h:t) = f(h):map(f,t)
^
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:54:7
called at OrcExamples/distributed_algorithms/misra_philosopher.orc:109:1
}}}
! Reporter's comments:
Path to example in Eclipse: {{~OrcExamples/distributed_algorithms/misra_philosopher.orc}}
! Orc team response
|| Analysis
| __Repeatable:__ | Yes
| __Root Cause:__ | List extractor sites no longer perform extractions on objects implementing Iterable; this feature is deprecated in 2.0.
| __Proposed Fix:__ | Change the code to use some native Set implementation with a native iteration strategy rather than list recursion.
|| Implementation
| __Fix Made:__ | __Rev:__ 2640 __Date:__ 28 Mar 2011 __By:__ dkitchin
----
!! %%strike 5: {{randomized_byzantine.orc}} refers to an old {{Map}} site that no longer exists %%
| __Reporter:__ | John Thywissen
| __Report date-time:__ | 2010-12-16 16:06
| __Orc version:__ | 2.0.0 rev. 2260
! Code:
[{orc runnable='false'
val table = Map()
}]
! Actual output:
{{{
OrcExamples/distributed_algorithms/randomized_byzantine.orc:18:15: Variable Map is unbound [[OrcWiki:UnboundVariableException]]
val table = Map()
^
}}}
! Reporter's comments:
Path to example in Eclipse: {{~OrcExamples/distributed_algorithms/randomized_byzantine.orc}}
! Orc team response
|| Analysis
| __Repeatable:__ | Yes
| __Root Cause:__ | Orc's Map has been removed from the prelude due to Java compatibility issues and is no longer available
| __Proposed Fix:__ | Use a Java or Scala map implementation directly
|| Implementation
| __Fix Made:__ | __Rev:__ 2640 __Date:__ 28 Mar 2011 __By:__ dkitchin
----
!! %%strike 6: {{Vtimer}} hangs %% (fixed)
| __Reporter:__ | John Thywissen
| __Report date-time:__ | 2010-12-16 16:57
| __Orc version:__ | 2.0.0 rev. 2270
! Code:
(Any code that calls {{Vtimer}}.)
! Actual output:
{{{
../OrcExamples/beginning_Orc/auction.orc
java.util.concurrent.TimeoutException
../OrcExamples/standard_problems/fib-vtimer.orc
java.util.concurrent.TimeoutException
../OrcExamples/standard_problems/path.orc
java.util.concurrent.TimeoutException
../OrcExamples/test_data/functional_valid/Orc24.orc
java.util.concurrent.TimeoutException
../OrcExamples/test_data/functional_valid/Orc25.orc
java.util.concurrent.TimeoutException
../OrcExamples/test_data/functional_valid/Orc26.orc
java.util.concurrent.TimeoutException
../OrcExamples/test_data/functional_valid/readwrite.orc
java.util.concurrent.TimeoutException
}}}
! Reporter's comments:
Back on 23 Oct, we decided to refactor {{Vtimer}} to not make the engine depend on {{Vtimer}}. r2169 removed the {{Vtimer}} calls from the engine, but the {{Vtimer}} side of the changes was never completed.
! Orc team response
|| Analysis
| __Repeatable:__ | Yes
| __Root Cause:__ | {{Vtimer}} design changes from 23 Oct never carried through.
| __Proposed Fix:__ | Delete {{Vwait}} until next release
|| Implementation
| __Fix Made:__ | __Rev:__ 2631 __Date:__ 26 Mar 2011 __By:__ J^T
----
At line 467 removed 47 lines
!! %%strike 6: {{Vtimer}} hangs %% (fixed)
| __Reporter:__ | John Thywissen
| __Report date-time:__ | 2010-12-16 16:57
| __Orc version:__ | 2.0.0 rev. 2270
! Code:
(Any code that calls {{Vtimer}}.)
! Actual output:
{{{
../OrcExamples/beginning_Orc/auction.orc
java.util.concurrent.TimeoutException
../OrcExamples/standard_problems/fib-vtimer.orc
java.util.concurrent.TimeoutException
../OrcExamples/standard_problems/path.orc
java.util.concurrent.TimeoutException
../OrcExamples/test_data/functional_valid/Orc24.orc
java.util.concurrent.TimeoutException
../OrcExamples/test_data/functional_valid/Orc25.orc
java.util.concurrent.TimeoutException
../OrcExamples/test_data/functional_valid/Orc26.orc
java.util.concurrent.TimeoutException
../OrcExamples/test_data/functional_valid/readwrite.orc
java.util.concurrent.TimeoutException
}}}
! Reporter's comments:
Back on 23 Oct, we decided to refactor {{Vtimer}} to not make the engine depend on {{Vtimer}}. r2169 removed the {{Vtimer}} calls from the engine, but the {{Vtimer}} side of the changes was never completed.
! Orc team response
|| Analysis
| __Repeatable:__ | Yes
| __Root Cause:__ | {{Vtimer}} design changes from 23 Oct never carried through.
| __Proposed Fix:__ | Delete {{Vwait}} until next release
|| Implementation
| __Fix Made:__ | __Rev:__ 2631 __Date:__ 26 Mar 2011 __By:__ J^T
----
Version Date Modified Size Author Changes ... Change note
47 27-Sep-2017 15:19 18.993 kB John Thywissen to previous Change Google Code link to GitHub
46 30-Mar-2011 13:23 18.995 kB JohnThywissen to previous | to last
45 30-Mar-2011 00:28 19.976 kB JohnThywissen to previous | to last
44 28-Mar-2011 20:38 19.534 kB DavidKitchin to previous | to last
43 28-Mar-2011 09:26 19.459 kB JohnThywissen to previous | to last
42 28-Mar-2011 09:26 19.451 kB JohnThywissen to previous | to last
41 28-Mar-2011 00:19 19.451 kB DavidKitchin to previous | to last
« This page (revision-47) was last changed on 27-Sep-2017 15:19 by John Thywissen