Ludovic 'Archivist'
what is perf?
Performance
Parra
but
Parra
it's a fork
Ludovic 'Archivist'
it's a fork
It is a jmp
Parra
it's done like 10 times at most
Parra
im not forking 100 times per second
Ludovic 'Archivist'
Jmp to a faraway position generally cause cache misses
Ludovic 'Archivist'
But imagine it used like a relocation
Parra
what happens if the function does not fit in size with the old one? you alloc it in another place and change all calls to it?
Ludovic 'Archivist'
If you used it like a relocation, for something that may be called 100k times per second, that alone means a penalty of over 10ms
Ariana
a function that generate functions is useful actly
Dima
Lol
Ludovic 'Archivist'
Generally, you place it on a page boundary and get yourself a few hundred bytes more than needed
Ariana
Parra
lets pretend im not abusing this
what are you working on Ariana?
Ariana
what are you working on Ariana?
A computer algebra system and i need a really fast way to evaluate functions repeatedly
Ludovic 'Archivist'
lets pretend im not abusing this
I can compile C symbols in some of my works with libTCC
Ariana
A computer algebra system and i need a really fast way to evaluate functions repeatedly
what better way is there to do so than writing in machine code in the heap or data segment!
Ariana
Parra
:F
Ludovic 'Archivist'
tcc is nice
You would be able to define your functions in C and use them in your software
Ludovic 'Archivist'
Ludovic 'Archivist'
But it is fast
Ludovic 'Archivist'
Compiling sqlite with tcc takes less than 1s
Parra
XD
Parra
but output code is....
Parra
the most unoptimized possible
Ludovic 'Archivist'
but output code is....
For something that acts as a JIT, it is decent
Ariana
I mean a function that just plugs a number into a simple function isnt that bad acty
Ludovic 'Archivist'
Parra
but Ariana
Parra
who provides the c functions in your algebra system?
Parra
or do you have your own script language?
Ariana
Screw those :> use machine code
Ludovic 'Archivist'
Screw those :> use machine code
Tcc can generate that for you, that is what I emphasized
Parra
what's the use case of your system?
Parra
people will code functions in asm?
Parra
for algebra?
Ariana
Being very fast at bruteforcing functions :>
Ariana
and subsituitions
Ariana
for like ODES/PDES etc
Parra
for like ODES/PDES etc
what's this?
Ariana
Basically like df/dx=f+1
Ariana
f=e^x-1
klimi
E=mc²
MᏫᎻᎯᎷᎷᎬᎠ
E=mc²
Einstein
Ariana
E=mc²
boring :>
klimi
I'm klimi
klimi
Ariana
YAY
Ludovic 'Archivist'
Einstein
So 1909
MᏫᎻᎯᎷᎷᎬᎠ
I'm klimi
I'm lunatic
klimi
youre dot
Ludovic 'Archivist'
I'm lunatic
We noticed that
MᏫᎻᎯᎷᎷᎬᎠ
Ludovic 'Archivist'
Ludooo Hi
Heeeeeeeeeey
MᏫᎻᎯᎷᎷᎬᎠ
How are you?
MᏫᎻᎯᎷᎷᎬᎠ
enum Ludo_State{TIRED};
klimi
Ludo
klimi
i want you to go to pm
klimi
i have something to tell you
Ariana
udol
Ariana
aldol addition
MᏫᎻᎯᎷᎷᎬᎠ
udol
string().reverse ()
Ariana
lodu
Ariana
loud
Ludovic 'Archivist'
Ludovic 'Archivist'
XD
MᏫᎻᎯᎷᎷᎬᎠ
Hah