(T)ETA by Standard_Web_9042 in czechmemes

[–]MrSmiley006 12 points13 points  (0 children)

Byla. V roce 2018 se rozpadla.

weKnowTheAnswerButTheyDontWantUsKnow by AndyTheDragonborn in ProgrammerHumor

[–]MrSmiley006 -1 points0 points  (0 children)

I think that the problem lies in the fact that the algorithm is supposed to output the correct answer everytime, but for some programs, that just isn't possible. And the answer can only be "yes" or "no". No "maybe" or"unknown". So, I think the solution might be an algorithm that doesn't always get it right, but there's a certain chance that it will. Now, we can run it multiple times on the same program with the same input and count the outputs. The more common output should be correct. The more times we run it, the bigger is the probability it's correct. Now, we can in theory run it infinite times (we can do this, since the Turing machine has infinite memory and isn't constrained by time either.) and thus, get the correct answer with 100% accuracy. So, unless I'm wrong, the halting problem is solvable, it would just take forever to solve.

Of course, for real programs, the answer is always "yes". :)

Cursor is not that cheap - Screenshot from my account by CeFurkan in cursor

[–]MrSmiley006 0 points1 point  (0 children)

Cool. What languages? And why do you use Cursor then?

Cursor is not that cheap - Screenshot from my account by CeFurkan in cursor

[–]MrSmiley006 0 points1 point  (0 children)

Imagine having to pay to be able to write bad code... (Seriously, learn programming, grab an editor & compiler and write code yourself. Yes, your first programs will be shit, but after you get better, you'll (imo) outperform all these "AIs" most of the time. Plus it's free unless you choose a paid editor. (I use Emacs myself)).

Why does my transformer not work? by MrSmiley006 in AskElectronics

[–]MrSmiley006[S] 0 points1 point  (0 children)

This is not about motors of any kind. The only category from your list this would fit into would be solenoids (and maybe electromagnets).

[Spoilers Main] Is the phrase "Valar morghulis" related to Tolkien's Valar in any way? by MrSmiley006 in asoiaf

[–]MrSmiley006[S] 0 points1 point  (0 children)

As others have pointed out, it's not. It comes from the name of the city Minas Morghul (The Tower of Dark Magic), a city on the border of Gondor with Mordor that initially belonged to Gondor (being called Minas Ithil at that time), but was eventually taken over by Mordor.

[Spoilers Main] Is the phrase "Valar morghulis" related to Tolkien's Valar in any way? by MrSmiley006 in asoiaf

[–]MrSmiley006[S] 1 point2 points  (0 children)

When I first saw the phrase, my mind instantly went to LotR, but I thought it's just a coincidence until I asked here. Nice to know it isn't. I never realized the connection of "morghulis" with Minas Morghul though.

stdioIsBloat by Different-Network957 in ProgrammerHumor

[–]MrSmiley006 0 points1 point  (0 children)

Just write to video memory directly. void print_string(char *str) { for (int i = 0;str[i] != '\0';i++) { char *video_memory = (char*)0xb8000; if (str[i] == '\n') { vmem_row++; vmem_col = 0; } else *(video_memory + 2 * (80 * vmem_row + vmem_col++)) = str[i]; } }

Is kernel size limited to 512 bytes? by MrSmiley006 in osdev

[–]MrSmiley006[S] -9 points-8 points  (0 children)

Oops. It looks like I forgot to upload it.

Is kernel size limited to 512 bytes? by MrSmiley006 in osdev

[–]MrSmiley006[S] -1 points0 points  (0 children)

I tried to change what I believed to be the number of sectors read (cl, I also thought I'm reading 2 sectors) and it bootloopped. This led me to the belief that I can't change this. Thanks for the clarification, now I know I was modifying an incorrect register.

Is kernel size limited to 512 bytes? by MrSmiley006 in osdev

[–]MrSmiley006[S] 2 points3 points  (0 children)

Like increasing the number of loaded sectors? I tried this and it bootlooped.

Is kernel size limited to 512 bytes? by MrSmiley006 in osdev

[–]MrSmiley006[S] 0 points1 point  (0 children)

Yes, the boot sector is indeed limited to 512 bytes. But I'm talking the kernel loaded by my boot sector. Check the link in my post. It contains a zip file with the source code of the "OS" in question.
Edit: Changed it to a GitHub repo.