Sorry about the dim lighting on this one! My light broke and while I *thought* my alternative lighting was good when I was recording, it didn't work out that way. But that's okay, the content is the important part of this video anyway. Hope you enjoy, and let me know if you want more Static Hermes content!
One other note -- the large binary size was because I was using a *debug* build -- when I used the *release* build of Hermes, the statically linked binary was only 3.7mb. Still bigger than it probably needs to be, but much smaller than what it showed in the video.
I was always joking that it'd be a matter of time before people would start programming car computers in JS. With Static Hermes, this joke may become reality sooner than I thought it would.
@@JamonsCodeQuests They use React Native for their phone apps but outside maybe the UI for the infotainment system, no React Native in the cars themselves.
Can you call into the compiled library from Swift and Kotlin? Would be interesting to use this to create shared libraries that Native + RN teams can both use
re: TS error - could you write a separate declaration file to satisfy your linter without static hermes having to compile that declare statement, perhaps?
Electron is a framework designed to create desktop applications using web technologies that are rendered using a version of the Chromium browser engine and a back end using the Node.js runtime environment. = JavaScript + Chromium as a packaged standalone app and server
Because you'd have to learn a new language. I can write C/C++ a small bit but if I can use a language I am more familiar with and achieve basically the same, then why not?
If you're familiar with C/C++, that's a viable path. But if you don't, and you can achieve the same performance with TypeScript, why not use what you know?
There's value in having a common language across many paradigms. You can share knowledge, code, tooling, and a lot more. As with anything, there are tradeoffs.
Sorry about the dim lighting on this one! My light broke and while I *thought* my alternative lighting was good when I was recording, it didn't work out that way. But that's okay, the content is the important part of this video anyway. Hope you enjoy, and let me know if you want more Static Hermes content!
I just figured it was directed by Chrisopher Nolan.
I like this lighting tbh
One other note -- the large binary size was because I was using a *debug* build -- when I used the *release* build of Hermes, the statically linked binary was only 3.7mb. Still bigger than it probably needs to be, but much smaller than what it showed in the video.
Around 2.7MB after stripping the symbols.
@@tzvetanmikov4614 Awesome. Thanks for weighing in!
@@tzvetanmikov4614 make videos using Static Hermes
Great job Jamon ... it looks like static Hermes has a great future !!
wow, expecting more video about it~
Still early days! I'll do more later.
Appreciate the opening explanation.
I was always joking that it'd be a matter of time before people would start programming car computers in JS.
With Static Hermes, this joke may become reality sooner than I thought it would.
Tesla already uses React Native! I don't know for sure where, though.
@@JamonsCodeQuests They use React Native for their phone apps but outside maybe the UI for the infotainment system, no React Native in the cars themselves.
@@JamonsCodeQuestsmobile app
SpaceX capsule displays UI is running JavaScript
Yeah real funny joke.
Can you call into the compiled library from Swift and Kotlin?
Would be interesting to use this to create shared libraries that Native + RN teams can both use
That's a really good question!
Woow, amazing senior 🚀
Nice video! Do plan also do some benchmarks? It should be pretty interesting since performance should be one of main benefits of Static Hermes
I'd love to do that sometime. In Tzvetan's talk, he shows several benchmarks -- it's between 10-20x speed improvement over interpreted Hermes.
Haxe might be your best. Its java/ javascript like, small fast runs almost everywhere and has had decades of work on it
Cool, thanks!
re: TS error - could you write a separate declaration file to satisfy your linter without static hermes having to compile that declare statement, perhaps?
Good idea!
good stuff
How does that compare to Electron?
Electron is a framework designed to create desktop applications using web technologies that are rendered using a version of the Chromium browser engine and a back end using the Node.js runtime environment. = JavaScript + Chromium as a packaged standalone app and server
You may be able to use Static Hermes to build desktop apps with react-native-macos or react-native-windows, but that's a ways out yet.
Can we get a new video about this?
What's that font you're rocking?
It's called Envy Code R; it's an old one, but I really love it.
👍
javascript having types seems more like assembly script
is it only me or does the video feels a bit out of sync with the audio
It does ... I've been using Screen Studio because it's so quick and easy to create videos, but I'm getting a little annoyed at these subtle bugs.
tf is that aspect ratio 😂😂
😅
Challenge: port a C game and run it on iOS 👀
Ooh 😅 that sounds fun
why not just use C/C++
Because you'd have to learn a new language.
I can write C/C++ a small bit but if I can use a language I am more familiar with and achieve basically the same, then why not?
If you're familiar with C/C++, that's a viable path. But if you don't, and you can achieve the same performance with TypeScript, why not use what you know?
C/C++ for browsers sounds terrible...
@@ikilledthemoon I don't think you can use this version of javascript in browser, can you?
@@ikilledthemoon Imagine forgetting to do your memory management properly and suddenly some random phone somewhere explodes because of it. :^)
Show the speed
Check my Twitter -- posted some stuff over there!
@@JamonsCodeQuests I saw it, great results. Thanks for your SH support
Why not just use a compiled language 🤷
because the web assembly code gets quickly too big! it's like 500 kB JavaScript vs 15 MB of web assembly
There's value in having a common language across many paradigms. You can share knowledge, code, tooling, and a lot more. As with anything, there are tradeoffs.
@ compiled JavaScript running in web assembly would be large too…?
how? JavaScript code should be much bigger then webasm@
@@chswin why will you compile js to wasm?
just use go
How do you use Go for iOS and Android apps?
@@JamonsCodeQuests wails will support it soon
use Kotlin for that@@JamonsCodeQuests
was i the first woman to watch this video
Hm, it still shows 100% male audience. I wonder if it takes a while to show up.