Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Whats your favorite bullshit programming concept?

Name: Anonymous 2021-03-07 13:57

* infinity
* negative zero
* multiple threads

Name: Anonymous 2021-03-07 15:52

How threads are bullshit?

Name: Anonymous 2021-03-07 17:58

>>2
Completely manmade construct that has no correspondence in nature.

Name: Anonymous 2021-03-07 20:42

FORCED INDENTATION

Name: Anonymous 2021-03-08 5:19

Name: Anonymous 2021-03-08 23:35

Floating point imprecision

Name: Anonymous 2021-03-08 23:37

object oriented programming

Name: Anonymous 2021-03-09 0:21

NaN

Name: Anonymous 2021-03-09 12:16

>>6
O, this is a good one. Half of HackerNews links are about ISO 753 circlejerk

Name: Anonymous 2021-03-09 15:43

penetration testing

Name: Anonymous 2021-03-10 2:09

I pentested your PC last night

Name: 😲 ! 2021-03-10 17:19

>>7
I hate it too

Name: Anonymous 2021-03-10 17:44

Closed and open sets

Name: Anonymous 2021-03-10 19:37

Having to suck the professor's dick because Turing was a homo

Name: Anonymous 2021-03-11 4:21

HALTING

Name: >>15 2021-03-11 4:23

Also,
nop
.

Name: Anonymous 2021-03-11 4:37

I mean seriously, they're plotting during all those "so called" cache misses, and how do you think they're going to refill the pipeline?

Name: Anonymous 2021-03-11 8:11

>>6
Floating-point is fine, the problem is mental midgets who misuse it because their language has no rational type.

Name: Anonymous 2021-03-11 11:00

>>16
There's a cover story going around that claims it was named for no operation, but it was actually named for monopolizing your processor. I heard this from the underground illuminati molepeople so it must be true.

Name: Anonymous 2021-03-21 9:59

Floats were a mistake. They are the source of the highest percentage of bugs among beginners (``why is 0.3333333 * 3 not == 1 the computer is retarded''), intermediate (``lol .1+.2!=.3, upvote on hackernews plox''), and experienced (``There is a corner case with negative infinity that we have to handle for compliance with a standard drafted by a deranged lisper'') programmers.

Name: Anonymous 2021-04-06 6:41

sockets

Name: Anonymous 2021-04-06 9:44

>>20
They aren't even close to the most common bug. Just use rationals.

Name: Anonymous 2021-04-06 13:33

>>1
C++ iostreams templates:
Have anyone tried to use this for anything more complex than toy programs?

Name: Anonymous 2021-04-06 14:19

>>23
I've seen iostream used in the original Majesty game, when I decompiled it. They are supposed to be much faster than fread, since templates get inlined.

Name: Anonymous 2021-04-06 16:54

>>22
Rationals are not in the stdlib of most common languages.

Name: Anonymous 2021-04-06 17:13

>>22
It is impossible to implement rationals efficiently.

Name: Anonymous 2021-04-06 18:38

>>26
Most applications are not so performance-critical that a 1ms arithmetic operation would be noticeable.

Name: Anonymous 2021-04-09 12:33

>>25
Then that is the problem, not floats.

>>26
Bignum rationals are more than efficient enough for most programs. Even if they weren't you could go for fixed-point numbers instead or have fixnum rationals with proper overflow handling. You do check for overflow, right?

Name: Anonymous 2021-04-09 13:36

>>28
How many ROPS vs FLOPS would your computer perform?

Name: Anonymous 2021-04-09 13:39

>>27
Most apps need only integers, and when they need floats, they use them for GPU or some engineering simulation, which usually needs to be as fast as possible. The only use for rationals are the financial apps, where any imprecision means lost money.

Name: Anonymous 2021-04-09 13:40

>>29
Doesn't matter when floats are simply the wrong data type for your problem, which they are most of the time.

Name: Anonymous 2021-04-09 13:42

>>26
Efficient implementation of rationals is more a question of memory management than execution speed, and virtual memory solved that issue a long time ago with 64-bit address spaces (well 47 bits for userspace today) picking up the rest. Furthermore the parallelism issue can be solved by storing the limbs of an arbitrary-precision integer in a "long carry" format, so that there's (say) 12 bits of carry and 52 bits of body, allowing operations to produce denormal limbs, and catching carry overflow with a slowpath which normalizes the operands first.

This isn't common practice because libgmp is the practical standard, and it fixes a carryless format. But perhaps one day.

Name: Anonymous 2021-04-09 14:02

>>32
FrozenVoid, is that you? Just compress these rational into single bit values with your infinite compression algorithm.

Name: Anonymous 2021-04-09 22:02

Speed trumps everything. Rationals rarely are absolutely necessary.

Name: Anonymous 2021-04-09 22:09

I present the ultimate program. It can perform every imaginable task at the highest possible speed.
int
main(void)
{
return 0;
}

Name: Anonymous 2021-04-09 22:15

main(void)

main is required by standard to have arguments.

Name: Anonymous 2021-04-09 22:27

>>36
§5.1.2.2.1 in C99.

Don't change these.
Name: Email:
Entire Thread Thread List