Title: Strange output of memset polyfill · Issue #1785 · AssemblyScript/assemblyscript · GitHub
Open Graph Title: Strange output of memset polyfill · Issue #1785 · AssemblyScript/assemblyscript
X Title: Strange output of memset polyfill · Issue #1785 · AssemblyScript/assemblyscript
Description: All WAT snippets were taken from the editor on the AssemblyScript's front page. Redundant operations export function foo(): void { memory.fill(16, 255, 3); } ;; INFO asc module.ts --textFile module.wat --binaryFile module.wasm -O3 --runt...
Open Graph Description: All WAT snippets were taken from the editor on the AssemblyScript's front page. Redundant operations export function foo(): void { memory.fill(16, 255, 3); } ;; INFO asc module.ts --textFile module...
X Description: All WAT snippets were taken from the editor on the AssemblyScript's front page. Redundant operations export function foo(): void { memory.fill(16, 255, 3); } ;; INFO asc module.ts --textFile mo...
Opengraph URL: https://github.com/AssemblyScript/assemblyscript/issues/1785
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Strange output of memset polyfill","articleBody":"_All WAT snippets were taken from the editor on the AssemblyScript's front page._\r\n\r\n#### Redundant operations\r\n```ts\r\nexport function foo(): void {\r\n memory.fill(16, 255, 3);\r\n}\r\n```\r\n\r\n```wat\r\n;; INFO asc module.ts --textFile module.wat --binaryFile module.wasm -O3 --runtime stub\r\n(module\r\n (type $none_=>_none (func))\r\n (memory $0 0)\r\n (export \"foo\" (func $module/foo))\r\n (export \"memory\" (memory $0))\r\n (func $module/foo\r\n i32.const 16\r\n i32.const 255\r\n i32.store8\r\n i32.const 18\r\n i32.const 255\r\n i32.store8\r\n i32.const 17\r\n i32.const 255\r\n i32.store8\r\n i32.const 18\r\n i32.const 255\r\n i32.store8\r\n i32.const 17\r\n i32.const 255\r\n i32.store8\r\n i32.const 16\r\n i32.const 255\r\n i32.store8\r\n )\r\n)\r\n```\r\n\r\n#### Negative offsets\r\n```ts\r\nexport function foo(): void {\r\n memory.fill(0, 0, 2);\r\n}\r\n```\r\n\r\n```wat\r\n;; INFO asc module.ts --textFile module.wat --binaryFile module.wasm -O3 --runtime stub\r\n(module\r\n (type $none_=>_none (func))\r\n (memory $0 0)\r\n (export \"foo\" (func $module/foo))\r\n (export \"memory\" (memory $0))\r\n (func $module/foo\r\n i32.const 0\r\n i32.const 0\r\n i32.store8\r\n i32.const -2\r\n i32.const 0\r\n i32.store8 offset=3\r\n )\r\n)\r\n```\r\n\r\n","author":{"url":"https://github.com/lexaknyazev","@type":"Person","name":"lexaknyazev"},"datePublished":"2021-04-05T20:09:18Z","url":"https://github.com/AssemblyScript/assemblyscript/issues/1785"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:02e6947b-bf06-4151-f960-6c918a5e1659 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A0F2:81DA9:B2FDE6:F517CE:6B00AC21 |
| html-safe-nonce | 49d022fb43f451af451226caf9a96c08a015e0039cc4c2892f177337d6f2604e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMEYyOjgxREE5OkIyRkRFNjpGNTE3Q0U6NkIwMEFDMjEiLCJ2aXNpdG9yX2lkIjoiMjM5NTUzNjkyMTg4MDIxMDQ2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 588abdb7c1a825ff27dba6dcb4a991aa41bddef25078937cc19d9bbc3e44cea2 |
| hovercard-subject-tag | issue:850629407 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/AssemblyScript/assemblyscript/1785/issue_layout |
| twitter:image | https://opengraph.githubassets.com/69aa908712eece34e3f85b4c19497fa751f89d547ba0dc88b0d27278885b3dc3/AssemblyScript/assemblyscript/issues/1785 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/69aa908712eece34e3f85b4c19497fa751f89d547ba0dc88b0d27278885b3dc3/AssemblyScript/assemblyscript/issues/1785 |
| og:image:alt | All WAT snippets were taken from the editor on the AssemblyScript's front page. Redundant operations export function foo(): void { memory.fill(16, 255, 3); } ;; INFO asc module.ts --textFile module... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lexaknyazev |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0dd5f5d6f515a591019ecd66df2c4eab3379c2d3b0777568a90d8c7ae10b79e |
| turbo-cache-control | no-preview |
| go-import | github.com/AssemblyScript/assemblyscript git https://github.com/AssemblyScript/assemblyscript.git |
| octolytics-dimension-user_id | 28916798 |
| octolytics-dimension-user_login | AssemblyScript |
| octolytics-dimension-repository_id | 105138356 |
| octolytics-dimension-repository_nwo | AssemblyScript/assemblyscript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 105138356 |
| octolytics-dimension-repository_network_root_nwo | AssemblyScript/assemblyscript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 729d8cda69b3d267995675dfbf89ff27ccf61bf6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width