freenode/#lisp - IRC Chatlog
Search
19:40:35
White_Flame
a valid but lamer approach that avoids learning networking (it's complex if you've never done it, in any language) would be for the daemon lisp to just scan for some file, and read/eval it if one appears
19:40:54
White_Flame
with your keybindings writing a small trigger file containing what you want to run
19:43:31
Xach
You won't fail! It just might take a while. And there are other options that might get you somewhere interesting quickly while still leaving time to learn more things.
19:46:12
White_Flame
the biggest thing that messes people up when doing TCP (the stream form of networking, most common), is that when you receive bytes from the stream, it may not be an entire message at once, but some overlapping part
19:46:32
White_Flame
other than that, it's just getting the listeners & per-connection stuff organized
19:47:03
White_Flame
I think that usocket is one of the more popular libraries for running the networking for you, and has examples
19:47:29
White_Flame
I mean the packet could overlap between 2 messages that the other side sent from its code perspective
19:47:40
Xach
if the remote end sends "ABC", you may get "A" or "AB" or "ABC", but not "AABC" or "AB" "BC"
19:47:53
White_Flame
the packet overlaps the individual message data chunks you sent per output call on the other side
19:49:35
White_Flame
nij: "trivial-sockets is a trivial networking library for undemanding Internet applications (for example "scripting" and interactive use)."
19:53:42
nij
I understand that there are four things to be considered: server's addr+port and client's addr+port.
20:08:49
nij
White_Flame: I'm trying trivial-sockets. Currently running the loop: https://bpa.st/VLBUE provided in the example usage.
20:09:14
nij
Does this mean that my sbcl repl has opened a socket that awaits any message from the outside?
20:12:01
White_Flame
note that that example doesn't do anything with the read-line return value, so your shell typing is ignored, besides the fact that there's a line
20:12:56
White_Flame
there's no loop in the example. once it exits the with-open-stream scope, that closes it from teh lisp side
20:18:20
White_Flame
the fact that the example had a string in its current form muddled it slightly :)
20:31:21
jackdaniel
I want to note, that I was only addressing what White_Flame wrote (I did not try to answer any question)
20:32:22
White_Flame
but nice output formatting, and capturing errors, and lots of other things quickly get away from a small literal (l(p(e(r str)))) body
21:00:58
phoe
I've seen it burp out unrelated lines three times now, each time with that spammy edit line right afterwards
22:27:53
jrm
jackdaniel: I just updated the package to the latest master-branch commit. https://svnweb.freebsd.org/ports?view=revision&revision=562613
22:28:19
brandflake11
Hey all, can you move your ~/quicklisp and ~/.sbclrc to another computer and it work seamlessly?
22:46:30
waleee-cl
do the instructions from http://joaotavora.github.io/sly/#Loading-Slynk-faster (specifically for the "slynk core") work? I've tried having the core in both implicit paths and specifiying an absolute path, but I get polling errors when starting sly either way
23:15:02
charles`
how is there infinitely many? Do types (not classes) not actually use inheritance?
23:16:16
Bike
types just represent sets. (member 4 5 6) is the type of numbers that are 4 or 5 or 6. you can always augment a type with OR and MEMBER and stuff. so no, they don't involve inheritance per se.
23:27:18
charles`
I see, then how would I get a list of super-classes (of a class) in a portable way?
23:29:12
alandipert
typep seems like the ultimate method specializer, i wonder why there's only eql. perf?
23:30:14
alandipert
hm, i suppose also the infinitude of the type relationships might make method selection too ambiguous
23:37:43
Bike
alandipert: that's the problem, yes. classes are linearly ordered into class precedence lists, so it's easy to see which methods are more specialized than others.
23:38:39
Bike
for example if you had a method specialized on (member :a :b) and another on (member :b :c) and you called it with :b it would not be obvious what is called.
23:41:51
Bike
you can't have two distinct methods that have the same qualifiers and the same specializers.
1:05:18
nij
It's nice to be able to define printing function for cl-structs. However, sometimes I want to see its raw presentation (record-like). Can I temporarily disable the printing function?
3:00:26
antonv
in ASDF, if my system consists of several files, each file depends on differend libraries
3:22:59
fiddlerwoaroof
There's some examples here: http://christophe.rhodes.io/gitweb/?p=specializable.git;a=tree;f=examples
7:28:09
beach
asarch: I would probably use BIT and test for 0/1. Otherwise, you get a full word for each value.