SlideShare a Scribd company logo
WebAssembly and .NET
Xamarin in Web browser?
Joanna Lamch
2018
WebAssembly and .NET
• Web / JavaScript History
• Web Assembly what?
• Web Assembly why?
• Web Assembly how?
• Xamarin? Mono!
• Blazor
• Ooui
• Uno
jlamch.net
• Joanna Lamch
• JLamch@gmail.com
• JLamch.blogspot.com
• Impostor
Who am I ?
Joanna Lamch
JLamch@gmail.com
JLamch.net
ProgramistkaIKot.pl
Microsoft fanboy
Developer C#
.NET Framework 1.1
15 years (+ overtime)
Xamarin
SIENN
Śląska Grupa Microsoft
Women In Technology
Impostor
Back in the days…
1991
Hypertext, HTML, HTTP
Text displayed on a electronic devices with
references (hyperlinks) to other text that the reader
can immediately access.
Hypertext documents are interconnected by
hyperlinks, which are activated by a mouseClick,
keypress set or by touching the screen. „Hypertext"
is also used to describe tables, images, and
other content formats with integrated hyperlinks.
Hypertext is one of the key underlying concepts of
the WorldWide Web, where Web pages are often
written in the Hypertext Markup Language (HTML).
As implemented on the Web, hypertext enables the
easy-to-use publication of information over
the Internet.
The HypertextTransfer Protocol (HTTP) is
an application protocol for distributed, collaborative,
and hypermedia information systems. HTTP is the
protocol to exchange or transfer hypertext.
1996
created in 10 days in May 1995, by Brendan Eich for Netscape
Adding interactivity to HTML pages
JavaScript
1995
JavaScript
1995
JavaScript
1995
Other plugins
Java Applets [1997]
ActiveX [1996]
Flash [1996]
Silverlight [2007]
All of them are deprecated
or will be deprecated soon
1996+
Browser performance wars (2008+)
Browser performance wars (2008+)
https://blog.mozilla.org/luke/2014/01/14/asm-js-aot-compilation-and-startup-performance/
OdinMonkey / ASM.js
Browser performance wars (2008+)
Different way the same language
there is a LOT of JavaScript
Todays JavaScript
JavaScript is the language of the Web
But it’s not very good Assembly Language
(still human readable simple language)
WebAssembly is not designed to replace JS, but to coexist
A new low-level binary format for the web (WASM)
It’s a bytecode for web (compilation target)
WebAssembly What?
Sandboxed runtime in JS virtual machine
Supported in all big browsers
A low-level binary format
WebAssembly Why?
Offer maximized performance
Security it runs locally so it's more secure
Compiled from other languages
WASM opens possibilities for other languages
Emscripten is a source-to-source compiler that runs as a back end to
the LLVM compiler and produces a subset of JavaScript known
as asm.js. It can also produce WebAssembly. This allows applications
and libraries originally designed to run as standard executables to be
integrated into client side web applications. asm.js can be compiled by
browsers ahead of time meaning that the compiled programs can run
much faster than those traditionally written in JavaScript.
WebAssembly How?
$emcc –s WASM=1 -o example.js example.cpp
WebAssembly How?
Executes the Emscripten compiler
Name our output file
Emscripten outputs WebAssembly - switch
Input file
WebAssembly studio C/Rust/TypeScript
https://hacks.mozilla.org/2018/04/sneak-peek-at-webassembly-studio/
WASM in real world
Figma
https://www.figma.com/
https://www.youtube.com/
watch?v=Kf1gILChfks
http://through-the-interface.typepad.com/through_the_interface/2018/03/the-future-of-autocad.html
WASM in real world
Figma
https://www.figma.com/
https://www.youtube.com/watch?v=Kf1gILChfks
Other demos
https://s3.amazonaws.com/mozilla-
games/ZenGarden/EpicZenGarden.html?fbclid=IwAR0_uAensGfTj1Mzp4wXgVoxZjquxRo_uu2YD8
yDuleTpPohaXyilDd82X8
https://bellard.org/jslinux/vm.html?url=https://bellard.org/jslinux/win2k.cfg&mem=192
&graphic=1&w=1024&h=768
https://aesalazar.github.io/AsteroidsWasm/
http://sqliteefcore-wasm.platform.uno/
https://raytracer-mono-aot.platform.uno/
DOM manipulation and Web.API
Multithreading (with shared memory)
Garbage Collector
More fully supported languages
WebAssembly future
https://www.youtube.com/watch?v=BnYq7JapeDA
WebAssembly and .NET
Stable, mature, productive: .NET Standard, MSBuild
Fast, scalable, reliable: .NET Core for backend services
Modern languages: Innovations in C#, F#, Razor
First-rate dev tools: Visual Studio, IntelliSense
Solid foundation to build on
Leverage existing skills and knowledge
BecauseWe can
Why use .NET for browser apps?
.NET
WASM and C# - first of all MONO
https://github.com/migueldeicaza/mono-wasm
https://www.mono-project.com/news/2018/09/11/csharp-jit/
https://twitter.com/migueldeicaza/status/1039639597435641856
BrowserB
WASM + C#
JavaScript Interop
Interop
UI thread
Blazor
Browser + Razor = Blazor!
.cs
.cshtml
BROWSER
WebAssembly
(mono.wasm)
.NET
(mscorlib.dll, System.Core.dll,…)
App.dll
Compile to .NET
assemblies
Blazor client only
Blazor sample
Blazor client & server
Client-side Blazor in Web Worker (future)
Browser
UI Web Worker
Blazor
Frank A. Kruger
Because I can
Because I love Xamarin
Because I can’t create web pages
https://github.com/praeclarum/Ooui
OOUI pronounced weee!
Xamarin.Forms
iOS Renderers Android Renderers Windows Renderers
Shared C# App Logic
(ViewModels, Models etc)
Mono .NET
DLLs
(external packages & libraries)
Shared C# UI Code
(Xamarin.Forms XAML)
C# Platform Specific C# Platform Specific C# Platform Specific
Ooui
C# Platform Specific C# Platform Specific C# Platform Specific
iOS Renderers Android Renderers Windows Renderers
Shared C# App Logic
(ViewModels, Models etc)
Mono .NET
DLLs
(external packages & libraries)
Shared C# UI Code
(Xamarin.Forms XAML)
Web Platform Specific
Web Renderers
OOUI + WASM
C# Runtime
Business Logic
Xamarin.Forms
Ooui
Shared C# App Logic
(ViewModels, Models etc)
DLLs
Shared C# UI Code
(Xamarin.Forms XAML)
Web Renderers
Mono.wasm.NET
(mscorlib.dll, System.Core.dll,…)
OOUI + WASM
C# Runtime
Business Logic
Xamarin.Forms
Shared C# App Logic
(ViewModels, Models etc)
DLLs
Shared C# UI Code
(Xamarin.Forms XAML)
Web Renderers
Mono.wasm
WHAAAT??
.NET
(mscorlib.dll, System.Core.dll,…)
UNO
https://platform.uno/
UNO
Uno
Xamarin Forms
Platforms iOS, Android, UWP, Wasm iOS, Android, UWP, WPF, macOS, Wasm
WebAssembly Yes Yes
Dev Loop Windows-first, XAML Edit & Continue,
C# Edit & Continue
Hot-reload
Cross Platform Controls Full, Control templating, Data templating,
Styling, Rich Animations
Platform Specific Styles, Renderers per platform,
Limited Animations
XAML Standard Full (UWP) Limited
UWP Code Support MVVM Light, MS XAML Behaviors,
MVVM Cross (soon),
Reactive UI, Any UWP Project
MVVM Light, MVVM Cross, Reactive UI
Responsive Design Visual State Manager,
State Triggers, Adaptive Triggers
Visual State Manager
Platform Specific Native Controls &
Properties via
conditional namespaces
Renderers/effects
https://raytracer-mono-aot.platform.uno/
50x faster
Uno & Mono AOT
Possibilities
Flexibility
Diversity
Cross-platform
Promise of bright tomorrow for todays projects
So WebAssembly?
WebAssembly and .NET
•Web Assembly - everything
•Blazor - Razor
•Ooui – Xamarin.Forms
•Uno – UWP, SilverLight…
Questions?
Bibliography
https://webassembly.org/docs/high-level-goals/
https://www.youtube.com/watch?v=HktWin_LPf4&feature=
youtu.be
https://www.youtube.com/watch?v=pBYqen3B2gc
https://www.youtube.com/watch?v=BnYq7JapeDA
https://www.youtube.com/watch?v=kS29TT4wk44&feature
=youtu.be
https://github.com/mbasso/awesome-wasm
https://github.com/migueldeicaza/mono-wasm
https://superkotlin.com/kotlin-and-webassembly/
https://medium.com/@mumarov/how-to-get-started-with-
kotlin-native-and-web-assembly-baa2813f0d9
https://github.com/DenisKolodin/yew
https://www.mergeconflict.fm/89
https://dotnetrocks.com/?show=1539
https://dotnetrocks.com/?show=1540
https://dotnetrocks.com/?show=1537
https://www.hanselman.com/blog/NETAndWebAssemblyIsT
hisTheFutureOfTheFrontend.aspx
https://hacks.mozilla.org/2018/04/sneak-peek-at-
webassembly-studio/
https://github.com/migueldeicaza/mono-wasm?WT.mc_id=-blog-
scottha
https://blog.logrocket.com/working-with-the-blazor-javascript-interop-
3c2a8d0eb56c
https://s3.amazonaws.com/mozilla-games/ZenGarden/EpicZenGarden.html
https://blog.logrocket.com/working-with-the-blazor-javascript-
interop-3c2a8d0eb56c
Ankieta / Poll
Będzie mi miło móc ulepszyć moją prezentację
dzięki Twoim komentarzom, dlatego proszę Cię
o wypełnienie ankiety, bądź kontakt mailowy.
I will be pleased to be able to improve my
presentation thanks to your comments, so
please fill in the questionnaire or contact me
via email.
Działanie pociąga za sobą
koszty i ryzyko, ale o wiele
mniejsze niż te, które wiążą
się z wygodną bezczynnością
Joanna Lamch
JLamch@gmail.com
JLamch.net

