ChanServ changed the topic of #picolisp to: PicoLisp language | Channel Log: https://irclog.whitequark.org/picolisp/ | Picolisp latest found at http://www.software-lab.de/down.html | check also http://www.picolisp.com for more information
alexshendi has quit [Ping timeout: 256 seconds]
andyjpb has quit [Ping timeout: 268 seconds]
N3k0 has joined #picolisp
<N3k0> hello all
<N3k0> does anyone have much experience playing with picolisp and the native function?
<N3k0> i got a prototype like this: int func(int, char*, long*, long*, long*, long*)
<N3k0> but to last long* 's are pointing to arrays
<N3k0> two*
<N3k0> does anyone have an idea what the correct result spec for a long array of unspecified size would be?
<N3k0> oooooooh wait
<N3k0> it returns just the binary mesh so that it can be passed to 'struct'
<N3k0> thanks for the help guys!
pierpal has quit [Quit: Poof]
pierpal has joined #picolisp
<Regenaxer> N3k0, you need to call malloc() and pass the pointer(s)
<Regenaxer> Examples are in https://software-lab.de/doc/native.html
<Regenaxer> Correction: You can also pass it as a (possibly initialized) list
orivej has joined #picolisp
rob_w has joined #picolisp
xificurC has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
xificurC has joined #picolisp
orivej has quit [Ping timeout: 264 seconds]
pierpal has quit [Quit: Poof]
pierpal has joined #picolisp
andyjpb has joined #picolisp
<tankf33der> hi all
<tankf33der> Regenaxer:
<tankf33der> last item of puzzle rule must be T
<tankf33der> to cut backtracking to find the same result again and again
<tankf33der> :)
<Regenaxer> Ah, cool. Sorry, I don't remember well ;)
<Regenaxer> It does not stop?
<Regenaxer> You mean:
<Regenaxer> ...
<Regenaxer> (+ 4 @Z @H)
<Regenaxer> (+ @X @Z @Y)
<Regenaxer> T )
<Regenaxer> ?
<tankf33der> yea
<tankf33der> doesnt stop :)
<Regenaxer> Can you fix the rosetta entry?
<tankf33der> i will !
<Regenaxer> Thanks!
<tankf33der> fixed.
<tankf33der> Thanks
<Regenaxer> Thanks for finding! :)
_whitelogger has joined #picolisp
orivej has joined #picolisp
rob_w has quit [Quit: Leaving]
xificurC has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
xificurC has joined #picolisp
orivej has quit [Ping timeout: 248 seconds]
karswell has joined #picolisp
sriram has joined #picolisp
<sriram> Hi..I have a question about form.. I notice that when I give it an id [(form '((id . "$formID") ....)], the id is applied to the fieldset within it, rather than to the form itself...so how could I give an id to the form
<Regenaxer> Hi sriram! The form *is* the fieldset, also CSS styles apply to it.
<sriram> Hi Regenaxer....when I inspect with chrome, fieldset shows up as a subelement of form..thats why I was wondering
<sriram> but actually I realized that its not an issue...can get the parentNode if needed....so no problem,...(close to be able to setting canvas size dynamically)
<sriram> (thanks)
<Regenaxer> In lib/xhtml.l there is no form as such. It is the <post> function which builds the <form> element
<Regenaxer> (de <post> (Attr Url . Prg)
<Regenaxer> "<form enctype=\"multipart/form-data\" action=\""
<Regenaxer> (sesId Url)
<Regenaxer> (prin
<Regenaxer> (and *JS "\" onkeydown=\"return formKey(event)\" onkeypress=\"return formK
<Regenaxer> (prin "<noscript><input type=\"hidden\" name=\"*JS\" value=\"\"/></noscript>"
<Regenaxer> "\" method=\"post\">" )
<Regenaxer> (tag 'fieldset Attr 2 Prg)
<Regenaxer> (prinl "</form>") )
<sriram> yes I saw that form just passes to <post> which passes the attr to fieldset
<Regenaxer> yeah
<Regenaxer> Not sure why it came that way
<Regenaxer> fieldset is the visible part
<sriram> no issues...if i do happen to need i can always get parentNode I suppose...experimenting still..
<Regenaxer> yeah, or put a CSS for the form class
<sriram> yes..tried setting height of form that way..
<sriram> sure..css is another way
<sriram> (have to remember to clean cache each time css is changed :) )
<Regenaxer> T
<sriram> (just for reference fieldsetElement.form gives the corresponding form...)
<Regenaxer> ok
orivej has joined #picolisp
orivej has quit [Ping timeout: 256 seconds]
pierpal has quit [Quit: Poof]
pierpal has joined #picolisp
orivej has joined #picolisp
stix has joined #picolisp
<sriram> hi.. i have a small test program to experiment with dynamic canvas size (set as %)...when I maximize and unmaximize a few times the image stops displaying
<sriram> seems the mk.svg code stops getting called from drawCanvas..
<Regenaxer> Hmm, no idea ;)
<Regenaxer> Perhaps trace fome functions?
<sriram> ( I am suspecting the counter increment
<sriram> yes..engaged in tracing :)
<Regenaxer> Resetting it when the page gets freshly loaded?
<sriram> no...i dont
<Regenaxer> ok
<sriram> if i do a paste bin would you be able to quickly scan the mk.svg part...there are counter related
<sriram> intricacies that i am not sure i am doing correctly
<Regenaxer> ok, though I'm also not in the code mentally any more ;)
<sriram> ah ok...i paste https://pastebin.com/vCRrkhnX since i generated it :)..maybe tomorrow or so when you have a chance :)
<sriram> i have been successful with playing with static variables, and also dynamic canvas size..just this strange thing after few max/min
<Regenaxer> oh, quite long
<sriram> yes...sorry..was experimenting with OOP...pl. only look for mk.svg
<sriram> drawImage
<Regenaxer> yes, I see it
<sriram> drawCanvas...seems not to call mk.svg after the second max/min
<Regenaxer> Looks similar to pdfPage.l
<sriram> yes..except the counter
<Regenaxer> Why do you suspect *Cnt ?
<Regenaxer> libPdf increments in drawPage
<sriram> yes and i increment in drawCanvas...i think too late then
<Regenaxer> would be (csDrawImage (sesId (pack "!mk.svg?" (ht:Fmt This (inc '*Cnt))))
<sriram> i must increment before in drawImage, before calling csDrawImage
<sriram> just like pdfPage
<Regenaxer> Does the trace show a wrong count?
<sriram> the trace shows that after a few max/min....mk.svg is not called at all
<sriram> to be honest i am not sure how the count is actually used
<Regenaxer> it is only to force a refresh
<Regenaxer> should not matter for a stop
<Regenaxer> It is rather the draw animation probably
<Regenaxer> There was some timeout
<Regenaxer> requestAnimationFrame(function() {drawCanvas(id, 0)});
<Regenaxer> IIRC this triggers the animation loop
<sriram> maybe that then
<Regenaxer> yes, Dly
<sriram> because i added onresize events
<sriram> to the body
<sriram> and even that is not getting called
<Regenaxer> yeah, this may reset the animation
<Regenaxer> oh
<sriram> yes?
<Regenaxer> For a continuous animation, the second arg must be >0
<Regenaxer> (javascript NIL "onload=drawCanvas('$zappel', " *Delay ")")
<sriram> second arg to?
<Regenaxer> misc/canvas.l
<sriram> i set to -1
<sriram> not sure why :)
<sriram> from demo maybe
<Regenaxer> IIRC this is a single shot
<Regenaxer> yes, pdfPage does not loop
<Regenaxer> Look at misc/canvas.l
<sriram> oh i see
<Regenaxer> It loops permanently
<sriram> no misc/canvas.l....hmm
<sriram> do i have to install something
<sriram> perhaps demo/canvas.;
<sriram> (javascript NIL "onload=drawCanvas('$*FireGrid', 40)") ) )
<Regenaxer> Sorry! misc/canvas.l is from the wiki article
<sriram> np...I saw demo/canvas.l it has the >0 value
<Regenaxer> yes, forest fire is also good
<sriram> I changed it in my code...also moved (inc *Cnt) to just before csDrawImage
<sriram> but still no avail..drawCanvas is called but no mk.svg calls
<sriram> but it must be quite late for you there now
<sriram> its not something quick so perhaps we can pick up another time
<sriram> if something catches your eye pl let me know :)
<Regenaxer> Is 'drawImage' called?
<sriram> 1 sec checking
<Regenaxer> 'drawImage' triggers mk.svg
<Regenaxer> hmm, *Upd seems to be set
<Regenaxer> to 1
<sriram> yes permanently
<sriram> later i plan to optimize
<sriram> maybe too fast?
<sriram> drawImage seems to be called
<Regenaxer> What would be too fast?
<sriram> 40ms
<sriram> intervals...
<Regenaxer> should be fine
<sriram> yes...image is not very complicated...a grid and few rectangles
<Regenaxer> ok
<sriram> so yes drawImage is called...maybe I should do traceAll
<sriram> but that may be overkill
<Regenaxer> sometimes traceAll is too much
<Regenaxer> but perhaps you can see where it stops
<sriram> sure...as mentioned above...i dont want to disturb you more now...as it is quite late on your end...will message
<sriram> tomorrow about where my debugging led
<sriram> with traceAll etc
<sriram> in generall..i was very happy with the progress
<Regenaxer> ok, good :)
<Regenaxer> Yeah, I'm a bit tired. Just came out of ths shower after cycling one and a half hours
<sriram> as you can see lots of use of oop, read macros ....so learning a lot..and good fun :)
<Regenaxer> indeed
<Regenaxer> quite advanced
<sriram> nice! i should go this evening too when i get home
<sriram> thanks :) i was proud of it :) :)
<Regenaxer> :)
<sriram> so will talk to you tomorrow then...
<sriram> bye now...and thanks :)
<Regenaxer> ok, good night! :)
<sriram> good night!
<Regenaxer> :)
<sriram> :) now for glass of wine maybe
<sriram> to relax
<sriram> (for you)
<Regenaxer> yes, good idea!
<sriram> i only struggle with this for one hour more...then call it a day :) good night then, see you tomorrow :)
<Regenaxer> ok, Masako also agrees to some red wine :)
<sriram> perfect! :)
sriram has quit [Ping timeout: 252 seconds]
stix has quit [Quit: stix]
karswell has quit [Read error: Connection reset by peer]
karswell has joined #picolisp
pierpal has quit [Quit: Poof]
pierpal has joined #picolisp
freemint has joined #picolisp
<freemint> Good Evening
freemint has quit [Ping timeout: 256 seconds]
alexshendi has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]