freenode/lisp - IRC Chatlog
Search
23:23:13
vtomole
With respect to a shebang script "#!/usr/bin/sbcl --script (ql:quickload :eagle)", I get "Package QL does not exist." When I run it.
23:28:54
vtomole
Make sense. idk how i should approach in that case. I don't want to call sbcl --noinform --eval
0:25:03
drmeister
I started porting maxima to clasp. I had to add core:make-unspecial. Does anyone know anything about maxima - should I anticipate any trouble?
0:30:34
didi
Hum, passing DECLARE forms to my own macros isn't easy. The compiler complains about evaluating them. I see that SBCL has a function just to separate DECLARE forms from body. I will try to piggyback some build-in construct.
2:28:18
didi
Hum. Why is (eql symbol 'declare) from any package? In other words, is the symbol `declare' special?
2:32:10
Bike
both the foo and bar packages USE the cl package, so they have the same symbol from cl.
2:37:20
whoman
"KCL is notable in that it was implemented from scratch, outside of the standard committee, solely on the basis of the specification. It was one of the first Common Lisp implementations ever, and exposed a number of holes and mistakes in the specification that had gone unnoticed."
2:42:15
Bike
e.g. closer2mop defeines a "closer-common-lisp" package that you're supposed to use instead of cl.
2:45:23
didi
Hum. Instead of loading alexandria, one could write a replacement for cl with all the goodies.
2:47:58
rumbler31
whoman: you can probably get pretty good results by defining a union of function pointers.....
2:48:30
rumbler31
that way the compiler might let you more easily pass functions of a variety of signatures to higher order functions. maybe.
2:48:47
whoman
im talking about this again today too, a lot of stuff can be done with C+funptr; even hierarchical object system seems unecessarily complex for most tasks
2:49:09
whoman
organizational nightmare, especially while still designing. flat naming should be enough if we are skillful with our words and letters
3:00:46
stylewarning
Hey all: Can I unsafely turn a byte array into an array of complex double float, unportably without copying in SBCL?
3:53:14
stylewarning
another question: Is there a way to get the raw unfill-pointered array of an array with a fill-pointer?
5:40:01
johnnymacs
I am thinking I would really like to write in common lisp but then I cant take my code and use it in emacs
5:40:15
johnnymacs
like what if I make a cool thing with hash tables and then I have to hand compile it to emacs lisp
5:40:46
beach
Emacs has a Common Lisp package these days. Write it in a subset that will work in both Emacs and Common Lisp.
5:44:26
johnnymacs
I am thinking of a DSL that is meant to pass code freely between scheme lisp and elisp. It would use the lambda calculus for the logic programming and hash tables to manage memory. In scheme you would have to use hash tables to implement an immutable tree
5:47:36
whoman
ahhhh https://yoo2080.wordpress.com/2013/08/16/differences-between-common-lisp-and-emacs-lisp/
6:02:08
pjb
whoman: you would have to add reader macros to all the characters. Some implementations use a-list for the reader macro table. Even if you only had mostly base-char in your sources, this would require several tens of memory accesses to read each character before executing your reader macro. It would not be difficult to implement, but it would be very ugly.
6:10:30
whoman
pjb: what do you mean, for C+CL ? or for a lisp file that compiles to scheme,cl,elisp ? ive seen that file, there were a couple of macros but it was mostly compiler switches for the parts where the langs were different
6:22:07
pjb
whoman: it would be preferable to prefix the code where you want such drastic syntactic changes with a singular reader macro.
6:22:35
pjb
So that you can implement your own lexical and syntactic analysis more classically and cleanly, than going thru the readtable.
6:24:23
whoman
http://lisp-lang.org/ <-- see first example clipping here. keywords are kind of hideous
6:27:59
whoman
one day i realised i dont type direct digital numbers merely as often as i type all the symbols they hide under shiftmodding
6:38:15
pjb
whoman: also, you can trivially write an emacs command so that when you type foo: SPC, it changes it to :foo.
6:52:22
whoman
pjb: oh true! also emacs can display words/stuff that is different than whats in the buffer. forgot about that...
7:44:55
beach
Improved arrow rendering for incorrect indentation in Second Climacs: http://metamodular.com/gutter3.png Notice that it still doesn't know how to indent DEFMETHOD and LOOP, hence the arrows in that picture.
7:56:26
loke
ACTION needs to test it again. Please remind me where is the official repository for second climas?
8:08:59
cess11
Not sure if the maintainers of http://lisp-lang.org/learn/continuous-integration are here but if you are, the link to JSCL seems to be out of date and ought to be replaced with https://github.com/jscl-project/jscl .
8:10:36
loke
OK, I have a few issues. Which one of these do you want me to try to fix? 1) Cursor keys are not mapped. 2) The cursor takes up horizontal space. 3) Graphical artifacts when scrolling. 4) TAB key is not mapped to anything sensible.
8:11:09
beach
loke: My plan was to get enough functionality related to Common Lisp editing working, because I think I am the only one with ideas in that respect, and then leave a lot of the rest to contributors.
8:12:03
loke
beach: I find it to be hhugely distracting. Would you be OK with making it a configurable option?
8:30:43
epony
beach did you write this? http://metamodular.com/Psychology/continuous-improvement.html
8:41:22
bjorkintosh
epony, that's funny. I just discovered the same essay a few minutes ago! and then beach showed me Dweck's video on growth mindset https://www.youtube.com/watch?v=isHM1rEd3GE
8:45:14
epony
that's funnier, I was just processing the knowledge collection here, so it just fits in the work I was previously doing
8:46:21
epony
I think I am in this channel here exactly for the learning and continuous improvements aspects and find it intriguing it relates to Lisp.
8:55:02
loke
Clearly we need a package called “Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch”
10:20:29
beach
What software on GNU/Linux do people use to record screen sessions, like for showing off their latest Common Lisp software?
10:23:16
beach
I wasn't thinking of terminal sessions, but of GUI sessions. But thanks for the link.
10:23:31
flip214
beach: how about that: ffmpeg -f x11grab -video_size cif -framerate 25 -i :0.0 /tmp/out.mpg
10:24:07
pjb
beach: it seems ffmpeg can do it: ffmpeg -video_size 1024x768 -framerate 25 -f x11grab -i :0.0+100,200 output.mp4
10:25:14
flip214
although you might want to put a "sleep 3" before that, to have enough time to switch to the right window and so on
10:29:53
Shinmera
Might be a bit more trouble to set up, but is a really solid recording software that I use for all my needs in that area.
10:29:57
beach
I also found this list: https://www.tecmint.com/best-linux-screen-recorders-for-desktop-screen-recording/
10:31:54
Shinmera
If you need help setting it up, I'd be glad to offer some (maybe over privmsgs, though)
10:32:19
beach
I am again thinking about this community project to create a site for learning Common Lisp. It would contain a graph of short subjects, and each subject should contain text, examples, exercises, and video snippets.
10:32:44
beach
Shinmera: Thanks. I won't do it right now, but I might take you up on that once I am ready.
10:33:26
jmercouris
I'd also be interested in making these learning resources as portable as possible
10:33:42
|3b|
OBS gives you a lot more control, and i use it on windows sometimes, but the simple stuff is nice when you don't need the extra control :)
10:33:44
jmercouris
if we could make these assets accessible on a site like "udemy" or "codeacademy" it would be great I think
10:34:10
beach
Shinmera: Do you have any advice about where such a thing could be hosted, so that people could make contributions without too much trouble?
10:34:23
jmercouris
beach: I know you didn't ask me, but I would think wiki software would be the best
10:35:29
Shinmera
The way I do it for ELS is that we have a syntax for edition data that people can edit as lisp files. This is then assembled into HTML pages by a generator.
10:36:10
beach
Shinmera: I have vague ideas, but there would be a fairly large number of "nodes", one for each very small subject. And there would be all kinds of ways to navigate the graph of nodes.
10:36:36
Shinmera
The quick start would be to do what the cookbook does, which is to just throw a bunch of markdown files into a github repo.
10:38:43
jackdaniel
afair drmeister hacked jupyter notebooks and CL - they look very handy for this kind of learning
10:38:54
beach
I can't even begin to imagine how a "node" would be represented in a GitHub repository.
10:40:25
beach
jmercouris: I am totally ignorant here. I didn't even know that GIT had the concept of a folder.
10:40:53
ecraven
doesn't git only know about files, not folders? last I heard, you cannot add empty directories to git
10:41:59
jmercouris
so basically, I mean just make a dir like "/learning-book" and then make "/learning-book/chapter1"
10:42:12
ecraven
jmercouris: but what if I want to add the directory to git, without any files in it?
10:42:17
beach
I guess the thing to do would be to have all you cool kids agree on a structure, stick in some initial material, and then tell me how to add more.
10:44:00
beach
Anyway, I think the most important part is to create a bunch of nodes. They don't have to be organized in a graph, at least not to begin with.
10:44:29
pjb
jmercouris: touch foo/.keep ; git add touch/.keep ; git commit -m 'Added the touch/ directory ' touch/.keep
10:44:32
Shinmera
beach: An advantage of my approach is that you could start out defining some nodes as some lisp data, and then later figure out how to assemble them into a website.
10:44:32
beach
I would like to see video snippets around 5 minutes long, so as to cater to the young generation with an attention span of a gnat.
10:45:41
pjb
ecraven: touch foo/.keep ; git add touch/.keep ; git commit -m 'Added the touch/ directory ' touch/.keep
10:46:10
beach
I have ideas about how to organize such a thing. And I have ideas about the contents. But I really don't have the technical knowledge about the tools to do the mechanics of it.
10:46:46
ecraven
anyway, I know this doesn't work, I was just pointing it out, as someone said git supports adding empty directories (which afaik it just doesn't)
10:49:58
pjb
ecraven: I mean, Finland, the country where they catch and domesticate Santa Clauses https://www.youtube.com/watch?v=KZlNF3qWFT8
10:51:28
pjb
Linus could have as well written a lisp machine; he choose to implement Linux… Doesn't that tell you all you need to know about Finland?
10:58:05
JuanDaugherty
you say that because you know of some relation he had to lisp or on general principle?
11:07:39
minion
schweers, memo from pjb: "IMPORTER:**;*.tar.gz" is not a logical pathname, because gz is not a valid version number.
11:07:39
minion
schweers, memo from pjb: also, you must have the same number of stars in both sides.
11:15:46
JuanDaugherty
well he was a german, iirc he didn resist worked on their rocket program and stuff but I doubt was more than that