freenode/#lisp - IRC Chatlog
Search
9:15:44
fm4d_
For now I am happy to be able to solve some real world problems in clisp without constantly searching in books and frantically googling :D
9:32:50
loke
ym: you want to type CL code in emacs and have it run in the CL? Or you want to run a CL comamnd from within Lisp and have it pass Emlisp code for execution in Emacs?
9:36:47
ecraven
look in contrib/slime-repl.el, around line 1710 (defun slime-repl-event-hook-function ..)
9:39:01
ym
I want to use emacs as UI-frontend to my CL program, but everything points me out that it isn't the way.
9:59:57
ecraven
shka: depending on what you want to interface with, slime/swank might get in the way more than it helps
10:14:44
ym
I'd be fine with CL-implementation-independent Emacs-frontend, and seems like just digging into slime/swank is exactly what I need. Reading it's docs. Thanks for help.
10:31:41
dim
mm, I just discovered today that in SLIME C-c C-c is more like C-M-x than like C-c C-e, and that I like C-c C-c a lot, when I used to only use C-M-x
11:12:32
dim
I know I prefer C-c C-l to C-c C-k for whole files, in order to avoid having fasl files around, but for defun forms it seems not to do that
12:55:06
dim
mmm, not quite there yet with taming SBCL, or rather understanding what parts of the code are consing, I guess
13:45:58
dim
in that case though I think I can use a streaming API instead of packing things in-memory in a batch, with the ZS3 stream support
13:52:22
dim
the code already does (sb-ext:gc :full t) each time it gets rid of a batch, to hint SBCL
16:09:02
oleo
loke: i just used :plot 2d (expression) sin(x) (variable) x (lower bound) -5 (upper bound) 5 to get a plot
16:23:59
oleo
just not sure why output-translations are not defined in quicklisp for the local-projects stuff by default....
19:23:43
dim
the run includes parsing a command language, which returns a lambda form, that is then compiled
19:26:25
scymtym
if you call COMPILE at runtime, some amount of compiler stuff is going to be in the profile (disregarding what PCL might add)
19:26:40
dim
pgloader in that profiled run loaded 121746 rows (36.3 MB) in 2m23.802s, so the compiling shouldn't be leading the profile, that said it's a multi-threaded program, does the profiler knows how to profile multiple threads?
19:28:23
dim
retrying with options (:max-samples 10000 :mode :alloc :report :flat :threads :all :reset t), that should help, maybe
19:30:57
scymtym
dim: if you are adventurous (and your SBCL version is recent enough), you could try https://github.com/scymtym/clim.flamegraph/tree/future to get a more nuanced view
19:33:27
aeth
I notice a lot of things in sprof not directly related to my program. sb-profile seems a lot more useful
19:37:02
dim
though I see calls in the trace that don't seem to belong to the pgloader main thread at all, so I'm quite confused
20:13:46
jeosol
dim: sometimes it pays to leave it for a while and come back, allowing the brain to relax
20:21:38
comborico1611
raynold: Yeah, I'm having a decent day, as well. I think it's because the school children are getting out.