freenode/#lisp - IRC Chatlog
Search
14:56:20
pjb
ebrasca: optimizing compilers already transform (* 3 x x) into (let ((reg (* x x))) (+ reg reg reg)) !!!
14:56:49
pjb
ebrasca: try it in sbcl, I wouldn't be surprised that both (* 3 x x) and (+ (* x x) (* x x) (* x x)) compile to the same thing.
15:01:26
jackdaniel
or if you hire a person to rewrite the code, in this spirit we could say that any compiler optimizes anything into whatever, because it may be rewritten by some tool or a person ,)
15:02:18
jackdaniel
I wouldn't split that hair in four but some people do it a lot, so I thought I'll join the party
15:12:09
jackdaniel
I don't think that quicklisp is a sane requirement for testing gcc optimizations (also ditto, "in this spirit we could…")
15:13:53
pjb
jackdaniel: use the lisp REPL as a shell! No choice anyways, chsh /usr/local/bin/ccl has been done.
15:15:25
jackdaniel
^ completely fails as the argument for the thing discussed (a is b because c, but hey, you may z) - I had my share of entertainment, see you \o
15:16:05
pjb
jackdaniel: I demonstrated that gcc has no problem compiling (* 3 x x) if you use linc as pre-processor!
15:16:49
pjb
jackdaniel: and as the maintainer of ecl, you should be ashamed of your objection, since ecl compiles (* 3 x x) with gcc!!!
15:45:08
PuercoPope
jasom: One of the main problems I've encountered with JSCL is that it needs 'run-time' support for mapping CL objects to the semantics of JS. You mentioned the numeric tower, bit-vectors also come to mind. Given that wasm can also export functions to the host (JS in the case of browsers), what do you think of using wasm to implement things like integer arithmetic and have JSCL rely on them?
16:33:14
reepca
Is there a way for initforms in DEFSTRUCT to refer to each other? For example, I've got a queue struct and it needs the tail to initially be the head, and the head to initially be a fresh cons cell
16:35:00
Shinmera
you can use the :constructor and make the tail be &optional, referring to the head.
17:15:48
jackdaniel
pjb: essentially what you say is falsehood, A + B = B; where A is not 0 (licn + gcc = gcc), so it doesn't, well, add up. when you take everything verbatim at least make your claims logical
19:17:40
jasom
PuercoPope: that's fairly reasonable, as is having JSCL compile to an IR and have WASM interpret the IR.
19:23:35
PuercoPope
jasom: The 'IR' (or would AST be more accurate) is fairly close to JS and depends on having its data-types. Don't think it would be easy to write a wasm interpreter for that
1:11:01
equwal
I was able to hack together a build script for these font variants in a few hours, whereas I have no idea how I would have done it without Roswell.
1:42:30
_death
I think a script should be two forms: load the system, apply a function with command line args.. the rest belongs in the system, which can be depended upon by other lisp code
1:57:18
_death
anyway, been using terminus (with modified lambda) for a decade now, methinks.. all other fonts are unbearable :d