Changeset 86bd8538 for doc/theses/andrew_beach_MMath
- Timestamp:
- Sep 27, 2021, 9:37:18 AM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
- Children:
- 056cbdb
- Parents:
- 166b384
- Location:
- doc/theses/andrew_beach_MMath
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/andrew_beach_MMath/intro.tex
r166b384 r86bd8538 280 280 standard library function that reports errors this way. 281 281 \begin{lstlisting}[language=C] 282 // Make sure to clear the store.283 errno = 0;284 282 // Now a library function can set the error. 285 283 int handle = open(path_name, flags); … … 338 336 use the same error type, then it can be implemented with a \code{haskell}{do} 339 337 block. 340 \begin{lstlisting}[language=haskell ]338 \begin{lstlisting}[language=haskell,literate={}] 341 339 failingFunction x y = do 342 340 z <- helperOne x -
doc/theses/andrew_beach_MMath/performance.tex
r166b384 r86bd8538 39 39 On the other hand, the functional equivalents to resumption are too new. 40 40 There does not seem to be any standard implementations in well-known 41 languages , so farthey seem confined to extensions and research languages.41 languages; so far, they seem confined to extensions and research languages. 42 42 % There was some maybe interesting comparison to an OCaml extension 43 43 % but I'm not sure how to get that working if it is interesting. … … 317 317 \CFA, \Cpp and Java. 318 318 % To be exact, the Match All and Match None cases. 319 The most likely expl ination is that,319 The most likely explanation is that 320 320 the generally faster languages have made ``common cases fast" at the expense 321 321 of the rarer cases. Since exceptions are considered rare, they are made 322 322 expensive to help speed up common actions, such as entering and leaving try 323 323 statements. 324 Python on the other hand, while generally slower than the other languages,325 uses exceptions more and has not s carified their performance.324 Python, on the other hand, while generally slower than the other languages, 325 uses exceptions more and has not sacrificed their performance. 326 326 In addition, languages with high-level representations have a much 327 327 easier time scanning the stack as there is less to decode.
Note: See TracChangeset
for help on using the changeset viewer.