3 ms·
Given your knowledge on the subject could comment on how Modula-2 compares with Go. Modula-2 had coroutines, did it have a notion of a channel ? I have feeling
by srean 8y ago
Given your knowledge on the subject could comment on how Modula-2 compares with Go. Modula-2 had coroutines, did it have a notion of a channel ?
I have feeling that Go is a Modula-2/Pascal with a garbage collector and may be with a better concurrency story. Would that be a fair assessment ?
- eterps 8y agohttps://books.google.nl/books?id=SJHvCgAAQBAJ&pg=PT572&dq=the+go+programming+language+oberon&hl=en&sa=X&ved=0ahUKEwinr9nK_5zdAhVBDuwKHaPoCeAQ6AEILjAB#v=onepage&q=the%20go%20programming%20language%20oberon&f=false https://books.google.nl/books?id=SJHvCgAAQBAJ&pg=PT572&dq=th...
- bewuethr 8y agoThat page doesn't show up in preview for me, but I'm guessing it's the diagram showing the origin of Go as a blend of Alef, Oberon and C. The authors also say that the package concept was inspired by Modula-2, the syntax for packages/imports/declarations by Oberon-2 and the syntax for method declarations my Object Oberon. As the influence for channels, though, they mention Alef. The diagram is on page xii of the publicly available preview: http://www.gopl.io/ch1.pdf http://www.gopl.io/ch1.pdf
- pjmlp 8y agoNo, Modula-2 did not had channels as such. However you should look into Active Oberon, where active objects are similar to co-routines. Messages are passed around active objects via message handlers. https://oberoncore.ru/_media/wiki/lang/reali_p.active_oberon_language_report.en.pdf https://oberoncore.ru/_media/wiki/lang/reali_p.active_oberon... http://www.ocp.inf.ethz.ch/wiki/Documentation/Front http://www.ocp.inf.ethz.ch/wiki/Documentation/Front