freenode/#lisp - IRC Chatlog
Search
2:52:58
minion
The URL https://gitlab.common-lisp.net/users/sign_in?secret=ebc7a0f4 will be valid until 03:00 UTC.
9:45:24
decent-username
I'm right now writing a function with a #'macrolet inside. The question is: How can I access the arguments of the function that envelops the #'macrolet?
9:47:18
beach
If you mean the parameters of the function around the MACROLET, then you just write their names.
9:47:45
beach
But you can not do that at macro-expansion time, because the corresponding arguments are not available then.
9:49:03
beach
I need to go fix lunch for my (admittedly small) family. You either need to wait or see if someone else can answer.
9:51:58
decent-username
I'll try to solve the problem on my own. I'll let you know if I've managed to fix it.
9:56:17
MichaelRaskin
You don't need to unescape global-cell-x (the macro should expand to literally this symbol), and you do need to put comma before x (it is a macro argument that should be substituted in macro expansion
10:08:44
decent-username
my code compiles now. But the logic is still more broken than a 80year old who fell down a skyscraper.
10:44:47
beach
decent-username: It is conventional to put the loop keywords at the beginning of a line, not at the end.
10:45:38
decent-username
the commented block is the portion that gives me trouble: I get the following error message: "The value -1 is not of type SB-INT:INDEX"
10:47:28
beach
decent-username: Then you look at your backtrace, type a `v' in the frames, and look at what form is causing problems.
10:48:56
beach
It must be the case that global-cell-x or global-cell-y is 0, so that adding -1 to it gives -1 which you then use to pass to AREF.
10:51:17
beach
I always put (proclaim '(optimize (speed 0) (compilation-speed 0) (debug 3) (space 0))) in my .sbclrc
11:23:38
decent-username
It works! Here's the code I've written to the best of my current ability: https://gitlab.com/decent-username/undead-dungeon/blob/master/third-party/dungen/src/corridor.lisp
11:25:08
decent-username
I've modified mfianos Dungen library, because the created tiles don't contain enough information in order to decide which wall-sprite to use.
11:44:23
ECLIPSE
hi,would someone please help me to understand this lisp code,or beautifier it so I can read it,https://justpaste.it/3mr1e
11:46:11
no-defun-allowed
I think I will go with "no", since it's probably some kind of deobsfucation attempt at...AutoLisp or something like that? Some CAD scripting language.
11:48:31
no-defun-allowed
I think we'd need the actual file rather than trying to poke out strings out of it.
11:49:01
ECLIPSE
I am started studying lisp to understand ,,, and I was wondering about syntax ) ,,,, so I think its an advanced way to write lisp
11:49:07
no-defun-allowed
But, also "we" would have to be some other group, since this is a Common Lisp room and low-key AutoLisp is an unholy abomination.
11:49:40
no-defun-allowed
One of the things malware writers probably have in mind is to obsfucate their code, so I would not use it for learning unless you want to learn reverse engineering too.
11:49:42
decent-username
ECLIPSE: So advanced in fact, that it doesn't even qualify as a Lisp anymore.
12:09:39
ECLIPSE
@Bike , its AutoCad malware ,,,, it was obfuscated with spaces and /n /r ,, after I removed them I got this code ,,,,, but it still there is some points in code that I can not understand ,,, like first comment and the last one
12:25:09
decent-username
I'm about 90% sure ECLIPSE is a bot. If it now starts to talk to me, then that's even more suspicous.