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
jibanes has quit [Ping timeout: 240 seconds]
jibanes has joined #picolisp
orivej has quit [Ping timeout: 260 seconds]
karswell_ has quit [Read error: No route to host]
karswell_ has joined #picolisp
<clacke[m]> I consider both an escape from the other
<clacke[m]> like when I was alternating studies and work. I enjoyed both because I had always been doing months of the other.
_whitelogger has joined #picolisp
karswell_ has quit [Remote host closed the connection]
karswell_ has joined #picolisp
karswell_ has quit [Read error: Connection reset by peer]
<m_mans> Hi all!
abel-norm has joined #picolisp
<cess11> morning
Regenaxer has joined #picolisp
<m_mans> Regenaxer: good morning!
<Regenaxer> Good morning m_mans!
<m_mans> I think there is a little bag in xhtml.l: <select> doesn't insert 'disabled' attribute for '<select>' itself, only for '<option>'
<Regenaxer> Hmm, I think this was for some reason
<Regenaxer> Perhaps to be able to *see* all, without being able to change it?
<Regenaxer> You could try to see what happens
<m_mans> e.g. form.js does that when change something
<m_mans> when I change something
<m_mans> I mean javascript part locks that anyway, but only by some user actions
<Regenaxer> I don't remember the details at all at the moment ;)
<m_mans> ok, np
<m_mans> just to inform you
<Regenaxer> Can you try?
<Regenaxer> What happens if you insert 'disabled' attribute for '<select>'?
<Regenaxer> The JS part only runs when something *is* changed
<m_mans> I can live with both ways. When <select> itself is disabled, it looks grayed and fully disabled, so I can't open the list
<Regenaxer> exactly, that's what I mean
<Regenaxer> The list should still be visible
<m_mans> Ok, so np in general
<Regenaxer> yeah, think so
<m_mans> how are you?
<Regenaxer> Fine, thanks!
<beneroth> Good morning Regenaxer and m_mans :)
<Regenaxer> Good morning beneroth
<m_mans> Good morning beneroth
<m_mans> :)
rgrau has quit [Ping timeout: 255 seconds]
orivej has joined #picolisp
<m_mans> they say that 64bit emu even works on Elbrus
cess11 has quit [Ping timeout: 240 seconds]
<Regenaxer> Cool
anjaa has quit [Ping timeout: 248 seconds]
<m_mans> but it shows error on login:
<m_mans> : : !? (get *DB (cdr Tree) (car Tree))
<m_mans> Bad DB file
<m_mans> I can't provide more details so far :)
<m_mans> hey, everything works
<beneroth> you forgot to open the DB with (pool) maybe? :)
<m_mans> they did something wrong with command line params
<beneroth> even when (pool) was never called, when you try to execute DB functions access to external symbols will be tried, resulting in this error if the external symbol could not be fetched
<m_mans> I think "-main" was missing
<beneroth> I suspect that is the function which calls (pool) :)
<beneroth> happened to me before
<m_mans> does 'native work in 'emu'?
<beneroth> afaik yes, but with some limitations (e.g. not more than 7? arguments)
<beneroth> Regenaxer, (native) in 'emu' ?
<m_mans> moment
<m_mans> ok, even (native) seems to work
<Regenaxer> How about the unit tests @lib/test.l
<beneroth> T
<m_mans> could someone suggest anything to test performance?
<tankfeeder> m_mans: performance of what ?
<beneroth> m_mans, is this about support for this russian CPU architecture?
<Regenaxer> (fibo 36) ?
<m_mans> ah, nice
<m_mans> tankfeeder: performance of emu on Elbrus
<Regenaxer> But emu is far too slow anyway
<beneroth> Regenaxer, depends for what :) and might still be ok compared to other choices.
<m_mans> ~/picolisp/pil @lib/test.l +
<m_mans> right?
<Regenaxer> yess
<m_mans> elbrus8c-12:~/picoLisp $./pil @lib/test.l +
<m_mans> OK
<Regenaxer> Great!
<Regenaxer> So it was just the invocation that was wrong
<m_mans> where is fibo? ^)
<m_mans> :)
<Regenaxer> misc/fibo.l several versions
<m_mans> Ebrus emu was 100 times slower than native 64bit on my laptop
<m_mans> *is*
<Regenaxer> ok. emu itself is 10 to 20 times slower than native
<tankfeeder> m_mans: no gcc, right ?
<m_mans> how can I compile emu on Intel?
<Regenaxer> $ make emu
<m_mans> tankfeeder: as I know, they have analog of gcc
<tankfeeder> only gcc will work.
<Regenaxer> Maybe emu does not need gcc, as it uses no dynamic arrays?
<Regenaxer> it is still pil64, ie assembly code
<tankfeeder> T
miskatonic has joined #picolisp
roundsf has joined #picolisp
<tankfeeder> first part of day 8 solved.
miskatonic has quit [Remote host closed the connection]
abel-norm has quit [Ping timeout: 255 seconds]
<tankfeeder> starting new one
<m_mans> tankfeeder: wow!
<m_mans> bb all
cess11 has joined #picolisp
cess11_ has joined #picolisp
anjaa has joined #picolisp
ChanServ has quit [*.net *.split]
rgrau has joined #picolisp
ChanServ has joined #picolisp
alexshendi has joined #picolisp
rgrau has quit [Read error: Connection reset by peer]
alexshendi has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
rgrau has joined #picolisp
alexshendi has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
alexshendi has joined #picolisp
<tankfeeder> damn, solved.
<beneroth> why 'damn' ? :)
<beneroth> was it hard, or too simple?
<tankfeeder> second part too.
<tankfeeder> simple for me.
<beneroth> you had a lot of training with all your algorithm implementations.
<tankfeeder> :)
<beneroth> :)
abel-norm has joined #picolisp
<beneroth> (pick 'func 'list) is equivalent to (for 'sym 'list (T 'func)) right?
<beneroth> (I mean both stop iterating over the list as soon as 'func returns Non-NIL)
<tankfeeder> yeap
<tankfeeder> reference says:
<tankfeeder> (pick 'fun 'lst) is equivalent to (fun (find 'fun 'lst)).
<tankfeeder> T inside for is expensive
<tankfeeder> every T-NIL in car in any loop-do-for is expensive
<beneroth> so (pick) would be the better choice?
<tankfeeder> of course.
<tankfeeder> try.
<beneroth> makes sense. thanks!
alexshendi has quit [Ping timeout: 240 seconds]
<cess11> beneroth: when in doubt, 'bench
<beneroth> T
<joebo> tankfeeder: really neat to see you doing adventofcode in pil
<joebo> I've been away from the chan for a few days/weeks and had been doing it in J
<tankfeeder> uh
<tankfeeder> insane :)
<cess11> I have a crude word counting routine I'm looking to improve. Is the '+IdxFold an index that allows both Word and word to get hold of an object with either in that field, or have I forgotten entirely how that index is supposed to be used?
<joebo> I am going to review your solutions to compare :)
<joebo> I'm only on day 7... got tied up the past few days
<joebo> thanks for sharing
<tankfeeder> joebo: comments and patches are welcome
<joebo> tankfeeder: looks good to me
<joebo> I played around with day 1 using a similar approach to how I did it in J
<joebo> this is part1 day 1
<joebo> (let (Input '(1 1 2 2) N (length Input)) (sum '((X Y) (if (= X Y) X 0)) Input (head N (nth (apply circ Input) 2))))
<joebo> this is part 2 day 1
<joebo> (let (Input '(1 2 1 2) N (length Input) Skip (/ N 2)) (sum '((X Y) (if (= X Y) X 0)) Input (head N (nth (apply circ Input) (+ 1 Skip)))))
<joebo> probably could use a pp but I prefer the one liners for playing in the repl
<joebo> I do like your use of mapcon though too
<joebo> anyhow back to work :)
<joebo> for comparison... this was my J for pat 1 and part 2
<joebo> day1a =: [: +/ "."0 @ (] #~ 1&|. = ])
<joebo> day1b =: [: +/ "."0 @ (] #~ (|.~ (2%~#)) = ])
rgrau has quit [Ping timeout: 240 seconds]
anjaa has quit [Remote host closed the connection]
cess11 has quit [Quit: Lost terminal]
cess11 has joined #picolisp
Regenaxer has quit [Ping timeout: 268 seconds]
Regenaxer has joined #picolisp
abel-norm has quit [Ping timeout: 248 seconds]
alexshendi has joined #picolisp
alexshendi has quit [Ping timeout: 248 seconds]
orivej_ has joined #picolisp
cess11__ has joined #picolisp
miskatonic has joined #picolisp
cess11_ has quit [*.net *.split]
orivej has quit [*.net *.split]
viaken has quit [*.net *.split]
viaken has joined #picolisp
miskatonic has quit [Remote host closed the connection]
michelp has quit [Ping timeout: 258 seconds]