More Related Content

ZIP
A Brief Intro to Adobe Flex
ODP
Better Drupal Interaction Design with Flex
PDF
PLASTIC 2011: "Enterprise JavaScript with Jangaroo"
PPT
Adobe flex an overview
PPT
Aspnet2.0 Introduction
PDF
Silverlight - What Is It And How Can We Use It
PDF
Cloud Apache OpenOffice based on HTML5
PPT
Flex And Ria
A Brief Intro to Adobe Flex
Better Drupal Interaction Design with Flex
PLASTIC 2011: "Enterprise JavaScript with Jangaroo"
Adobe flex an overview
Aspnet2.0 Introduction
Silverlight - What Is It And How Can We Use It
Cloud Apache OpenOffice based on HTML5
Flex And Ria

What's hot (17)

PPTX
Dev evening - MonoTouch, MonoDroid, Mvvm MvvmCross and databinding
PDF
ASP Dot Net Software Development in India - iFour Technolab
PPT
Web II - 01 - Introduction to server-side development
PPTX
PHP and Silverlight
PPT
Introduction to silver light
PPTX
ASP.NET - Introduction to Web Forms and MVC
PPT
Flex 4 Overview
PPTX
Microsoft Silverlight - An Introduction
PPTX
Hot tuna - from Sean Cross
PDF
Modern Web App Architectures
PDF
HTML5 and Google Chrome - DevFest09
PPTX
Open Source examples from Adobe : Oscon kiosk
PDF
Joe Staner Zend Con 2008
PPT
Apache Flex: Overview
PPTX
MvvmCross
PPTX
Introduction to Microsoft Silverlight
PPTX
PHP konferencija - Microsoft
Dev evening - MonoTouch, MonoDroid, Mvvm MvvmCross and databinding
ASP Dot Net Software Development in India - iFour Technolab
Web II - 01 - Introduction to server-side development
PHP and Silverlight
Introduction to silver light
ASP.NET - Introduction to Web Forms and MVC
Flex 4 Overview
Microsoft Silverlight - An Introduction
Hot tuna - from Sean Cross
Modern Web App Architectures
HTML5 and Google Chrome - DevFest09
Open Source examples from Adobe : Oscon kiosk
Joe Staner Zend Con 2008
Apache Flex: Overview
MvvmCross
Introduction to Microsoft Silverlight
PHP konferencija - Microsoft
Ad

