Search
Sunday, 16th of September 2018, 15:48:20 UTC
15:57:59
shrdlu68
How is sxhash calculated for CLOS objects?
16:00:01
Bike
sxhash has to work ont he level of EQUAL, but two distinct standard-objects are never equal, so
16:01:39
shrdlu68
I wish to sxhash the subsequence of a sequence without subseq'ing, any idea how I can do this?
16:02:03
Bike
what are you using the sxhash for?
16:02:06
pjb
shrdlu68: you don't have to read each element of a sequence to sxhash the sequence.
16:02:30
pjb
shrdlu68: you can use just the two or three first elements, or the first the middle and the last one, etc.
16:03:34
shrdlu68
Bike: Array index (mod (expt 2 24)), disregarding collisions (for now)
16:04:23
Bike
you mean you want the hash code to be an array index? and you want two distinct EQUAL objects to have the same index
16:05:23
Bike
if you really want to avoid subseq, i suppose i'd just use my own hash function, and mix up the elmeents
17:39:01
shka_
shrdlu68: so you gave up on bit trie?
17:39:15
shka_
it really isn't that hard to make it work :-)
18:14:18
shrdlu68
shka_: I didn't give up, just evalutating options :)
18:17:09
shrdlu68
Haha, and I stopped inlining, which was messing profiling results. Found a major bottleck, now down to 5s with my 35kb test-file.
18:26:55
shrdlu68
shka_: sb-sprof results without inlining make much more sense: https://gist.github.com/shrdlu68/081a78c6196b676395ca518a268d9119
21:14:08
Xach
ACTION is happy to have lparallel
21:20:32
holycow
neat vid about lisp use: https://www.youtube.com/watch?v=svmPz5oxMlI
21:21:15
Xach
that is our own stylewarning!
21:26:11
j`ey
I was there while that was filmed!
21:27:28
holycow
neat. where was this filmed?
21:28:09
holycow
oh, it says it in the description, the interviewee has an almost canadian accent
21:31:47
k-hos
any ideas why calling (compile-file "test.lisp" :system-p t) in ECLs repl would emit a .fasc file instead of an .o
21:53:56
LdBeth
k-hos (IRC): I suppose it’s equivalent to byte-compile
21:54:45
k-hos
their examples on the site say :system-p t is supposed to make it emit .o files by invoking gcc
22:04:13
LdBeth
k-hos (IRC): on Darwin it works as expected
22:09:34
k-hos
windows 7, compiler is msys2 with mingw
22:10:12
k-hos
it probably thinks I don't have gcc, so it just defaults to .fasc
22:10:51
k-hos
but I can't find any information about how to manually specify the compiler, or get it to emit just .c files
22:21:33
LdBeth
k-hos (IRC): seems you have to build ecl from source to config compiler
22:22:24
k-hos
is the default for windows MSVC or something
22:31:31
oni-on-ion
k-hos: env vars? "$ CC=gcc make" ?
22:32:17
oni-on-ion
could you embed ECL instead ?
22:32:55
k-hos
I kind of wanted to skip having to do that if ECL can generate an exe for me
22:33:30
k-hos
environtment should be fine, since I am doing this all from msys2s bash
22:34:01
oni-on-ion
k-hos: and you've seen this? https://common-lisp.net/project/ecl/static/manual/ch26.html
22:34:22
oni-on-ion
ahh. afaik on my tablet (win8.1) i've got ECL going with mingw
22:36:55
k-hos
I hadn't seen it, but I'm not sure how it applies
22:38:11
k-hos
standalone program is what I am trying to get, preferably by compiling all files involved and not loading them at run time
22:39:56
oni-on-ion
k-hos: well. bulding programs and choosing a C compiler i think are very related concepts. you did say that you checked the manual and i did not intend to not believe you but i did a google search and thats where i ended up
22:40:21
oni-on-ion
i think if it loads C files at runtime that would be still just Compile Time.
3:31:40
beach
Good morning everyone!
3:45:51
no-defun-allowed
morning beach
Monday, 17th of September 2018, 3:48:20 UTC