Skip to content

AntiKnot/SICP-in-OCaml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SICP-in-OCaml

tips

  1. build bytes for ocamldebug, add config under root in dune file.
(executable
 (name NewtonMethod)
 (libraries base stdio)
 (modes byte exe)
  1. If your IDE does not autocomplete, execute dune build after defining libs in the dune file
(executable
 (name NewtonMethod)
 (libraries base stdio core))
  1. trace In ocaml, I did not find a command similar to trace in lisp. So I always paste it into utop.

  2. answer new question dune init executable $NAME

Nonsense

  • As long as the prefix syntax is supported, it is not so important as to whether it is used or not. But the prefix suspension style looks better.

Error

After a computer crash, vs code no longer derives the type. When I select the global sandbox, the error message is displayed. Error starting server: Sandbox initialisation failed: ocaml-lsp-server is not installed

The reason is that the environment variables are not loaded correctly after the crash.

source ~/.profile

todo check

  • c1e40 Accuracy error
  • c1e45 Find the average number of damping
  • c2e6 church number Don't understand. :(
  • c2e26 Fix the cons and append functions that are understood incorrectly
  • c2e27 Fix the cons and append functions that are understood incorrectly

ref

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published