orivej has quit [Ping timeout: 260 seconds]
mtsd has joined #picolisp
rob_w has joined #picolisp
mtsd has quit [Quit: Leaving]
<
aw->
Regenaxer: here?
mtsd has joined #picolisp
<
aw->
i'm looking for a good way to find a word in a string that's set in a variable
<
aw->
i was previously using (from) and (till) on an input stream
<
aw->
but now the string is in a *Variable
<
aw->
can't use (from).. unless i use (out ..) seems strange
orivej has joined #picolisp
beneroth_ has quit [Quit: Leaving]
beneroth has joined #picolisp
<
beneroth>
hehe aw-, I know the feeling
<
beneroth>
ugly method: use (pipe)
<
beneroth>
functional or non-functional depending on your need: use (match '(@Wildcard ~(chop YourWord) @Rest) (chop Str)) ...
<
beneroth>
then maybe use (head 'lst 'lst) as predicate function combined with (map) ?
<
beneroth>
what is the desired result?
Nistur has quit [Ping timeout: 256 seconds]
Nistur has joined #picolisp
<
tankf33der>
next task will be:
<
Regenaxer>
aw-, sub? does not help
<
Regenaxer>
I/O is definitely not good
<
Regenaxer>
General string processing is best with 'chop' and list functions
<
Regenaxer>
e.g. 'match'
<
Regenaxer>
tankf33der, good
<
Regenaxer>
but to just test for substrings is 'sub?'
<
aw->
yeah (pipe) is not good for this use case.. i guess i have no choice with (chop)
rob_w has quit [Remote host closed the connection]
<
Regenaxer>
Can anybody tell me why these two lines do not work in a JS file?
<
Regenaxer>
function foo() {alert("OK")}
<
Regenaxer>
document.onload = foo();
<
Regenaxer>
while this works:
<
Regenaxer>
document.onload = function() {alert("OK")}
<
Regenaxer>
NO! Opposite!
<
Regenaxer>
The single line does not work
<
Regenaxer>
Yes, aw-, (chop) is fine
<
Regenaxer>
relatively efficient, and you have the full power of Lisp to handle the characters
orivej has quit [Ping timeout: 260 seconds]
<
tankf33der>
Regenaxer: maybe becuase it requires function name, not body
<
Regenaxer>
yes, looks like. I
*hate* JS
<
Regenaxer>
Total mess
<
tankf33der>
I dont know it, I am safe.
<
Regenaxer>
Safe because avoiding it?
<
Regenaxer>
I try to avoid JS as much as possible, reduce to an absolute minimum
<
Regenaxer>
But now I need a little. Writing new GUI framework
<
beneroth>
my condolences
<
Regenaxer>
I started the GUI already in 2019, but then stopped to focus on pil21 first
<
Regenaxer>
Let's see how far I get
<
beneroth>
interesting. I'm excited to see how you do it this time :)
<
Regenaxer>
me too :)
<
Regenaxer>
I want to completely separate logic from HTML
<
beneroth>
hehe I know the feeling
<
beneroth>
haven't yet found the ideal solution
<
beneroth>
got some ideas, but need to test it out
<
Regenaxer>
I think I know now what to do
<
Regenaxer>
It boils down to a pure PLIO/SSE <-> XMLHttpRequest protocol
<
Regenaxer>
Drawback is that the GUI mandates JS now
<
Regenaxer>
But the old GUI is still there, so OK
<
beneroth>
sounds like you want an interpreter on client side to which you can send arbitrary plio structures?
<
Regenaxer>
opposite
<
beneroth>
hmmm...isn't opposite what you have now...
<
Regenaxer>
Client (XMLHttpRequest) -> Server
<
Regenaxer>
Server (PLIO/SSE) -> Client
<
Regenaxer>
Client can be any fancy framework
<
Regenaxer>
I don't care
<
beneroth>
might be a good solution business-wise
<
Regenaxer>
Must just embed some JS calls
<
beneroth>
I'm not convinced the fancy client frameworks are meaningful at all
<
Regenaxer>
I'm tired with designers
<
Regenaxer>
me neither
<
Regenaxer>
Let me investigate more
<
Regenaxer>
I supply a plain HTML as before, for my own apps
<
Regenaxer>
But if they want fancy stuff, they can easily interface
<
beneroth>
fancy framework do like JSON interfaces on server side
<
beneroth>
without any html
<
Regenaxer>
thats also fine
<
beneroth>
everything constructed client side
<
beneroth>
that you could provide. should make designers happy.
<
Regenaxer>
they must just call my lib JS
<
beneroth>
well web developers
<
beneroth>
afterwards big surprises why the website is so slow...
<
Regenaxer>
hehe, yes
<
beneroth>
but then again, the low development standards allow pilApps to shine pretty easily :P
<
beneroth>
afk, bbl
<
Regenaxer>
tomorrow?
<
beneroth>
I plan to participate :)
<
Regenaxer>
17:00 :)
<
beneroth>
will be back online here in a while, time for lunch :)
<
Regenaxer>
As we decided last time, I'll repeat stuff from last time
<
Regenaxer>
ok, enjoy!
<
Regenaxer>
I'm away now too
<
beneroth>
Regenaxer, ok
beneroth has quit [*.net *.split]
aw- has quit [Quit: Leaving.]
beneroth has joined #picolisp
<
tankf33der>
Qr decomposition failed, too much nasty, i need to chill something for warmup
<
beneroth>
Qr? or Qt?
* beneroth
doesn't like the C++ style of Qt
<
beneroth>
magic much...
<
Regenaxer>
It is about matrixes, here as QR codes
<
beneroth>
that is probably nicer :D
mtsd has quit [Quit: Leaving]
orivej has joined #picolisp