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
rob_w has joined #picolisp
aw- has quit [Read error: Connection reset by peer]
aw- has joined #picolisp
<rob_w> hi .. i get the following errror on make with my laptop --
<rob_w> llvm-link: lib.bc:1:1: error: expected top-level entity
<rob_w> ELF>��@@���1���HE��D��SH��H�=H��H��1���H��[�f.���SHc�I��I��1�H�������H���9�[�fDH�
<rob_w> llvm-link: error: loading file 'lib.bc'
<rob_w> make: *** [Makefile:41: picolisp.bc] Fehler 1
<rob_w> this is llvm 18
<abu[7]> Servus rob_w? Is this perhaps due to gcc-generated files?
<rob_w> dunno .. only change i did was to call gcc instead of clang .. but i think its a different step , isnt it
<abu[7]> ... because the linker complains
<rob_w> ah wait .. i unpacked the source again ,, maybwe i screwed it up
<rob_w> ok i got it now .. but i was hoping to get some debug during the make to see some details
<rob_w> ok if i switch CC from clang to gcc .. i get that lib.bc error
<abu[7]> remove .SILENT: ?
<abu[7]> ah
<abu[7]> so they use different object formats
<abu[7]> :(
<rob_w> so .. can i get this somehow .. not using clang ?
<abu[7]> Best would be to have it all clang
<rob_w> ok .. will try that for cross again
<abu[7]> 👍
<rob_w> clang-native-18.1.6-r0 do_compile - 1m32s (pid 381100) 2% |###
<abu[7]> 1 hour?
<rob_w> at least
<rob_w> ah its faster .. hehehe clang-native-18.1.6-r0 do_compile - 16m14s (pid 381100) 54%
aw- has quit [Quit: Leaving.]
rob_w has quit [Remote host closed the connection]
<beneroth> abu[7], I looked at the implementation of (cache) in lib.l - why does it convert the hash of the memomization key into a character? why (char (hash "X")) instead of using the hash directly ?
<abu[7]> The char is a symbol, so that its value field is used to store the payload
<abu[7]> (set (car "X") ...
<beneroth> aaah
<beneroth> I see
<beneroth> in such cases I always put the payload also into the idx and then used (lup) to find it again
<abu[7]> Yes, this is also a good way
<beneroth> hmm.. whats the difference?
<beneroth> if idx would be balanced, then it would make a difference, but that is not the case afaik
<abu[7]> You need to cons it
<beneroth> T
<abu[7]> Same space
<abu[7]> 1 cell
<beneroth> yeah consed cell or value of hash symbol
<beneroth> no difference in cell space
<abu[7]> The cons cell is part of the key then
<beneroth> T, but it doesn't matter for lup, and I think it also shouldn't matter for idx insert as the "no-duplicate-check" will already differ on the prefix and never look into the payload
<beneroth> only for deletion in idx it might matter I think
<beneroth> I think it boils down to if (set) and (char) is cheaper than (cons), no?
<beneroth> hmmm
<beneroth> just wondering
<abu[7]> I think no difference
<beneroth> the approach is elegant
<abu[7]> in speed or space
<beneroth> ok
<beneroth> so code readability and taste?
<abu[7]> T
<beneroth> thx
<abu[7]> The value is out of the way
<beneroth> T
<abu[7]> btw
<beneroth> might be nicer when printing the idx tree
<abu[7]> have you heard of SimpleX Chat messenger ?
<beneroth> no?
<abu[7]> Got a mail today
<abu[7]> whether to use pil in the UI
<abu[7]> I take a look
<beneroth> ?
<beneroth> the SimpleX author consider using pil in the UI?
<abu[7]> Not solely
<beneroth> SimpleX has an interesting concept
<abu[7]> T
<abu[7]> The issue is:
<beneroth> though I guess no support for multiple devices (for the same identity).. better privacy, but quite a UX limitation
<abu[7]> UI inside messages it seems
<abu[7]> yes
<abu[7]> extremely private
<beneroth> maybe that's even a case for MiniPico?
<abu[7]> possibuy
<abu[7]> ly
<abu[7]> just C
<beneroth> one could pre-define a DSL for widgets/widget functionalities, not turing-complete, so limitations and scripts can be validated before execution
<beneroth> like what JavaScript should have been if one would have cared about security and safety
<abu[7]> T
bjorkint0sh has quit [Quit: "Every day, computers are making people easier to use." David Temkin]
bjorkintosh has joined #picolisp