Debian Codegraph @

doc/guide/src/GoogleSummerOfCode2015.adoc

raw
1 = Google Summer of Code (2015)
2 :toc:
3
4 == Mentors
5
6 The following developers have agreed to serve as mentors for the 2015 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 /////
11 * http://people.cs.uchicago.edu/~jhr/[John Reppy]
12 * http://www.cs.purdue.edu/homes/chandras[KC Sivaramakrishnan]
13 * http://www.cs.purdue.edu/homes/suresh/[Suresh Jagannathan]
14 /////
15
16 == Ideas List
17
18 /////
19 === Implement a Partial Redundancy Elimination (PRE) Optimization
20
21 Partial redundancy elimination (PRE) is a program transformation that
22 removes operations that are redundant on some, but not necessarily all
23 paths, through the program. PRE can subsume both common subexpression
24 elimination and loop-invariant code motion, and is therefore a
25 potentially powerful optimization. However, a naïve implementation of
26 PRE on a program in static single assignment (SSA) form is unlikely to
27 be effective. This project aims to adapt and implement the GVN-PRE
28 algorithm of Thomas VanDrunen in MLton's SSA intermediate language.
29
30 Background:
31 --
32 * http://cs.wheaton.edu/%7Etvandrun/writings/thesis.pdf[Partial Redundancy Elimination for Global Value Numbering]; Thomas VanDrunen
33 * http://www.cs.purdue.edu/research/technical_reports/2003/TR%2003-032.pdf[Corner-cases in Value-Based Partial Redundancy Elimination]; Thomas VanDrunen and Antony L. Hosking
34 * http://www.springerlink.com/content/w06m3cw453nphm1u/[Value-Based Partial Redundancy Elimination]; Thomas VanDrunen and Antony L. Hosking
35 * 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
36 * 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
37 --
38
39 Recommended Skills: SML programming experience; some middle-end compiler experience
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
75 garbage. One particular issue is ensuring that a program utilizing a
76 garbage collector "plays nice" with other processes on the system, by
77 not 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
83 processes. This project aims to investigate improvements to the memory
84 behavior of MLton compiled programs through better tuning of the
85 garbage collector.
86
87 Background:
88 --
89 * http://gchandbook.org/[The Garbage Collection Handbook: The Art of Automatic Memory Management]; Richard Jones, Antony Hosking, Eliot Moss
90 * http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.24.1020[Dual-Mode Garbage Collection]; Patrick Sansom
91 * 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
92 * 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
93 * 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
94 * http://portal.acm.org/citation.cfm?doid=1806651.1806669[The Economics of Garbage Collection]; Jeremy Singer, Richard E. Jones, Gavin Brown, and Mikel Luján
95 * http://www.dcs.gla.ac.uk/%7Ejsinger/pdfs/tfp12.pdf[Automated Heap Sizing in the Poly/ML Runtime (Position Paper)]; David White, Jeremy Singer, Jonathan Aitken, and David Matthews
96 * http://portal.acm.org/citation.cfm?doid=2555670.2466481[Control Theory for Principled Heap Sizing]; David R. White, Jeremy Singer, Jonathan M. Aitken, and Richard E. Jones
97 --
98
99 Recommended Skills: C programming experience; some operating systems and/or systems programming experience; some compiler and garbage collector experience
100
101 /////
102 Mentor: http://www.cs.rit.edu/%7Emtf[Matthew Fluet]
103 /////
104
105 === Heap-allocated Activation Records
106
107 Activation records (a.k.a., stack frames) are traditionally allocated
108 on a stack. This naturally corresponds to the call-return pattern of
109 function invocation. However, there are some disadvantages to
110 stack-allocated activation records. In a functional programming
111 language, functions may be deeply recursive, resulting in call stacks
112 that are much larger than typically supported by the operating system;
113 hence, a functional programming language implementation will typically
114 store its stack in its heap. Furthermore, a functional programming
115 language implementation must handle and recover from stack overflow,
116 by allocating a larger stack (again, in its heap) and copying
117 activation records from the old stack to the new stack. In the
118 presence of threads, stacks must be allocated in a heap and, in the
119 presence of a garbage collector, should be garbage collected when
120 unreachable. While heap-allocated activation records avoid many of
121 these disadvantages, they have not been widely implemented. This
122 project aims to implement and evaluate heap-allocated activation
123 records in the MLton compiler.
124
125 Background:
126 --
127 * http://journals.cambridge.org/action/displayAbstract?aid=1295104[Empirical and Analytic Study of Stack Versus Heap Cost for Languages with Closures]; Andrew W. Appel and Zhong Shao
128 * http://portal.acm.org/citation.cfm?doid=182590.156783[Space-efficient closure representations]; Zhong Shao and Andrew W. Appel
129 * http://portal.acm.org/citation.cfm?doid=93548.93554[Representing control in the presence of first-class continuations]; R. Hieb, R. Kent Dybvig, and Carl Bruggeman
130 --
131
132 Recommended Skills: SML programming experience; some middle- and back-end compiler experience
133
134 /////
135 Mentor: http://www.cs.rit.edu/%7Emtf[Matthew Fluet]
136 /////
137
138 === Correctly Rounded Floating-point Binary-to-Decimal and Decimal-to-Binary Conversion Routines in Standard ML
139
140 The
141 http://en.wikipedia.org/wiki/IEEE_754-2008[IEEE Standard for Floating-Point Arithmetic (IEEE 754)]
142 is the de facto representation for floating-point computation.
143 However, it is a _binary_ (base 2) representation of floating-point
144 values, while many applications call for input and output of
145 floating-point values in _decimal_ (base 10) representation. The
146 _decimal-to-binary_ conversion problem takes a decimal floating-point
147 representation (e.g., a string like `"0.1"`) and returns the best
148 binary floating-point representation of that number. The
149 _binary-to-decimal_ conversion problem takes a binary floating-point
150 representation and returns a decimal floating-point representation
151 using the smallest number of digits that allow the decimal
152 floating-point representation to be converted to the original binary
153 floating-point representation. For both conversion routines, "best"
154 is dependent upon the current floating-point rounding mode.
155
156 MLton uses David Gay's
157 http://www.netlib.org/fp/gdtoa.tgz[gdtoa library] for floating-point
158 conversions. While this is an exellent library, it generalizes the
159 decimal-to-binary and binary-to-decimal conversion routines beyond
160 what is required by the
161 http://standardml.org/Basis/[Standard ML Basis Library] and induces an
162 external dependency on the compiler. Native implementations of these
163 conversion routines in Standard ML would obviate the dependency on the
164 `gdtoa` library, while also being able to take advantage of Standard
165 ML features in the implementation (e.g., the published algorithms
166 often require use of infinite precision arithmetic, which is provided
167 by the `IntInf` structure in Standard ML, but is provided in an ad hoc
168 fasion in the `gdtoa` library).
169
170 This project aims to develop a native implementation of the conversion
171 routines in Standard ML.
172
173 Background:
174 --
175 * http://dl.acm.org/citation.cfm?doid=103162.103163[What every computer scientist should know about floating-point arithmetic]; David Goldberg
176 * http://dl.acm.org/citation.cfm?doid=93542.93559[How to print floating-point numbers accurately]; Guy L. Steele, Jr. and Jon L. White
177 * http://dl.acm.org/citation.cfm?doid=93542.93557[How to read floating point numbers accurately]; William D. Clinger
178 * http://cm.bell-labs.com/cm/cs/doc/90/4-10.ps.gz[Correctly Rounded Binary-Decimal and Decimal-Binary Conversions]; David Gay
179 * http://dl.acm.org/citation.cfm?doid=249069.231397[Printing floating-point numbers quickly and accurately]; Robert G. Burger and R. Kent Dybvig
180 * http://dl.acm.org/citation.cfm?doid=1806596.1806623[Printing floating-point numbers quickly and accurately with integers]; Florian Loitsch
181 --
182
183 Recommended Skills: SML programming experience; algorithm design and implementation
184
185 /////
186 Mentor: http://www.cs.rit.edu/%7Emtf[Matthew Fluet]
187 /////
188
189 === Implement Source-level Debugging
190
191 Debugging is a fact of programming life. Unfortunately, most SML
192 implementations (including MLton) provide little to no source-level
193 debugging support. This project aims to add basic to intermediate
194 source-level debugging support to the MLton compiler. MLton already
195 supports source-level profiling, which can be used to attribute bytes
196 allocated or time spent in source functions. It should be relatively
197 straightforward to leverage this source-level information into basic
198 source-level debugging support, with the ability to set/unset
199 breakpoints and step through declarations and functions. It may be
200 possible to also provide intermediate source-level debugging support,
201 with the ability to inspect in-scope variables of basic types (e.g.,
202 types compatible with MLton's foreign function interface).
203
204 Background:
205 --
206 * http://mlton.org/HowProfilingWorks[MLton -- How Profiling Works]
207 * http://mlton.org/ForeignFunctionInterfaceTypes[MLton -- Foreign Function Interface Types]
208 * http://dwarfstd.org/[DWARF Debugging Standard]
209 * http://sourceware.org/gdb/current/onlinedocs/stabs/index.html[STABS Debugging Format]
210 --
211
212 Recommended Skills: SML programming experience; some compiler experience
213
214 /////
215 Mentor: http://www.cs.rit.edu/%7Emtf[Matthew Fluet]
216 /////
217
218 === Region Based Memory Management
219
220 Region based memory management is an alternative automatic memory
221 management scheme to garbage collection. Regions can be inferred by
222 the compiler (e.g., Cyclone and MLKit) or provided to the programmer
223 through a library. Since many students do not have extensive
224 experience with compilers we plan on adopting the later approach.
225 Creating a viable region based memory solution requires the removal of
226 the GC and changes to the allocator. Additionally, write barriers
227 will be necessary to ensure references between two ML objects is never
228 established if the left hand side of the assignment has a longer
229 lifetime than the right hand side. Students will need to come up with
230 an appropriate interface for creating, entering, and exiting regions
231 (examples include RTSJ scoped memory and SCJ scoped memory).
232
233 Background:
234 --
235 * Cyclone
236 * MLKit
237 * RTSJ + SCJ scopes
238 --
239
240 Recommended Skills: SML programming experience; C programming experience; some compiler and garbage collector experience
241
242 /////
243 Mentor: http://www.cse.buffalo.edu/%7Elziarek/[Lukasz (Luke) Ziarek]
244 /////
245
246 === Adding Real-Time Capabilities
247
248 This project focuses on exposing real-time APIs from a real-time OS
249 kernel at the SML level. This will require mapping the current MLton
250 (or http://multimlton.cs.purdue.edu[MultiMLton]) threading framework
251 to real-time threads that the RTOS provides. This will include
252 associating priorities with MLton threads and building priority based
253 scheduling algorithms. Additionally, support for perdioc, aperiodic,
254 and sporadic tasks should be supported. A real-time SML library will
255 need to be created to provide a forward facing interface for
256 programmers. Stretch goals include reworking the MLton `atomic`
257 statement and associated synchronization primitives built on top of
258 the MLton `atomic` statement.
259
260 Recommended Skills: SML programming experience; C programming experience; real-time experience a plus but not required
261
262 /////
263 Mentor: http://www.cse.buffalo.edu/%7Elziarek/[Lukasz (Luke) Ziarek]
264 /////
265
266 === Real-Time Garbage Collection
267
268 This project focuses on modifications to the MLton GC to support
269 real-time garbage collection. We will model the real-time GC on the
270 Schism RTGC. The first task will be to create a fixed size runtime
271 object representation. Large structures will need to be represented
272 as a linked lists of fixed sized objects. Arrays and vectors will be
273 transferred into dense trees. Compaction and copying can therefore be
274 removed from the GC algorithms that MLton currently supports. Lastly,
275 the GC will be made concurrent, allowing for the execution of the GC
276 threads as the lowest priority task in the system. Stretch goals
277 include a priority aware mechanism for the GC to signal to real-time
278 ML threads that it needs to scan their stack and identification of
279 places where the stack is shallow to bound priority inversion during
280 this procedure.
281
282 Recommended Skills: C programming experience; garbage collector experience a plus but not required
283
284 /////
285 Mentor: http://www.cse.buffalo.edu/%7Elziarek/[Lukasz (Luke) Ziarek]
286 /////
287
288 /////
289 === Concurrent{nbsp}ML Improvements
290
291 http://cml.cs.uchicago.edu/[Concurrent ML] is an SML concurrency
292 library based on synchronous message passing. MLton has a partial
293 implementation of the CML message-passing primitives, but its use in
294 real-world applications has been stymied by the lack of completeness
295 and thread-safe I/O libraries. This project would aim to flesh out
296 the CML implementation in MLton to be fully compatible with the
297 "official" version distributed as part of SML/NJ. Furthermore, time
298 permitting, runtime system support could be added to allow use of
299 modern OS features, such as asynchronous I/O, in the implementation of
300 CML's system interfaces.
301
302 Background
303 --
304 * http://cml.cs.uchicago.edu/
305 * http://mlton.org/ConcurrentML
306 * http://mlton.org/ConcurrentMLImplementation
307 --
308
309 Recommended Skills: SML programming experience; knowledge of concurrent programming; some operating systems and/or systems programming experience
310
311 Mentor: http://people.cs.uchicago.edu/~jhr/[John Reppy]
312 Mentor: http://www.cs.rit.edu/%7Emtf[Matthew Fluet]
313 /////
314
315 /////
316 === SML3d Development
317
318 The SML3d Project is a collection of libraries to support 3D graphics
319 programming using Standard ML and the http://opengl.org/[OpenGL]
320 graphics API. It currently requires the MLton implementation of SML
321 and is supported on Linux, Mac OS X, and Microsoft Windows. There is
322 also support for http://www.khronos.org/opencl/[OpenCL]. This project
323 aims to continue development of the SML3d Project.
324
325 Background
326 --
327 * http://sml3d.cs.uchicago.edu/
328 --
329
330 Mentor: http://people.cs.uchicago.edu/~jhr/[John Reppy]
331 /////