Search
Saturday, 14th of July 2018, 19:14:29 UTC
19:54:23
figurelisp
When i write 'this 'is 'madness in emacs slime repl why does it only returns last symbol as output? Why not all three?
19:55:18
Bike
cos it only reads one form at a time.
19:56:09
figurelisp
Bike: I don't understand what you mean by one form
19:56:23
Bike
well, you put in three things.
19:56:57
figurelisp
then why does SBCL in terminal returns all three?
19:57:33
Bike
i suppose sbcl doesn't clear the input buffer after every repl read like emacs does, or something.
19:58:17
figurelisp
so the correct output is returning last symbol
20:01:29
Bike
there's not really a "correct" or "incorrect", it's just however the repl feels like working
20:02:04
Bike
since you're giving it weird input
20:15:07
edgar-rft
makomo: electrical circuits usually contain circular components (feedback paths), have you considered that in your hierarchical topology?
20:16:52
brontosaurusrex
Trying to follow this : https://mitpress.mit.edu/sites/default/files/sicp/full-text/book/book-Z-H-10.html#%_sec_1.1.2
20:17:11
brontosaurusrex
And it appears i would need something called Scheme dialect of lisp
20:17:22
brontosaurusrex
what to install? (Debian stretch)
20:17:31
Bike
yes, sicp is written to use scheme. i believe Racket has a sicp mode.
20:17:38
Bike
but you want #scheme for scheme info.
20:21:43
brontosaurusrex
So there is a scheme dialect of lisp and there are various dialects of scheme ... ?
20:22:13
Bike
something like that. the distinction between "dialect" and "language" is almost as vague as it is in natural language.
20:22:13
brontosaurusrex
Like this https://packages.debian.org/stretch/lisp/oaklisp
20:22:16
edgar-rft
there is *one* Common Lisp specification, everything else is a mess
20:22:40
Bike
i recommend asking what scheme to get for sicp in #scheme. i'm sure they have heard that exact question many times.
20:22:57
brontosaurusrex
ok, so to write (define var 2), what do i need? < simplified question
20:23:10
brontosaurusrex
Bike: I dont see sicp in repos
20:23:58
Bike
no, the part where i say to ask #scheme.
20:24:09
edgar-rft
brontosaurusrex, this is a COMMON LISP channel, ask in #scheme (because they kow it better than we)
23:21:47
ebrasca
How I can extend functionality of read-byte in standard CL?
23:30:54
Bike
with the gray streams extension, you can define methods on the stream-read-byte function.
23:33:10
ebrasca
Is it truly necessary to have portable code?
23:34:02
caltelt
if you want it to be portable, yes?
23:44:24
jmercouris
interop between lisp and prolog?
23:46:17
ebrasca
Now I am thinking more in mezzano and other common lisp (sbcl).
0:27:51
edgar-rft
ebrasca, what's your specific problem with cl:read-byte? (just curious)
0:33:22
ebrasca
edgar-rft: Thinking how to make my FAT32 work wich other CLs.
0:33:59
ebrasca
edgar-rft: I need some method to add FAT32 read-byte.
0:34:04
edgar-rft
in other words: you need to read 32-bit bytes?
0:34:29
ebrasca
I need to make my custom read-byte.
0:34:42
Bike
i thought read-byte already did that.
0:34:50
ebrasca
In mezzano there is generic read-byte and then it specializes.
0:35:19
Bike
because that's exactly what gray streams provides, and most implementations support the extension.
0:36:39
ebrasca
Mezzano have someting called sys.gray .
0:38:31
ebrasca
I think it uses flexi-streams and trivial-gray-streams stream libraries.
0:46:33
Bike
trivial-gray-streams is just a portability wrapper over the gray streams extension.
1:14:29
ebrasca
Is metamorphosis = complexity ?
1:15:11
Bike
is "metamorphosis" the name of a library or are you referring to butterfly development or what
1:15:37
ebrasca
I am thinking about change of forms.
1:17:48
ebrasca
How butterfly development apply to programing?
1:19:01
ebrasca
I think they can chenge they form to some point.
1:19:29
ebrasca
And CL can change form like one butterfly.
1:20:08
ebrasca
But butterfly in his transformation lose some mass.
1:20:23
ebrasca
Is there someting like this in CL?
1:27:58
edgar-rft
one can perfectly morph in 1 dimension, so methamorphosis must not necessarily be complex
2:00:25
caltelt
Is there anything similar to clojure's edn for cl? A way to read in a safe subset of the language that can be used for data transfer, conf files, etc?
2:04:41
edgar-rft
there's read-line returning one line as a string plus a parser for safe tokens, to be written by *you*
2:07:36
caltelt
so...glorious json it is then...
2:27:31
HighMemoryDaemon
Why isn't this returning true?
2:27:36
HighMemoryDaemon
(setf emp1 '(:gender 'male))
2:27:36
HighMemoryDaemon
(eq (getf emp1 :gender) 'male)
2:30:53
HighMemoryDaemon
solved it. It's because I declared the entire list as a symbol
2:34:19
Bike
that doesn't mean anything. it's not returning true because (getf emp1 :gender) will be the list (QUOTE MALE).
3:10:59
beach
Good morning everyone!
5:58:36
slyrus_
edgar, caltelt what about something like https://github.com/phoe/safe-read ?
Sunday, 15th of July 2018, 7:14:29 UTC