freenode/#lisp - IRC Chatlog
Search
17:33:10
rpg
ACTION finds that debugging init.el by bisection is even worse than you expect if you have (package-initialize)
17:57:25
rpg
(key-description "r") returns "R". I have no idea why I am (seemingly) the only SLIME user who has this problem.
18:18:49
asarch
AI learns to play snake using Genetic Algorithm and Deep learning: https://www.youtube.com/watch?v=3bhP7zulFfY
18:22:25
asarch
Intelligence, emotion, character, personality. We are far from create the perfect automata, right? :-(
19:43:30
gendl
I'm having issues with "File not found" both in CCL and Allegro, where I've made a Windows symbolic link to a directory with mklink /d
19:44:51
gendl
the directories and files under the symlink show up fine in cygwin bash shell or Windows cmd prompt, but after a couple levels deep, they do not show up with (probe-file ...) or (directory ...) in CCL or Allegro.
19:45:17
TMA
gendl: does dir list <JUNCTION> or <SYMBOLIC LINK> (not sure of the exact spelling used)
19:46:39
TMA
gendl: I have never had problems with the latter + sbcl. I have used it even for the fasl cache without any problem
19:47:20
gendl
another possibly complicating factor is that the target of the symlink is under a drive ("m:") which is mounted from a Linux system using sshfs-win
19:48:02
gendl
but it doesn't seem that the sshfs mounting is a problem in and of itself, because the files do show if using the actual "m:/..." pathname.
19:48:33
gendl
I guess i can try making a similar symbolic link setup with a directory from the local C: drive and see if I get similar problems...
19:51:01
gendl
so the difference is - the machine which is not working is a Server version of Windows (server 2016), and the drive is mounted with sshfs instead of Virtualbox shared drive.
19:52:18
gendl
i suppose it could also be some weird permissions issues -- but with the same user in cygwin bash shell, everything shows up. So it's kind of bizarre. And one of the last showstoppers to the super cool build/CI system I'm trying to get running here...
19:53:09
gendl
everything in place, everything ready to go, then this weird kink shows up when trying to load actual files in Lisp...
20:55:04
gendl
Update: it's not just a Lisp problem. Windows file Explorer and cmd shell also have trouble seeing files a level or two down from the <SYMLINKD> directory. Only cygwin can see everything.
20:57:25
gendl
So this is some kind of issue with the sshfs, the windows <SYMLINKD>, or the combination of the two. Using the M: drive directly (the one mounted with sshfs) works fine. Anyway not a Lisp issue so I'll dig into it on the windows end of things and stop yammering on about it here... sorry for the noise..
21:45:15
pjb
Clearly, Microsoft doesn't know what belongs to kernels and what belongs to userspace. GUI inside the kernel, FS in user space, PFFFTHTH!
21:50:15
Aruseus
perhaps they wanted to show they could be innovative and implement the fs on top of the gui
21:52:15
pjb
Aruseus: probably they were innovative in a meeting such as https://www.youtube.com/watch?v=BKorP55Aqvg
21:58:10
Aruseus
pjb, are you can expert? I need you to implement copy-on-write using context menus and buttons.
21:59:26
pjb
Notice, there's an good expertly answer: http://img1.joyreactor.cc/pics/post/full/песочница-Не-мое-кто-в-теме-тот-поймет-эксперт-2734907.jpeg
22:03:03
pjb
https://www.youtube.com/watch?v=BKorP55Aqvg&list=PLKlTnphWMK_pbfHE4VilQg3GjVuXJdo5I&index=1
23:40:33
pjb
(loop … do (multiple-value-bind (foo bar) (multiple-value-list whatever) …)) might be more efficient indeed.
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