freenode/#lisp - IRC Chatlog
Search
8:39:32
shka
loke: so ok: zmq has subscriptions, but as for the rest of the stuff: it is socket library
8:40:07
loke
shka: Right. That was my point really. I discovered that while it had “MQ” in its name, it's not really a message queue. It's a fancy socket library.
8:40:27
loke
I would have much less issue with it if it was called something without mq in the name :-)
8:40:47
ecraven
beach: I'm no expert on opentype, but there as a reason for most of the complexity. not saying it couldn't be done better, but it is the de-facto standard font format, it would be hard to replace it
8:41:00
ecraven
same for unicode, some very bad decisions were made, but there's no easy way to remedy that
8:41:46
loke
C++ is always a good reason for rewriting something. Unfortiunately he went to something that is only marginally batter, no? (C)
8:44:55
loke
shka: for your next project, why don't you give Rabbit a try? If you need anything slightly more capable. It's really a wonderlfy system. :-)
8:45:19
beach
ZombieChicken: Seems like a good fit for some problems. I have also seen people use it as a general-purpose language, but I am more doubtful about that kind of use.
8:47:44
loke
ACTION stares at his rendering of square roopts... That line... Tha aliasing. it makes my eyes hurt.
8:48:05
dmiles
ACTION uses Prolog for general perpose language.. Though many times i'll use it as a glue to FFI
8:48:12
loke
I may have to implement that line-join algorithm I found just so that I can make line-drawing use Xrender.
8:59:32
fm4d_
Hello, is there any way to have a string that spans across multiple lines (most programming language supports it via \ etc.) in common lisp? I've only found a way to do it in format control string. Thanks :)
9:05:05
fm4d_
Sorry, I've forgot to add that I would like that multiline string to be without newlines.
9:06:41
fm4d_
I can of course concatenate the two strings or remove the newline afterwards, but that feels dirty
9:09:48
loke
fm4d_: With the FORMAT trick, you can even have space at the beginning of the second line to line things up, FORMAT will strip those off. If you don't like that behaviour you can terminate each line with ~: instead of ~
9:10:41
ecraven
loke: any idea why elisp chose % instead of ~? doesn't ~ have precedent in earlier lisps?
9:11:21
loke
That said, Maclisp had FORMAT with pretty much the same syntax as CL and it is contemporary with Emacs.
9:12:42
loke
fm4d_: If you want to be really fancy, you could create a reader macro to provide custom syntax for that. :-)
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.