libera/#clasp - IRC Chatlog
Search
2:08:51
mixotricha
I asked about this in the clschool yesterday. Mostly just as a mental exercise. What is going on is I am building an L-Machine and so a lot of pondering about lisp making more lisp. One then has to think for a moment about special functions. Seemed natural to ask, 'What would foo look like in lisp?" ...
2:10:20
mixotricha
Do you know where in the clasp source I might go to see how the map functions were implemented. As I have thought about in any language this has been a bit of a habit of mine. To go interrogate objects and look at code for how things were done.
2:16:33
Bike
https://github.com/clasp-developers/clasp/blob/main/src/lisp/kernel/lsp/seq.lisp#L417-L442 here's map, https://github.com/clasp-developers/clasp/blob/main/src/lisp/kernel/cmp/opt/opt-sequence.lisp#L140-L177 compiler macro
2:16:43
Bike
if you have a running clasp you can just use slime M-. to jump to the source of a function
2:20:34
mixotricha
Ah lovely. Thank you once again for the help. I've got the emacs+slime configured but it is taking me a bit to get used to it.
5:52:33
drmeister
::notify yitzi I got ext:run-program working and I've made changes to asdf and submitted a merge request.
10:55:35
Colleen
yitzi: drmeister said 5 hours, 3 minutes ago: I got ext:run-program working and I've made changes to asdf and submitted a merge request.
12:57:12
kpoeck
drmeister the pr for launch-program does nto seem to compile in ubuntu, see https://github.com/clasp-developers/clasp/actions/runs/2526629694
13:09:57
Bike
and it kind of looks like this whole thing is debug code that should be deleted anyway.
13:10:06
Bike
https://github.com/clasp-developers/clasp/blob/launch/src/core/lispStream.cc#L3067-L3083
13:16:43
Bike
doesn't seem like it. i would guess that this code is copied out of a system implementation of fdopen or something.
13:16:51
yitzi
I think __SRD is BSD stuff. https://www.gnu.org/software/m68hc11/examples/stdio_8h-source.html
13:17:11
Bike
https://opensource.apple.com/source/Libc/Libc-167/stdio.subproj/flags.c.auto.html yep, here it is
13:23:40
Bike
yitzi: the result of __sflags is tested against zero, but the flags variable it's stored into is unused
13:27:28
yitzi
Bike: made it into aclasp by commenting out the __sflags call line and surrounding the __sflags definition with `#if 0`
13:51:59
drmeister
I'm building on zeus to test it. Since I arrived in Canada I've encountered a few problems that impacted my ability to get things done.
13:52:22
drmeister
(1) Two VPN's running at the same time lock up tmux on zeus for some bizarre reason.
13:53:22
drmeister
(2) My github access token expired coincident with arriving here. I attributed it to being in Canada for a few days preventing me from considering that the toke expired.
13:54:44
drmeister
I removed the __ in front of the sflags function and changed it so that those mac specific CPP macros are not used.
13:55:23
drmeister
My problem with fdopen was due to my misinterpreting how multiple values are returned in ecl.
13:57:48
drmeister
Uh no, not misinterpreting - rather I returned three values when I was supposed to return four.
13:58:56
drmeister
That thing where Common Lisp automatically returns NIL when you return fewer values than expected has bitten me several times.
14:00:34
yitzi
Bike: I am anticipating #1343 being ready soon. I promised kpoeck that I'd let #1342 go first since there will be conflicts to resolve. Any chance you can look at #1342 when you have time?