beneroth changed the topic of #picolisp to: PicoLisp language | The scalpel of software development | Channel Log: https://libera.irclog.whitequark.org/picolisp | Check www.picolisp.com for more information
aw- has quit [Quit: Leaving.]
aw- has joined #picolisp
<kced> hmm a better example in the docs would be helpful
<beneroth> T
seninha has quit [Quit: Leaving]
chexum has quit [Remote host closed the connection]
chexum has joined #picolisp
<abu[m]> Indeed, there is no example in the example applications
<tankf33der> i gonna implement this probabilistic algo and pass all tests i have on it
<abu[m]> Nice!
clacke has joined #picolisp
<tankf33der> implemented, extremely slow. not practically usefull.
<tankf33der> because of exponentiation of big numbers
<tankf33der> and modulo, all these are slow on big input.
<abu[m]> I see, ok
seninha has joined #picolisp
<tankf33der> test failed, issue closed.
<tankf33der> this one fast on any input and extended tested.
<abu[m]> yeah, perfect
seninha has quit [Quit: Leaving]
seninha has joined #picolisp
clacke has quit [Read error: Connection reset by peer]
<Hunar> Hello, first time sending video, i hope it looks ok
<Hunar> Oh no, the text is wrong
<abu[m]> Seems to be PilBox
<Hunar> I either make a mistake or there is a bug when using canvas in pilbox .. touching the canvas speeds up the animation .. then releasing my finger makes it go wild
<abu[m]> Perhaps the finger triggers a POST so that the animation timer gets confused?
<Hunar> I think so, although I'm not good at web .. is there a workaround? I saw this in WSL too
<abu[m]> In the cases I used canvas I never saw such behavior
<Hunar> I'll send the code to you to test it .. I modfied demo/canvas.l
<abu[m]> Hmm, I just see I can produce this effect
<abu[m]> With the old zappel function
<abu[m]> It must be as I thought
<abu[m]> The finger produces HTTP events
<abu[m]> Yes, kind of the same
<abu[m]> it is also here: https://picolisp.com/canvas
<abu[m]> If you call that in a mobile browser and touch with a finger ...
<abu[m]> Hitting a button Slower or Faster normalizes it
<abu[m]> No idea ☺
<Hunar> Yeah, same thing is happening to the plot and it gets normalized that way
<Hunar> Is there a solution?
<abu[m]> Seems the touch event is not consumed
<abu[m]> Does a mouse click in a desktop browser do the same? (I have no desktop here)
<Hunar> I remember seeing the same in desktop when using WSL .. I may try it tomorrow to be sure
<Hunar> but it wasn't the same (it was weirder)
<abu[m]> This can probably be fixed, but I forgot the details about Canvas atm. Needs thorough study ;)
<abu[m]> i.e. handling of clicks in (drawCanvas)
<Hunar> on desktop it was veeeery slow, I had to click and move the mouse for a couple seconds to make the canvas go at normal speed then when I release the mouse everything is normal .. so everytime I needed to warm it up
<abu[m]> A click, drag or double click also causes calls to (drawCanvas)
<abu[m]> So it probably needs to be handled
<abu[m]> Like in the chess program
<Hunar> I hope it would be figured out soon :)
<abu[m]> I have several applications doing such kinds of mouse handling in Canvas
<Hunar> Is the problem from pil or javascript
<abu[m]> None of both. It is by design
<abu[m]> See the comments in @lib/canvas.l
<abu[m]> starting line 6
<abu[m]> or the OSM demo
<abu[m]> (de drawCanvas (This Dly F X Y X2 Y2)
<abu[m]> (cond ((gt0 F) # Click
<abu[m]> Clicks etc. need to be ignored
<abu[m]> ((le0 F) # Drag
<abu[m]> The simplest is to draw only if 'F' is NIL
<abu[m]> I think that should solve it
<Hunar> I'll try right now
<abu[m]> Good, thanks!
<abu[m]> If ok, then I'll also fix these old demos
<abu[m]> ... tomorrow
<Hunar> almost
<Hunar> start is fine, moving is now fine .. but when I release my finger the animation gets updated 2 times each frame
<Hunar> i did (ifn F (make ...
<abu[m]> (unless F ...
<abu[m]> hmm
<abu[m]> Too late today. I check tomorrow.
<abu[m]> I forgot all ☺
<Hunar> No problem :) I have a question for tomorrow ..
<abu[m]> Your free day anyway :)
<Hunar> Yep :D
<abu[m]> Cool! So let's talk ☺
<Hunar> My life is not good for programming, i was supposed to work on this weeks ago.. I wanted to show live camera feed on canvas when using PilBox .. should I try translating javascript way to get camera or should I talk to java api of android to get camera
<abu[m]> I though only Java can be used on Android to access the camera
<abu[m]> I don't know if this is possible with JS
<Hunar> I don't know, I got a pure javascript code that shows camera in a canvas and though this can be translated to PilBox
<Hunar> Lets talk tomorrow :) Its very late for both of us :)
<abu[m]> JS cannot acces the Camera classes
<abu[m]> Yeah, better tomorrow
<abu[m]> Have a good night!
<Hunar> Good night abu :D
<abu[m]> ☺/
seninha has quit [Quit: Leaving]
seninha has joined #picolisp
calle has joined #picolisp
genpaku has quit [Remote host closed the connection]
genpaku has joined #picolisp
seninha_ has joined #picolisp
payphone_ has joined #picolisp
casaca_ has joined #picolisp
casaca has quit [Ping timeout: 244 seconds]
payphone has quit [Ping timeout: 244 seconds]
seninha has quit [Ping timeout: 244 seconds]
payphone_ is now known as payphone
casaca_ is now known as casaca
calle has quit [Ping timeout: 252 seconds]