<jupyter_start><jupyter_text>Sylvester: Computer-based math via F meta-programming  About me  Open-source developer* F, C, Python, some others...* https://github.com/allisterb* @allisterbeharry on Twitter  From Trinidad W.I.  Oh also...  Animal Zone  If you hear loud animal noises don't be alarmed :)  Requirements* Jupyter Notebooks* Visual Studio Code  What will we cover? * Motivations for Sylvester project * Observations on mathematical language * Deep vs shallow embedding in DSLs Philosophy interlude: meaning vs. syntactic manipulation  Sylvester https://github.com/allisterb/Sylvester* An F DSL for mathematical and scientific computing* Take the best bits of typed functional programming and apply it to mathematical and scientific computing* Use F features to create a more advanced type system for scientific computing* Use F meta-programming to create a language for mathematical computing that unifies symbolic, logical, computational properties of mathematics  F Code Quotations* https://docs.microsoft.com/en-us/dotnet/fsharp/language-reference/code-quotations* Primary vehicle for F meta-programming* F code delimited by '' is interpreted as a syntactic structure* Same compiler and IDE features available for writing ordinary F source code  F Code Quotations<jupyter_code>// Ordinary F# code
4 + 5
// F# code quotation
<@ 4 + 5 @>
(4 + 5).GetType()
(<@ 4 + 5 @>).GetType()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.07459535538353272, 'fraction_numerical': 0.005629838142153413, 'mean_word_length': 5.02542372881356, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '35444', 'license': 'MIT', 'n_tokens_mistral': 399, 'n_tokens_neox': 364, 'n_words': 171, 'path': 'slides/Sylvester Computer-based math via F# meta-programming.ipynb', 'repo_name': 'gitter-badger/bob2021', 'size': '1421'}