<drmeister>
How does one debug why ASDF can't find a system? I use `(asdf:load-asd "/home/meister/Development/cando-llvm14/extensions/cando/src/lisp/cando/cando.asd")` and then `(asdf:load-system :cando)` and I get:
<drmeister>
Debugger received error of type: MISSING-COMPONENT Component :CANDO not found
<drmeister>
Many other systems in the directories around that asd file are found just fine.
<drmeister>
It's like ASDF has a blind spot for that one :cando system.
Lemniscate has joined #commonlisp
Sauvin has quit [Ping timeout: 255 seconds]
<ebrasca>
Can usocket handle half open connections?
<drmeister>
ebrasca: I don't know the answer to that.
<pl>
ebrasca: what do you mean by half-open? IIRC, CONNECT won't return until either connection fails or gets established
<ebrasca>
pl: Start tcp connection , close it(close sending data) , read the data over the half open connection!
<pl>
ebrasca: that's not half-open, that's a socket in process of shutdown. If there's extant data being sent by the other side, you should be able to read it, iirc
Lord_of_Life_ has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 244 seconds]
<ebrasca>
The tcp ip allow you to close and still get data from the other side!
Lord_of_Life_ is now known as Lord_of_Life
<ebrasca>
Both sides need to close for the connection to terminate orderly!
<pl>
yes, that's what happens when you use shutdown(2) call
<pl>
it is, however, not "half-open"
<ebrasca>
What do you mean?
<pl>
it's in FIN-WAIT-1 or FIN-WAIT-2
akoana has joined #commonlisp
<ebrasca>
Why can't you call it half open?
<pl>
and on most (all?) systems that triggers a cleanup timer
<pl>
ebrasca: because the TCP state machine is rather officially documented including state names :)
<pl>
and half-open is misleading
pmwals09 has joined #commonlisp
pmwals09 has quit [Read error: Connection reset by peer]
<ebrasca>
I see , in the pdf it is half-close connection!
pmwals09 has joined #commonlisp
<ebrasca>
pl: I have read part of Richard Stevens TCP IP Illustrated en
<pl>
the names FIN-WAIT-1/2 and CLOSE-WAIT come from RFC that finalized IPv4 into usable form
<ebrasca>
Thanks , I am making progres fixing Mezzano TCP ip!
<ebrasca>
It is hard for me to test some of the states
<ebrasca>
Like Simultaneous open/close
<pl>
ebrasca: ohhh, tried to make connect without listening sockets? :)
<pl>
that's one of those hairy parts of TCP that most people, even with decades of experience, tend to not acknowledge
<mfiano>
ACK
Guest74 has joined #commonlisp
<ebrasca>
pl: I have not!
<pl>
tl;dr if you get the same tuple on both sides of connection, you can do simultaneous (well, with some margin of time difference) connect() and get an established TCP connection. Without setting up listen()/accept()
<pl>
this is used sometimes in breaking through NAT
orestarod has quit [Ping timeout: 258 seconds]
<ebrasca>
It is going to take forever to fix most of the problems in the tcp ip implementation
<zacque>
drmeister: Is the system name defined in "cando.asd" really "cando"?
<zacque>
It's helpful to know where ASDF searches for systems. Read "Chapter 8: Controlling where ASDF searches for systems".
<zacque>
To debug by path, you can compare paths to those searchable systems to "cando" with (ASDF:COMPONENT-PATHNAME (ASDF:FIND-SYSTEM :FOO))
yewscion has quit [Ping timeout: 272 seconds]
Oladon has quit [Quit: Leaving.]
<drmeister>
zacque: Yes, the system name defined in "cando.asd" is "cando". I just discovered the source of the problem.
<drmeister>
I had three clones of the "cando" extension in a directory and asdf was registering a "cando.asd" file in one of them that shouldn't have been there.
<mfiano>
(ql:where-is-system "cando") next time
<drmeister>
I did this because I had a particularly painful git merge going on and I had two clones of branches that I was merging from and merging into. One of them messed it up.
<drmeister>
mfiano: That is very helpful - I did not know that existed. Thank you.
<mfiano>
Sure
Bike has quit [Quit: Lost terminal]
ebrasca has quit [Remote host closed the connection]
Bike has joined #commonlisp
yauhsien has joined #commonlisp
aartaka has quit [Ping timeout: 244 seconds]
gamaliel has joined #commonlisp
gamaliel has quit [Client Quit]
aartaka has joined #commonlisp
yauhsien has quit [Ping timeout: 255 seconds]
jeosol has joined #commonlisp
akoana has quit [Quit: leaving]
<beach>
Good morning everyone!
superduperuser has joined #commonlisp
Bike has quit [Quit: Connection closed]
tyson2 has quit [Remote host closed the connection]
yauhsien has joined #commonlisp
pmwals09 has quit [Remote host closed the connection]
yauhsien has quit [Ping timeout: 258 seconds]
aartaka has quit [Ping timeout: 260 seconds]
trev has joined #commonlisp
White_Flame has quit [Remote host closed the connection]
White_Flame has joined #commonlisp
karlosz has joined #commonlisp
rotateq has quit [Ping timeout: 244 seconds]
karlosz has quit [Ping timeout: 240 seconds]
pranavats has left #commonlisp [#commonlisp]
mrcom has quit [Quit: Leaving]
mrcom has joined #commonlisp
frgo has quit [Ping timeout: 255 seconds]
WBarends has joined #commonlisp
aartaka has joined #commonlisp
aartaka has quit [Read error: Connection reset by peer]
aartaka has joined #commonlisp
Cymew has joined #commonlisp
rotateq has joined #commonlisp
Josh_2 has joined #commonlisp
<Josh_2>
Good morning :sunglasses:
ttree has quit [Ping timeout: 258 seconds]
rotateq has quit [Ping timeout: 240 seconds]
pepsi has joined #commonlisp
boro has joined #commonlisp
SAL9000_ has joined #commonlisp
hisacro_ has joined #commonlisp
Colleen has quit [*.net *.split]
SAL9000 has quit [*.net *.split]
fiddlerwoaroof_ has quit [*.net *.split]
mfiano has quit [*.net *.split]
borodust has quit [*.net *.split]
mzan has quit [*.net *.split]
mister_m has quit [*.net *.split]
loke___ has quit [*.net *.split]
hisacro has quit [*.net *.split]
xantoz has quit [*.net *.split]
jamesmartinez has quit [*.net *.split]
SAL9000_ is now known as SAL9000
rotateq has joined #commonlisp
opc0de has quit [Ping timeout: 244 seconds]
mister_m has joined #commonlisp
Colleen has joined #commonlisp
xantoz has joined #commonlisp
mzan has joined #commonlisp
fiddlerwoaroof_ has joined #commonlisp
opc0de has joined #commonlisp
mfiano has joined #commonlisp
yauhsien has joined #commonlisp
superduperuser has quit [Quit: Connection closed for inactivity]
yauhsien has quit [Ping timeout: 255 seconds]
boro is now known as borodust
shka has joined #commonlisp
Guest74 has quit [Ping timeout: 258 seconds]
yauhsien has joined #commonlisp
azimut has quit [Remote host closed the connection]
lisp123 has quit [Remote host closed the connection]
yauhsien has quit [Remote host closed the connection]
yauhsien has joined #commonlisp
causal has joined #commonlisp
yauhsien has quit [Ping timeout: 258 seconds]
perrierjouet has quit [Quit: WeeChat 3.5]
<dirtcastle>
is there a offtopic channel. i have a question abt stumpwm
<Josh_2>
#lispcafe I think
random-nick has joined #commonlisp
notzmv has quit [Ping timeout: 260 seconds]
<dirtcastle>
I used (setf *message-window-gravity* : centre) for some reason stumpwm is crashing
<Josh_2>
maybe remove the space after :?
<dirtcastle>
I'm using mobile client. only in mobile I gave space. no space in actual code.
Posterdati has joined #commonlisp
<jackdaniel>
maybe because you've mispelled :center ?
<jackdaniel>
it would be good if you had explained what do you mean by crashing. crashing into the debugger? crashing with a segfault? crashing the Xserver?
zacque has quit [Remote host closed the connection]
varjag has joined #commonlisp
azimut has quit [Remote host closed the connection]
azimut has joined #commonlisp
<edgar-rft>
mom said: don't speak with full mouth :-)
orestarod has joined #commonlisp
Posterdati has joined #commonlisp
aartaka has quit [Ping timeout: 240 seconds]
scymtym has quit [Remote host closed the connection]
mrcom has joined #commonlisp
lisp123 has quit [Read error: Connection reset by peer]
Brucio-61 has quit [Ping timeout: 244 seconds]
yewscion has joined #commonlisp
pranavats has joined #commonlisp
Brucio-61 has joined #commonlisp
Brucio-61 has quit [Remote host closed the connection]
Brucio-61 has joined #commonlisp
gxt has quit [Ping timeout: 240 seconds]
yauhsien has joined #commonlisp
notzmv has joined #commonlisp
scymtym has joined #commonlisp
gxt has joined #commonlisp
yauhsien has quit [Ping timeout: 240 seconds]
Dynom has joined #commonlisp
azimut has quit [Remote host closed the connection]
azimut has joined #commonlisp
pranavats has left #commonlisp [Error from remote client]
analogsalad has quit [Quit: bye]
<Josh_2>
Website I wrote in CL handled almost 200k requests last month :sunglasses:
<Josh_2>
well last 30 days
<beach>
Josh_2: What is your native language?
<Josh_2>
I'm an anglo
<beach>
Got it.
<Josh_2>
Why do you ask?
<beach>
You left out an article on a singular noun, which is characteristic of some languages, but not English.
<beach>
So I was curious.
<beach>
I am what you might call an "amateur linguist" in that I am fascinated by languages, dialects, and accents.
Bike has joined #commonlisp
<Josh_2>
Any languages in particular?
<beach>
Not really. But it helps if I have some notion of a language.
<Josh_2>
I speak the queens English but type like I'm handicapped :sunglasses: zoomer problems
<beach>
I see.
<yitzi>
beach: Seems to me that native English speakers (myself included) vary widely in their usage patterns. Obviously, by country and region most significantly.
<jackdaniel>
Josh_2: a missed opportunity to claim, that your native language is Common Lisp ,)
<yitzi>
jackdaniel: My native language is binary. I have to convert to analogue to converse with biological entities. ;-)
<beach>
yitzi: Yes, English is fascinating that way.
<jackdaniel>
1
<Josh_2>
jackdaniel: :(
<yitzi>
beach: There are coastal islands in the US state that I live in which there are a couple of hundred native speakers of various English Creole languages. Very small isolated communities.
<beach>
yitzi: If I had the time, I might decide to study such things.
<yitzi>
I agree. Very interesting.
<beach>
I stick with more mundane stuff, like the use of "different than" and "different to" in different parts of the world.
flip214 has quit [Ping timeout: 260 seconds]
<lagash>
beach: you've see My Fair Lady?
<beach>
Yes.
igemnace has quit [Quit: WeeChat 3.5]
<lagash>
Great play and film.
* jackdaniel
gently nudges the discussion to move to #lispcafe
<beach>
Indeed.
igemnace has joined #commonlisp
<beach>
There are probably dialects and accents in programming languages as well, but the dialects are probably not so much related to geography.
<beach>
Accents are related to other languages that the programmer knows, of course.
attila_lendvai has quit [Ping timeout: 255 seconds]
azimut has quit [Remote host closed the connection]
azimut has joined #commonlisp
rotateq has quit [Read error: Connection reset by peer]
pfd has joined #commonlisp
Lemniscate is now known as Sauvin
Guest74 has joined #commonlisp
Brucio-61 has quit [Read error: Connection reset by peer]
<Guest74>
Beach: I don't know much about other programming languages but I'd argue CL probably has the capacity to allow the most 'dialects'. Though in practice I haven't seen too many groups.
scymtym has quit [Read error: Connection reset by peer]
<beach>
Guest74: That makes sense. The more a language is multi-paradigm, the more dialects it would allow.
<Guest74>
There's definitely some code out there where I recognize all the words and what they're being used for, but I have no clue why they're using them in this case, or for what.
<beach>
I can see that.
<Guest74>
Even behaves like other languages in that it evolves as youngsters 'misuse' it despite corrections from elders.
<beach>
Yep.
treflip has joined #commonlisp
X-Scale` has joined #commonlisp
X-Scale has quit [Ping timeout: 255 seconds]
X-Scale` is now known as X-Scale
yewscion has quit [Quit: Connection closed]
yewscion has joined #commonlisp
scymtym has joined #commonlisp
rotateq has joined #commonlisp
treflip has quit [Remote host closed the connection]
treflip has joined #commonlisp
flip214 has joined #commonlisp
Brucio-61 has joined #commonlisp
vassenn has joined #commonlisp
Cymew has quit [Ping timeout: 240 seconds]
yewscion has quit [Quit: Connection closed]
tyson2 has quit [Remote host closed the connection]
treflip has quit [Remote host closed the connection]
treflip has joined #commonlisp
varjag has quit [Quit: ERC (IRC client for Emacs 26.3)]
<jmes>
What is the best way to get a file path relative to the current file?
<beach>
What is meant by "the current file"?
<jmes>
beach: You've illustrated why I'm confused haha. I mean every project has a directory tree and let's say some images are in $PROJECT_ROOT/images/ then you have $PROJECT_ROOT/code.lisp which wants to do something with an image
<beach>
Oh, that one is easy.
<beach>
Let me check to make sure...
<Guest74>
asdf:system-relative-pathname
<beach>
asdf:system-relative-pathname
ttree has joined #commonlisp
<mfiano>
Note that this will not work in a deployed setting, since ASDF has already been loaded when you dumped an executable image, and so will refer to the path of the deploying system, not the user's system...if that matters to you.
karlosz has joined #commonlisp
<jmes>
beach, Guest74, mfiano: thanks, I think it should work for my case. Someone I know mentioned UIOP but I couldn't see if there was something in that package to help me
<mfiano>
uiop:dump-image along with uiop:raw-command-line-arguments, most likely.
kpoeck has quit [Quit: Client closed]
<jmes>
Great, I'll look into those, thanks!
<yitzi>
Over in #clasp we have been working on the eventual goal of getting Clasp into the package repositories of various Linux distrubutions, Homebrew, etc. We are not quite there yet, but we do have nightly packaged binary repositories for Ubuntu 22.04, Debian Bookworm (now testing) and Arch. For those that are interested please see here
<mfiano>
With raw-command-line-arguments, should your implementation be supported by UIOP, you can get POSIX argv0
<mfiano>
Which is a way to get the path to the invoked binary at runtime in a deployed setting. You can couple this with the asdf solution, if you check whether running "interactively" or not.
<mfiano>
It is a pain to combine it all into a working solution if you want to deploy an application, but not undoable. (I've done it several times in a few different ways)
<mfiano>
Alternatively, you could load your assets into your image, so they are part of the dumped image itself, and refer with, for example, a dynamic variable, instead of a path.
<mfiano>
Depending on how large, and the minimum memory requirement of your application on user machines.
ttree has quit [Ping timeout: 272 seconds]
tyson2 has joined #commonlisp
frgo has joined #commonlisp
frgo has quit [Read error: Connection reset by peer]
frgo has joined #commonlisp
frgo has quit [Ping timeout: 260 seconds]
trev has quit [Remote host closed the connection]
attila_lendvai has joined #commonlisp
karlosz has quit [Quit: karlosz]
irc_user has joined #commonlisp
cage has joined #commonlisp
<White_Flame>
jmes: there is uiop:current-lis-file-pathname, but that might foil some C-c C-c style usage
<White_Flame>
s/lis/lisp/
<White_Flame>
it also looks like I never use the tool that I tried to build with it, so :shrug:
bitmapper has joined #commonlisp
aartaka has joined #commonlisp
vassenn has quit [Read error: Connection reset by peer]
tfb has joined #commonlisp
jeosol has quit [Quit: Client closed]
trokotech has joined #commonlisp
aartaka has quit [Ping timeout: 276 seconds]
aartaka has joined #commonlisp
dra has joined #commonlisp
aartaka has quit [Ping timeout: 244 seconds]
ec has joined #commonlisp
aartaka has joined #commonlisp
aartaka has quit [Ping timeout: 272 seconds]
ebrasca has joined #commonlisp
aartaka has joined #commonlisp
joast has quit [Ping timeout: 240 seconds]
tyson2 has quit [Remote host closed the connection]