Better HN
topnewbestaskshowjobs
Log inSign up

pantantrant

22 karma · joined Oct 8, 2023 (3y ago) · 111 submissions

Submissions

comment 2y ago · link · parent

After a finite amount of time, it will either report "Halt" or "Infinite Loop", but my program won't take forever, just a finite amount of time.

comment 2y ago · link · parent

Yes, this infinite loop solver would take longer than the universe's age to print all possible configurations of this 4k monitor, but it would take a finite amount of time as opposed to infinite. (Provided that the integer n is big enough as a arbitrary precision fixed point unsigned integer)

comment 2y ago · link · parent

Example:

ax is a 2 bit register initialized to 0.

100: add 1 ax

101: jmp 100

ax is 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3

0 is compared to 1, 1 is compared to 3, 3 is compared to 2, 2 is is compared to 2, wait, that's an infinite loop...

4.

Am open to constructive criticism: My Halting Problem solution

3 points · by vitarnixofntrnt · 2y ago · 12 comments

comment 2y ago · link · parent

I like a all in one that comes with a battery, the HP Envy Move. I really can use it like a laptop and it has a 23.8" touchscreen.

comment 2y ago · link · parent

Both aren't that reproducible, I keep running into sha256 hash nondeterminism when upgrading packages on nixos from source after not updating for a while and guix may be better at this.

comment 2y ago · link · parent

I tried it and I'd rather # make install to install a program and # make -n install | xargs rm -rf to uninstall a program.

comment 2y ago · link · parent

I changed the printf line of code to this (printf("%2x", integer);) to make it a pseudorandom number generator and made a post about it https://news.ycombinator.com/item?id=39462913 (10 Lines of code 3.4 bits of noise per byte weak pseudo random number generator)

I compiled it, ran ./vitalixprng &> output.txt and then ran Detect It Easy's entropy measuring tool on output.txt to give me around 3.41 bits of randomness per 8 bits.

It outputs 2 hex characters (hex character = half byte = 4 bits) per clock cycle.

It gives out pseudorandom output that looks like this:

28595827262617506937569201755869372950673748294758392

comment 2y ago · link · parent

Which such systems have a system where ideas that are 43% or greater usually win? I want to know.

Edit: My dad says that Ukraine has such a system where 40% or more, cool.

10.

What if there's a voting system where one needs 43% or more to win? (explained)

1 points · by vitarnixofntrnt · 2y ago · 7 comments

11.

Small program that skips over many valid nonprimes but only prints nonprimes

2 points · by vitarnixofntrnt · 2y ago · 1 comment

comment 2y ago · link · parent

const int randomnumber = 4;

// It was picked with a dice roll.

1234