freenode/#lisp - IRC Chatlog
Search
12:08:06
Xach
decent-username: i am too terse. i meant a quicklisp dist release, not a quicklisp non-beta release.
13:09:39
jmercouris
what I would like to do is pass the callback function from web-view-execute to be executed in js-execution-complete
13:11:02
jmercouris
I don't know how to do that though since js-execution-complete is a cffi callback
13:21:23
shka_
jmercouris: (cffi:foreign-funcall-pointer (cffi:get-callback 'callback-no-arguments) ())
13:23:35
jmercouris
I have webkit-web-view-run-javascript which runs some javascript in C land, and calls js-execution-complete with the result of that javascript
13:24:59
jmercouris
so my original way of doing this was having some global state like (defparamater callback-fn (lambda (x) (print x))) and then I'd funcall (callback-fn..) within js-execution-complete
13:25:12
shka_
ok, so i suggest to define callback with defcallback, pass it as pointer whetever it is needed, and then foreign-funcall-pointer it when it is needed
13:27:00
jmercouris
which will be automatically invoked by webkit-web-view-run-javascript WHEN the javascript has completed evaluation
13:29:04
shka_
https://lazka.github.io/pgi-docs/WebKit2-4.0/classes/WebView.html#WebKit2.WebView.run_javascript
13:29:50
Nilby
You'd have to name it an pass the name as a string or something, because the callback is in lisp isn't in C memory, so you can't just put it in a void*
13:31:55
shka_
ok, so i am saying that I recommend to rewrite your lisp function callback to cffi callback, pass pointer to it as user data and call it as C function
13:34:52
jmercouris
or maybe I extend wekit-webview-run-javascript so that it is not obvious that is what is happening :-P
13:35:13
shka_
yeah, i really don't know, i never quite figure out what is the best way to pass lisp objects to C
13:41:08
decent-username
Is there a variable you can set to disable "Sort slots alphabetically" inside the *slime-inspector*?
13:41:27
decent-username
Or rather: I know that such a variable exists. How do I figure out it's name?
13:52:42
jmercouris
there is oftentimes documentation within the source about things which are not in the manual
15:20:45
Cymew
Xach: I see. Well. I hope it can get out of beta eventually. Proud "Quicklisp supporter club" member anyway. Your work is appreciated.
15:33:39
Xach
some people embraced the label with the attitude that Lisp is Just Better and if you Don't Get It maybe You Never Will so Tough Luck, Idiot
15:34:26
jmercouris
In the "software engineering" field, we have a computer language called Lisp. It was invented near the dawn of civilization (or so I've been told), and that the cuneiform tablets of Sumeria contained the prototype of the parenthesis that became the hallmark of a Lisp program
15:35:37
Xach
jmercouris: I think the theory is that some people need a shock to break out of old patterns of thinking. Some people, I think, do use that technique with virtuous goals. But it's also used by sadists and bullies, so.
15:39:16
jmercouris
Xach: I don't think that ever works, except on few people that are very headstrong
15:40:39
_death
Xach: the other day I had a new slime patch as well.. I don't know when it started exactly, but for a while now if you press 'v' in the debugger to view source of code in a defmethod, there's a #:***HERE*** symbol stuck near the culprit, so I always had to search for it in the buffer.. welp, https://github.com/death/slime/commit/4921a08c1b9fffb9f79f709972a3c1b8816fe571
15:41:15
beach
Cymew: Here is a story for you. A few months before the first ELS we were in Amsterdam for ECLM. So since I was the local organizer of the first ELS I invited everyone to attend. KT said something like "Never will I go to something like that, ECLM is the ONLY REAL LISP VENUE" and he said it very loud.
15:44:58
_death
Xach: the source shown is a macroexpansion, and #:***here*** is the way sbcl marks the place I guess
15:46:42
beach
_death: ECLM was fun, but different. It was great to see all these people, including Arthur and Edi, the organizers.
15:47:10
beach
In Europe, everything is close, so many people would attend both, and for good reasons.
15:49:09
Cymew
I have lived in north america, and as a European I also say "everything is close in Europe!".
15:50:08
beach
I lived in Auckland for a year, and there were around 10 Lispers within a radius of a 3 hour flight.
15:50:52
jmercouris
I've never even met someone else who uses Emacs in my whole life. Sometimes I feel like a bottle with a cork bobbing up and down in an ocean of javascript developers
15:51:59
montaropdf
jmercouris: I do relate, except the the one guy that introduce me to emacs so longtime ago
15:53:19
Cymew
I'm more of an old school sysadmin so I find many emacs users among people I meet. Young devs are probably all visual basic and js users for all I know.