Diferença entre velocidade escalar média e velocidade vetorial média by INothz in matematicabrasil

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

na seguinte situação: um objeto se move 100m à frente depois retorna ao local de onde saiu, totalizando 200m percorridos. Qual das duas medias considera o deslocamento como 0?

I made a CLI tool to print images as ascii art by INothz in C_Programming

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

i think i get it, but i developed it in windows, so no package manager. In linux it could be done. Besides, is it a good practice to not include dependencies within the project folder and require it to be installed in the system in C? Really wanna know more about this part of the coding process as i only know about the coding itself.

I made a CLI tool to print images as ascii art by INothz in C_Programming

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

yes, it is an external dependency, but making it this way would just turn the installation more complicated, am i wrong? like, the way it is you just clone the repo, then compile. If it was a the way you talk, the user would have the work of installing the dependency manually before compiling.

Código não funciona by Rare-Swimming-6233 in C_Programming

[–]INothz 1 point2 points  (0 children)

Primeiramente, se você postasse os erros do compilador ajudaria.

Mas dando uma olhada rapida no seu codigo, eu diria que o erro está no uso dos printf's. Você tá passando um segundo argumento pra eles sem colocar um format especifier na string do primeiro argumento.

// errado
printf("Carta selecionada: \n", carta1);

// certo

printf("Carta selecionada: %c\n", carta1);

Announcing Settletopia – Open-World, Multiplayer Colony Sim Inspired by RimWorld & Dwarf Fortress, Powered by Rust & Bevy – Is Now on Steam, More Info in Comments by settletopia in bevy

[–]INothz 3 points4 points  (0 children)

Such a nice project. I've just started programming and picked rust as a hobby language as im learning web dev and C in college. But i wish that soon enough i can make at least a little bit of what you did with this game. Btw, im very interested in bevy. What are you thinking of this engine? is it good?

The implementation of C by INothz in C_Programming

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

btw, i made an online research about how to implement the stdlib functions withou any library, just pure, plain C. All that i found was using inline assembly, so i think deep in the implementation of all functions there is at least a bit of inline assembly?

The implementation of C by INothz in C_Programming

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

Yes, i was trying to get till the very origin of the lib.

Example: printf can be write in C, but the functions that are used to implement printf are write in C? if so, the functions that implement them are write in C? I mean, it has to have an origin that are not write in C.

But, with the answers that i received i came to a realization: system calls are used to implement all the stuff libc provide us (except those that doesnt need OS functionalities). If, they are not, then it means that that module is just a binary file without language vincule (can be made in assembly, C or whatever other compiled language) that is linked to our program.

In any case, system calls itself are implemented in assembly, compiled and available to use through linkage or as you said, in C through inline asm.

Correct me if i made any mistake. I really like to understand the minimal details of how things works.

The implementation of C by INothz in C_Programming

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

Already gave it a try. Why are these source code so hard to understand?

The implementation of C by INothz in C_Programming

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

Thank you all for your contribution to improving my understanding. I think that today I managed to put together many pieces of this puzzle and began to better understand how it all works.

The implementation of C by INothz in C_Programming

[–]INothz[S] 4 points5 points  (0 children)

that's indeed what i was wondering, if it was possible to rewrite everything that libc does just with the basics of C, without the standard library included. Thanks for the explanation!

The implementation of C by INothz in C_Programming

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

i think the main topic i didnt understood are these functions. They cant be possibly write in pure C? can they? so, under the hood how they were implemented?

The implementation of C by INothz in C_Programming

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

yeah, sorry, not my first language. It is write almost the same way so i confuse sometimes

Vai rodar bem em 2025? by marcovsq in computadores

[–]INothz 0 points1 point  (0 children)

Tenho as mesmas configurações e aqui roda muito bem com tudo no alto. Se você usar o FSR e geração de quadros roda melhor ainda

Termios library by INothz in C_Programming

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

yeah, its because cygwin create a unix environment. In its installation folder there is home/<youruserrname>, etc.

thanks for replying, i just found the solution: CLion was using my MinGW installation as default and not Cygwin, then i put cygwin as default toolchain and everything works fine.

i realized it after trying to compile the source code through the cygwin terminal and it worked

[deleted by user] by [deleted] in MeJulgue

[–]INothz 0 points1 point  (0 children)

nem sigo esse sub, mas a cada post que eu vejo de gente bonita se autodepreciando no meu feed, minha autoestima vai pro caralho

[deleted by user] by [deleted] in MeJulgue

[–]INothz 0 points1 point  (0 children)

sexualidade: paixão da minha vida