Search
Saturday, 17th of November 2018, 22:31:29 UTC
2:41:21
drmeister
Ok - I implemented stassats' suggestion. In small tests it drops the amount of code by 20%
3:03:14
drmeister
Is there any way to force the printing of package names with symbols?
3:31:40
drmeister
Bind the *package* to (find-package "KEYWORD")
3:32:12
drmeister
I've changed how literals are compiled somewhat.
3:32:51
drmeister
Now there is a big string that contains a printed vector that is read at load time and used to initialize the literals table.
3:33:48
drmeister
https://www.irccloud.com/pastebin/QQ9pgKjx/
3:34:13
drmeister
The objects that use the #'ltv/readable are printed into the string and everything else is initialized as it was before.
3:36:24
drmeister
A literals string looks like this:
3:36:29
drmeister
https://usercontent.irccloud-cdn.com/file/ry1CaJFr/image.png
3:36:41
drmeister
If I paste the text it will be one enormous line.
3:37:33
drmeister
This is what RUN-ALL looks like now...
3:37:36
drmeister
https://usercontent.irccloud-cdn.com/file/mDS0faTt/image.png
3:37:42
drmeister
So - way less code.
3:43:17
drmeister
But I need to implement #A in C++
4:08:27
beach
Good morning everyone!
4:16:09
drmeister
Bike: Do you have a few minutes?
4:16:34
drmeister
I ran into an issue that I'm struggling with
4:17:29
drmeister
When I load aclasp I get the following error - it's new because of the new way I'm initializing literals.
4:17:48
drmeister
Cannot find the external symbol *ECHO-REPL-TPL-READ* in #<PACKAGE CORE>
4:18:22
drmeister
This is because the literals string contains: " CORE:*ECHO-REPL-TPL-READ* "
4:18:31
drmeister
Which is an external symbol.
4:20:23
drmeister
But when I read it - it's not external or even defined.
4:21:33
drmeister
So - I need READ to read the symbol and intern it? Maybe I need to print them all as internal symbols.
4:27:03
drmeister
Can I print symbols as internal symbols?
4:28:44
Bike
oh you mean like, how to do so
4:29:02
drmeister
Yeah - I'm looking it up and thinking about it.
4:29:27
Bike
don't remember off the top of my head
4:32:45
drmeister
Do you remember if there was a way to do it with standard Common Lisp? Otherwise I'll hack in a special variable to control printing of package qualified symbols
4:33:38
Bike
i t hink it's *print-escape* = T, *package* = keyword package
4:33:58
Bike
or... tha'tll probably still print it as external
4:50:28
drmeister
We have something for this... bind core::*print-package* t
4:57:20
beach
I have said this before, but I'll say it again: "CORE" is not a great name for a package.
6:39:38
drmeister
Like I can change it now.
6:41:12
drmeister
Well, maybe I can - dunno.
7:04:49
beach
I am not saying you should do it right away. But I hope you agree with me.
7:37:46
drmeister
Yeah - it's just... getting around to it.
7:38:24
drmeister
I broke Common Lisp semantics today with this literal compilation stuff - I'm off to bed - maybe I can figure out how to fix it tomorrow.
Sunday, 18th of November 2018, 10:31:29 UTC