I hereby claim:
- I am rf3l on github.
- I am rf3l (https://keybase.io/rf3l) on keybase.
- I have a public key ASByyAw21KjOPW4OkwGDoHI6J_1047FHYPLEp1304M7ZRgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| """Quantum field theory example | |
| * https://en.wikipedia.org/wiki/Quantum_field_theory | |
| This particular example is a work in progress. Currently it calculates the | |
| scattering amplitude of the process: | |
| electron + positron -> photon -> electron + positron | |
| in QED (https://en.wikipedia.org/wiki/Quantum_electrodynamics). The aim | |
| is to be able to do any kind of calculations in QED or standard model in | |
| SymPy, but that's a long journey. | |
| """ |
| // gcc -luring nosyscall_iouring.c | |
| #include <stdio.h> | |
| #include <netinet/in.h> | |
| #include <string.h> | |
| #include <unistd.h> | |
| #include <stdlib.h> | |
| #include <signal.h> | |
| #include <liburing.h> | |
| int ENTRIES = 1024; |
| REM To disable mitigations for CVE-2017-5715 (Spectre Variant 2) and CVE-2017-5754 (Meltdown) | |
| REM https://support.microsoft.com/en-us/help/4072698/windows-server-speculative-execution-side-channel-vulnerabilities | |
| reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettingsOverride /t REG_DWORD /d 3 /f | |
| reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettingsOverrideMask /t REG_DWORD /d 3 /f |
| #include <stdio.h> | |
| #include <unistd.h> | |
| #include <stdlib.h> | |
| // this program compute how many digits of pi u want ! by spigot algorithm | |
| // the idea is that to write pi in a mixed radix representation and convert it | |
| // to 10 radix representation with elementry functions on integers. | |
| // https://en.wikipedia.org/wiki/Spigot_algorithm | |
| #define F 0x2710ull |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| def lorenz(x, y, z, s=10, r=28, b=2.667): | |
| """ | |
| Given: | |
| x, y, z: a point of interest in three dimensional space | |
| s, r, b: parameters defining the lorenz attractor | |
| Returns: |