Similar to WebAssembly and .NET (20)

PPT
Flex RIA
PPT
Adobe® Flex™
PPT
What is Adobe Flex ?
PPTX
Front End Development | Introduction
PPTX
PPT
Re-use Your Skills and Code to Expand the Reach of Your Apps with Silverlight
PPSX
Web development concepts using microsoft technologies
PPT
Silverlight Training
PPT
PHP and MySQL
PPTX
WebAssembly WASM Introduction Presentation
PPT
Web Development Environments: Choose the best or go with the rest
PPTX
Cross-Platform Mobile Development using Visual Studio and Xamarin
PDF
Parallel desktop crack FREE Download Latest 2025
PDF
F-Secure Freedome VPN 2025 Crack Plus Activation New Version
PDF
Privacy-first in-browser Generative AI web apps: offline-ready, future-proof,...
PDF
MindMaster Crack Latest Version FREE Download 2025
PDF
Rapid SEO Tool Enterprise Crack with Latest 2025 New Version
PDF
FL Studio Crack 24 Free Serial Key [2025]
PPTX
Web techh
Flex RIA
Adobe® Flex™
What is Adobe Flex ?
Front End Development | Introduction
Re-use Your Skills and Code to Expand the Reach of Your Apps with Silverlight
Web development concepts using microsoft technologies
Silverlight Training
PHP and MySQL
WebAssembly WASM Introduction Presentation
Web Development Environments: Choose the best or go with the rest
Cross-Platform Mobile Development using Visual Studio and Xamarin
Parallel desktop crack FREE Download Latest 2025
F-Secure Freedome VPN 2025 Crack Plus Activation New Version
Privacy-first in-browser Generative AI web apps: offline-ready, future-proof,...
MindMaster Crack Latest Version FREE Download 2025
Rapid SEO Tool Enterprise Crack with Latest 2025 New Version
FL Studio Crack 24 Free Serial Key [2025]
Web techh
Ad

