Replies: 19 comments 39 replies
-
crypto.getRandomValues() |
Beta Was this translation helpful? Give feedback.
-
URL |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
structuredCloneSee #684 . |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
crypto webcrypto (crypto.subtle) stream |
Beta Was this translation helpful? Give feedback.
-
|
WinterCG would likely be useful for what to possibly add, especially Common Minimum API. |
Beta Was this translation helpful? Give feedback.
-
Node-API... |
Beta Was this translation helpful? Give feedback.
-
atob, btoaSee #1178 |
Beta Was this translation helpful? Give feedback.
-
ReadableStream (and TextEncoder/TextDecoder)I need ReadableStream https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream and it seems there's no easy way to polyfill it with reasonable performance right now. It's needed in combination with TextEncoder and TextDecoder for react-native to be able to support streaming responses in fetch. @tmikov are any of these APIs likely to get implemented in hermes at all? or anytime soon? They are supported in literally every other JS engine, browser or not. Hermes and react-native get continuously harder to use as more time goes by with missing APIs that are available everywhere else. Whether or not those APIs are part of the ECMAScript spec doen't make much practical difference when they're available and effectively standard everywhere. |
Beta Was this translation helpful? Give feedback.
-
TextDecoder |
Beta Was this translation helpful? Give feedback.
-
crypto.randomUUID()https://developer.mozilla.org/en-US/docs/Web/API/Crypto/randomUUID |
Beta Was this translation helpful? Give feedback.
-
|
e.g.to be able to have built-in gzip support https://developer.mozilla.org/en-US/docs/Web/API/Compression_Streams_API |
Beta Was this translation helpful? Give feedback.
-
|
Read standard input into an |
Beta Was this translation helpful? Give feedback.
-
socket()posix socket access Pros:
Cons
|
Beta Was this translation helpful? Give feedback.
-
Workerhttps://developer.mozilla.org/pt-BR/docs/Web/API/Worker Currently we're locked on js thread to do cpu heavy work, sure we have an npm package that can handle that but it doesn't come close of having such api bundled.
Workers can work as an short lived separated runtime to execute some heavy work or even a persistent runtime to be run alongside with the react-native app. Having that possibility will lead to react-native devs to split calls between different hermes runtimes leaving the main js thread lighter to render react components. |
Beta Was this translation helpful? Give feedback.
-
I/OStraight up capability to read STDIN and write to STDOUT without including C to do that. Something like what most modern JavaScript engines and runtimes have or or |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is intended to be a discussion and collection of non-ECMAScript APIs that have been requested by the community for implementation in Hermes. While the position of the Hermes team has been that we can't afford to keep adding such "extended" APIs to the core of Hermes, we acknowledge that this is a real problem, since such requests have been made more than once and have remained more or less unaddressed.
The usual solution of "find an NPM" for the missing functionality is not satisfactory, because:
A good solution would at the very least have to overcome the following challenges:
Before we can start figuring out what a practical solution might be, we also need to understand which APIs need to be present.
Please comment with ideas or APIs that you would want to see out of the box.
Beta Was this translation helpful? Give feedback.
All reactions