jackdaniel changed the topic of #commonlisp to: Common Lisp, the #1=(programmable . #1#) programming language | Wiki: <https://www.cliki.net> | IRC Logs: <https://irclog.tymoon.eu/libera/%23commonlisp> | Cookbook: <https://lispcookbook.github.io/cl-cookbook> | Pastebin: <https://plaster.tymoon.eu/>
dinomug has joined #commonlisp
donleo has quit [Ping timeout: 272 seconds]
easye has quit [Ping timeout: 248 seconds]
easye` has quit [Remote host closed the connection]
dtman34_ has joined #commonlisp
dtman34 has quit [Ping timeout: 264 seconds]
easye` has joined #commonlisp
easye has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
<modula> hi. is it possible to "un-import" a symbol from a package that has been :use'd? i want to :use a package, but selectively override some of the imported functions, without erasing them from the package i am :use-ing. i tried (unintern 'used-package:sym :using-package) and a few variations of that, but it doesn't seem to work; the function still exists and remains callable in my package, and
<modula> redefining it still overwrites the definition in the package i'm using.
<moon-child> (import (loop for x being the external-symbols of other-package unless (member x exclusion-list) collect x)) perhaps
<edgar-rft> you can also SHADOW symbols in the current package
dinomug has quit [Remote host closed the connection]
herjazz has quit [Quit: leaving]
dinomug has joined #commonlisp
kamafam has quit [Quit: kamafam]
tyson2 has joined #commonlisp
mgl has quit [Ping timeout: 240 seconds]
rgherdt has joined #commonlisp
Lord_of_Life_ has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 272 seconds]
Lord_of_Life_ is now known as Lord_of_Life
Brucio-61 has quit [Remote host closed the connection]
Brucio-61 has joined #commonlisp
<bike> modula: i think you want shadowing.
<modula> i must just be inadvertently doing something weird in my code because shadowing doesn't seem to help either. i will have to investigate further. thank you to all three of you!
<bike> specifically what you'd be doing is shadowing "SYM" in using-package
<modula> yeah, (shadow "SYM" :using-package) is what i tried
yitzi has quit [Remote host closed the connection]
rgherdt has quit [Ping timeout: 264 seconds]
akoana has joined #commonlisp
dcb has joined #commonlisp
<bike> that'll make it so that using-package::sym is its own symbol, independent of used-package::sym
tyson2 has quit [Remote host closed the connection]
dinomug has quit [Remote host closed the connection]
dinomug has joined #commonlisp
dinomug has quit [Remote host closed the connection]
dinomug has joined #commonlisp
Alfr has quit [Quit: Leaving]
dinomug has quit [Remote host closed the connection]
dinomug has joined #commonlisp
ocreugf has joined #commonlisp
dinomug has quit [Remote host closed the connection]
dinomug has joined #commonlisp
dinomug has quit [Remote host closed the connection]
dinomug has joined #commonlisp
dinomug has quit [Remote host closed the connection]
semz has quit [Quit: ZNC 1.8.2+deb2build5 - https://znc.in]
Alfr has joined #commonlisp
dinomug has joined #commonlisp
semz has joined #commonlisp
avocadoist has quit [Ping timeout: 264 seconds]
dinomug has quit [Remote host closed the connection]
dinomug has joined #commonlisp
akoana has quit [Quit: leaving]
larix has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
luis has quit [Quit: The Lounge - https://thelounge.chat]
_dcb has joined #commonlisp
_dcb has quit [Client Quit]
dcb has quit [Ping timeout: 260 seconds]
dnhester26 has joined #commonlisp
pfdietz has quit [Quit: Client closed]
dnhester26 has quit [Ping timeout: 264 seconds]
waleee has quit [Ping timeout: 272 seconds]
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
ocreugf is now known as capybara
capybara is now known as ocreugf
<beach> modula: It is more common these days to not :USE most packages.
ocreugf has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.1)]
dnhester26 has joined #commonlisp
<modula> yes, i have seen that advice around a lot. in this case i control both packages and as far as i can tell it's the easiest way to do the things i'm trying to do. but if i can't figure out a solution to my issue i will see if the suggestion above to import every symbol will work
dnhester26 has quit [Ping timeout: 240 seconds]
<aeth> I usually just import-from but that is only convenient up to a point
<aeth> some people use package-local-nicknames
<beach> I find it convenient when I read code written by someone else (or by me some time ago) to immediately see where a symbol comes from.
<moon-child> ideally the environment would supply or suppress such information on demand, making the difference inconsequential--the problem is purely presentation, which should be user-configurable. I don't know if emacs/clime can be easily configured to do that, though
<beach> You are right that such support belongs in the development environment. But I don't see it happening with our current preferred tools.
<beach> If the editor (say) would give a slightly different color to symbols from different packages, and I could (say) mouse over a symbol and get its package, then there would be no need for package prefixes.
<modula> the real problem with use-ing packages that i've heard is that it will eventually necessitate popular packages to ossify, making it unsafe for them to export new symbols lest they risk causing symbol conflicts for their dependents. for example it would be risky if Alexandria decided to export any new symbols
<beach> Indeed.
<moon-child> beach: yeah
<aeth> right
<moon-child> (I mean, there would still be the issue of typing them, but that should still be user-configurable and handled by the environment)
<aeth> so never use packages (except in other packages within the same (mega)repo) because then the maintainers will have to constantly keep the API stable
<aeth> and as long as that's the common advice, it's on you if it breaks
<aeth> would kind of be nice if DEFPACKAGE could be versioned, though
<aeth> other than the hack alexandria uses of just using .s at the end
<moon-child> what would that enable that (defpackage #:mypackage-v2 ...) can't do?
<aeth> makes tools aware of it
<moon-child> what do tools want to know?
<aeth> because it could be -v2 or .2 or .v2 or -2 or anything else
<aeth> moon-child: would allow an automated way to update the version of the package that you depend on
<moon-child> but what does it benefit a tool to know what one package is 'another version of' another?
<aeth> you could iterate through all versions above the one you have until there's a conflict, if there is one
<moon-child> why do I want to update the version automatically? The only reason for making such a change is that you broke the interface
<aeth> and update your dependency from v2 to v28 or whatever
szkl has joined #commonlisp
<beach> It seems to me that the easiest improvement would be to work on the environment, rather than trying to establish another convention shared by most implementations.
contrapunctus has left #commonlisp [#commonlisp]
contrapunctus has joined #commonlisp
Meritamen has joined #commonlisp
igemnace has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
chomwitt has joined #commonlisp
shka has joined #commonlisp
pve has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
habamax has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.1)]
mariari has quit [Read error: Connection reset by peer]
Gleefre has joined #commonlisp
mariari has joined #commonlisp
dnhester26 has quit [Ping timeout: 252 seconds]
habamax has joined #commonlisp
random-jellyfish has joined #commonlisp
random-jellyfish has joined #commonlisp
xantoz has quit [Ping timeout: 255 seconds]
dinomug has quit [Remote host closed the connection]
bendersteed has joined #commonlisp
LW has joined #commonlisp
anticrisis has quit [Read error: Connection reset by peer]
Meritamen has quit [Remote host closed the connection]
bendersteed has quit [Quit: bendersteed]
jonatack has quit [Read error: Connection reset by peer]
jonatack has joined #commonlisp
rgherdt has joined #commonlisp
Meritamen has joined #commonlisp
mgl has joined #commonlisp
thollief has joined #commonlisp
rgherdt_ has joined #commonlisp
danse-nr3 has joined #commonlisp
rgherdt has quit [Ping timeout: 260 seconds]
danse-nr3 has quit [Remote host closed the connection]
danse-nr3 has joined #commonlisp
dnhester26 has joined #commonlisp
easye` has quit [Remote host closed the connection]
easye has quit [Remote host closed the connection]
easye has joined #commonlisp
Sario has joined #commonlisp
danse-nr3 has quit [Ping timeout: 240 seconds]
danse-nr3 has joined #commonlisp
xantoz has joined #commonlisp
dino_tutter has joined #commonlisp
anticomputer has quit [Remote host closed the connection]
anticomputer has joined #commonlisp
rogersm_ has quit [Quit: Leaving...]
szkl has quit [Quit: Connection closed for inactivity]
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
srji has joined #commonlisp
<srji> i updated my cloudinit file for sbcl/nginx https://git.sr.ht/~marcuskammer/cloudinit/tree/main/item/sbcl-nginx.yml
<ixelp> ~marcuskammer/cloudinit: sbcl-nginx.yml - sourcehut git
donleo has joined #commonlisp
dnhester26 has quit [Ping timeout: 255 seconds]
chomwitt has quit [Ping timeout: 245 seconds]
Meritamen has quit [Ping timeout: 258 seconds]
Meritamen has joined #commonlisp
Meritamen has quit [Remote host closed the connection]
herjazz has joined #commonlisp
igemnace has quit [Read error: Connection reset by peer]
larix has quit [Ping timeout: 264 seconds]
larix has joined #commonlisp
cage has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
Meritamen has joined #commonlisp
Lycurgus has joined #commonlisp
srji has quit [Remote host closed the connection]
igemnace has joined #commonlisp
habamax has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.1.90)]
yitzi has joined #commonlisp
chomwitt has joined #commonlisp
danse-nr3 has quit [Ping timeout: 255 seconds]
tyson2 has joined #commonlisp
<ixelp> Shinmera: "That's more like it. #indiedev #gamedev" - TyNET
dnhester26 has joined #commonlisp
dnhester26 has quit [Ping timeout: 245 seconds]
edr has joined #commonlisp
Meritamen has quit [Ping timeout: 258 seconds]
larix has quit [Ping timeout: 255 seconds]
avocadoist has joined #commonlisp
Meritamen has joined #commonlisp
danse-nr3 has joined #commonlisp
luis has joined #commonlisp
herjazz has quit [Quit: leaving]
dnhester26 has joined #commonlisp
Meritamen has quit [Remote host closed the connection]
msavoritias has joined #commonlisp
danse-nr3 has quit [Remote host closed the connection]
danse-nr3 has joined #commonlisp
CO2 has quit [Quit: WeeChat 4.1.1]
chiselfuse has quit [Remote host closed the connection]
danse-nr3 has quit [Ping timeout: 252 seconds]
danse-nr3 has joined #commonlisp
chiselfuse has joined #commonlisp
amb007 has quit [Ping timeout: 264 seconds]
amb007 has joined #commonlisp
chiselfuse has quit [Remote host closed the connection]
<dnhester26> Hi, if I have a given flexi-stream and I would like to get a sequence from it, how can I do that?
chiselfuse has joined #commonlisp
chiselfuse has quit [Remote host closed the connection]
chiselfuse has joined #commonlisp
<Brucio-61> assuming the stream is an in-memory output stream, FLEXI-STREAMS:GET-OUTPUT-STREAM-SEQUENCE should do that
<dnhester26> Thanks!
<dnhester26> Brucio-61 I'm getting this type: #<FLEXI-STREAMS:FLEXI-INPUT-STREAM {10017D88E3}> which is giving me an error
<dnhester26> I'm confused about input and output. Is input what is read into lisp and is output what I can output into the file? or is it the othwer way around?
<dnhester26> I'm basically trying to read a file and return a sequence
<Brucio-61> if i understand correctly, you don't need flexi-streams for what you want. (open FILENAME :direction :input :element-type '(unsigned-byte 8)) should give you a binary input stream
<Brucio-61> you can use READ-BYTE and READ-SEQUENCE to read from such a stream (and WITH-OPEN-FILE instead of OPEN may be appropriate for opening and closing)
<dnhester26> I did that, then tried using (read) on that output and got an error. I am using some library that by calling a method it returns a flexi-stream, it's easier than having to parse the pathnames, but either way I'm just trying to get a sequence from it
<dnhester26> read-byte gave me a simple-type-error
dnhester26 has quit [Remote host closed the connection]
<Brucio-61> does the type error mention the expected and actual types? from your description, i would expect the flexi-stream to be a binary input stream. such a stream should support READ-BYTE
dnhester26 has joined #commonlisp
chiselfuse has quit [Remote host closed the connection]
chiselfu1e has joined #commonlisp
Lycurgus has quit [Quit: leaving]
dnhester26 has quit [Ping timeout: 240 seconds]
Meritamen has joined #commonlisp
random-nick has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
dino_tutter has quit [Ping timeout: 264 seconds]
pfdietz has joined #commonlisp
Meritamen has quit [Ping timeout: 255 seconds]
Lycurgus has joined #commonlisp
Lycurgus has quit [Changing host]
Lycurgus has joined #commonlisp
justHaunted is now known as justache
chiselfu1e has quit [Remote host closed the connection]
chiselfuse has joined #commonlisp
CO2 has joined #commonlisp
dnhester26 has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
dnhester26 has quit [Ping timeout: 255 seconds]
Lycurgus has quit [Quit: leaving]
amb007 has joined #commonlisp
danse-nr3 has quit [Ping timeout: 255 seconds]
danse-nr3 has joined #commonlisp
yitzi has quit [Remote host closed the connection]
waleee has joined #commonlisp
sjl has joined #commonlisp
random-jellyfish has quit [Ping timeout: 264 seconds]
dnhester26 has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
<dnhester26> Hi Brucio-61 sorry for the late reply, just came back. Nope, the error doesn't tell me the expected and actual types when I tried to do read-byte. However, in the function I need it, I need to have a SEQUENCE type and I have instead a flexi-stream type
Gleefre has joined #commonlisp
snits has quit [Ping timeout: 252 seconds]
dnhester has joined #commonlisp
snits has joined #commonlisp
sjl has quit [Ping timeout: 255 seconds]
<dnhester26> Brucio-61 found what I needed I think: `(alexandria:read-stream-content-into-byte-vector (mito-attachment:get-object *file1*))`
<dnhester26> It's this alexandria function
<dnhester26> Th read-byte worked, not with (open) but with the flexi-stream
<dnhester26> It would return one byte at a time
<ixelp> Convert a flexi-stream containing a vector of octets to a utf-8 string in common lisp - Stack Overflow
<dnhester26> Thanks for the help!
sjl has joined #commonlisp
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
random-jellyfish has joined #commonlisp
random-jellyfish has joined #commonlisp
santiagopim has joined #commonlisp
szkl has joined #commonlisp
sjl has quit [Ping timeout: 245 seconds]
notzmv has joined #commonlisp
sjl has joined #commonlisp
yitzi has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
tibfulv_ has joined #commonlisp
tibfulv has quit [Ping timeout: 272 seconds]
dnhester has quit [Ping timeout: 248 seconds]
tyson2 has quit [Remote host closed the connection]
dino_tutter has joined #commonlisp
waleee has quit [Ping timeout: 245 seconds]
pfdietz has quit [Quit: Client closed]
random-jellyfish has quit [Ping timeout: 240 seconds]
igemnace has quit [Remote host closed the connection]
dcb has joined #commonlisp
pfdietz has joined #commonlisp
tyson2 has joined #commonlisp
danse-nr3 has quit [Read error: Connection reset by peer]
danse-nr3 has joined #commonlisp
<moon-child> Shinmera: kandria 2 in 3d??
easye has quit [Remote host closed the connection]
<Shinmera> there will never be a kandria 2
<Shinmera> but the next game is in 3d, yes
<skeemer> hello everyone i was wondering if there was something kind of unique to common lisp that puts it apart from other lisps/schemes, for example when it comes to "interactivity" is there some added value that common lisp gives wrt e.g., racket or clojure?
<Shinmera> CLOS
<Shinmera> restarts
<beach> skeemer: You can't really compare Common Lisp to Racket or Clojure. Common Lisp is a language standard established by an independent standardization organization. That is not the case for the others.
<skeemer> beach: ok let's say then sbcl
<beach> skeemer: Nah, I think it is of utmost importance to use a language that has an independent standard.
<beach> skeemer: To elaborate on the CLOS answer, Common Lisp supports interactive redefinition of classes with automatic updates of existing class instances.
<Shinmera> and changing the class of instances
<beach> ... and that.
<beach> skeemer: And to elaborate on the "restarts" answer, the Common Lisp condition system is very different from most exception systems around, in that it does not unwind the stack when a condition is signaled, making it possible for the signaling code to give client code the option to continue execution with possibly several options.
NotThatRPG has joined #commonlisp
<Shinmera> the impact of either of those features really can't be understood in a vacuum though, you have to use them to get it, and probably use them for quite a while.
<skin> Shout out to phoe, he wrote it.
<beach> skeemer: Does that make sense to you?
mgl has quit [Ping timeout: 258 seconds]
<beach> In fact, the Common Lisp condition system was inspired (indirectly?) by that of Multics PL/I, which was an excellent interactive system despite using a static language. Granted, it was less static, given the Multics interactive support.
dnhester26 has joined #commonlisp
zxcvz has joined #commonlisp
<skeemer> beach: so common lisp is still alive we can say as a language
<beach> I don't understand.
<skeemer> i mean although alternatives with a lisp like syntax come up like clojure and so on... there is still work in using lisp, i mean it is not something like cobol
<skeemer> so to say
<beach> Sure.
dnhester26 has quit [Ping timeout: 255 seconds]
<beach> skeemer: The software industry, and more generally the software domain, is extremely fad driven and keeps searching for new and hopefully better things, while stubbornly refusing to acknowledge that things already exist that are better than what they are currently using.
<beach> skeemer: This is clearly a lack of training and education. And good training and education is hard to find.
tyson2 has quit [Remote host closed the connection]
<skeemer> how can i get good training and education in lisp then ?
<beach> The only option I can see is to read books and get help here and in #clschool.
<beach> ... and of course to work some projects.
<skeemer> beach which books?
<beach> The usual ones: PCL, PAIP, Keene's book, On Lisp.
<beach> That should keep you busy for quite a while.
<beach> Oh, and phoe's book, of course.
pfdietz has quit [Quit: Client closed]
eta has left #commonlisp [#commonlisp]
Lycurgus has joined #commonlisp
Lycurgus has quit [Changing host]
Lycurgus has joined #commonlisp
danse-nr3 has quit [Ping timeout: 272 seconds]
dnhester26 has joined #commonlisp
Lycurgus has quit [Quit: leaving]
NotThatRPG has quit [Remote host closed the connection]
<skeemer> What is keene's book?
<skeemer> you don't suggest SICP then ?
rakka has quit [Remote host closed the connection]
rakka has joined #commonlisp
<Shinmera> SICP is about Scheme, not Common Lisp.
random-jellyfish has joined #commonlisp
random-jellyfish has joined #commonlisp
mgl has joined #commonlisp
<edgar-rft> skeemer: Keene's Book see -> https://www.cliki.net/Keene
<ixelp> CLiki: Keene
rogersm has joined #commonlisp
attila_lendvai has joined #commonlisp
Lycurgus has joined #commonlisp
Lycurgus has joined #commonlisp
Lycurgus has quit [Changing host]
NotThatRPG has joined #commonlisp
rgherdt_ has quit [Ping timeout: 258 seconds]
anticrisis has joined #commonlisp
tok has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
morganw has joined #commonlisp
waleee has joined #commonlisp
Guest63 has joined #commonlisp
<cedb> id still sttart with sicp
<cedb> well itd be in the list
<cedb> its not even so much a lisp book as an essay on the concept ofa discipline computer science
pfdietz has joined #commonlisp
<skeemer> cedb: it is a great book indeed
sjl has quit [Ping timeout: 258 seconds]
cage has quit [Quit: rcirc on GNU Emacs 29.1]
tyson2 has joined #commonlisp
Lycurgus has quit [Quit: leaving]
<Guest63> It is touted book.
markb1 has quit [Ping timeout: 272 seconds]
szkl has quit [Quit: Connection closed for inactivity]
markb1 has joined #commonlisp
sjl has joined #commonlisp
rgherdt has joined #commonlisp
Guest63 has quit [Quit: Client closed]
tyson2 has quit [Remote host closed the connection]
msavoritias has quit [Ping timeout: 240 seconds]
<skeemer> hello everyone i am trying to install the latest version of clisp with roswell
<skeemer> i did ros install clisp/2.49
<skeemer> but after a while i get this error
<skeemer> #<FOREIGN-VARIABLE "rl_readline_state" #x00007F6994EE37A8> does not have the required size or alignment
<skeemer> i am on GNU/Linux arch distribution fully updated
<cedb> isnt there a clisp pacakge in core or extra?
szkl has joined #commonlisp
<skeemer> cedb: i wanted to try installing it with ros
<skeemer> that was the whole point
<cedb> fair fair
<cedb> is there a bin version?
zxcvz has quit [Quit: zxcvz]
<skeemer> yes
<skeemer> i mean of sbcl
<skeemer> is there anyway a nicer version of the hyperspec ?
<skeemer> something i can read from command line maybe ?
<skeemer> i mean is there only the website from lispworks ?
<cedb> theres the clwiki
<ixelp> Common Lisp Nova Spec
* cedb lurks
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
* cedb accumulates more clean css stylesheets
dnhester26 has joined #commonlisp
<gilberth> I made sure that it also works well with w3m.
lagash has quit [Remote host closed the connection]
<moon-child> gilberth: can you add autofocus to the search box?
lagash has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
<gilberth> moon-child: There is some attribute I can set, right?
Gleefre has joined #commonlisp
<ixelp> autofocus - HTML: HyperText Markup Language | MDN
tyson2 has joined #commonlisp
yitzi has quit [Remote host closed the connection]
morganw has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.1)]
jmdaemon has joined #commonlisp
thollief has quit [Quit: Leaving]
pve has quit [Quit: leaving]
pfdietz has quit [Quit: Client closed]
habamax has joined #commonlisp
rogersm has quit [Quit: Leaving...]
shka has quit [Ping timeout: 255 seconds]
samebchase has quit [Read error: Connection reset by peer]
pranavats has quit [Ping timeout: 240 seconds]
samebchase has joined #commonlisp
chomwitt has quit [Remote host closed the connection]
chomwitt has joined #commonlisp
attila_lendvai has quit [Ping timeout: 264 seconds]
tok has quit [Remote host closed the connection]
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
samebchase has quit [Quit: Ping timeout (120 seconds)]
samebchase has joined #commonlisp
anticrisis has quit [Read error: Connection reset by peer]
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
chomwitt has quit [Ping timeout: 248 seconds]
anticrisis has joined #commonlisp
donleo has quit [Read error: Connection reset by peer]
amb007 has quit [Ping timeout: 264 seconds]
amb007 has joined #commonlisp
jmdaemon has quit [Ping timeout: 255 seconds]
Inline has quit [Ping timeout: 258 seconds]
Inline has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
dino_tutter has quit [Ping timeout: 245 seconds]
random-nick has quit [Ping timeout: 240 seconds]
rgherdt has quit [Read error: Connection reset by peer]
rgherdt has joined #commonlisp