Open
Conversation
…WebCryptomining#1) Modern Emscripten no longer exposes HEAPU8 on the Module object by default. Added EXPORTED_RUNTIME_METHODS to link flags so wrapper.js can access Module.HEAPU8.buffer at init time.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Support for no SIMD environment
RANDOMX_NO_SIMDCMake option to compile WebRandomX with baseline-only WASM instructions (no SIMD128, bulk-memory, sign-extension, non-trappingfloat-to-int). SIMD intrinsics are replaced by scalar equivalents — hash output is bit-identical to the standard build.
Module.HEAPU8by default, breakingwrapper.jsat init. AddedEXPORTED_RUNTIME_METHODSto link flags.miner.js(was commented out, so the server never sent jobs).NormalModuleReplacementPluginin webpack config to handlenode:prefixed imports from Emscripten output.What changed
CMakeLists.txt—RANDOMX_NO_SIMDoption, conditional compile/link flags,EXPORTED_RUNTIME_METHODSsrc/cpp/rx_vec_i128.h— new C header: scalar union type + xor/load/storesrc/cpp/intrin_wasm.h— scalarrx_*ops behind#ifdef RANDOMX_NO_SIMDsrc/cpp/intrin_wasm_simd.hpp— scalar shuffle, unpack, mulusrc/cpp/blamka-round-simd.h— scalar BLAKE2 round (rotr, fBlaMka, G1/G2, DIAG/UNDIAG)src/cpp/argon2_simd.c— scalarfill_blockusingrx_vec_i128Makefile.noscimd— build wrappertest_simd_comparison.sh— feature audit, correctness, hash equivalence, benchmarkREADME_NOSIMD.md— PoC docssrc/js/miner.js— uncommented auth sendwebpack/webpack.config.common.js—node:prefix pluginTest plan
make -f Makefile.noscimdbuilds clean./test_simd_comparison.sh— all checks pass (identical hashes)