Debian Codegraph @

doc/guide/src/GoogleSummerOfCode2014.adoc

raw
1 = Google Summer of Code (2014)
2 :toc:
3
4 == Mentors
5
6 The following developers have agreed to serve as mentors for the 2014 Google Summer of Code:
7
8 * http://www.cs.rit.edu/%7Emtf[Matthew Fluet]
9 * http://www.cse.buffalo.edu/%7Elziarek/[Lukasz (Luke) Ziarek]
10 * http://people.cs.uchicago.edu/~jhr/[John Reppy]
11 * http://www.cs.purdue.edu/homes/chandras[KC Sivaramakrishnan]
12 /////
13 * http://www.cs.purdue.edu/homes/suresh/[Suresh Jagannathan]
14 /////
15
16 == Ideas List
17
18 === Implement a Partial Redundancy Elimination (PRE) Optimization
19
20 Partial redundancy elimination (PRE) is a program transformation that
21 removes operations that are redundant on some, but not necessarily all
22 paths, through the program. PRE can subsume both common subexpression
23 elimination and loop-invariant code motion, and is therefore a
24 potentially powerful optimization. However, a naïve
25 implementation of PRE on a program in static single assignment (SSA)
26 form is unlikely to be effective. This project aims to adapt and
27 implement the SSAPRE algorithm(s) of Thomas VanDrunen in MLton's SSA
28 intermediate language.
29
30 Background:
31 --
32 * http://onlinelibrary.wiley.com/doi/10.1002/spe.618/abstract[Anticipation-based partial redundancy elimination for static single assignment form]; Thomas VanDrunen and Antony L. Hosking
33 * http://cs.wheaton.edu/%7Etvandrun/writings/thesis.pdf[Partial Redundancy Elimination for Global Value Numbering]; Thomas VanDrunen
34 * http://www.springerlink.com/content/w06m3cw453nphm1u/[Value-Based Partial Redundancy Elimination]; Thomas VanDrunen and Antony L. Hosking
35 * http://portal.acm.org/citation.cfm?doid=319301.319348[Partial redundancy elimination in SSA form]; Robert Kennedy, Sun Chan, Shin-Ming Liu, Raymond Lo, Peng Tu, and Fred Chow
36 --
37
38 Recommended Skills: SML programming experience; some middle-end compiler experience
39
40 /////
41 Mentor: http://www.cs.rit.edu/%7Emtf[Matthew Fluet]
42 /////
43
44 === Design and Implement a Heap Profiler
45
46 A heap profile is a description of the space usage of a program. A
47 heap profile is concerned with the allocation, retention, and
48 deallocation (via garbage collection) of heap data during the
49 execution of a program. A heap profile can be used to diagnose
50 performance problems in a functional program that arise from space
51 leaks. This project aims to design and implement a heap profiler for
52 MLton compiled programs.
53
54 Background:
55 --
56 * http://portal.acm.org/citation.cfm?doid=583854.582451[GCspy: an adaptable heap visualisation framework]; Tony Printezis and Richard Jones
57 * http://journals.cambridge.org/action/displayAbstract?aid=1349892[New dimensions in heap profiling]; Colin Runciman and Niklas Röjemo
58 * http://www.springerlink.com/content/710501660722gw37/[Heap profiling for space efficiency]; Colin Runciman and Niklas Röjemo
59 * http://journals.cambridge.org/action/displayAbstract?aid=1323096[Heap profiling of lazy functional programs]; Colin Runciman and David Wakeling
60 --
61
62 Recommended Skills: C and SML programming experience; some experience with UI and visualization
63
64 /////
65 Mentor: http://www.cs.rit.edu/%7Emtf[Matthew Fluet]
66 /////
67
68 === Garbage Collector Improvements
69
70 The garbage collector plays a significant role in the performance of
71 functional languages. Garbage collect too often, and program
72 performance suffers due to the excessive time spent in the garbage
73 collector. Garbage collect not often enough, and program performance
74 suffers due to the excessive space used by the uncollected garbage.
75 One particular issue is ensuring that a program utilizing a garbage
76 collector "plays nice" with other processes on the system, by not
77 using too much or too little physical memory. While there are some
78 reasonable theoretical results about garbage collections with heaps of
79 fixed size, there seems to be insufficient work that really looks
80 carefully at the question of dynamically resizing the heap in response
81 to the live data demands of the application and, similarly, in
82 response to the behavior of the operating system and other processes.
83 This project aims to investigate improvements to the memory behavior of
84 MLton compiled programs through better tuning of the garbage
85 collector.
86
87 Background:
88 --
89 * http://www.dcs.gla.ac.uk/%7Ewhited/papers/automated_heap_sizing.pdf[Automated Heap Sizing in the Poly/ML Runtime (Position Paper)]; David White, Jeremy Singer, Jonathan Aitken, and David Matthews
90 * http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=4145125[Isla Vista Heap Sizing: Using Feedback to Avoid Paging]; Chris Grzegorczyk, Sunil Soman, Chandra Krintz, and Rich Wolski
91 * http://portal.acm.org/citation.cfm?doid=1152649.1152652[Controlling garbage collection and heap growth to reduce the execution time of Java applications]; Tim Brecht, Eshrat Arjomandi, Chang Li, and Hang Pham
92 * http://portal.acm.org/citation.cfm?doid=1065010.1065028[Garbage collection without paging]; Matthew Hertz, Yi Feng, and Emery D. Berger
93 * http://portal.acm.org/citation.cfm?doid=1029873.1029881[Automatic heap sizing: taking real memory into account]; Ting Yang, Matthew Hertz, Emery D. Berger, Scott F. Kaplan, and J. Eliot B. Moss
94 --
95
96 Recommended Skills: C programming experience; some operating systems and/or systems programming experience; some compiler and garbage collector experience
97
98 /////
99 Mentor: http://www.cs.rit.edu/%7Emtf[Matthew Fluet]
100 /////
101
102 === Implement Successor{nbsp}ML Language Features
103
104 Any programming language, including Standard{nbsp}ML, can be improved.
105 The community has identified a number of modest extensions and
106 revisions to the Standard{nbsp}ML programming language that would
107 likely prove useful in practice. This project aims to implement these
108 language features in the MLton compiler.
109
110 Background:
111 --
112 * http://successor-ml.org/index.php?title=Main_Page[Successor{nbsp}ML]
113 * http://www.mpi-sws.org/%7Erossberg/hamlet/index.html#successor-ml[HaMLet (Successor{nbsp}ML)]
114 * http://journals.cambridge.org/action/displayAbstract?aid=1322628[A critique of Standard{nbsp}ML]; Andrew W. Appel
115 --
116
117 Recommended Skills: SML programming experience; some front-end compiler experience (i.e., scanners and parsers)
118
119 /////
120 Mentor: http://www.cs.rit.edu/%7Emtf[Matthew Fluet]
121 /////
122
123 === Implement Source-level Debugging
124
125 Debugging is a fact of programming life. Unfortunately, most SML
126 implementations (including MLton) provide little to no source-level
127 debugging support. This project aims to add basic to intermediate
128 source-level debugging support to the MLton compiler. MLton already
129 supports source-level profiling, which can be used to attribute bytes
130 allocated or time spent in source functions. It should be relatively
131 straightforward to leverage this source-level information into basic
132 source-level debugging support, with the ability to set/unset
133 breakpoints and step through declarations and functions. It may be
134 possible to also provide intermediate source-level debugging support,
135 with the ability to inspect in-scope variables of basic types (e.g.,
136 types compatible with MLton's foreign function interface).
137
138 Background:
139 --
140 * http://mlton.org/HowProfilingWorks[MLton -- How Profiling Works]
141 * http://mlton.org/ForeignFunctionInterfaceTypes[MLton -- Foreign Function Interface Types]
142 * http://dwarfstd.org/[DWARF Debugging Standard]
143 * http://sourceware.org/gdb/current/onlinedocs/stabs/index.html[STABS Debugging Format]
144 --
145
146 Recommended Skills: SML programming experience; some compiler experience
147
148 /////
149 Mentor: http://www.cs.rit.edu/%7Emtf[Matthew Fluet]
150 /////
151
152 === Region Based Memory Management
153
154 Region based memory management is an alternative automatic memory
155 management scheme to garbage collection. Regions can be inferred by
156 the compiler (e.g., Cyclone and MLKit) or provided to the programmer
157 through a library. Since many students do not have extensive
158 experience with compilers we plan on adopting the later approach.
159 Creating a viable region based memory solution requires the removal of
160 the GC and changes to the allocator. Additionally, write barriers
161 will be necessary to ensure references between two ML objects is never
162 established if the left hand side of the assignment has a longer
163 lifetime than the right hand side. Students will need to come up with
164 an appropriate interface for creating, entering, and exiting regions
165 (examples include RTSJ scoped memory and SCJ scoped memory).
166
167 Background:
168 --
169 * Cyclone
170 * MLKit
171 * RTSJ + SCJ scopes
172 --
173
174 Recommended Skills: SML programming experience; C programming experience; some compiler and garbage collector experience
175
176 /////
177 Mentor: http://www.cse.buffalo.edu/%7Elziarek/[Lukasz (Luke) Ziarek]
178 /////
179
180 === Integration of Multi-MLton
181
182 http://multimlton.cs.purdue.edu[MultiMLton] is a compiler and runtime
183 environment that targets scalable multicore platforms. It is an
184 extension of MLton. It combines new language abstractions and
185 associated compiler analyses for expressing and implementing various
186 kinds of fine-grained parallelism (safe futures, speculation,
187 transactions, etc.), along with a sophisticated runtime system tuned
188 to efficiently handle large numbers of lightweight threads. The core
189 stable features of MultiMLton will need to be integrated with the
190 latest MLton public release. Certain experimental features, such as
191 support for the Intel SCC and distributed runtime will be omitted.
192 This project requires students to understand the delta between the
193 MultiMLton code base and the MLton code base. Students will need to
194 create build and configuration scripts for MLton to enable MultiMLton
195 features.
196
197 Background
198 --
199 * http://multimlton.cs.purdue.edu/mML/Publications.html[MultiMLton -- Publications]
200 --
201
202 Recommended Skills: SML programming experience; C programming experience; some compiler experience
203
204 /////
205 Mentor: http://www.cse.buffalo.edu/%7Elziarek/[Lukasz (Luke) Ziarek]
206 /////
207
208 === Concurrent{nbsp}ML Improvements
209
210 http://cml.cs.uchicago.edu/[Concurrent ML] is an SML concurrency
211 library based on synchronous message passing. MLton has a partial
212 implementation of the CML message-passing primitives, but its use in
213 real-world applications has been stymied by the lack of completeness
214 and thread-safe I/O libraries. This project would aim to flesh out
215 the CML implementation in MLton to be fully compatible with the
216 "official" version distributed as part of SML/NJ. Furthermore, time
217 permitting, runtime system support could be added to allow use of
218 modern OS features, such as asynchronous I/O, in the implementation of
219 CML's system interfaces.
220
221 Background
222 --
223 * http://cml.cs.uchicago.edu/
224 * http://mlton.org/ConcurrentML
225 * http://mlton.org/ConcurrentMLImplementation
226 --
227
228 Recommended Skills: SML programming experience; knowledge of concurrent programming; some operating systems and/or systems programming experience
229
230 /////
231 Mentor: http://people.cs.uchicago.edu/~jhr/[John Reppy]
232 Mentor: http://www.cs.rit.edu/%7Emtf[Matthew Fluet]
233 /////
234
235 /////
236 === SML3d Development
237
238 The SML3d Project is a collection of libraries to support 3D graphics
239 programming using Standard ML and the http://opengl.org/[OpenGL]
240 graphics API. It currently requires the MLton implementation of SML
241 and is supported on Linux, Mac OS X, and Microsoft Windows. There is
242 also support for http://www.khronos.org/opencl/[OpenCL]. This project
243 aims to continue development of the SML3d Project.
244
245 Background
246 --
247 * http://sml3d.cs.uchicago.edu/
248 --
249
250 Mentor: http://people.cs.uchicago.edu/~jhr/[John Reppy]
251 /////