<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
damke_ has joined #lisp
damke__ has joined #lisp
damke has quit [Ping timeout: 240 seconds]
cromachina has joined #lisp
damke_ has quit [Ping timeout: 240 seconds]
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven`` has joined #lisp
margeas has quit [Ping timeout: 240 seconds]
groovy2shoes has quit [Quit: Leaving]
brendyn has joined #lisp
raphaelss has quit [Ping timeout: 240 seconds]
neoncontrails has joined #lisp
jameser has joined #lisp
astronavt has joined #lisp
fikka has quit [Ping timeout: 260 seconds]
astronavt has quit [Ping timeout: 255 seconds]
k-stz has quit [Remote host closed the connection]
<aeth>
Walex: your line cut off after "poor terminology an"
<Zhivago>
Walex: Sorry -- did you ever get around to the bit which has a point to it?
<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)
<Zhivago>
Also I didn't refer to "cell" -- you seem to be confused.
borei has joined #lisp
mson has joined #lisp
quazimodo has quit [Ping timeout: 268 seconds]
<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)
quazimodo has joined #lisp
<Zhivago>
Is that Walex's point -- that the terminology is odd?
<aeth>
What's a "list"? A "vector"? An "array"? A "string"? etc. Depends on the language.
<aeth>
Zhivago: I think Walex's point is that CL's terminology is incorrect and dated.
<Zhivago>
I don't know -- he was going on in some confused fashion about variable bindings earlier.
<Zhivago>
I'm not sure that he's caught up to lexical bindings yet.
damke has joined #lisp
prxq has quit [Remote host closed the connection]
damke__ has quit [Ping timeout: 240 seconds]
turkja has joined #lisp
damke has quit [Ping timeout: 240 seconds]
zachk has quit [Quit: night]
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__paul0 has quit [Quit: Leaving]
paul0 has joined #lisp
Ven`` has joined #lisp
fikka has joined #lisp
igemnace has joined #lisp
Jesin has joined #lisp
sz0 has joined #lisp
fikka has quit [Ping timeout: 268 seconds]
dieggsy has joined #lisp
damke has joined #lisp
cpt_nemo has joined #lisp
astronavt has joined #lisp
vancan1ty has quit [Ping timeout: 255 seconds]
astronavt has quit [Ping timeout: 240 seconds]
danieli has quit [Remote host closed the connection]
karswell has joined #lisp
dieggsy has quit [Remote host closed the connection]
Aaryn has quit [Read error: Connection reset by peer]
asarch has joined #lisp
damke_ has joined #lisp
rm8 has quit [Quit: i slep]
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eSVG has joined #lisp
damke has quit [Ping timeout: 240 seconds]
damke has joined #lisp
damke__ has joined #lisp
damke_ has quit [Ping timeout: 240 seconds]
amer has joined #lisp
damke has quit [Ping timeout: 240 seconds]
angavrilov has joined #lisp
clog_ has joined #lisp
libre-ma1 has joined #lisp
Oladon1 has joined #lisp
orivej_ has joined #lisp
quazimod1 has joined #lisp
nyef` has joined #lisp
impulse- has joined #lisp
pareidolia_ has joined #lisp
dotcra has joined #lisp
libre-man has quit [Ping timeout: 248 seconds]
angavrilov_ has quit [Read error: Connection reset by peer]
cess11_ has joined #lisp
rumbler31 has joined #lisp
igemnace_ has joined #lisp
igemnace has quit [*.net *.split]
quazimodo has quit [*.net *.split]
orivej has quit [*.net *.split]
clog has quit [*.net *.split]
davsebamse has quit [*.net *.split]
amerlyq has quit [*.net *.split]
borodust has quit [*.net *.split]
impulse has quit [*.net *.split]
terpri has quit [*.net *.split]
Oladon has quit [*.net *.split]
pok has quit [*.net *.split]
ryan_vw has quit [*.net *.split]
NaNDude has quit [*.net *.split]
nyef has quit [*.net *.split]
zagura has quit [*.net *.split]
christoph_debian has quit [*.net *.split]
cess11 has quit [*.net *.split]
butterthebuddha has quit [*.net *.split]
pareidolia has quit [*.net *.split]
ineiros_ has quit [*.net *.split]
dotc has quit [*.net *.split]
ck_ has quit [*.net *.split]
pareidolia_ is now known as pareidolia
clog_ is now known as clog
zagura has joined #lisp
zagura has quit [Changing host]
zagura has joined #lisp
butterthebuddha has joined #lisp
terpri has joined #lisp
igemnace_ is now known as igemnace
damke__ has quit [Ping timeout: 240 seconds]
christoph_debian has joined #lisp
dwts has quit [Ping timeout: 260 seconds]
Tordek has quit [Ping timeout: 240 seconds]
Josh_2 has joined #lisp
damke__ has joined #lisp
pok has joined #lisp
ineiros has joined #lisp
NaNDude has joined #lisp
davsebamse has joined #lisp
borodust has joined #lisp
ryan_vw has joined #lisp
ck_ has joined #lisp
Tordek has joined #lisp
yain- has joined #lisp
yain has quit [Ping timeout: 240 seconds]
astronavt has joined #lisp
quazimod1 has quit [Ping timeout: 264 seconds]
astronavt has quit [Ping timeout: 258 seconds]
vap1 has quit [Ping timeout: 240 seconds]
<internet1cafe>
hi
<loke>
Hello
_cosmonaut_ has joined #lisp
dddddd has quit [Remote host closed the connection]
fikka has joined #lisp
mson has quit [Quit: Connection closed for inactivity]
fikka has quit [Ping timeout: 240 seconds]
dwts has joined #lisp
pmc_ has joined #lisp
terpri has quit [Remote host closed the connection]
pmc_ has quit [Client Quit]
bkst has quit [Ping timeout: 268 seconds]
mson has joined #lisp
astronavt has joined #lisp
sjl has joined #lisp
jack_rabbit has quit [Ping timeout: 260 seconds]
astronavt has quit [Ping timeout: 276 seconds]
sjl has quit [Ping timeout: 250 seconds]
Firedancer has quit [Ping timeout: 246 seconds]
Firedancer has joined #lisp
fikka has joined #lisp
asarch has quit [Ping timeout: 264 seconds]
damke__ has quit [Ping timeout: 240 seconds]
damke__ has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
damke has joined #lisp
milanj_ has quit [Quit: This computer has gone to sleep]
damke__ has quit [Ping timeout: 246 seconds]
jack_rabbit has joined #lisp
damke_ has joined #lisp
damke has quit [Ping timeout: 240 seconds]
<beach>
Good morning everyone!
bkst has joined #lisp
<loke>
Hello Beach!
jack_rabbit has quit [Ping timeout: 260 seconds]
jack_rabbit_ has joined #lisp
Josh_2 has quit [Remote host closed the connection]
jstoddard has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
mson has quit [Quit: Connection closed for inactivity]
astronavt has quit [Ping timeout: 246 seconds]
Jesin has quit [Quit: Leaving]
Jen has joined #lisp
Jen is now known as Guest34941
SuperJen has quit [Ping timeout: 246 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
quazimodo has joined #lisp
zmt00 has quit [Quit: Leaving]
jameser has joined #lisp
LocaMocha has joined #lisp
grublet has quit [Quit: Leaving]
Arcaelyx has joined #lisp
grublet has joined #lisp
josh5tone has quit [Ping timeout: 252 seconds]
milanj_ has joined #lisp
damke has quit [Ping timeout: 240 seconds]
damke has joined #lisp
Karl_Dscc has joined #lisp
oleo has quit [Quit: Leaving]
_cosmonaut_ has quit [Ping timeout: 250 seconds]
fikka has joined #lisp
josh5tone has joined #lisp
damke has quit [Ping timeout: 240 seconds]
astronavt has joined #lisp
damke has joined #lisp
fikka has quit [Ping timeout: 255 seconds]
quazimodo has quit [Ping timeout: 255 seconds]
flamebeard has joined #lisp
astronavt has quit [Ping timeout: 252 seconds]
raphaelss has quit [Remote host closed the connection]
neoncontrails has quit [Remote host closed the connection]
vlatkoB has joined #lisp
yurinew has joined #lisp
yurinew is now known as naf
naf has quit [Changing host]
naf has joined #lisp
naf is now known as jw
dec0n has joined #lisp
scymtym has quit [Ping timeout: 255 seconds]
Karl_Dscc has quit [Remote host closed the connection]
marusich has quit [Quit: Leaving]
varjag has joined #lisp
sjl has joined #lisp
damke_ has joined #lisp
sjl has quit [Ping timeout: 248 seconds]
damke has quit [Ping timeout: 252 seconds]
neoncontrails has joined #lisp
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
juki has joined #lisp
jameser has joined #lisp
Guest34941 has quit [Remote host closed the connection]
Guest34941 has joined #lisp
SuperJen has joined #lisp
fikka has joined #lisp
greaser|q has quit [Changing host]
greaser|q has joined #lisp
greaser|q is now known as GreaseMonkey
Guest34941 has quit [Ping timeout: 255 seconds]
damke has joined #lisp
fikka has quit [Ping timeout: 255 seconds]
Jen has joined #lisp
damke_ has quit [Ping timeout: 240 seconds]
Jen is now known as Guest78748
vap1 has joined #lisp
vaporatorius has joined #lisp
vaporatorius has joined #lisp
SuperJen has quit [Ping timeout: 255 seconds]
CrazyEddy has quit [Remote host closed the connection]
astronavt has joined #lisp
damke has quit [Ping timeout: 240 seconds]
BitPuffin|osx has joined #lisp
yeticry_ has joined #lisp
shka has quit [Ping timeout: 248 seconds]
madrik has quit [Remote host closed the connection]
astronavt has quit [Ping timeout: 258 seconds]
bkst has quit [Ping timeout: 240 seconds]
yeticry has quit [Ping timeout: 258 seconds]
varjag has quit [Ping timeout: 248 seconds]
quazimodo has joined #lisp
vlatkoB has quit [Remote host closed the connection]
Cymew has joined #lisp
jw is now known as naf
vlatkoB has joined #lisp
Ven`` has joined #lisp
bkst has joined #lisp
<hajovonta>
hello beach!
fikka has joined #lisp
neoncontrails has quit []
neoncontrails has joined #lisp
varjag has joined #lisp
knobo has joined #lisp
raphaelss has joined #lisp
Ven` has joined #lisp
Ven`` has quit [Read error: Connection reset by peer]
sz0 has quit [Quit: Connection closed for inactivity]
Ven` has quit [Client Quit]
_cosmonaut_ has joined #lisp
vivek has quit [Ping timeout: 248 seconds]
scymtym has joined #lisp
vap1 has quit [Quit: Leaving]
nirved has joined #lisp
astronavt has joined #lisp
nowhere_man has quit [Ping timeout: 255 seconds]
quazimodo has quit [Ping timeout: 248 seconds]
<phoe>
morning everyone
<drdo>
morning
astronavt has quit [Ping timeout: 252 seconds]
Ven`` has joined #lisp
pjb has quit [Ping timeout: 264 seconds]
BitPuffin|osx has quit [Ping timeout: 248 seconds]
HDurer has quit [Remote host closed the connection]
fikka has quit [Ping timeout: 248 seconds]
quazimodo has joined #lisp
hhdave has joined #lisp
milanj_ has quit [Quit: Leaving]
neoncontrails has quit [Remote host closed the connection]
hhdave has quit [Ping timeout: 240 seconds]
naf has quit [Ping timeout: 250 seconds]
neoncontrails has joined #lisp
DeadTrickster has joined #lisp
resttime has joined #lisp
pjb has joined #lisp
yurinew has joined #lisp
yurinew has quit [K-Lined]
turkja has quit [Ping timeout: 240 seconds]
pjb has quit [Ping timeout: 246 seconds]
nowhere_man has joined #lisp
lerax has joined #lisp
<hajovonta>
hi phoe
EvW1 has joined #lisp
<resttime>
Is it possible to connect to a lisp REPL on a device where you can only talk with it via a serial connection?
<loke>
resttime: Yes.
<loke>
resttime: You have to simply tunnel somehow.
<loke>
You could, for example set up PPP
<loke>
I'm sure there are way of tunneling a serial connection over TCP as well
<loke>
And by "tunnel". I mean "expose"
EvW1 has quit [Ping timeout: 252 seconds]
phoe has quit [Ping timeout: 255 seconds]
damke_ has joined #lisp
phoe has joined #lisp
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
turkja has joined #lisp
<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?
<resttime>
Never done something like this except SSH tunneling, so I suppose this is fairly new to me.
<phoe>
resttime: tunnel SSH, that'll be the easiest.
epicsaga has joined #lisp
<resttime>
phoe: I don't think the device has that capability which is why I'm kinda stuck
<resttime>
Errr, for the device I'm thinking about doing this with that is
<loke>
Extending SLIME to support communication over serial should be trivial.
frob has joined #lisp
frob is now known as Guest32558
astronavt has joined #lisp
White_Flame has quit [Ping timeout: 248 seconds]
White_Flame has joined #lisp
<jdz>
There are "protocols" to multiplex a serial line, for instance XMODEM for file transfer.
<resttime>
Hmmm, I'm probably going to have a lot of research to do. Completely new stuff to me.
<jdz>
Yes, I just finished reading "UNIX-HATERS Handbook", which states that the stuff from 1980ies should still work today.
<loke>
jdz: It does, if you use Unix :-)
<resttime>
I was hoping there would be some kind of simple way to just do "SSH tunneling port but with a serial connection"
astronavt has quit [Ping timeout: 255 seconds]
<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.
<resttime>
I suppose topics I should be looking into then is PPP and multiplexing protocols
<jdz>
And terminal emulation (welcome to the world of hurt!).
<jdz>
Maybe s/terminal/console.
<Zhivago>
Linux tun/tap should be easy to run over serial.
<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
<Zhivago>
Well, you could if you ran a network over that serial line.
<Zhivago>
Otherwise you might need to think about it more.
<d4ryus>
Are you able to start a swank instance listening on a local port? or is there no network at all?
<phoe>
d4ryus: if he had network, he wouldn't need to use serial I guess.
juki has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<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
fikka has joined #lisp
HDurer has joined #lisp
HDurer has quit [Changing host]
HDurer has joined #lisp
<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)
<resttime>
Like I remember someone mentioning using zmodem to get files from the device.
<resttime>
Then they found out that screen could do it too
<resttime>
This unix connections stuff is so far kinda an anomaly to me
White_Flame has quit [Quit: No Ping reply in 180 seconds.]
Kaisyu has quit [Quit: Connection closed for inactivity]
dddddd has joined #lisp
White_Flame has joined #lisp
epicsaga has quit [Read error: Connection reset by peer]
DeadTrickster has quit [Read error: Connection reset by peer]
DeadTrickster has joined #lisp
CrazyEddy has joined #lisp
thinkpad has quit [Read error: Connection reset by peer]
thinkpad has joined #lisp
hexfive has quit [Quit: WeeChat 1.9.1]
damke has joined #lisp
thinkpad has quit [Read error: Connection reset by peer]
thinkpad has joined #lisp
damke_ has quit [Ping timeout: 240 seconds]
Ven`` has joined #lisp
Niac_ has quit [Read error: Connection reset by peer]
Niac has joined #lisp
Ven`` has quit [Client Quit]
shifty has quit [Ping timeout: 255 seconds]
eSVG has quit [Ping timeout: 276 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
astronavt has joined #lisp
Tobbi has joined #lisp
dmiles has quit [Ping timeout: 250 seconds]
astronavt has quit [Ping timeout: 246 seconds]
Ven`` has joined #lisp
sjl has joined #lisp
dmiles has joined #lisp
damke_ has joined #lisp
orivej has quit [Ping timeout: 260 seconds]
m00natic has joined #lisp
damke has quit [Ping timeout: 240 seconds]
sjl has quit [Ping timeout: 248 seconds]
Tobbi has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
damke has joined #lisp
damke_ has quit [Ping timeout: 240 seconds]
juki has joined #lisp
damke_ has joined #lisp
juki has left #lisp ["ERC (IRC client for Emacs 25.3.1)"]
damke has quit [Ping timeout: 240 seconds]
damke_ has quit [Ping timeout: 240 seconds]
schweers has joined #lisp
damke_ has joined #lisp
margeas has joined #lisp
Ven`` has quit [Ping timeout: 248 seconds]
damke_ has quit [Ping timeout: 240 seconds]
bkst has quit [Ping timeout: 240 seconds]
damke_ has joined #lisp
damke has joined #lisp
damke_ has quit [Ping timeout: 240 seconds]
damke has quit [Ping timeout: 240 seconds]
EvW has joined #lisp
knobo has quit [Ping timeout: 255 seconds]
astronavt has joined #lisp
quazimodo has quit [Ping timeout: 260 seconds]
astronavt has quit [Ping timeout: 276 seconds]
wxie has joined #lisp
jibanes has quit [Ping timeout: 240 seconds]
Niac has quit [Quit: Lost terminal]
fikka has quit [Ping timeout: 260 seconds]
* Xach
kermit
<raynold>
ahh it's a wonderful day
<phoe>
XachX: are you a muppet now
<Xach>
was just thinking of serial interfaces
fikka has joined #lisp
igemnace has quit [Quit: WeeChat 1.9.1]
nowhere_man has quit [Ping timeout: 258 seconds]
fikka has quit [Ping timeout: 240 seconds]
knobo has joined #lisp
bkst has joined #lisp
jack_rabbit has quit [Ping timeout: 240 seconds]
fikka has joined #lisp
jameser has joined #lisp
EvW has quit [Ping timeout: 240 seconds]
damke has joined #lisp
libre-ma1 is now known as libreman
fikka has quit [Ping timeout: 248 seconds]
orivej has joined #lisp
megalography has joined #lisp
fikka has joined #lisp
EvW1 has joined #lisp
wxie has quit [Quit: Bye.]
jack_rabbit has joined #lisp
damke has quit [Ping timeout: 240 seconds]
astronavt has joined #lisp
astronavt has quit [Ping timeout: 246 seconds]
marvin2 has joined #lisp
marvin2 has left #lisp [#lisp]
neoncontrails has quit []
damke has joined #lisp
neoncontrails has joined #lisp
asarch has joined #lisp
knobo has quit [Ping timeout: 250 seconds]
damke has quit [Read error: Connection reset by peer]
damke has joined #lisp
damke has quit [Ping timeout: 240 seconds]
eSVG has joined #lisp
zaquest_ has joined #lisp
zaquest has quit [Read error: Connection reset by peer]
knobo has joined #lisp
mson has joined #lisp
eSVG has quit [Ping timeout: 246 seconds]
karswell_ has joined #lisp
karswell has quit [Ping timeout: 250 seconds]
Guest78748 has quit [Remote host closed the connection]
Guest78748 has joined #lisp
oleo2 has joined #lisp
SuperJen has joined #lisp
Tristam has quit [Ping timeout: 264 seconds]
astronavt has joined #lisp
Guest78748 has quit [Ping timeout: 248 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Tristam has joined #lisp
<rumbler31>
Xach: have you seen hoppi?
astronavt has quit [Ping timeout: 255 seconds]
random-nick has joined #lisp
damke has joined #lisp
dddddd has quit [Ping timeout: 240 seconds]
Jen has joined #lisp
karswell_ has quit [Ping timeout: 240 seconds]
Jen is now known as Guest84297
dddddd has joined #lisp
SuperJen has quit [Ping timeout: 248 seconds]
LiamH has joined #lisp
damke has quit [Ping timeout: 246 seconds]
EvW1 has quit [Ping timeout: 258 seconds]
<Xach>
rumbler31: what's hoppi?
lnostdal has joined #lisp
danieli has joined #lisp
danieli has quit [Changing host]
danieli has joined #lisp
Bike has joined #lisp
bkst has quit [Ping timeout: 250 seconds]
Guest84297 has quit [Remote host closed the connection]
<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
Guest84297 has joined #lisp
<nyef`>
dwts: Umm... You realize that any native-code lisp compiler fits that definition, right?
FreeBirdLjj has joined #lisp
<dwts>
nyef`: native as in machine code? I'm interested in generating terraform code which is more like json
<Zhivago>
There is nothing particularly special about lisp for that task in either direction.
<Zhivago>
nyef's point is that what you are describing is a compiler, of which there are many written in lisp.
<dwts>
oh
knobo has quit [Ping timeout: 240 seconds]
<dwts>
maybe transpiler is more correct? but now I see nyef`'s point
<nyef`>
Another example would be from the "XP" paper, where they abuse the lisp pretty-printer to produce Pascal syntax.
<dwts>
hm, let me search that
<Bike>
json isn't really a programming language, though?
<beach>
I am pretty sure it's a common technique.
<dwts>
yes, but it could still be treated like code
<nyef`>
No, JSON is a serialized data format. But it's also a subset of JavaScript.
<nyef`>
... ECMAScript? HotWired? Something like that.
<Bike>
and it accepts json too. So you could skip work and use one of the existing json output dealies.
mishoo_ has joined #lisp
<dwts>
yes it does accept json too but I prefer tf syntax
<Zhivago>
So that you can take advantage of its string interpolation? :)
<dwts>
lol
<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.
<Zhivago>
Machine generated code trying to be clever is a recipe for excitement.
<Zhivago>
Particularly coupled with what is probably a buggy parser that isn't used by a zillion people.
<dwts>
I was planning to feed it us input after generating it to the terraform tool to create me some ec2 instances
_rumbler31 has joined #lisp
astronavt has quit [Ping timeout: 246 seconds]
<dwts>
Zhivago: it's open source, so you can go bug hunting if you are interested: https://github.com/hashicorp/terraform , although you don't sound very excited about it :P
<Zhivago>
I would rather stab myself in the face with a fish-fork.
<Bike>
What's the difference between a fish fork and a regular proletarian fork? Longer middle tine?
<Bike>
er... antitine.
<dwts>
Zhivago: your nickname is familiar, i think I've seen your nick in C related irc channels in the past. You'd rather stab yourself because of go or because you disklike that specific tool? :P
Jesin has joined #lisp
<dwts>
why proletarian though? :P
<Zhivago>
Than go bug hunting in yet another random configuration language implementation by some well intentioned people.
<Bike>
"Fish forks (and knives) often have an incurve shaped form (pictured); we believe this feature was simply to differentiate it from all the other forks that could be present on the table, as potentially there could be a considerable amount." nice
<Zhivago>
The fish-fork, ... yes.
cromachina has quit [Read error: Connection reset by peer]
<Zhivago>
Although I understand that the incision is to accommodate the spine of the fish.
<dwts>
Zhivago: you sound disappointed, are you preparing me for the worse? :p
<Zhivago>
Oh, not at all -- I am looking forward to hearing your tale of woe at some point so that I can then refer back to the logs and tell you that I told you so.
<dwts>
lol
<dwts>
Zhivago: to be honest i've had some bad experiences with puppet :P
<dwts>
and soon I'll have to start learning chef
<dwts>
so yeah, keep the logs
<Zhivago>
I'm looking forward to when they start naming them after serial killers.
Poeticode is now known as P_C
P_C is now known as PiC
nika has joined #lisp
PiC is now known as P_C
<nyef`>
Or the origin of the phrase "going postal"?
<Younder>
that postal worker from NY
<Younder>
mad max
<Zhivago>
Should probably have been "going NYC".
<Younder>
Currently it seems only movies are qualified ;)
<Zhivago>
Although if you do visit NYC, I recommend rowing on the Hudson river.
Tobbi has joined #lisp
<Younder>
Xach love it when I introduce this as a channel for the vocally impaired
_cosmonaut_ has quit [Remote host closed the connection]
<nyef`>
Younder: Wikipedia's list of postal killings doesn't include a single incident in NYC.
<nyef`>
Or NY at all.
<nyef`>
A couple in NJ, though.
<dwts>
Zhivago: lol, I don't like the idea
teddy_error has quit [Quit: Peace ☮︎]
trn has quit [Ping timeout: 246 seconds]
Ven`` has joined #lisp
k-stz has joined #lisp
hajovonta has quit [Quit: hajovonta]
luis has quit [Read error: Connection reset by peer]
warweasle has joined #lisp
mingus has joined #lisp
FreeBirdLjj has joined #lisp
flamebeard has quit [Quit: Leaving]
nika has quit [Ping timeout: 255 seconds]
damke has joined #lisp
nika has joined #lisp
neoncontrails has quit [Remote host closed the connection]
neoncontrails has joined #lisp
eudoxia has joined #lisp
oleo2 has quit [Ping timeout: 255 seconds]
mson has quit [Quit: Connection closed for inactivity]
oleo has joined #lisp
neoncontrails has quit [Ping timeout: 260 seconds]
moei has quit [Quit: Leaving...]
hexfive has joined #lisp
trn has joined #lisp
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cymew has quit [Remote host closed the connection]
astronavt has joined #lisp
dec0n has quit [Read error: Connection reset by peer]
astronavt has quit [Ping timeout: 258 seconds]
hhdave has joined #lisp
jmsb has joined #lisp
mson has joined #lisp
yain- has quit [Remote host closed the connection]
neoncontrails has joined #lisp
Ven`` has joined #lisp
DeadTrickster has quit [Read error: Connection reset by peer]
Ven`` has quit [Client Quit]
DeadTrickster has joined #lisp
Guest32558 has quit [Ping timeout: 240 seconds]
pareidolia has quit [Ping timeout: 240 seconds]
Ven`` has joined #lisp
Ven`` has quit [Client Quit]
pareidolia has joined #lisp
wigust_ has joined #lisp
wigust has quit [Ping timeout: 248 seconds]
damke has quit [Ping timeout: 240 seconds]
fikka has quit [Ping timeout: 240 seconds]
damke has joined #lisp
DeadTrickster has quit [Read error: Connection reset by peer]
DeadTrickster has joined #lisp
Karl_Dscc has joined #lisp
neoncontrails has quit [Remote host closed the connection]
damke has quit [Remote host closed the connection]
damke_ has joined #lisp
sz0 has joined #lisp
varjag has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
<_rumbler31>
application for talking over serial/usb connections from lisp to a calculator
osune has joined #lisp
damke has joined #lisp
<Younder>
I use kermit to connect to my old HP50p
nowhere_man has joined #lisp
damke_ has quit [Ping timeout: 240 seconds]
mathrick has joined #lisp
astronavt has joined #lisp
zmt00 has joined #lisp
<Younder>
_rumbler31, if you are using kermit anyhow why not writer script in kermit. I don't see the need for Lisp.
johnnybanana has joined #lisp
<johnnybanana>
Hello could someone help me with a lisp problem?
astronavt has quit [Ping timeout: 240 seconds]
<Younder>
Depends on the problem I guess,
<Younder>
perhaps you should just state it
SaganMan has joined #lisp
whaack has left #lisp ["Leaving..."]
FreeBirdLjj has quit [Remote host closed the connection]
<johnnybanana>
so i am trying to define a macro
<_rumbler31>
Younder: I didn't make it, and I referenced it both for looking into the cocoa apis for enumerating connected serial/usb devices, as well as using them to communicate with them from lisp in my own work, not necessarily using kermit
<johnnybanana>
that will take any number of expressions and have each be evaluated and printed in order, using the "=>" format, with semicolons separating pairs
<Younder>
so a PAIP style lang?
<johnnybanana>
(let ((x 3) (y 2)) (macro-call (+ x y) x y)) (+ X Y) => 5;X => 3;Y => 2
<Bike>
Okay. How's it going.
damke has quit [Ping timeout: 240 seconds]
<johnnybanana>
this is what I have so far: (defmacro macro-call (expr) `(format t "~&~S => ~S~%" ',expr ,expr))
<johnnybanana>
how to i make it for multiple expressions?
<_rumbler31>
format will let you do that!
<Bike>
it just means you need to output one of those for each expr.
<johnnybanana>
Im not sure how to incorporate the semicolons in the format
<_rumbler31>
you can give an argument that is a list, and a few control caracters will iterate through it and use the list as the source of each iteration
<Bike>
so (macro-calls x y) macroexpands into like (progn (macro-call x) (macro-call y))
<Bike>
or (progn (macro-call x) (write-string ";") (macro-call y)) if you want.
<johnnybanana>
_rumbler31: How could i implement that with format?
<Bike>
_rumbler31: expand into something, like they'd already wrote.
<Bike>
With their original definition, (macro-call x) => (format t "~&~s => ~s~%" 'x x) which works fine.
<Bike>
there's no need to use eval. you don't want to use eval, both for general style reasons, and because it makes the original example impossible since eval doesn't know about lexical bindings.
damke has quit [Ping timeout: 240 seconds]
FreeBirdLjj has joined #lisp
<_rumbler31>
Bike: oh, its a macro, so the forms get
<_rumbler31>
put back, and evalutated like normal
<Bike>
yes.
damke_ has quit [Ping timeout: 240 seconds]
<Bike>
johnnybanana: what you can do is just expand into several format calls like the one you already had. one for each form. no need for fancier format strings, and definitely no need to loop at runtime
<johnnybanana>
how will I know how many format calls to have though
<Bike>
you have one for each argument to the macro, of course.
<Bike>
(defmacro macro-calls (&rest forms) ...you can just do (length forms) here.
damke_ has joined #lisp
<Bike>
(but it might be more natural to use mapcar etc)
<_rumbler31>
I"ll totally concede that use of format iteration is "cute" for this use
<johnnybanana>
Hm let me try that out
<johnnybanana>
So this is what I have (defmacro macro-call (&rest form) `(mapcar #'(format t "~&~S => ~S~%" ',form ,form) ,@form))
<johnnybanana>
Im trying to test with this (let ((x 1) (y 2)) (macro-call (+ x y) x y))
<johnnybanana>
in the hopes of this being printed "(+ X Y) => 3;X => 1;Y => 2"
teddy_error has joined #lisp
damke_ has quit [Ping timeout: 240 seconds]
hhdave_ has joined #lisp
<Bike>
No
<Bike>
Do not expand into mapcar
<Bike>
that doesn't even make sense, what is #'(format
<Bike>
I already gave you an example of what your expansion could look like, try aiming for that
hhdave has quit [Ping timeout: 260 seconds]
hhdave has joined #lisp
hhdave_ has quit [Ping timeout: 255 seconds]
<_rumbler31>
oh I see
brendyn has quit [Ping timeout: 250 seconds]
<_rumbler31>
at runtime he wants to emit "=>" so the inner body will look like (write-string " => ; ") (form1) ...
<johnnybanana>
_rumbler31: any thoughts?
<_rumbler31>
bike is smarter than me
<_rumbler31>
so listen to him
<warweasle>
_rumbler31: To be fair, Bike is smarter than a lot of people.
<warweasle>
But that's just because he's a lisper. :P
<Zhivago>
What actual problem is johnny trying to solve?
<beach>
I am guessing a "homework problem".
jibanes has joined #lisp
emacsomancer has joined #lisp
johnnybanana has quit [Quit: Page closed]
bansheee has joined #lisp
foird44 has joined #lisp
<phoe>
Is there a simple way to use drakma to download files into a directory, like wget?
pseudonymous has joined #lisp
<phoe>
Because I just realized that I'm about to reinvent wget with my custom code, and that doesn't sound good.
<warweasle>
I had to alias wgit to wget...because git.
raphaelss has quit [Remote host closed the connection]
foird44 has quit [Quit: ERC (IRC client for Emacs 26.0.50)]
m00natic has quit [Remote host closed the connection]
<phoe>
yes, collecting the values, but collecting multiple values into multiple lists
<SaganMan>
multiple valued mapcar?
himmAllRight has joined #lisp
<phoe>
SaganMan: yes, one that can operate on forms that return multiple values
<oleo>
what about mapcar 'list then ?
<phoe>
mapcar on gethash will only give you the first value.
<phoe>
oleo: what do you mean?
groovy2shoes has joined #lisp
<oleo>
(mapcar 'list '(a b c d))
<Bike>
if you can specify the number of values beforehand it shouldn't be hard.
<warweasle>
phoe: Oh, I see. That is a clever operation.
<Bike>
otherwise it would be kind of tricky to account for different calls returning different values and stuff.
<SaganMan>
won't the result of that be ((a)(b)(c)(d))?
nowhere_man has quit [Ping timeout: 240 seconds]
mson has quit [Quit: Connection closed for inactivity]
<warweasle>
phoe: (alexandria:MULTIPLE-VALUE-COMPOSE can do what you need.
<phoe>
Bike: wouldn't be too tricky. the multiple-value-mapcar would keep an internal counter of how many values were at most returned; every time this counter is bumped up, new dummy list(s) filled with NILs are returned.
<phoe>
warweasle: let me look.
<nirved>
if using it on hash table there's maphash
varjag has joined #lisp
<phoe>
oooh, that is nice.
<phoe>
nirved: gethash is just an example.
Guest32558 has joined #lisp
vertigo has quit [Ping timeout: 255 seconds]
vertigo has joined #lisp
<Bike>
well, i wrote it for one list
bansheee has quit [Quit: Page closed]
<Bike>
nth returning nil instead of erring unexpectedly convenient
skrtskrt has joined #lisp
<skrtskrt>
I am currently working on a macro where it takes a list of variables and a body of code, and ensures that the variables revert to their original values after the body of code is evaluated
<phoe>
skrtskrt: what do you mean, revert?
<phoe>
do you mean that you store their values somewhere before the body of code, execute the code, and then set the variables to these stored values?
<phoe>
now we need to generalize it to an arbitrary number of arglists.
<phoe>
...shouldn't be too hard, I think we only need to modify the first LET* binding
knobo has quit [Ping timeout: 255 seconds]
raphaelss has joined #lisp
shka has joined #lisp
rm8 has joined #lisp
terpri has joined #lisp
astronavt has joined #lisp
knobo has joined #lisp
<phoe>
well, this does become complex
<phoe>
we need a minimum length of all argument lists but maximum length of all multiple-value-lists
<_death>
I doubt the usefulness of these constructs..
astronavt has quit [Ping timeout: 255 seconds]
<_death>
better to just work on lists instead of pretending that you're dealing with multiple values..
<phoe>
I have a function that returns multiple values.
<Bike>
for the argument lists you can do (loop for l = lists then (mapcar #'cdr l) until (some #'endp l) collecting (multiple-value-list (apply function (mapcar #'first l))))
<Bike>
or something.
<phoe>
I want to mapcar this function over a sequence and not lose any data in the process.
<_death>
phoe: then use multiple-value-list to get a list of the values and work on this list
<phoe>
hm, for me this means destructuring-bind + multiple-value-list + some means of collecting the results.
<phoe>
also, multiple-value-list isn't a function. I cannot use it in mapcar.
<_death>
rather than back-and-forth translating between mechanisms
teddy_error has joined #lisp
<phoe>
...I think I got it, just let me test real quick