freenode/#lisp - IRC Chatlog
Search
3:50:34
loke
pjb: is cll actually useful anymore? I check there once in a while and there are like 3 people posting there (if you exclude wj :-) )
3:51:13
pjb
loke: it's asynchronous, and you can include lots of code in a single message. So it would be more efficient than irc for a lot of stuff we do hereā¦
3:53:18
pjb
(setf (car foo) 3) can expand to (let ((val 3)) (rplaca foo val) val) in ccl: (macroexpand-1 '(setf (car foo) 3)) #| --> (ccl::set-car foo 3) ; t |#
3:53:35
loke
sthalik: Also note that CL's maths spec is more thorough than C's. For example, it defines complex results for trignometric operations and also support rationals.
3:54:24
loke
pjb: Well sure, I don't disagree with you there. But all the ability to type long messages aren't work much if there is no one read them. :-(
3:54:39
aeth
sthalik: I'm not sure if there's a copysign, but there's a signum, so you don't really need copysign
3:56:50
sthalik
aeth, can you paste the disassembly when specialized for float with speed no debug/safety+no prologue please?
3:58:55
aeth
It looks like the version of SBCL I'm using doesn't optimize signum for single-float (i.e. it calls the function, even though there's probably a simpler way)
4:22:23
drmeister
Does anyone use the pzmq messaging library? I have some questions I'd like to ask offline.
4:24:20
drmeister
I've got some request/reply messages that I am certain are absolutely correct - but zeromq is dropping them with no feedback.
4:32:11
sthalik
stupid C++ generates position-independent code, hence indirect addressing through rip
4:35:44
aeth
sthalik: bring this up in #sbcl when stassats is there and maybe stassats will do something about it
4:36:24
aeth
i.e. write something in CL (with type declarations) and disassemble it and complain about the resulting disassembly
4:39:01
loke
aeth: Then, even better, is to use DEFOPTIMIZER and DEFINE-VOP to make it use the proper instructions.
5:19:11
aeth
I think (defun copy-sign (magnitude sign) (declare (single-float magnitude sign)) (* (abs magnitude) (signum sign))) is the CL equivalent that is underoptimized but there might be something better.
5:41:52
White_Flame
you can use ffi to bit-cast integer mask operations on top of the floats, to implement the C-like asm solution
5:45:22
pjb
Yes, you can make your lisp program as brittle and erroneous and crash-prone as any C program.
5:50:31
White_Flame
it's not brittle. It's a word of lisp-owned foreign memory that always follows proper casting convention
9:25:13
Shinmera
Hoorah, Radiance 2.0 is now out. http://shirakumo.github.io/radiance/?t=2.0#1.0_-%3E_2.0
10:36:56
makomo
Shinmera: neat, good job. :-) the "[SRC]" links seem to be broken though -- "file:///..."?
10:45:01
makomo
Shinmera: :-). also, nice work on the docs. i'm always pleasantly surprised whenever i find a project of yours, because it usually has a wall of text (in a good sense) accompanying it
10:46:26
makomo
and it's not just the classical "here's an example" thing. you actually describe the concepts and introduce the terminology, i.e. give the person a theoretical understanding of the project
15:40:58
Shinmera
I'm also happy to announce that another Lisp website is finished: http://studio.tymoon.eu/ https://github.com/Shirakumo/studio