Giter VIP home page Giter VIP logo

Comments (8)

VictorTaelin avatar VictorTaelin commented on August 16, 2024

F60 and U60 are now merged on Master. I don't think we should have other integer types.

from hvm.

Janiczek avatar Janiczek commented on August 16, 2024

@VictorTaelin Can you comment on / give links to some papers on how to lower signed integers (in higher-level languages) to unsigned integers (in HVM as a backend)? It's not immediately obvious to me.

from hvm.

VictorTaelin avatar VictorTaelin commented on August 16, 2024

Hmm perhaps adding I60 isn't a bad idea to be fair. Should be very simple to do now (see F60.hvm and U60.hvm).

from hvm.

zicklag avatar zicklag commented on August 16, 2024

Do we have f32 and i32 already?

from hvm.

VictorTaelin avatar VictorTaelin commented on August 16, 2024

No, I think f32/i32/u32 should just be implemented as a lib, but not too sure about that. Any reason you think these should be native? I believe a minimalist design is important, must have caution not to become a bloated spec

from hvm.

zicklag avatar zicklag commented on August 16, 2024

If f32/i32/u32 can be implemented as a lib without performance issues I'm totally fine with it. I was just thinking about use-cases for games where f32's are used heavily. I'd assume we'd want to be able to take advantage of hardware float operations, which I wasn't sure if we could do in a lib or not.

from hvm.

VictorTaelin avatar VictorTaelin commented on August 16, 2024

In that case you should just use a F60. Since the pointer size is 64, a F32 would just have 28 empty bits. What we could (should?) do in a future perhaps is have a 32-bit version of HVM?

from hvm.

zicklag avatar zicklag commented on August 16, 2024

That's an interesting question. I'm not sure if using 64 bit floats everywhere would have negative impact on performance or not.

Maybe a 32-bit HVM does make sense. I don't know. 🤷‍♂️

from hvm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.