freenode/#lisp - IRC Chatlog
Search
7:54:38
Shinmera
Statistically, compared to the things I haven't written yet, I have not written anything at all :)
7:56:52
aeth
Shinmera: did you write an infix library? it would be interesting to compare the various solutions people have for implementing one
7:58:24
aeth
I have no use for infix, but I got distracted by it because I think there can be some elegant solutions there.
8:00:38
aeth
I made a solution that at the moment is only designed to work with binary operators with no precedence rules (it's an error to write 1 + 2 - 3 because there's no precedence). https://gitlab.com/snippets/1747132
8:04:20
Shinmera
I mean if all you're interested in is the parser logic, here you go I guess https://github.com/Shirakumo/glsl-toolkit/blob/master/grammar.lisp#L176-L238
8:10:21
Shinmera
Hopefully at some point I can convince Baggers to make Varjo output to glsl-toolkit's AST so that the two can be combined easily.
8:13:31
aeth
The other GLSL generators' goals are actually to make it interchangeable with CL for easy refactoring afaik.
8:16:58
aeth
I can definitely see why Varjo's integration with a math library has it's users, though.
8:38:47
Ober
ACTION images ELS to be the same crowd of folks who would rush to greet an Alien saucer landing.
8:40:35
aeth
Ober: It's unlikely that an alien visitor to Earth would still be biological, so of course everyone would want to know what their source code looks like.
11:23:28
makomo
what is the proper way to ensure a function is available at compile-time for a macro, *if* it's from another package you don't control?
11:24:16
makomo
i.e. you can't just add an EVAL-WHEN around the DEFUN because you don't control the source
11:25:02
Shinmera
? If you have a system as a dependency it's loaded before your system even starts compiling.
11:26:47
makomo
right, that's what i thought but are those DEFUNs from the loaded system required to be in the compilation environment?
11:27:23
makomo
i mean, what's the difference between those and anything i control/compile? i need an EVAL-WHEN, why don't they?
11:27:50
_death
because you put your function in the same file and that file contains uses of the macro
11:29:43
_death
no, the point is the macro-using forms being in the same file as the macro and its dependencies..
11:36:17
Shinmera
It does not. Consider (compile-file "a.lisp") (compile-file "b.lisp") (load "a.lisp") (load "b.lisp")
11:37:21
Shinmera
You're just "lucky" that ASDF compiles and then immediately loads everything sequentially.
11:39:55
_death
if b.lisp is dependent on definitions in a.lisp, then it means a.fasl must be loaded before compiling b.lisp