This commit is contained in:
Miloslav Ciz 2025-02-15 17:03:53 +01:00
parent 8ffe198bf4
commit 580a061146
11 changed files with 1902 additions and 1899 deletions

View file

@ -8,6 +8,7 @@ While yes, you should write nice, [self documenting](self_documentation.md) code
- **Description of what the file actually does.** This is extremely important for [readability](readability.md), documentation and quick orientation. If a new programmer comes looking for a specific part of the code, he may waste hours on searching the wrong files just because the idiotic author couldn't be bothered to include fucking three sentences at the start of the file. [Modern](modern.md) program just don't fucking do this anymore, this is just [shit](shit.md).
- [License](license.md)/[waiver](waiver.md), either full text or link. Even if your repo contains a global license (which it should), it's good for the file to carry the license because the file may just be copy pasted on its own into some other project and then it will appear as having no license.
- **Name/nick of the author(s)** and roughly the date of creation (year is enough). This firstly helps legally assess [copyright](copyright.md) (who and for how long holds the copyright) and secondly helps others contact the author in case of encountering something weird in the code.
- A basic guideline of commenting states that comments should COMPLEMENT the code, NOT be its redundancy, i.e. they shouldn't say WHAT we are doing, but WHY we are doing it. Code such as `i++` already says what we are doing, there's no need to comment `// increment i`. Still this isn't a rigid rule, we may sometimes comment even what we are trying to do, especially in case of some very complex expression that's difficult to decipher. Comments may also serve to add [ASCII art](ascii_art.md) diagrams where they're helpful, warn others to not mess with some code etc.
- Comment specific blocks of code with **keywords** -- this will help searching the code with tools like [grep](grep.md). E.g. in game's code add comment `// player: shoot, fire` to the part of code that handles player's shooting so that someone searching for any one of these two words will be directed here. It also just speeds up navigating in code with your editor -- instead of manually searching through functions all the time you know you can just quickly "CTRL+F" a certain keyword to get where you want.
- Be brief, don't write poetry, too much text and pompous style will make it less readable.
- Functions (maybe with some exceptions like trivial one-liners) should come with a comment documenting:

2
faq.md
View file

@ -279,7 +279,7 @@ This is not a question you dummy. Have you even read the title of this page? Any
I want a public domain encyclopedia that also includes topics of new technology and correct views without censorship, and also one which doesn't literally make me want to kill myself due to inserted propaganda of evil. Since this supposedly [modern](modern.md) society failed to produce even a single such encyclopedia and since every idiot on this planet wants to keep his copyright on everything he writes and/or wants to censor what he creates, I am forced to write the encyclopedia myself from scratch, even for the price of making mistakes. No, US public domain doesn't count as world wide public domain. Even without copyright there are still so called [moral rights](moral_rights.md) etc. Blame this society for not allowing even a tiny bit of information to slip into public domain. Writing my own encyclopedia is literally the best I can do in the situation I am in. Nothing is perfect, I still believe this can be helpful to someone. You shouldn't take facts from a random website for granted. I have to do my own research on everything, even on thing I have basically no clue about -- I know there are people a million times more knowledgeable on many subjects I write about, but I simply cannot believe them, today's society forces experts to lie, so rather than taking a lie from an expert I am forced to take a honest view of a layman (me). This society is also quite fucked up in forcing the idea that you can't make basic observations unless you have 10 PhDs, you are only allowed to spread the gospel officially approved of by decorated [soyentists](soyence.md) -- I just ignore this. If you wanna help me correct errors, email me.
### Why is this shit so poorly written and inconsistent (typos, incorrect comma placement, inconsistent acronym case, weird grammar etc.)?
### Why is this gay shit so poorly written and inconsistent (typos, incorrect comma placement, inconsistent acronym case, weird grammar etc.)?
Mainly for these reasons:

View file

