cws/main_cw05.tex
changeset 491 2a30c7dfe3ed
parent 473 be818c5a67d4
child 501 3717785f2c37
equal deleted inserted replaced
490:f70d74fea67f 491:2a30c7dfe3ed
    22 \mbox{}\hfill\textit{ --- Martin Odersky (creator of the Scala language)}\bigskip\bigskip
    22 \mbox{}\hfill\textit{ --- Martin Odersky (creator of the Scala language)}\bigskip\bigskip
    23 
    23 
    24 
    24 
    25 \noindent
    25 \noindent
    26 This part is about a small (esoteric) programming language called
    26 This part is about a small (esoteric) programming language called
    27 brainf***. We will implement an interpreter and compiler for
    27 brainf***. The task is to implement an interpreter and compiler for
    28 this language.\bigskip
    28 this language.\bigskip
    29 
    29 
    30 %\IMPORTANT{This part is worth 10\% and you need to submit it on \cwTEN{} at 5pm.
    30 %\IMPORTANT{This part is worth 10\% and you need to submit it on \cwTEN{} at 5pm.
    31 %Any 1\% you achieve counts as your ``weekly engagement''.}
    31 %Any 1\% you achieve counts as your ``weekly engagement''.}
    32 \IMPORTANTNONE{}
    32 \IMPORTANTNONE{}
   111 in principle, be implemented in brainf***. It just takes a lot of
   111 in principle, be implemented in brainf***. It just takes a lot of
   112 determination and quite a lot of memory and time.
   112 determination and quite a lot of memory and time.
   113 
   113 
   114 Some relatively sophisticated sample programs in brainf*** are given
   114 Some relatively sophisticated sample programs in brainf*** are given
   115 in the file \texttt{bf.scala}, including a brainf*** program for the
   115 in the file \texttt{bf.scala}, including a brainf*** program for the
   116 Sierpinski triangle and the Mandelbrot set.  There seems to be even a
   116 Sierpinski triangle and the Mandelbrot set.\footnote{Of course somebody 
       
   117 tried LLMs for writing bf-programs. As expected, they did spectacularly 
       
   118 badly in this task. \hr{https://www.reddit.com/r/programming/comments/1m4rk3r/comment/n49qrnv/}}  There seems to be even a
   117 dedicated Windows IDE for bf programs, though I am not sure whether
   119 dedicated Windows IDE for bf programs, though I am not sure whether
   118 this is just an elaborate April fools' joke---judge yourself:
   120 this is just an elaborate April fools' joke---judge yourself:
   119 
   121 
   120 \begin{center}
   122 \begin{center}
   121 \url{https://www.microsoft.com/en-us/p/brainf-ck/9nblgggzhvq5}
   123 \url{https://www.microsoft.com/en-us/p/brainf-ck/9nblgggzhvq5}