freenode/#lisp - IRC Chatlog
Search
15:14:52
Bike
it does get complicated when you start having local specials and thread locality, but for globals, whatever
15:16:17
beach
I am guessing that theseb doesn't know how to get the symbol into the executable code.
15:16:48
theseb
Bike: to give you context.....the reason this came up is i'm implementing a print function by appending to a global variable called output
15:17:08
beach
But then, it all depends on the implementation, and I suspect it is very different from the way Common Lisp and indeed other languages as well, are implemented.
15:18:22
theseb
errr i could modify it anywhere I wanted but the changes would disappear once I left a scope ;)
15:18:55
Bike
i don't think the context matters. it's pretty simple. you have a persistent hash table and you modify that table
15:19:14
Bike
i have no idea what your language targets or anything. maybe it's not image based. in that case you'd be really far off topic for this channel
15:20:11
beach
theseb: Your questions are essentially about how to implement a programming language. That is really too general for #lisp. If you want to know how to implement Common Lisp, we can help you with that, but it is nearly impossible for us to debug a problem in your own implementation of a language that is not Common Lisp.
15:22:58
theseb
What do you think of this...I'm going to open source a project called "Program To Processor"....you start with a minimal Python variant called Snake and convert to AST...then convert the AST to a minimal intermediate Lisp code...then to a simple virtual processor...All the parts are written in python for easy reading
15:23:26
theseb
So basically the entire stack and all code in all layers will be accessible and understandable in python
15:23:36
Bike
i mean i like lisp better than python, which is why i'm in the lisp channel and not the python channel.
15:24:27
jackdaniel
python with all its arbitrary syntactic rules (and oh my god spaces) is not easy to read, at most it is easy to evangelise as easy to read :)
15:26:16
jackdaniel
I think that this is as far from Common Lisp as one could get having parenthesis involved
15:29:10
beach
theseb: You are asking impossible questions, and you don't understand the recommendations, so it is very frustrating.
15:31:52
theseb
beach: sorry i'm slow....i think i understand why a hashtable is the answer now....if you modify e.g. x=4 in a function those changes will disappear when you leave scope but if x = more complex object like a hash table then changes will survive when you leave scope....is that it?
15:32:43
beach
theseb: x is not a hash table. It is a symbol, and it is used as a key in a hash table.
15:34:50
beach
theseb: My hypothesis is that it is time for you to read about compiler design as opposed to guessing how it might be done.
15:37:12
_death
beach: I wrote a bit of code and I think I understand what happens where/when better now.. e.g., https://plaster.tymoon.eu/view/1946#1946
17:47:25
|3b|
ok, CL(sbcl) should be supported for icfp programminng contest :) if anyone intends to participate with CL, might check https://github.com/icfpcontest2020/dockerfiles/tree/master/dockerfiles/commonlisp and (the pull request on) https://github.com/icfpcontest2020/starterkit-commonlisp for anything you think should be improved