@ -1,6 +1,6 @@
# Human Language
Human language is language used mostly by [humans](human.md) to communicate with each other; these languages are very hard to handle by [computers](computer.md) (only quite recently [neural network](neural_net.md) computer programs became able to show true understanding of human language). They are studies by [linguists](linguistics.md). It is estimated (very roughly) that there are about 5000 human languages. Human languages are most commonly **natural languages**, i.e. ones that evolved naturally over many centuries such as [English](english.md), [Chinese](chinese.md), French or [Latin](latin.md), but there also exist a great number of so called **[constructed languages](conlang.md)** (*conlangs*), i.e. artificially made ones such as [Esperanto](esperanto.md), Interslavic or [Lojban](lojban.md). But all of these are still human languages, different from e.g. [computer languages](computer_language.md) such [C](c.md) or [XML](xml.md). Natural human languages practically always show significant irregularities (exceptions to general rules) while constructed languages typically try to eliminate irregularities as much as possible so as to make them easier to learn, but even a constructed human language is still extremely difficult for a computer to understand.
Human language is language used mostly by [humans](human.md) to communicate with each other; these languages are very hard to handle by [computers](computer.md) (only quite recently [neural network](neural_net.md) computer programs became able to show true understanding of human language). They are studied by [linguists](linguistics.md). It is estimated (very roughly) that there are about 5000 human languages. Human languages are most commonly **natural languages**, i.e. ones that evolved naturally over many centuries such as [English](english.md), [Chinese](chinese.md), French or [Latin](latin.md), but there also exist a great number of so called **[constructed languages](conlang.md)** (*conlangs*), i.e. artificially made ones such as [Esperanto](esperanto.md), Interslavic or [Lojban](lojban.md). But all of these are still human languages, different from e.g. [computer languages](computer_language.md) such [C](c.md) or [XML](xml.md). Natural human languages practically always show significant irregularities (exceptions to general rules) while constructed languages typically try to eliminate irregularities as much as possible so as to make them easier to learn, but even a constructed human language is still extremely difficult for a computer to understand.
Human language is a social construct so according to [pseudoleftists](pseudoleft.md) it's an illusion, doesn't exist, doesn't work and has no significance.

2
log.md
View file

