Giter VIP home page Giter VIP logo

fnv's Introduction

Hello there ๐Ÿค—

I am a hobbyist reverse engineer and a software security enthusiast. I like to break things in order to gain knowledge about their inner workings ๐Ÿ˜‡

I am currently experimenting with the C language and sometime with the Dart language ๐ŸŽฏ

fnv's People

Contributors

midi12 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

hcanyz

fnv's Issues

not support web

I tried to compile the web platform, but got the following error.

/C:/Users/Admin/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/fnv-1.0.1/lib/src/fnv_constants.dart:3:26: Error: The integer literal 0xcbf29ce484222325 can't be represented exactly in JavaScript.
Try changing the literal to something that can be represented in JavaScript. In JavaScript 0xcbf29ce484222000 is the nearest value that can be represented exactly.
const int FNV1_64_INIT = 0xcbf29ce484222325;
                         ^^^^^^^^^^^^^^^^^^
/C:/Users/Admin/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/fnv-1.0.1/lib/src/fnv_constants.dart:10:25: Error: The integer literal 0xffffffffffffffff can't be represented exactly in JavaScript.
Try changing the literal to something that can be represented in JavaScript. In JavaScript 0x10000000000000000 is the nearest value that can be represented exactly.
const int UINT64_MASK = 0xffffffffffffffff;
                        ^^^^^^^^^^^^^^^^^^
Failed to compile application.

Consider adding @pragma('vm:prefer-inline') hints across the board

Hello again,

I decided to try out hinting the compiler to inline the package's hash functions by using @pragma('vm:prefer-inline'), and it appears to have yielded a pretty substantial improvement in performance, at least in a Dart AOT build (VM build appears unaffected).

Would you be open to a PR?

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.