seninha has quit [Quit: Leaving]
pablo_escoberg has joined #picolisp
pablo_escoberg has quit [Client Quit]
aw- has quit [Quit: Leaving.]
aw- has joined #picolisp
aw- has quit [Quit: Leaving.]
aw- has joined #picolisp
aw- has quit [Quit: Leaving.]
seninha has joined #picolisp
<
tankf33der>
morning all
<
tankf33der>
i have got llvm18
<
abu[7]>
Good morning tankf33der!
<
abu[7]>
Oh, let's hope ...
<
tankf33der>
everything is working except this small issue
<
abu[7]>
So we just need to fix Makefile
rob_w has joined #picolisp
<
tankf33der>
how is better to handle both llvm15 and llvm18 range?!
<
abu[7]>
Do we need three different cases? I don't remember what we did
<
abu[7]>
LLVM = $(shell llvm-config --version ...
<
abu[7]>
If it is >= 15, we do
<
abu[7]>
IASM += -opaque-pointers
<
abu[7]>
So we need ">= 15" and "< 18" ?
<
tankf33der>
Googling
<
tankf33der>
Can not find if have groups and and inside
seninha has quit [Ping timeout: 245 seconds]
<
abu[7]>
Something like "-and" ?
<
abu[7]>
ah, it is shell 'test'
<
abu[7]>
so it is "-a"
<
abu[7]>
EXPRESSION1 -a EXPRESSION2
<
tankf33der>
tested on 17 and 18
<
abu[7]>
Good. I write it into Makefile
<
tankf33der>
i will test everywhere
<
abu[7]>
I think llvm-config-18 is a problem, no?
<
abu[7]>
Does not exist in older systems
<
tankf33der>
of course, my side
<
tankf33der>
use llvm-config
aw- has joined #picolisp
<
abu[7]>
I'm very glad that the LLVM-IR code doesn't need to be changed
<
tankf33der>
tested. issue closed.
<
abu[7]>
Perfect :)
<
aw->
yesterday's issue is fixed?
<
abu[7]>
Nothing is changed
<
abu[7]>
It is a "feature"
<
abu[7]>
I just want to write a note somewher in the docs
<
abu[7]>
The 'native' ref says "and function pointer assigned as values to be cached and used in subsequent calls"
<
abu[7]>
It is not obvious that the "function pointer" piints to an malloc'ed ffi struct
<
abu[7]>
The recommended use is to put native calls into a library which is
*not* called hundreds of times
Nistur has quit [Ping timeout: 246 seconds]
Nistur has joined #picolisp
<
tankf33der>
Call hunder of times or load hundred of times?
<
abu[7]>
Number of loads multiplied with the number of native functions in the file
<
tankf33der>
doest this mean pb1n.de is leaking memory with native calls to monocypher library? :/
<
abu[7]>
If the calls are in a lib, there is no leak
<
abu[7]>
e.g. @lib/net.l
<
tankf33der>
I do not understand what does it mean “in the lib”. Never heard before
<
abu[7]>
For example 'connect'
<
abu[7]>
it is in @lib/net.l
<
abu[7]>
You can call (connect ...) millions of times
<
abu[7]>
The symbol "socket" is private to @lib/net.l
<
tankf33der>
i will experiment then
<
abu[7]>
So it is 'set' to the ffi struct
*once*
<
abu[7]>
If you do (load "@lib/net.l") a million of times AND call 'connect' you have a leak
<
abu[7]>
(do 999999 (load "@lib/net.l") (connect ...))
<
abu[7]>
Just (do 999999 (load "@lib/net.l")) is no leak
msavoritias has joined #picolisp
<
tankf33der>
So i must move three functions to library, ok
<
abu[7]>
It is loaded only once
<
abu[7]>
"!pastebin" is called as a function
<
tankf33der>
Thanks
<
abu[7]>
You are right that this is not really a "library"
<
abu[7]>
It is difficult to document this
<
abu[7]>
How to explain?
<
tankf33der>
I do not know ;(
rob_w has quit [Remote host closed the connection]
<
tankf33der>
I will think about this task
tankf33der[m] has joined #picolisp
skyjuice has joined #picolisp
<
tankf33der>
Without recursion
<
abu[7]>
OK, another grid task
seninha has joined #picolisp
aw- has quit [Ping timeout: 246 seconds]
<
beneroth>
thanks abu[7] and tankf33der, for testing new LLVM, and everything :)
aw- has joined #picolisp
<
abu[7]>
o/ beneroth
beneroth has quit [Remote host closed the connection]
beneroth has joined #picolisp
msavoritias has quit [Remote host closed the connection]