# Directly compiling Scheme to WebAssembly: lambdas, recursion, iteration!

**URL:** <https://community.spritely.institute/t/directly-compiling-scheme-to-webassembly-lambdas-recursion-iteration/262>\
**Category:** Architecture\
**Created:** [May 30, 2023, 8:59pm UTC](https://community.spritely.institute/t/directly-compiling-scheme-to-webassembly-lambdas-recursion-iteration/262 "2023-05-30T20:59:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![frandallfarmer](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.spritely.institute/frandallfarmer/32/3_2.png) [@frandallfarmer](https://community.spritely.institute/u/frandallfarmer)\
**Post date:** [May 30, 2023, 8:59pm UTC](https://community.spritely.institute/t/directly-compiling-scheme-to-webassembly-lambdas-recursion-iteration/262/1 "2023-05-30T20:59:52Z")

</div>

- It’s been just over three months since we [announced the Guile on WebAssembly project](https://spritely.institute/news/guile-on-web-assembly-project-underway.html) (codenamed [Hoot](https://gitlab.com/spritely/guile-hoot)). Since then we’ve brought on two [fantastic](https://spritely.institute/news/andy-wingo-leads-g2W.html) [hackers](https://spritely.institute/news/robin-templeton-joins.html) to develop the project and progress has been quick.

- We now are at the point where we have things to show: we can now compile various Scheme procedures _directly to WebAssembly._ Let’s clarify that: by compiling directly to WebAssembly, we mean they compile and run _without any intermediate virtual machine._ No C, no Rust, no Zig: Hoot outputs pure WebAssembly. It’s early, but Hoot compiled programs are starting to work… and they’re fast!

- 
## Hoot by familiar Scheme examples
- The Hoot test suite [includes some examples](https://gitlab.com/spritely/guile-hoot/-/blob/main/test/test-constants.scm) of fairly standard scheme procedures, compiled directly to WebAssembly and executed against V8. Let’s take a look at some of those examples to contextualize what Hoot provides. (If you’re not familiar with Scheme, you can focus on the text of this blogpost rather than the code. Or, you can read our [Scheme Primer](https://spritely.institute/static/papers/scheme-primer.html) as a way to get started on following along!)

…

Read the entire post at:

> **[Directly compiling Scheme to WebAssembly: lambdas, recursion, iteration! —...](https://spritely.institute/news/scheme-to-wasm-lambdas-recursion.html)**
