close
Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
56 views

I currently have this code, which works: export type { Action as EntityAction, Asset as EntityAsset, Batch as EntityBatch, Batcher as EntityBatcher, Stream as EntityStream, Watcher as ...
Paul Razvan Berg's user avatar
1 vote
1 answer
68 views

Something like this: export namespace Foo { export const MY_CONSTANT: u32 = 1; } And then using it like this: const value = Foo.MY_CONSTANT;
Paul Razvan Berg's user avatar
0 votes
1 answer
59 views

I couldn't find any information about this in the AssemblyScript docs. Is the spread operator available in AssemblyScript? I would like to define an object like so: { ...params, category: "...
Paul Razvan Berg's user avatar
3 votes
0 answers
226 views

When calling a wasm function, I want to avoid frequent copying of function parameters and return values, so I want to use shared memory, but the running results are different from what I expected. How ...
januw a's user avatar
  • 2,344
1 vote
1 answer
41 views

I am writing a module where I want to maximize performance, so I would like to use the unsafe keyword to disable all run time bound checks. It also looks like this is supported, because "asc"...
Prasad V L's user avatar
1 vote
1 answer
51 views

In AssemblyScript, I'm trying to define an instance method in a base class that will return the instance it's called on. I can do this, but the return type does not seem to be resolved correctly. ...
snydergd's user avatar
  • 594
0 votes
1 answer
36 views

I'm currently facing an issue installing the Modus AssemblyScript SDK, and I could use some assistance. I have a stable internet connection, but when I attempt to install the SDK with the command: ...
Ha Sports's user avatar
0 votes
1 answer
110 views

Using AssemblyScript to compile and run untrusted code server-side, I've added some additional library extending the standard library provided by AssemblyScript. These host function bindings are ...
ANisus's user avatar
  • 78.8k
0 votes
1 answer
84 views

I'm working on an AssemblyScript application. The way the code is structured requires passing an instance of a class in the constructor of another class. For example: class Something { constructor(...
johnhill's user avatar
1 vote
1 answer
1k views

I am thinking of how I can protect my browser game from bots. As if I wrote it in JavaScript/TypeScript, everything would be so visible on the surface to a bot creator via dev console, that it's ...
Sergei Basharov's user avatar
0 votes
1 answer
103 views

how to fix the bug of asbuild SyntaxError: missing ) after argument list at Loader.moduleStrategy (internal/modules/esm/translators.js:149:18) npm install --save-dev assemblyscript npx asinit . Y ...
No_Moooon's user avatar
0 votes
1 answer
96 views

I get this Error, while trying to run C and wasm code (using wasm3) on an raspberrypi using platformio: I am using a RaspberryPi 3 Model B with Raspian I program in Visual Studio Code on the Raspberry ...
Lukas_1995's user avatar
1 vote
0 answers
142 views

I'm stuck on this when learing web assembly. basically I have this index.ts file written in assembly script // The entry file of your WebAssembly module. class Animal { constructor() {} name: i32;...
Anh Thi's user avatar
  • 51
0 votes
0 answers
79 views

I tried returning the entity objects from the event handlers on the AssemblyScript Subgraph code to simplify unit testing. For example, this works fine: // Original code export function ...
gagiuntoli's user avatar
2 votes
1 answer
709 views

I have an AssemblyScript function that returns any string it is given, as well as the corresponding code to import and run it in NodeJS: AssemblyScript: export function parse(x: string): string { ...
user avatar

15 30 50 per page
1
2 3 4 5
8