libera/#commonlisp - IRC Chatlog
Search
1:03:33
phantomics
Appreciate the examples Bike, I'll try running something like that and see how it profiles
1:04:57
Bike
oh, and also i think sbcl can use range information about the dividend in its optimization, so if you can provide that information for your indices it could help
1:10:08
phantomics
Right, the CPU will make a difference here, M1s apparently have very fast integer division, so I may want to try with Stas's SBCL port
1:11:25
Bike
you could even try to do something fancy where your thing tests which implementation is faster on the actual machine and then uses that
1:13:19
phantomics
That's something I've been considering, an autotuning system, it would be helpful to determine the cutoff point for when to add a new thread to a given transformation on an array of a given size
1:15:33
Bike
cl-jpeg tries to do this, but it's a little janky https://github.com/sharplispers/cl-jpeg/blob/master/jpeg.lisp#L312-L361
1:18:38
Bike
yeah, which is just a boolean. then the quantize-block macro decides what to expand into based on that variable.
1:26:13
phantomics
Pretty simple, I was envisioning a big table of values for each operation. Though with my loop-fusion system such a technique may only matter for single-stage transformations of big arrays
1:46:03
lagash
I'm looking into coding some sort of parsing / generating library for LDraw (standard file format for LEGO designs) and I'm not entirely sure where to start. I've done stuff with PEGs and other parsing grammars before, but in other languages. What would be something I should look into for bidirectional LDraw<->Sexp?
1:53:31
phantomics
lagash: You could take a look at https://github.com/eugeneia/maxpc for building parsers, be advised it's AGPL-licensed though
1:59:19
lagash
I'm not too enthused about it not implementing packrat parsing as well as being AGPL'd
2:05:53
phantomics
As far as writing back to LDraw it looks like any option would involve significant work, I see the format is unique and not based on XML or anything like that
2:07:07
phantomics
I see there's https://github.com/JoshTheDerf/LDRParser that can convert LSD -to- JSON, but converting from JSON to LDR is still a todo, if it was implemented you could generate JSON from CL to give to it
2:12:13
lagash
And I was meaning more, that the parser and the writer were integrated together, versus having two libraries, one for parsing, the other writing / generating
2:47:50
phantomics
That would be a good design choice for your library, making it integrated like that, but I don't know of any tool that makes that particularly easy, I expect you'd need to built it from scratch with a bunch of (format) calls
7:16:24
contrapunctus
Who here was working on reproducing the spec in a modern format from some permissively-licensed source?
7:25:15
beach
contrapunctus: scymtym worked on a parser for the dpANS TeX source, and he is able to produce nice HTML and also a format for a CLIM-based browswer.
8:20:41
jmes
I have an unorthodox directory where I need CFFI to look for .so files, how do I tell CL to look there?
8:44:42
jmes
I found out cffi:load-foreign-library has a :search-path keyword for this. But it's called from elsewhere, so never mind me.
11:55:41
contrapunctus
I'm trying to install cl-inotify, and I get this condition - https://paste.rs/Jkh I've tried installing libinotifytools0-dev, and restarting the Lisp process.