Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Webpack & WebAssembly
Search
Sendil Kumar N
June 01, 2018
Technology
650
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Webpack & WebAssembly
Sendil Kumar N
June 01, 2018
Transcript
74 slides
Webpack @sendilkumarn WebAssembly
Sendil Kumar N • Full stack developer @Xebialabs
Sendil Kumar N • Full stack developer @Xebialabs • Core
dev team member @JHipster
Sendil Kumar N • Full stack developer @Xebialabs • Core
dev team member @JHipster • Team member @webpack
Sendil Kumar N • Full stack developer @Xebialabs • Core
dev team member @JHipster • Team member @webpack • Part of rust-wasm Working Group
Sendil Kumar N • Full stack developer @Xebialabs • Core
dev team member @JHipster • Team member @webpack • Part of rust-wasm Working Group • Big open source lover
Full stack developers?
C++ devs?
None
None
WebAssembly ?
What is WebAssembly?
Binary instruction format 1010110 1010110 1010110 1010110 1010 1010110 1010110
1010110 1010110 1010
stack based machines 1010110 1010110 1010110 1010110 1010 1010110 1010110
1010110 1010110 1010 Binary instruction format for
Most efficient representation of instructions in binary 1010110 1010110 1010110
1010110 1010 1010110 1010110 1010110 1010110 1010
What, well in other words?
Run your native code in web.
Implementation detail for high level languages
Why WebAssembly?
Where “Performance” matters
JavaScript ?
WebAssembly is not a replacement to Javascript
None
❤ We
❤
❤ We
Javascript is fast
Interpreted language Write it Execute it
It is compiled too Write it Execute it Compile it
Optimise it
Then what is the benefit with WebAssembly ?
Where you need “Maintainable Performance”
Wait, What is maintainable performance?
High performance with Maintainable code
Geeky code
Uncertainties
Performance loopholes
Okay, I am writing Javascript for 15 years.
Well, lets test it
Tell me which is having higher performance
A B
A B ✅
Optional args will have an impact on your performance…
Monomorphisation
Memoization
Debug with profiler
Used Webpack?
❤Webpack❤
Okay, isn’t webpack a JS bundler?
Webpack is a bundler for your frontend.
Webpack is a new LLVM Unpopular
It bundles / packs everything that you need
Actually, how your application needs
Actually, how your application needs code-splitting / DCE
WP 4 - announced WebAssembly support.
From WP4.8 we have a better WebAssembly support
WP5 will have even better WebAssembly support
Demo time lets pack and roll with webpack
Demo agenda
Create a Rust project
Use Wasm bindgen to create wasm files + binding JS
files.
Make that rust project into node project
Add web pack + web pack serve to it
Run it…
Enough demo it…
Other mentions
Streaming compilation
WP internals may be / will be in Rust
In future
Garbage collection
Dom Manipulation
JVM devs ?
Kotlin ?
Questions?
Happy Hacking
More Decks by Sendil Kumar N
See All by Sendil Kumar N
[Heapcon-2023] Building High Performance Web Applications
sendilkumarn
0
140
Building Reactive Microservices with Kotlin & running on Kubernetes
sendilkumarn
0
260
Building Reactive Microservices with JHipster & K8s
sendilkumarn
0
83
Designing High Performance React Applications
sendilkumarn
1
220
Batching, Suspense, and Server Components
sendilkumarn
0
100
DevNexus_Building_with__Zero_Trust_Architecture_Copy.pdf
sendilkumarn
0
120
Lessons Learnt with Visual Testing and Snapshots
sendilkumarn
0
180
Easy Microservices with K8s & Istio
sendilkumarn
0
150
KHipster - Kotlin Hipster
sendilkumarn
0
310
Other Decks in Technology
See All in Technology
Kiro のリモートワークスペース: IDE は手元のままで、ワークスペースをクラウド、コンテナ、自前のマシンに置く
inariku
PRO
1
120
AWS Blocksで AIエージェント作れるの知ってます?
kmiya84377
1
170
[DBRE Summit 26] DBRE はデータベース運用をどう変えたのか
_awache
0
130
ノードが消える前提で設計する!Karpenterで金融システムを止めないためのノウハウ大全
daitak
1
240
設計手法を「道具」として使いこなすために
a_suenami
7
1.7k
SBOM 生成ツールで 2026 Minimum Elements はどこまで満たせるのか
gokken
0
160
AIエージェントのアーキテクチャ設計
nsatoh
0
530
認知の質も文化醸成も。数年取り組んで見えてきた技術広報のKPI設計 / Tech PR KPIs: Lessons on Awareness Quality and Culture After Several Years
bitkey
PRO
0
210
20261113_JAWS_Osaka
takuyay0ne
1
610
Amazon Bedrock AgentCore の基礎とセキュリティ・ガバナンス
ren8k
0
270
落とし穴にハマってわかった 開発生産性を測るときに気をつけたいこと
munakata
3
490
「個社」ではなく「業界」の課題を解く AI 対話開発 ー 価値を広げる設計と、価値を守るエンジニアリング ー
ivry_presentationmaterials
4
860
Featured
See All Featured
Technical Leadership for Architectural Decision Making
baasie
4
660
What the history of the web can teach us about the future of AI
inesmontani
PRO
3
830
How STYLIGHT went responsive
nonsquared
100
6.4k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
380
Designing Experiences People Love
moore
143
24k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
640
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
470
Building the Perfect Custom Keyboard
takai
2
970
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
A Soul's Torment
seathinner
9
3.9k
sira's awesome portfolio website redesign presentation
elsirapls
0
520
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.9k