Recently uploaded (20)

PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
Spectroscopy.pptx food analysis technology
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Cloud computing and distributed systems.
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Understanding_Digital_Forensics_Presentation.pptx
Spectroscopy.pptx food analysis technology
Reach Out and Touch Someone: Haptics and Empathic Computing
MIND Revenue Release Quarter 2 2025 Press Release
Per capita expenditure prediction using model stacking based on satellite ima...
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Electronic commerce courselecture one. Pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Big Data Technologies - Introduction.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Spectral efficient network and resource selection model in 5G networks
Encapsulation_ Review paper, used for researhc scholars
Review of recent advances in non-invasive hemoglobin estimation
Cloud computing and distributed systems.
How UI/UX Design Impacts User Retention in Mobile Apps.pdf

WebAssembly and .NET

Editor's Notes

  • #2: dziekuje ze tak licznie przybyliscie na moja prezentacje i mozliwosc podzielenia się z wami odrobina wiedzy jaka zebrałam …. Nie wiem co dodac Chciałabym wam przybliżyć choć trochę temat web assembly –
  • #3: Q Kto jest web developerem Kto xam devem Kto desktop WPF UWP QR ze szczegolami skąd się wzięło, dlaczego się pojawilo co to w ogóle jest Jak można napisac Troche powiem o tym czego jeszcze brakuje i co gogle planuje dalej Co do tego wszystkiego ma xamarin I opowiem o kilku frameworkach które kręcą się wokół tego tematu
  • #4: O mnie… Funboy MS Glownie tego co sie dzieje dookola ms – grupy spolecznosci ludzie Te tapety sa wyrazem ms wychodzacego do programistow Strasznie mi sie podobalo to co ms robil do tej pory dla devow, proba ocieplenia wizerunku
  • #5: Ale zacznijmy od malego skosu w histori
  • #6: August 6, 1991 Tim Berners-Lee CERN (on NeXT computer) Hypertext linki I zawartosc
  • #7: Tylko zawartosc I linki statycznie
  • #8: Pojawily sie obrazki ale nadal statycznie Wyszukiwarki wyszukiwaly zawartosc
  • #9: 10 days prototype as Java like language JavaScript enables interactive web pages and thus is an essential part of web applications. Dowcipkowal ze zrobil to na kacu
  • #10: JS jezyk zrozumialy dla ludzi – latwy do zrozumienia Dynamiczne typy Ale czytelna dla developera – trade off ByteCode is run in interpretor
  • #11: Nie zaprojektowana aby była szybka Jest wolniej ale jest latwo uzywac wiec wszyscy się na to godza. Poprostu parsowanie I wykonanie. powolne
  • #12: 2007 W miedzyczasie potrzeba innych jezykow, Potrzeba potezniejszych narzedzi, wiekszych mozliwosci Ale ogromne dziury w zabezpieczeniach I podatnosc na ataki
  • #13: 2009 node.js and server side JS Coraz lepsze silniki. V8 Chrom, SpiderMonkey – Firefox Chakra – Edge Nitro, SquirrelFish, JavaScriptCore -Safari
  • #14: Optymalizacja w trakcie uruchomienia OdynMonkey uzywal kompilacji AOT in runtime kbum
  • #15: Ten wykres moze sie roznic z program na program. Ale jest ten etap reorganizacji kodu I compilacji na zasadzie przygotowania do uzycia
  • #16: Obecnie JS jest wszedzie. Jest go strasznie duzo Niski prog wejscia, obietnica zycia w swiecie IT Ogromne zapotrzebowanie Ogromne mozliwosci Najbardziej uniwersalna platforma – WEB JS jest jezykiem internetu Ale nie jest jezykiem Assembly – jest human readable language
  • #17: Compile target for web (bytecode) Uses linear memory WebAssembly (abbreviated Wasm) is a binary instruction format for a stack-based virtual machine. Wasm is designed as a portable target for compilation of high-level languages like C/C++/Rust, enabling deployment on the web for client and server applications.
  • #19: Rust C C++ GO Kotlin Python Haskell TypeScript Java Hax
  • #20:   Not designed to replaced JS compilator https://en.wikipedia.org/wiki/Emscripten Emscripten is a source-to-source compiler that runs as a back end to the LLVM compiler and produces a subset of JavaScript known as asm.js.[3] It can also produce WebAssembly.[4] This allows applications and libraries originally designed to run as standard executables to be integrated into client side web applications. asm.js can be compiled by browsers ahead of time meaning that the compiled programs can run much faster than those traditionally written in JavaScript.   asm.js about 5 years ago - plugins time virtual runtime in js virtual machine
  • #23: Autodesk okolo roku od pierwszego spojrzenia na technologie w pelni dzialajaca aplikacja
  • #25: Pogrubiony – Maszyna wirtualna linuxowa z osadzonym Windows2000
  • #26: Multithreading chrome 70
  • #28: LLVM bitcode 
  • #29: LLVM bitcode  Mono jest napisane w C++
  • #30: LLVM bitcode 
  • #31: WASM calls JS JS calls into WASM
  • #32: https://codedaze.io/creating-blazor-component-libraries/ https://codedaze.io/blazor-bites-javascript-interop/
  • #37: Desktop apps with Electron – apps for linux also
  • #39: XAML
  • #43: Nventive
  • #44: UWP XAML
  • #45: .net core 3 I wpf !
  • #51: Dziekuje wam za wysluchanie I zachecam do eksperymentowania z webassemblies