Comment

Comment by flerchin

It runs in ~300ms in java

        long start = System.currentTimeMillis();
        int count = 1;
        for (int intBits = Float.floatToIntBits(0.0f); Float.intBitsToFloat(intBits) <= 1.0f; intBits ++) {
            count++;
        }
        System.out.println(count);
        System.out.println((System.currentTimeMillis() - start) + "ms");
parent flerchin 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton