freenode/#lisp - IRC Chatlog
Search
6:55:11
borei
got confused with variables type, im expecting that im going to use FLOAT, but lisp doesn't agree with me and uses double
11:19:26
scymtym
is an implementation permitted to add bindings to cl symbols in other namespaces than the one(s) specified by the standard? concretely, can there be conditions named CL:NO-{APPLICABLE,NEXT}-METHOD in addition to the generic functions?
11:21:09
specbot
Constraints on the COMMON-LISP Package for Conforming Implementations: http://www.lispworks.com/reference/HyperSpec/Body/11_abaa.htm
11:22:57
Shinmera
"In a conforming implementation, an external symbol of the COMMON-LISP package can have a function, macro, or special operator definition, a global variable definition (or other status as a dynamic variable due to a special proclamation), or a type definition only if explicitly permitted in this standard."
11:41:06
impaktor
I'm running slime from quicklisp, but trying to install slime-company for auto completion from MELPA, but that pulls in MELPA-slime as dependency.
11:43:13
impaktor
Just putting slime-company in my emacs load path is probably the obvious solution.
12:04:28
dim
the only way to control evaluation of arguments is to write a macro rather than a function, right?
12:05:12
bigos
Does anybody have experience with low level debugging Lisp on windows? I recently strated playing with x64dbg https://x64dbg.com , I am kind of impressed with it. It seems like improvement over OllyDbg. When I attached the debugger to SBCL I noticed something interesting when I was checking interactions with cl-cffi-gtk
12:06:58
bigos
It is possible that Lisp misbehaves because it tries to access memory address that it shouldn't
12:18:53
beach
bigos: If you use FFI stuff, then anything can happen. But any sane Common Lisp implementation should be safe if you have a high value of the SAFETY quality and you don't use foreign code.
12:20:53
bigos
the problem is I might need foreign code for UI, Shinmera has sugested qtools and it seems to work. but I still might need ability to switch to other GUIs
12:21:37
Shinmera
"switching guis" isn't really something you ever do in any project. A UI is too tightly integrated for that.
12:22:59
bigos
I mean switching to use other gui for other projects. I still I am more familiar with Cairo and did not yet figure out how vector graphics works in QT so my options are still open
12:25:08
bigos
I need UI toolkit for a windows and menus, but in the pipeline I have idea of application that extensively uses vector graphics
12:25:50
Shinmera
Well you can still use Cairo for that and just render to a GL texture or something else that your toolkit can display in a window.
12:26:05
p_l
bigos: you could use a vector lib that can use GL and render to GL context acquired through Qt
12:27:27
bigos
I drew things in Inkscape before, drawing the same programmatically is not a big step
12:27:37
p_l
Shinmera: need to manually handle some of the input vs. depending purely on Qt as would be the case with, let's say, QtSceneGraph
12:28:38
Shinmera
p_l: Ah. Well, I wouldn't say writing some overrides to handle input events is problematic :)
12:29:13
p_l
iirc, with scene graph, you can still add input actions directly to rendered objects, instead of let's say having first a viewpoint transform to find correct coords, then finding the right object that is under those coords, then firing a menu or whatever
12:31:52
Shinmera
QPainter has bezier curve drawing functions and other stuff, so if that's enough vector graphics for you you can certainly get by with just what Qt offers.
12:32:10
Shinmera
But depending on your needs you might quickly run into limitations too, so I don't know
12:49:03
bigos
examples from this page should be enough for now http://doc.qt.io/qt-4.8/examples-painting.html
13:08:15
shka_
beach: just wanted to say that i still work on grammar, i had two passes manually so far
13:27:54
Shinmera
or the new rendered-text that was introduced literally yesterday if that's what you prefer.
13:34:44
shrdlu68
Shinmera: I want to get "<body><a href="meh">MEH</a></body>" out of (plump:parse "<html><body><a href='meh'>MEH</a></body></html>")
13:36:34
Shinmera
Then serialize the child array of the element you want to get the contents of, as I just said.
14:14:24
shka_
beach: not sure, i will try to setup it later, meanwhile i updated docs with a version of the overview that hopefully does not provoke heart attacks :-)
14:31:21
dim
they provide browser plugins that's useful when you input your text in textareas in browsers
15:59:05
shrdlu68
I have a function that, when called in the REPL, enters into a loop. Is it possible to redefine the function without interrupting it, in SLIME?
16:01:48
marvin2
if you are looping by recursion, which isn't that common in CL, then I guess just redefining it would work, without interrupting it first. not sure if you'd gain much by that though
16:03:51
shrdlu68
I guess what I'm looking for is some way to change the internal state of a running function, which I don't think is possible.
16:30:06
pjb
shrdlu68: you have to write the function specifically for it to be upgradable. First declare it notinline. The new version of the function is taken into account only when you call it again, and when you evaluate (function foo) again. So if your function is in a loop (or just running), it has to exit, and to be called again. It may also call itself recursively, if TCO has not been activated. (notinline should disable it).
16:38:04
pjb
shrdlu68: note: the recursive call can also be done in the debugger, to "manually" remplace the old function call with a new one. But for this you would also want to plan a catch to exit from the inner function call without returning to the debugger or outer function call.
16:38:22
pjb
Having such catches is routine in server code, but it may be less common in the REPL…
16:40:54
pjb
http://gizmonaut.net/blog/software/multics_source_reveals_le_jetteur_des_gazongues.html