freenode/#lisp - IRC Chatlog
Search
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)
14:40:33
dwts
hey guys, has anyone used lisp for generating code in other languages? I believe I've read this is not that uncommon for lisp. I was thiking about writing lisp code to generate terraform code for me
14:42:05
nyef`
dwts: Umm... You realize that any native-code lisp compiler fits that definition, right?
14:43:04
dwts
nyef`: native as in machine code? I'm interested in generating terraform code which is more like json
14:43:07
Zhivago
There is nothing particularly special about lisp for that task in either direction.
14:43:25
Zhivago
nyef's point is that what you are describing is a compiler, of which there are many written in lisp.
14:44:15
nyef`
Another example would be from the "XP" paper, where they abuse the lisp pretty-printer to produce Pascal syntax.
14:46:04
dwts
nyef`: this one? https://www.researchgate.net/publication/242313131_Using_the_new_common_Lisp_pretty_printer
14:46:18
Bike
dunno what you mean by "treated like code". just saying that writing out data structures can be a little easier.
14:47:21
dwts
Bike: well I want to use lisp to generate some tfvar files. then these files can be executed by terraform
14:47:45
dwts
nyef`: yeah, The site is temporarily down while we do some maintenance. It will be back up shortly.
14:48:24
Bike
i don't see an actual syntax description, but https://www.terraform.io/intro/getting-started/variables.html looks simple enough
14:50:21
dwts
yeah, I just want to automate some processes, I don't want to copy/paste then edit files every time I'm creating a new instance.
14:51:15
dwts
Zhivago: sure, I just got the impression that when compilers mentioned earlier machine code was implied
14:53:30
Bike
in any case this is a configuration file format. doesn't look like it has any control flow. easy
14:54:42
Bike
and it accepts json too. So you could skip work and use one of the existing json output dealies.
14:56:37
Zhivago
If you're generating it as output you might as well make it the simplest and stupidest format available with the best library support.