freenode/#lisp - IRC Chatlog
Search
1:50:48
jcowan
Cygwin treats .lnk files as if they were really symlinks, but most Windows programs don't understand them at all.
1:53:39
jasom
I seem to recall someone saying that NTFS support symlinks, but it not being exposed at the OS layer.
2:08:19
Ukari
I notice that simply use a (funcall (lambda () ...)) to wrap outside seems won't effect the excute time , https://plaster.tymoon.eu/view/1228
2:11:43
jasom
also, FWIW funcall is not required to call a lambda, ((lambda () ...)) is valid. A lot of people use the funcall to make it more clear though (as two open parens looks an awful lot like one).
3:27:03
Ukari
but when I `:import-from :foo :bar`in package `foo-test`, and try to use method `(bar)`, it works?!
3:27:03
Ukari
I was thought that if a symbol `bar` is not export, it must needs to be import by `:import-from :foo ::bar`
3:32:14
gilberth
At times you only want to import a few symbols. But those use cases are. Usually, you export your "interface"/"API" and just use that package from another.
3:35:27
Ukari
I am used to use import-from to import a exported symbol from other packages, and only use (:use ) for package :cl, because it shows a clear dependency
3:36:20
gilberth
Well, that is not like most people do that. As you pointed out: exporting a symbol goes with using a package.
3:43:17
gilberth
Hacking is about communication with the next hacker, who will read the code, also. And that next hacker could as well be me in 20 years. When I see :import-from in a DEFPACKAGE, I wonder: Why?!
3:46:16
Ukari
if there is not a explicit :import-from in defpackage, the next hacker might don't know where a function he never seems before comes from, especially when he read the code in github
3:57:54
gilberth
Ukari: And then you do not use :import-from for the COMMON-LISP package and list all 978 symbols.
4:00:07
Ukari
yes, i use (:use :cl) for package 'common-lisp', and in package foo-test, i will also use (:use fiveam) for a test framework
6:30:55
slightlycyborg
Hello. I am doing serial stuff. I need to convert a Lisp int which represents a 2 byte signed short into a list of 2 lisp ints that represent the bytes
7:04:56
verisimilitude
What LDB lets you do is get a section of an INTEGER and have it right-justified.
7:05:12
verisimilitude
You should also look into MASK-FIELD, which doesn't right-justify the result.
10:05:11
adip
Hi, could you explain what's wrong with this example? https://ideone.com/1i1fEv Why does compiler complain about undefined variable n ?
10:26:01
adip
no-defun-allowed: I've learned some. What's wrong with that example other than wront variable in third line?
10:31:27
no-defun-allowed
And well, unless your goal is to make people retch, it's usually a good idea to make sure your code is formatted well. Not only is it a sign of politeness, it also makes people usually quicker to respond as they can read nicely formatted code easier.
10:32:11
makomo
adip: if you're using Emacs + SLIME, just run "slime-reindent-defun" to indent the top-level form you're currently in
10:33:53
no-defun-allowed
https://lisp-lang.org/style-guide/ is a little long, but has good examples.
10:38:52
adip
next serious question, Is there a step by step debug mode for sbcl or clisp? something similar to gdb?
10:48:38
adip
it kinda works :D. One last question, for now. How can I make my f function to actually return calculate value... https://ideone.com/hZ3zYc