Changeset 86bd8538


Ignore:
Timestamp:
Sep 27, 2021, 9:37:18 AM (3 weeks ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
056cbdb
Parents:
166b384
Message:

Andrew MMath: Hopefully the last updates from the readers.

Location:
doc/theses/andrew_beach_MMath
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/andrew_beach_MMath/intro.tex

    r166b384 r86bd8538  
    280280standard library function that reports errors this way.
    281281\begin{lstlisting}[language=C]
    282 // Make sure to clear the store.
    283 errno = 0;
    284282// Now a library function can set the error.
    285283int handle = open(path_name, flags);
     
    338336use the same error type, then it can be implemented with a \code{haskell}{do}
    339337block.
    340 \begin{lstlisting}[language=haskell]
     338\begin{lstlisting}[language=haskell,literate={}]
    341339failingFunction x y = do
    342340        z <- helperOne x
  • doc/theses/andrew_beach_MMath/performance.tex

    r166b384 r86bd8538  
    3939On the other hand, the functional equivalents to resumption are too new.
    4040There does not seem to be any standard implementations in well-known
    41 languages, so far they seem confined to extensions and research languages.
     41languages; so far, they seem confined to extensions and research languages.
    4242% There was some maybe interesting comparison to an OCaml extension
    4343% but I'm not sure how to get that working if it is interesting.
     
    317317\CFA, \Cpp and Java.
    318318% To be exact, the Match All and Match None cases.
    319 The most likely explination is that,
     319The most likely explanation is that
    320320the generally faster languages have made ``common cases fast" at the expense
    321321of the rarer cases. Since exceptions are considered rare, they are made
    322322expensive to help speed up common actions, such as entering and leaving try
    323323statements.
    324 Python on the other hand, while generally slower than the other languages,
    325 uses exceptions more and has not scarified their performance.
     324Python, on the other hand, while generally slower than the other languages,
     325uses exceptions more and has not sacrificed their performance.
    326326In addition, languages with high-level representations have a much
    327327easier time scanning the stack as there is less to decode.
Note: See TracChangeset for help on using the changeset viewer.