Search
Wednesday, 24th of October 2018, 3:08:43 UTC
3:32:37
no-defun-allowed
does petalisp do similar things to numpy?
3:38:43
beach
Good morning everyone!
3:43:47
lemoinem
** NICK Guest43298
4:09:23
gendl
Good morning Robert. I'm in North Carolina.
4:09:35
beach
Ah, time for bed, then!
4:09:47
gendl
should be asleep. Going to see a customer here tomorrow.
4:10:01
gendl
a very tiny customer which we hope will become a bigger, happier customer.
4:10:19
gendl
(i mean, they're not tiny - their use of our stuff is currently tiny)
4:11:12
gendl
You are an early riser in France.
4:11:25
gendl
i've often seen you here before 6am France time.
4:11:27
beach
It's a genetic defect in my family.
4:11:34
gendl
I wouldn't call it a defect.
4:11:58
gendl
I wise man once told me that the hours of sleep before midnight are worth more than those after 4am.
4:12:10
beach
My parents took a second job delivering newspapers, because they were awake at 4am anyway.
4:12:18
gendl
after 4am the benefit of remaining in bed fall off rapidly.
4:16:29
beach
Today, my favorite coauthor will come over for lunch.
4:16:41
beach
Maybe we will plan some ELS papers. Or maybe a book.
4:31:24
gendl
i need to figure out how to make that descending accent over the e.
4:35:05
LdBeth
I think I’ll sleep early tonight.
4:37:49
gendl
ask her if she thinks it's too late for me to submit the XML to ACM for the DL.
4:38:01
beach
gendl: You change input modes in Emacs to iso-accents-mode. Then you can use ` as a prefix.
4:38:13
beach
OK, I'll try to remember.
4:38:49
gendl
I need to start using emacs for IRC. I'm using IRCCloud
4:38:58
gendl
because it keeps track of stuff while i'm gone.
4:39:01
beach
Oh, so no abbrevs either?
4:39:12
gendl
IRCCloud through chrome
4:39:23
beach
How do you manage to get anything done without abbrevs? :)
4:39:24
gendl
no abbrevs. Emacs would be nice for sure.
4:39:29
LdBeth
Emacs has a TeX based input method, which I found more useful in general case
4:39:49
gendl
by abbrevs, do you mean completing with M-x ?
4:40:16
gendl
like w-o-t-s turns into with-output-to-string
4:40:30
beach
gendl: I mean, when I type "asf" followed by space or punctuation, it automatically expands to "(admittedly small) family".
4:40:49
gendl
Oh. How does it do that?
4:40:57
beach
"cls" => "Common Lisp" "hs" => Common Lisp HyperSpec, etc.
4:41:04
beach
It's a built-in feature of Emacs.
4:41:14
beach
I mean, you have to define your abbrevs of course.
4:41:28
beach
"gme" => "Good morning everyone!"
4:41:40
gendl
Yeah i guess so. How do you define your abbrevs?
4:41:45
beach
"fcge" => first-class global environments
4:41:57
nowhereman
** NICK Guest75806
4:42:03
beach
M-x define-mode-abbrev
4:42:13
beach
Or put them in your abbrev_defs file.
4:42:29
gendl
Ok. I need to get on that.
4:42:39
beach
"fcl" => "(first) Climacs"
4:42:48
beach
"scl" => Second Climacs
4:42:56
LdBeth
https://www.emacswiki.org/emacs/PredictiveMode
4:43:05
gendl
I've heard people talk about abbrevs as if they're some kind of gift from God. But I always thought "meh. M-/ is good enough for me"
4:43:13
gendl
Falling into the "productive" category from your essay
4:43:32
gendl
what were the categories? "productive" and "curious" ?
4:44:36
beach
In my essay? "perfection oriented" and "performance oriented".
4:44:52
beach
"open mind set" and "closed mind set" in the works of Carol Dweck.
4:45:17
beach
She has some good presentations available on YouTube.
4:45:31
gendl
And one more question then off to bed. How do you use emacs to connect to freenode.
4:45:49
gendl
(i can look it up but i want to make sure i'm using the same package everyone here uses)
4:45:57
beach
I use ERC. M-c erc-select.
4:46:09
beach
I think it comes with the Emacs installation.
4:47:25
beach
Anyway, time for a break. I'll be back in 30 minutes or so.
4:49:44
gendl`
Hi, i'm here through emacs now. I'm not sure why my nick has a backtick at the end now.
4:50:02
gendl`
I don't think I put it there.
4:50:30
LdBeth
Because you seems not logout another account
4:51:37
LdBeth
IRC only allows one nick name login in one place, so ERC automatically appends ` to conflicted nicks
5:20:53
gendl
Hi, where does CCL on Windows look for dlls?
5:24:55
gendl
for example the ssleay32.dll for cl+ssl
5:39:10
astronavt
gendl not sure about ccl specifically but typically DLLs are located in PATH
5:55:36
gendl
Ah I see, I messed up my cffi:*foreign-library-directories*.
7:44:55
devon
How to display images in slime?
7:56:18
fiddlerwoaroof
devon: I'm not sure if it's possible out of the box, but you might be able to extend it to do that.
8:05:23
devon
fiddlerwoaroof: Checking if I'm reinventing the wheel of REPL graphics.
8:07:44
devon
Try http://jovi.net/slime-media-test.el
8:07:50
fiddlerwoaroof
Yeah, I'm interested in this too, but I haen't seen anything like this yet.
8:09:04
fiddlerwoaroof
devon: cool, another day, another contrib
8:09:27
devon
Oh, that code presumes CCL, would like some SBCL user to test it please.
10:09:34
phoe
Is (eql "a" "a") always NIL or is it implementation-dependent?
10:10:03
phoe
I mean two string literals there.
10:11:10
specbot
http://www.lispworks.com/reference/HyperSpec/Body/a_eql.htm
10:11:15
phoe
It's implementation-dependent.
10:16:29
|3b|
also probably depends on compiled or not
10:18:30
|3b|
or rather COMPILE-FILEd or not
11:56:26
holycow
question about quicklisp: if i git clone a package into local-projects of a package that is in the ql repos ... which project takes precedence if they are named exactly the same?
11:58:32
shka_
otherwise it would get really annoying...
11:58:46
shka_
because you could not simply keep your development repo in local-projects
11:58:56
holycow
oh right. that makes sense.
12:44:02
phoe
I need an example for when using MAPPEND is preferred to MAPCAN.
12:44:15
phoe
For example, when using MAPCAN invokes undefined behavior and MAPPEND saves the day.
12:52:07
ecraven
the more I work at the SLIME repl, the more I understand how powerful PRESENT and ACCEPT actually are :-/ I wish SLIME and Emacs could implement them
13:15:49
specbot
http://www.lispworks.com/reference/HyperSpec/Body/f_nconc.htm
13:16:14
phoe
This page says nothing about the dangers of using NCONC when the lists in question share structure.
13:17:08
phoe
(let* ((x (list 1 2 3)) (y (list* 4 5 6 x))) (nconc x y)) effectively loops.
13:17:40
shka_
phoe: isn't it obvious, though?
13:18:38
Bike
nconc is one of the most explicitly defined functions in the spec.
13:19:20
ggole
Defining the exact operation of every list operation for cyclic list structure would probably be a mistake
13:20:01
ggole
No, wait - that isn't cyclic.
13:20:04
phoe
ggole: note that the two lists above are not yet cyclic; nconc creates a cycle.
13:21:27
Bike
also the nconc call doesn't loop.
13:21:59
Bike
you get #1=(1 2 3 4 5 6 . #1#). printing that will loop if you have print-circle off, ofc.
13:22:01
phoe
yes, it's the printing that loops
13:22:52
phoe
(let* ((x (list 1 2 3)) (y (list* 4 5 6 x))) (mapcan #'identity (list x y)))
13:24:05
phoe
so the question belongs to mapcan rather than nconc.
13:25:06
Bike
this seems like a "doctor, it hurts when i do this [slams hand in door]" area
13:26:41
Bike
also, not sure why that hangs in sbcl. if you do (apply #'nconc (mapcar #'identity (list x y))) it's fine.
13:30:14
ggole
It might tail cons to avoid the intermediate list
13:30:24
shka_
Bike: doctor quote is awesome
13:30:27
Bike
mm, probably something like that
13:30:30
ggole
In which case, the mutation would destroy the second argument?
13:30:40
ggole
That's a guess, I haven't looked at the source.
13:36:23
Bike
i mean mapcan uses nconc. that's destructive. pretty much tells you 'oh, the things being nconced ought to be fresh"
13:40:56
ggole
There's no variant that uses append, though
13:41:11
ggole
Unless you write your own
13:42:40
Bike
it is at least a one liner. or a few dozen to save time
13:59:10
flip214
when loading a big XML file using CXML, how would I parse only the first few levels via callbacks in the handler but either skip entire subtrees or get them as a CONS tree structure?
14:14:21
flip214
I guess I should be using KLACKS, and then pass the sub-documents via SERIALIZE-ELEMENT to MAKE-XMLS-BUILDER...?!
14:20:08
francogrex
hi, please have a look at this here: https://pastebin.com/0THznGfD
14:20:31
francogrex
i am using sbcl 64 bit on windows and gcc is 64 also
14:21:52
francogrex
I had no problem before when i was using 32 bit sbcl and gcc
14:26:46
warweasle
** NICK warweasle_afk
14:28:14
scymtym
don't you have to mark the memory as executable?
14:37:42
phoe
I keep on finding issues in alexandria.
14:38:00
phoe
The lambda list for EXTREMUM is (sequence predicate &key) - it's no predicate there, it's a test.
14:38:16
phoe
a predicate accepts one argument, a test accepts two.
14:39:33
francogrex
scymtym: good question. so all indications telling that that mem is not executable however for the 32 bit, it is?
14:40:00
francogrex
i don't know how i can 'manually' set it as executable myself
14:43:58
scymtym
francogrex: i don't know. i was voicing a suspicion
14:48:00
sjl_
phoe: > predicate n. a function that returns a generalized boolean as its first value.
14:49:31
sjl_
it calls it predicate because it says > if the subsequence ... was sorted using PREDICATE and KEY.
14:49:40
specbot
http://www.lispworks.com/reference/HyperSpec/Body/f_sort_.htm
14:49:44
sjl_
and sort calls it predicate too
14:50:31
sjl_
an argument of TEST typically checks for equality, but that's not what it's used for in sort/extremum
14:52:23
phoe
you're right. it's a predicate, it simply is one that accepts two arguments.
14:53:15
specbot
Couldn't find anything for glossary/s.
14:53:23
phoe
http://clhs.lisp.se/Body/26_glo_s.htm
14:53:35
phoe
satisfy the test, for two-argument test.
14:54:03
phoe
Yes, http://clhs.lisp.se/Body/17_ba.htm does not contain #'sort.
15:02:38
phoe
(By the way, I apologize - I'm way too nitpicky nowadays. My day job is seriously getting on my nerves and wrecking my calmness.)
15:03:15
Josh_2
You can come live with me phoe xD
15:03:46
sjl_
I know that feeling. My solution was to quit the job (luckily I was able to find a new one).
15:07:25
oni-on-ion
is the money worth it, we've got to ask ourselves
15:07:54
oni-on-ion
especially when we notice it getting better or worse (nothing stays the same)
Wednesday, 24th of October 2018, 15:08:43 UTC