freenode/lisp - IRC Chatlog
Search
7:42:14
axion
Does anyone know of a macro someone has written which extends DEFUN to add a declaim for ftype/inline?
7:42:46
axion
I have written one, but I cannot work through the edge case that is the syntax for &key arguments in an ftype proclaimation
7:50:29
axion
The problem is I want to inform the DECLAIM of the type of the keyword arguments in the form they are expected in such as: &key (:min single-float) (:max single-float)
7:51:47
Bike
this is supposed to mean that the argument is called out-vec, the key arg is :out-vec, the default value is 1, and it's typed as an "axvec"?
13:20:20
beach
Should be (documentation name 'structure) or (documentation (find-class 'name) 'type)
13:24:10
ogamita
Notice that there are macros that allows you to define classes using the same syntax as defstruct, if that's the reason.
13:26:23
axion
beach: I have been over this a few times here. It's to have typed structs, that compile down to arrays except with named slots for accessing elements.
13:29:39
axion
and also for code that is quite a few years old that is a beast to maintain, but it is the result of a friend and I disassembling a ton to write an efficient linear algebra library.
14:09:25
ogamita
axion: normally, changing the defstruct option (or s/defstruct/define-structure/ to get CLOS classes) will left the other program properties invariants and can be done rather easily.
16:31:27
beach
I just created two more (very small) tasks on the Lisp Guild site: https://github.com/Lisp-Guild/lisp-todo/projects/1
16:41:28
beach
Anyway, time for me to go cook dinner, so I won't do anything else until tomorrow morning (UTC+2).
17:48:22
jackdaniel
how to install custom lisp build (for instance sbcl compiled by me) in it from specified path under known name
18:42:34
TruePika
I can't figure out how to print some ANSI escapes without advancing the column (for pprint etc.)
18:46:04
TruePika
shrdlu68: I don't know if screen does (I'll check in a bit), but PuTTY does for sure
18:47:48
shrdlu68
strange. So when you ouput the code for color yellow, for example, the pointer position advances?
18:49:02
TruePika
(progn (pprint #<something with escapes>) (pprint-tabular ...)) doesn't have the first column align as expected
18:52:37
TruePika
I output 16 characters which don't advance the TTY cursor (including #\Esc), with the tabbing interval at four, it looks like there are 20 extra spaces of indent
18:54:31
TruePika
I'm now also curious about how double-width characters are treated, both by screen and Lisp (I know PuTTY and IIRC Vim work with them correctly)
18:55:16
shrdlu68
TruePika: Would it make a difference if you used format or some other means to print the codes?
18:56:05
TruePika
I'm using format, actually (so I can include the ^[ without literally typing it and potentially confusing the TTY)
18:58:42
TruePika
Ideally, I should be able to say "this is zero-width, don't pprint newline or touch the column position"
18:59:49
TruePika
aside from trying some sort of printf() call which might break with some stream types