@ -36,7 +36,7 @@ A small graph will make the best demonstration:
|
3 +
| ___...''' log2(x)
2 + _---''
2 + __--''
| _.-'
1 + .' _____ log10(x)
| / ...----''''''''

View file

@ -83,7 +83,7 @@ There also exists a term **pseudoprime** -- it stands for a number which is not
**Prime gaps**: statistically gaps between consecutive primes increase. The size of the gaps themselves make another number sequence that starts like this 1, 2, 2, 4, 2, 4, 2, 4, 6, 2, 6, 4, 2, 4, 6, 6, 2, 6, 4, 2, 6, 4, 6, 8, 4, 2, 4, 2, 4, 14, 4, 6, 2, 10, 2, 6, 6, 4, 6, 6, 2, 10, 2, 4, 2, 12, 12, 4, 2, 4, 6, 2, 10, 6, 6, 6, 2, 6, 4, 2, 10, 14, 4, 2, 4, 14, 6, 10, 2, 4, 6, 8, 6, 6, 4, 6, 8, 4, 8, 10.
**[Fun](fun.md) with primes**: thanks to their interesting, mysterious and [random](randomness.md) nature, primes can be played around -- of course, you can examine them mathematically, which is always fun, but you can also play sort of [games](game.md) with them. For example the prime race: you make two teams of primes, one that gives 1 modulo 4, the other one that gives 3; then you go prime by prime and add points to each team depending on which one the prime falls in; the interesting thing is that team 3 is almost always in lead just by a tiny amount (this is known as Chebyshev bias, only after 2946 primes team 1 gets in the lead for a while, then at 50378 etc.). Similar thing can be done by evaluating the Mobius function: set total sum to 0, then go number by number and if it only has unique prime factors, add 1 if the number of those factors is even, otherwise subtract 1 -- see how the function behaves. Of course you can go crazy, make primes paint pictures or compose [music](music.md) -- people also like to do this with digits of numbers, e.g. those of [pi](pi.md) or [e](e.md).
**[Fun](fun.md) with primes**: thanks to their interesting, mysterious and [random](randomness.md) nature, primes can be played around with -- of course, you can examine them mathematically, which is always fun, but you can also play sort of [games](game.md) with them. For example the prime race: you make two teams of primes, one that gives 1 modulo 4, the other one that gives 3; then you go prime by prime and add points to each team depending on which one the prime falls in; the interesting thing is that team 3 is almost always in lead just by a tiny amount (this is known as Chebyshev bias, only after 2946 primes team 1 gets in the lead for a while, then at 50378 etc.). Similar thing can be done by evaluating the Mobius function: set total sum to 0, then go number by number and if it only has unique prime factors, add 1 if the number of those factors is even, otherwise subtract 1 -- see how the function behaves. Of course you can go crazy, make primes paint pictures or compose [music](music.md) -- people also like to do this with digits of numbers, e.g. those of [pi](pi.md) or [e](e.md).
**Can we generalize/modify the concept of prime numbers?** Yeah, sure, why not? The ways are many, we'll rather run into the issue of analysis paralysis -- choosing the interesting generalization of out of the many possible ways. Some possible generalizations include:

View file

@ -6,7 +6,7 @@ Project is a highly planned, well thought through endeavor. All kinds of project
**THIS IS NOT A "[PRODUCTIVITY](productivity_cult.md)"/"MOTIVATION" ARTICLE.** If you're seeking "productivity", go capitalisting somewhere else.
Firstly a word of warning: stuff about how to plan projects, lead them, get people "motivated" and so on is a huge, huge milking cow of "[productivity](productivity_cult.md)" writers and capitalists, to a large degree this is a bullshit topic growing alongside gigantic capitalist [bullshit](bullshit.md) projects and entrepreneurship religions. Never fall into this trap, never let concerns about how to make art take too much of the time that should actually be spent on making the art itself. With this said, we may offer some useful word of advice.
Firstly a foreword of warning: stuff about how to plan projects, lead them, get people "motivated" and so on is a huge, huge milking cow of "[productivity](productivity_cult.md)" writers and capitalists, to a large degree this is a bullshit topic growing alongside gigantic capitalist [bullshit](bullshit.md) projects and entrepreneurship religions. Never fall into this trap, never let concerns about how to make art take too much of the time that should actually be spent on making the art itself. With this said, we may offer some useful word of advice.
Also let it be said that everyone has to find his own way of doing projects, it's just like with learning for example: everyone has his own ways, what works for one may not work for another. The advice here will come firstly from the author's ([drummyfish](drummyfish.md)) personal experience and secondly from general [LRS](lrs.md) principles. Also even though we'll mostly be talking about programming projects, a project can be anything really, what we say applies also to making a [music](music.md) CD or writing a [book](book.md). Here we go:

File diff suppressed because it is too large Load diff

21
sin.md
View file

@ -183,23 +183,28 @@ Mainstream way of implementing [floating point](float.md) sine (but potentially
*sin(x) = x/1! - x^(3)/3! + x^(5)/5! - x^(7)/7! + ...*
Here is a simple implementation using fixed number of terms, which nonetheless gives quite precise results:
Here is a simple implementation using fixed number of terms, which gives quite precise results:
```
double sinF(double x)
{
#define _PI 3.141593
if (x < 0)
// adjust argument:
if (x < -1 * _PI / 2)
x = -1 * x + _PI;
int part = (2 * x) / _PI;
x -= part * _PI / 2;
if (part % 2)
x = _PI / 2 - x;
if (x > _PI / 2)
{
x -= _PI / 2;
int part = x / _PI;
x -= part * _PI;
x = (part % 2) ? (-1 * _PI / 2 + x) : (_PI / 2 - x);
}
#undef _PI
// Taylor series:
double x2 = x * x, r = x;
x *= x2;

File diff suppressed because one or more lines are too long

View file

@ -3,12 +3,12 @@
This is an autogenerated article holding stats about this wiki.
- number of articles: 621
- number of commits: 968
- total size of all texts in bytes: 5051858
- total number of lines of article texts: 36622
- number of commits: 969
- total size of all texts in bytes: 5057837
- total number of lines of article texts: 36671
- number of script lines: 295
- occurrences of the word "person": 9
- occurrences of the word "nigger": 105
- occurrences of the word "nigger": 106
longest articles:
@ -35,60 +35,76 @@ longest articles:
top 50 5+ letter words:
- which (2804)
- there (2190)
- people (2141)
- example (1747)
- other (1586)
- which (2805)
- there (2194)
- people (2154)
- example (1751)
- other (1587)
- about (1404)
- number (1325)
- number (1326)
- software (1251)
- because (1162)
- because (1166)
- their (1086)
- would (1058)
- something (1043)
- program (1034)
- being (1017)
- things (963)
- would (1065)
- something (1044)
- program (1036)
- being (1018)
- things (964)
- language (937)
- called (919)
- without (860)
- function (860)
- simple (853)
- function (863)
- without (861)
- simple (854)
- computer (840)
- numbers (828)
- different (794)
- however (774)
- however (775)
- these (772)
- programming (768)
- world (750)
- system (727)
- should (709)
- should (714)
- doesn (709)
- still (707)
- games (680)
- while (671)
- point (664)
- society (660)
- point (668)
- society (666)
- drummyfish (657)
- simply (653)
- possible (641)
- using (635)
- probably (635)
- possible (649)
- using (637)
- probably (637)
- always (621)
- course (605)
- course (606)
- similar (596)
- https (588)
- actually (583)
- someone (579)
- actually (584)
- someone (580)
- though (577)
- basically (570)
- basically (569)
- really (566)
- technology (548)
latest changes:
```
Date: Sat Feb 15 00:11:24 2025 +0100
art.md
drummyfish.md
good_enough.md
kiss.md
less_retarded_society.md
life.md
lmao.md
often_confused.md
optimization.md
random_page.md
randomness.md
sin.md
soyence.md
wiki_pages.md
wiki_stats.md
Date: Wed Feb 12 23:09:00 2025 +0100
anarch.md
approximation.md
@ -108,26 +124,6 @@ Date: Wed Feb 12 23:09:00 2025 +0100
wiki_pages.md
wiki_stats.md
Date: Sat Feb 8 19:09:45 2025 +0100
21st_century.md
anarch.md
approximation.md
ashley_jones.md
beauty.md
billboard.md
byte.md
chess.md
collapse.md
corporation.md
egoism.md
evil.md
faq.md
future.md
library.md
life.md
log.md
main.md
marketing.md
music.md
```
most wanted pages:

View file

@ -4,7 +4,8 @@
New? Confused? Many articles? Tl;dr:
- this is NOT a satire, we are serious (but we make [jokes](jokes.md) too, you must spot them, don't be retarded)
- the wiki and everything here was made solely by [drummyfish](drummyfish.md)
- this is NOT a satire, we { At this point "we" is basically just me and maybe a few lurkers. ~drummyfish } are serious (but we make [jokes](jokes.md) too, you must spot them, don't be retarded)
- [axiom](axiom.md): **[life](life.md) is good, suffering of life is bad**
- unconditionally **[love](love.md) LITERALLY EVERYONE** (animals, [gays](gay.md), [NPCs](npc.md), Nazis, murderers, retards, complete strangers, ...) -- NOT for religious reasons, only because they are alive
- **do TRULY [selfless](selflessness.md) things** (give away for free, don't expect even indirect rewards, only a good feeling) -- NOT for religious reasons, only because it makes life happy