freenode/#lisp - IRC Chatlog
Search
23:16:37
dwts
Xach: I was trying to do the cli program approach but a few active users at the point I asked the question adviced me against doing that until my program is "ready". My program isn't "ready" but it's close to a point that I want to start see if I can use it with other programs that's why I asked if there's a way to combine the two
23:17:10
Xach
dwts: out of curiosity, what is the thing your lisp program generates that is consumed by another program?
23:17:26
Walex
Well, if you have ever used 'rplacd' Zhivago should understand how 'l-value's work (the Common Lisp equivalent that is).
23:18:43
dwts
Xach: I'm using lisp to search through an API that returns a json ouput. And I would like to see my output pretty printed. I was thinking to pass that to jq
23:19:03
Xach
dwts: oh. well, there is a lisp json pretty-printer, too. but i understand the general idea.
23:19:42
dwts
Xach: I'm sure there is, but until I write the code that does that in lisp, I need to see the ouptut pretty-printed
23:23:08
dwts
jasom: when I try to select the output, output disappears after trying to change buffer so I can't select anything. I'm getting the output through C-x C-e, if that helps.
23:25:17
dwts
maybe writing that to a file is easier as Xach suggested. But I was curious if there was a more elegant way when you go the non-cli route
23:29:36
dwts
Xach: I would prefer the compiling approach as well. But I followed the C-x C-e route as suggested here
0:15:44
Walex
Zhivago: in the discussion above you have referred to "cell". In Common Lisp that is a "slot", which maps pretty closely to the C notion of 'l-value' (and indeed it is as a rule implemented as an 'l-value'). The "value" slot of a symbol, or the "CAR" and "CDR" slots of "CONS" values, are all "slots", that is have the same semantics as l-values, or "anonymous variables". Because of legacy reasons the relevant sections of CLHS are written with poor terminology an
0:55:38
aeth
(it's a design flaw of IRC to (1) cut off at an arbitrary point that depends on your nick and the IRC server and (2) not provide any way of knowing that it cut off)
0:58:44
aeth
You're correct that the terminology in CLHS is odd at points. That's not particularly specific to CL, though. Every language has its own, incompatible terminology quirks and it's easy to say the wrong thing if you talk about it to a different language community. Even Scheme uses different words for almost identical concepts as CL (and Scheme is as close as you're going to CL in mainstream languages except elisp)
1:01:16
Zhivago
I don't know -- he was going on in some confused fashion about variable bindings earlier.
9:32:22
resttime
Is it possible to connect to a lisp REPL on a device where you can only talk with it via a serial connection?
9:40:23
resttime
Hmmm, I guess to double check: Suupose there's an embedded ARM system like raspberry pi but can only have a single serial connection to communicate to it with something like 'screen /dev/ttyUSB0' (not SSH). THere is a way to connect on a computer with SLIME to the swank server that a lisp is running on this device?
9:41:43
resttime
Never done something like this except SSH tunneling, so I suppose this is fairly new to me.
9:50:54
jdz
There are "protocols" to multiplex a serial line, for instance XMODEM for file transfer.
9:52:43
resttime
Hmmm, I'm probably going to have a lot of research to do. Completely new stuff to me.
9:53:41
jdz
Yes, I just finished reading "UNIX-HATERS Handbook", which states that the stuff from 1980ies should still work today.
9:54:57
resttime
I was hoping there would be some kind of simple way to just do "SSH tunneling port but with a serial connection"
9:55:05
jdz
I've had to poke around with stty and whatnot on OSX to get some stuff working, and I did manage to get it working, so I bet the stuff still works.
9:58:53
resttime
Yeah, it's that 'screen /dev/ttyUSB0' can drop me into a busybox shell on the device and I was wondering if I could do the stuff I would do if I used like SSH on tunneling the swank server port
10:01:11
d4ryus
Are you able to start a swank instance listening on a local port? or is there no network at all?
10:03:55
d4ryus
i had a broken ethernet on my pi and no wifi available. But i was able to start swank and then tunnel stuff via usb terminal and netcat. Was quite a hack yes, but it worked
10:07:06
resttime
Hmmmm, that's reassuring to know. I suppose I will also try and explore whether it's possible to enable networking. I've so far assumed it wasn't because connections with the device have been only serial with the screen utility and I would imagine people would want to switch to something better if they could (hence conclusion that couldn't)