freenode/#lisp - IRC Chatlog
Search
1:46:06
istofu
(global-set-key "\C-cc" (lambda () (interactive) (insert "/**/ ") (forward-char -3)))
1:46:39
istofu
So, i have that, but instead of me having to type out (n) being the value going between /**/ how do i set a var
1:51:26
p_l
asarch: GLUT is explicitly a C library, there's no "native" GLUT for CL and thus no CLIM relation
1:53:47
p_l
CLX btw is part of X11 "standard" itself, enough that it was part of the full set of X11 documentation (rarely seen in the wild, I need to rescue one...)
1:54:42
p_l
asarch: for libraries, CFFI is one option (portable). SWIG can help you sometimes in getting CFFI running
1:57:43
p_l
asarch: if you search for it, I think some people did bindings to GLUT compatible with cl-opengl :)
1:58:35
p_l
https://common-lisp.net/project/cl-opengl/ <-- probably not the most recent code, but a good start?
1:59:49
asarch
I though they used CLIM to "create" the windows and in those windows create the OpenGL layer to render scenes
2:00:28
p_l
unfortunately I don't know of any integration between CLIM and GL, except of mostly abandoned attempt at opengl driver for clim
2:03:48
p_l
I'm not sure if Symbolics 3D stuff moved to CLIM at some point (doubtful), but in both cases it had mostly-software renderer that would take bitmap area from the gui library for its own use
2:20:45
aeth
asarch: If you want CLIM on top of OpenGL, you would need cl-opengl with another library to handle input, such as cl-sdl2 and SDL2.
2:21:17
aeth
These types of applications also probably want to redefine what a 'window' is because in a 3D application you probably want fake windows in one fullscreen or large-window application rather than true OS windows.
2:21:47
aeth
So there would need to be a layer in between cl-opengl+cl-sdl2 (or similar libraries) and a CLIM implementation
2:23:09
aeth
If you wanted a full-CL approach (at least as fully as possible), you'd probably want to use cl-sdl2 because that's what nearly everyone uses with cl-opengl so it's the safest choice.
2:25:15
aeth
(Good alternatives include using a lower-level SDL2 wrapper, or reimplementing the functionality of something like SDL2 and writing 3 backends for each of the major desktop OSes)
2:26:52
aeth
No matter what the details, CLIM with OpenGL would probably target a simple OpenGL GUI system with fake in-window windows, etc. This afaik doesn't exist yet.
5:13:31
Demosthenex
hrm, https://bpaste.net/show/5a7df14bd379 the same version of swank that works on sbcl is failing on abcl
6:41:48
fiddlerwoaroof
aeth: the other alternative is to target Cocoa/Gnustep/Cocotron and interact via Objc
6:43:39
fiddlerwoaroof
I think it's feasible, although those projects aren't necessarily the healthiest. However, the Objc runtime is a bit nicer to interface with than most plain-C libraries, since the Smalltalk influence makes it a "lispier" environment.
7:24:14
phoe
fe[nl]ix: is a squash into a single commit acceptable? In case it is, that is what I've done; in case it is not, I'll work a little bit more on the commits.
8:14:58
fiddlerwoaroof
for example, when you want to get a nicer printed-format for hash-tables, but don't want to specialize print-object
8:40:33
asarch
This is what I've been looking for: http://www.crategus.com/index.php/projekte/gallery/
11:32:09
stylewarning
My FOSDEM talk had some Lisp in it, and the video is finally published: https://youtu.be/qwfMzzKJDXI
12:06:58
jackdaniel
flip214: maybe it means: function was declared to return NIL, but returned not-NIL
12:42:13
flip214
apart from doing some (FTYPE (FUNCTION (&REST T) T)) or so, which is likely to be wrong anyway?
12:46:09
pjb
flip214: yeah, declarations are bitches. Don't do them. Or like docstrings, put all the declarations in a separate file, and load it only when compiling the production code?