3 ms·
This works in compiled Lisp code.
by lispm 3y ago
This works in compiled Lisp code.
- mathisfun123 3y agoIt works in code compiled from c++ too: define and associate a signal handler for sigkill, call a function whose symbol can't be runtime resolved by the linker, sigkill is sent and caught, define your function (in your asm dejure), patch the GOT to point from the original symbol to wherever the bytearray is with your asm, and voila. I'll say it again: what exactly do you think your magical lisp is doing that defies the laws of physics/computing?
- lispm 3y ago> It works in code compiled from c++ too: define and associate a signal handler for sigkill, call a function whose symbol can't be runtime resolved by the linker, sigkill is sent and caught, define your function (in your asm dejure), patch the GOT to point from the original symbol to wherever the bytearray is with your asm, and voila. I don't need to do anything like that in Lisp. I just define the function and RESUME THE COMPUTATION WHERE IT STANDS in my read eval print loop. << important parts in uppercase.
- mathisfun123 3y agoDo you think the magic fairies are doing it for you? Your interpreter/runtime is still doing it whether you're aware of it or not. My point is very simple: I can do it too, in any language I want, and so there's nothing special about lisp.
- lispm 3y ago> My point is very simple: I can do it too, in any language I want, and so there's nothing special about lisp. The big difference is: "I can do it too" means YOU need to do it. Lisp does it for me already, I have not to do anything. I don't want to know what you claim you can do with C++, show me where C++ does it for you. Telling me "I can do it too" is not a good answer. Show me where the language implementation (!) does it for you.
- kgwgk 3y agohttps://en.wikipedia.org/wiki/Greenspun%27s_tenth_rule https://en.wikipedia.org/wiki/Greenspun%27s_tenth_rule
- mtlmtlmtlmtl 3y agoYou act as if you know better than everyone in this thread and yet you don't know the 101 level fact that you can't catch SIGKILL. Maybe try to relax, and learn some humility.
- nmlrpzt 3y agoSo you update a single function without updating the global state, using a vile hack. In CL the entire state is saved.