Xliff m: my $a = 0x5a; $a.base(16).say 00:00
camelia 5A
tbrowder yes, that works too 00:01
i’m trying to get the glyph (unicode char) for decimal 90 00:03
m: my $c = 90; say $c.chr 00:04
camelia Z
botato I just needed to add filter to get ltrace to show calls from libraries loaded dynamically later: ltrace -x '*@libxml2.so.2' raku raku-libxml.raku 00:05
timo botato: you should be able to trace calls made by NativeCall with the MVM_nativecall_invoke function where all invocations should go through
oh, cool
tbrowder ok, that works. i’m having trouble with doing that in a program 00:06
botato actually yea MVM_nativecall_invoke seems like a better idea, ltrace shows tons of output, all internal calls within the libxml2 library, whereas that should just show the calls raku is making to libxml2 which would be more helpful 00:28
00:49 yewscion joined
Xliff So what's the best way to use MVM_nativecall_invoke? Set a breakpoint? 00:53
00:54 yewscion left
timo in gdb, you can set a breakpoint, probably in a different line than the entry, honestly, then add "commands" with a bunch of prints for interesting things, maybe an MVM_dump_backtrace(tc) if you want to see the raku language backtrace as well, and make the last command be "continue" so after gdb hits the breakpoint and outputs all the stuff it immediately continues 01:02
that can of course give a boatload of output, so YMMV what exactly you need
but of course you can also set a condition for the breakpoint
01:05 yewscion joined 01:29 yewscion left 01:30 yewscion joined
Xliff timo: Can you set these in a config file or something? 01:41
I'd like to build up a library of this stuff. 01:42
tbrowder hi, considering a range of integers from 1 to N for Unicode decimal code points, is there a way to detect a non-printable glyph ( 01:43
timo there's a ~/.gdbinit that you can put stuff like that into, and you can define functions in it i think? i haven't worked with that yet
tbrowder before you use it?
timo there's the unicode categories, would that help? 01:44
like letter and its subcategories, symbol and its subcategories, etc
01:45 japhb joined 01:49 Manifest0 left
tbrowder yes, that should help, but i haven't found it in the docs in a search--still browsing... 01:49
ah it's in regexes... 01:53
and i found the list of props. use ".uniprop" to avoid regex, that's what i'm looking for 02:00
02:20 librasteve_ left
tbrowder looks i want to skip code points with .uniprop('propcode') values of M, Z, and C 02:21
hm, still getting the ? in a box for some chars... 02:22
timo it depends on your font, of course :/ 02:25
and not just the font that's currently chosen by your terminal emulator or browser, but also the list of fallback fonts that it will choose from
there might actually be an ansi escape sequence that lets you ask your terminal for whether it has something for a given sequence of codepoints? that's of course something that's probably only in some and not in other terminal emulators 02:27
tbrowder of course, how stupid of me. i was just using whatever my system has for a terminal!
timo printable is a very "local" property
you can have a font that has glyphs in the private use area of unicode 02:28
tbrowder you are right, thnx
timo then the question of "printable" becomes extra thorny
tbrowder yes, i will be using good opentype fonts with 2000+ printable glyphs so there shouldn't be many "bad" glyphs 02:31
02:41 kylese left, kylese joined 03:15 kylese left, kylese joined
guifa or also how do you consider a combiner? they're printable but technically only in combination with others 03:22
or the local codes they use for emoji flags , originally designed to be nonprintable but in combination they make a printable flag 03:23
03:51 zetaaaa left
guifa Antonon: have you had any luck running Stable Diffusion locally perchance? I know you're on a Mac too 04:53
05:44 teatime left