4
jestdotty
39d

think the struggle with javascript comes when you have to deal with JavaScript from another language

then suddenly a u64 is randomly a float and everything crashes

actually pretty sure the API I'm hitting is written in rust and yet... something the docs say is a u64 just returned a decimaled number

I miss JavaScript where everything just works

Comments
  • 1
    Think again.

    ```

    format ELF64 executable 3

    entry start

    segment readable

    my_u64 dq 4.44

    segment readable executable

    start:

    mov rax,qword [my_u64]

    mov rax,60

    syscall

    ```

    This operation is perfectly valid, double fits in the register alright. Look:
  • 0
    > think the struggle with javascript comes when you have to deal with JavaScript from another language

    just like "eating gravel and rusty screws" is a big change when you've been accustomed to actual food instead.
  • 0
    Whats actual food? Currywurst and shnitzel? lmao
  • 1
    This just in: it sucks trying to pass primitives between ultra high level scripting languages and low level languages.

    Isn’t this exactly what UInt(8,16,32)Array was invented for? Every number in JavaScript is a double
Add Comment