freenode/#lisp - IRC Chatlog
Search
2:07:10
gjulio
hey i'm new to the channel and new-ish to lisp. i'm getting stuck with the syntax on using remove with reduce. if i have a blacklist ofsymbols '(a b c) and a list '(a b a c a b b a). I want to use reduce to obtain '(a a b b a).
3:58:26
shukryzablah
is it possible to make + add two vectors element-wise? (+ (vector 1 2) (vector 3 4)) -> #(4 6) . How can I do this?
4:00:49
White_Flame
of course, that's not making + do anything new, but using + element-wise across two vectors
4:05:01
beach
shukryzablah: No, you can't alter the behavior of +, nor of many other basic Common Lisp functions. But you can create your own package and your own + function that is able to add vectors.
4:37:05
aeth
If you want type-based generics (as opposed to class-based... normally classes are sufficient, but for numbers/arrays they often aren't), one library to do this is https://github.com/markcox80/specialization-store/
5:32:37
fbmnds
Hi, maybe first some context: I intend to use the Qt5 bindings for ECL (EQL5 https://gitlab.com/eql/EQL5) for my own project. EQL5 comes with a nice collection of examples which most of them I got running on my ARM64 developer platform. I expect to figure out how to use EQL5 for my project on my own.
5:32:46
fbmnds
I'd like to know whether there is interest in this community to dig into EQL5 in essence to be able to further maintain this project. From what I understood going through the code base, EQL5 is based on witty design ideas and allows for cross platform GUI development (the examples apps work nice on my Android mobile, too - iOS is also supported).
5:41:46
beach
fbmnds: Hello. You may have better luck some other time. This is early Saturday morning in Europe, and late Friday evening in north America.
6:03:40
beach
Good plan. Oh, and this is IRC, and the @ convention is not used. Just type the nickname followed by a `:'. Your IRC client should complete for you.
6:10:05
adlai
ACTION occasionally sees a comma instead of colon, this seems like a less formal convention... most IRC clients will highlight the message in either case
6:11:43
adlai
fbmnds: there is also an #ecl channel that might be useful since you are asking about an ECL-specific project
6:13:27
adlai
ACTION mumbles something about how maybe they'd get more excitement about ECL if it implemented the complete ANSI specification
6:13:47
beach
fbmnds: jackdaniel is the current maintainer of ECL, and he fulfills all the criteria. He has a family (new baby too), and he is very busy. But he is often around.
6:14:52
adlai
beach: no, I am only aware of one painful incompliance - the lack of :arguments in the long form of define-method-combination
6:16:13
adlai
I've considered taking this on as a project, since at least one other implementation (Clasp) has inherited that problem, by reusing ECL's code
6:17:18
beach
Indeed. And I was planning to use ECL to bootstrap SICL, so I might be interested as well. Plus, I have this long-term plan to try to create a Cleavir-based compiler for ECL.
6:19:49
adlai
it seems understandable to me that an attempt to write an efficient method dispatch system would skip that one feature, although the result is a nuisance, because it is a very useful feature
6:32:58
fbmnds
phoe: ref. [2020-03-28, 13:46 <phoe> nope, it's non-portable and SBCL-only] osicat runs on ECL too (https://pastebin.com/VSQDwAKu) - just saying
7:16:36
phoe
fbmnds: my answer was to "do other distributions have a sb-posix compatibility layer? ccl?" not to osicat itself
7:17:50
phoe
ECL follows some SBCL interfaces, but the last time I checked (and I might have failed) it doesn't have a layer that follows SB-POSIX
8:40:46
jackdaniel
adlai: lack of this argument is a bug, but saying that "ecl doesn't implement the complete ansi specification" based on one missing argument is quite a stretch
8:41:32
jackdaniel
even sbcl doesn't pass all tests from ansi-test suite (some of disrapencies were a deliberate choice at that!)
9:01:07
fbmnds
phoe: ah ok - I came across this when I looked into osicat as a dependency of cserial-port while porting from SBCL to ECL. I had problems with getting osicat to run until I realised that it runs well if ECL is compiled as default with gcc (had previously used g++)
9:06:13
jackdaniel
fbmnds: eql5 is actively developed and maintained by Paul Ruetz (the project author), I'm not sure what do you mean by "maintaining further" the project
9:07:20
fbmnds
btw, has anyone succeeded in building a reliable permanent connection to a microcontroller with cserial-port? I tend to believe that is practically not possible due to timing issues between send/response sequences. I am looking now to make my own FFI wrapper for a C library.
9:16:28
fbmnds
jackdaniel: I refer to upcoming maintenace challenges in a foreseeable future, given that Paul Ruetz mentioned to me in a private email conversation that he regards EQL5 as a hobby project on which he does not want to spend too much of his private time.
9:30:14
fbmnds
jackdaniel: I should add that I am also refering to the upcoming Qt6 release (https://www.qt.io/blog/2019/08/07/technical-vision-qt-6)
11:20:52
MrtnDk[m]
In Guile scheme, which command do you recommend for reading a line of text (from a file stored on a fixed disk, for instance)?
11:25:08
MrtnDk[m]
(Sorry, I guess I posted it in the wrong Lisp. I just reread the room discription of this one).
11:25:40
rgherdt
you can ask that on #guile or #scheme. But you probably want to take a look at read-line
11:50:36
MrtnDk[m]
<rgherdt "you can ask that on #guile or #s"> I tried readline, but it doesn't seem to work in newer guiles. (use-package (ice-9 readline)) or something.
11:55:10
rgherdt
MrtnDk[m]: don't confuse readline (GNU's tool) with scheme's read-line. The latter can be imported for instance from (scheme base) or rdelim
12:03:18
iissaacc
yo, im working with common lisp and i have a directory of 74000 files i need to process. (directory) is running okay but I'm only getting 50 filenames, anyone know why this could be?
13:08:15
MrtnDk[m]
rgherdt: Ahh! I thought "read-line" was a typo I made, since it generated an error and isn't mentioned in the texinfo documentation of the guile reference!
13:20:52
nabataeus
I'm asking because I'm attempting to emulate one though I don't know where to look.
13:26:42
nabataeus
phoe: Is open Genera an OSS version of the original Genera? Does it differ, or is just relicensed.
13:29:20
p_l
nabataeus: it's an unfinished (but usable in production) system that runs Genera 8.5 on top of Alpha CPU running Digital Unix (POSIX = "Open Systems" at the time)
13:34:42
p_l
nabataeus: yes, it's been pretty popular for a time to use hacked-up versions that run on amd64, the range of bugs can be subtle though
13:35:34
p_l
and not all software will work, as OpenGenera never actually hit planned 1.0, despite 1.0 and 2.0 being sold, and some software expects presence of old console interface (whereas OpenGenera only exposes a newer API that not all applications migrated to)
13:45:36
bitmapper
the x86_64 emulator was made by writing a program that translates alpha pseudo-assembly into C, and then just translating the alpha emulator
13:51:00
nabataeus
But I think their 'Genera Concepts' guide would better explain this. Either ways thanks for your time o/
13:51:38
p_l
nabataeus: VLM (Virtual Lisp Machine) essentially treated Alpha CPU as microcode engine
13:52:19
p_l
nabataeus: and using fine-tuned assembly implemented microcode engine for modified version of Ivory CPU (binaries between Ivory revs 0-4 and rev5 aka VLM are incompatible)