freenode/#lisp - IRC Chatlog
Search
13:06:19
dlowe
paule32: that looks correct. you might want to just specify &key if you aren't going to use NAME
13:09:16
beach
dlowe: It looks like shit. Wrong spacing, dangling parentheses, wrong number of semicolons, form without side effects in a context of no value, invalid form. All in 10 lines of code or so. But like I said, paule32 is not known to follow advice.
13:14:18
dlowe
actually, there is one error in there. the ' should be on the parenthesis, not on 'kallup-exec-app
13:31:29
Josh_2
Personally as much as beach tearing into everything I do, it's actually very beneficial to have someone crap on your code. As long as they show you how to do it properly
13:31:55
dlowe
code is especially awful when you're trying to figure something out and are just trying to get the one thing working
13:43:36
Bike
next time please work out something like that on your own. it should have been kind of obvious, and with the information you chose to share with us, due to your belief that it was some kind of lisp problem, we couldn't have noticed it.
13:47:25
Xach
Anyone have time & inclination to help me troubleshoot a weird problem I'm having with (I think) UIOP 3.3.0?
13:49:03
Xach
Basically trying to see if a weird looping problem I'm seeing is a local issue or can be reproduced easily.
13:49:55
Xach
shka: can you fetch lhttps://common-lisp.net/project/asdf/archives/uiop.tar.gz and put it in ~/quicklisp/local-projects/ ?
13:50:29
Xach
Not yet - now clear your cache with rm -rf ~/.cache/common-lisp/ and (ql:quickload "hu.dwim.presentation" :verbose t)
13:50:58
Xach
What I observe is certain (maybe all?) files in uiop being recompiled over and over and over again.
13:52:21
jackdaniel
UIOP will be loaded as a system (because ASDF doesn't treat preloaded-systems as loaded)
13:53:23
jackdaniel
I think that it will load over again on each new session, because UIOP is preloaded, so found system definition is found somewhere-else (hence redefinition warnings)
13:54:33
jackdaniel
correct solution to that problem would be naming UIOP system and package (when bundled with asdf) something like ASDF/UIOP, so it is treated differently than UIOP library
13:54:41
Xach
jackdaniel: this seems to be a new behavior, because prior to 3.3.0 it did not work this way
14:09:52
paule32
that is my smallest program ever coded in Lisp: http://paste.lisp.org/display/358310#4
14:34:53
Bike
I think "M-x slime" and then answering yes you want to create a second *inferior-lisp* does it.
14:36:39
antoszka
hajovonta: so that's *not* another instance, but you'd like to reuse the same instance/image with another swank listener?
15:00:37
jackdaniel
(try (do "1234") (it "+") (yourself "2223834")) ; ← one of many possible solutions (arguably the best one)
15:01:47
Bike
you can get symbols from strings with find-symbol, and integers from strings with parse-integer.
15:02:14
dlowe
paule32: there's an entire field of programming called parsing that you should read up on
15:48:05
emaczen`
with CFFI since pointers=arrays shouldn't I be able to call #'cffi:foreign-array-to-lisp on every pointer?
15:48:05
minion
emaczen`, memo from ferada: static variables via jss are like #"ClassName.fieldName"
15:48:06
minion
emaczen`, memo from ferada: jstatic is for static methods; if it doesn't find the method then the signature didn't match; re the jna warnings, you do have jna loaded? after (require 'jna) the call (jclass "com.sun.jna.Native") should give you something
16:53:29
phf
hello, does anybody know if you can make capi's browser-pane (lispworks) display html explicitly, without doing (..-navigate url)?
16:54:13
phoe_
phf: best ask on LispWorks's forums - they'll be able to answer CAPI questions much quicker
16:54:48
phoe_
they have a community forum specialized for LW, where Freenode's much more specialized in general standard CL questions and those related to free/open implementations
16:55:56
phf
phoe_: i like to test the limit of #lisp's question answering abilities. fwiw i get roughly the same quality of answers for free/open implementations as i do for commercial ones, that is to say "low"
16:56:52
beach
phf: Most questions about free implementations are answered to the best ability of the participants.
16:58:26
beach
phf: Contrary to common belief, #lisp is not a "Lisp support channel". It is a forum for people who use and develop Common Lisp software, so its main purpose is not to answer questions about implementations.
17:00:08
beach
phf: What you said is quite insulting to many people who spend a lot of time trying to help out whenever someone needs it.
17:03:08
phf
beach: well, i used to spend time on #lisp answering questions, and being a professional lisp developer i would suspect that my answers were worthwhile. i find that the s/n has dropped significantly, but that's ~my~ impressions, and that's why i don't lurk here. i periodically drop by to ask questions though, which is selfish of me, but i also want to see if there's perhaps some change in the landscape
17:04:30
phf
beach: i appreciate all the work ~you~ and others that i can name specifically did for #lisp and lisp community though. i also apologize for baiting. an answer "go elsewhere" is mildly annoying though, because i know for a fact there are people who do professional lispworks dev lurking here
17:06:38
phf
Bike: i agree, i usually wait though until i find the answer to then also answer my own question in case anyone was curious, and/or reading the logs
17:07:21
jackdaniel
paid software comes with paid support, free software has to depend on people donating their free time
17:12:08
phf
Bike: well, i'm not talking about ~quality of support~ here, but rather the s/n. it would be entirely silly of me to come to #lisp and expect correct answer!
17:14:45
phf
well, in that case i will then just add that if the only thing you have in your browser widget is a url browsing function, then adding a local webserver and hosting ad hoc pages is one solution, but i'd like it to be that of last resort..
17:22:33
drmeister
I was looking at the Google paper on energy efficiency of different languages paper again.
17:23:04
drmeister
The guy who wrote the Lisp (using SBCL) examples took a lot of pains to improve performance.
17:23:05
drmeister
https://github.com/greensoftwarelab/Energy-Languages/blob/master/Lisp/mandelbrot/mandelbrot.lisp
17:27:11
drmeister
Kudos to the programmer and... is this what needs to be done to get the 'ultimate' in performance?
17:28:37
drmeister
Lisp is the fastest, most efficient dynamic language - much, much better than Python.
17:32:49
phoe_
drmeister: the "ultimate" in performance is basically either writing as close to compiler-optimized routines as you can or writing as close to assembly as you can
17:38:29
Harag
I have never really used trace but tonight I need to get to grips with it, I started (tried in repl and slime emacs menus) a trace on a function called by an a hunchentoot page but I am not seeing any output of the trace anywhere. What would "block" trace output to repl or slime trace buffer?
17:42:46
phoe_
drmeister: http://benchmarksgame.alioth.debian.org/u64q/program.php?test=mandelbrot&lang=sbcl&id=3 is (almost) completely portable though and it's twice as slow as the version you linked.
17:43:24
phoe_
Harag: can you DECLAIM NOTINLINE the function that you are trying to trace and recompile the callers of that function?
17:43:52
phf
Harag: you want to look into *inferior-lisp* buffer, that's where the trace is most likely being output
17:48:02
phf
Harag: your hunchentoot handlers are running in own threads, where various output streams are ~not~ bound to the swank ones, so you want to look at the buffer where the actual sbcl process output goes
17:56:43
Harag
that trace out put is a real let down two lines and the out put of the function if I want to see whats going on inside do I have to trace every one of the functions used inside it?
17:59:55
Harag
_death: yeah that would be a longer term solution I suppose, thanx will book mark and investigate
19:36:38
phf
found a mac specific way to throw a webkit window up with lispworks and render an arbitrary string http://paste.lisp.org/+7OHR i distilled it from examples/objc/web-kit.lisp. good enough for me
19:49:53
_death
may be cute, but converting to a string in order to convert it to a bit vector is not what I'd consider good code.. note dlowe's smily
19:52:33
didi
Bike: I actually have something like (format t "~{ ... ~}" (loop for i below 7 collect (if (logbitp i datum) 'true 'false)))
20:05:03
Bike
didi: i mean, you could avoid some consing, but probably the i/o will dominate the time