28 Followers
17 Following
478 Posts

@byllgrim :D
*honk* "I dun wanna live anymore, AAAaaaa...."

I wouldn't call premeditated self sacrifice reactionary. You can think of other noble examples of similar behavior, I just came up with that as something that is hard to explain. A monkey with a concept of reward after death would be one impressive complicated monkey. Must take a lot of effort to teach one that. To humans on the other hand you just tell stories, they just believe and unlearning becomes a challenge instead.
@sim

@byllgrim @sim uhuh, uhuh, I think I understand... yes...
suicide bombing - ultimate survival
mass shooting - ultimate procreation
wait...

our ability to throw the monkey straight out the window at a whim is what brought us where we are. We hang by a thread of sanity.
"simple predictable monkey in me that values life above all else? GTFO, IT'S TIME FOR ME TO ENACT MY RELIGION!"

Considering a generic function, that accepts a count of numbers (usual + - * / algebra) and returns their average (sum over count), what requirements make sense to be imposed on the number to allow division by count?

(count is 2 in example pseudo code)

1. explicit construction from a single natural number:
(n1 + n2)/number(2)

2. straight up a division operator that accepts a natural number as second argument:
(n1 + n2)/2

3. multiplication identity constructor/value that can be accumulated (using addition) to reach count:
(n1 + n2)/(number::one + number::one)

4. addition operator that accepts a natural number as second argument (assuming zero/default constructor available):
(n1 + n2)/(number() + 2)

#cpp #programming #generic_programming

1
0%
2
0%
3
0%
4
0%
Poll ended at .

#xoshiro is a family of #publicdomain (#CC0) pseudorandom number generators.

xoshiro (xor-shift-rotate) and #xoroshiro (xor-rotate-shift-rotate) are public domain #algorithms that shift state to produce very random numbers at high speeds suitable for insecure applications. The algorithms only use a few bytes of state and are suitable for embedded applications which require good pseudorandom numbers.

Website 🔗️: http://prng.di.unimi.it/

#free #opensource #foss #fossmendations #RNG #programming

xoshiro/xoroshiro generators and the PRNG shootout

~namark/libsimple_support: source/simple/support/algorithm.hpp - sourcehut git

@byllgrim Not really, since I haven't even tried it myself yet. I guess the wizard roleplay could be to encourage yourself to throw balls without feeling like a monkey throwing rocks?? And actual physical balls are maybe to provide a challenge you can focus on, you might need to dodge or catch them if they bounce back at you (enemy returning fire!), or try and hit specific targets, and you can go nuts, since they are not likely to damage anything... hopefully.

@byllgrim acquire ping pong balls, fill yourself with furious anger and pure rage, imagine yourself to be a wizard, imagine ping pong balls to be fireballs, throw/kick them around.

I've learned of this technique from an ex juggler, biologist, singer, banjo player. I plan to attempt it myself with the aid of the following instrument, if I can source it locally.

87605 – Ternary uses explicit copy constructor for lvalue-to-rvalue conversion

Try to write transparent wrapper using implicit conversion ->
-> templates don't pick it up, cause type deduction -> fix with metamagic ->
gcc rejects valid >~<
http://ix.io/2nlC/cpp
Isolate, work around.

Add an innocent constant variable -> clang segmentation faults x_x
http://ix.io/2nlF/cpp
power through without the quality of life constant.
Brag about bugs you found.
Feel alive.

#cpp

I decided to start publishing me playing some stuff on my peertube channel, as a way to motivate me to get better and get over my shyness...
I'm not very good, but whatever, you gotta start somewhere. Hopefully with time I'll look back and laugh at the goofy attempts =D

This is the first song. From now on I'll just boost my peertube status with every video

https://video.qoto.org/videos/watch/6b952c22-d141-495b-bd36-9c5a2d96d31f

Concerning Hobbits - Clawhammer banjo

PeerTube