libera/#commonlisp - IRC Chatlog
Search
14:13:41
Guest74
I still don't understand. but that's probably because you're using a concept you haven't fully introduced. What ss this 'body variable'? There seems to be some concept I'm not grasping here.
14:14:52
Guest74
and I can't concentrate much because either my laptop is dying or my cable is dying but I can barely read anything on the screen as everything is low resolution and fuzzy.
14:20:37
dbotton
You will need to pass the body from the on-new-window handler to a global variable accessible in the REPL
14:23:03
dbotton
but if you desire to have access to play with your own code while debugging you need to have access to it in the repl
14:25:28
dbotton
"You will need to give yourself access in the REPL by binding your body object passed to in your on-new-window handler to a global variable, for example (setf *my-body* body)"
14:26:13
Guest74
it's just you never specify what this *body* is, I get this from an on-new-window handler? How do I know what global variables are accessible in the repl? Do I have to customize the repl?
14:26:58
pjb
dbotton: often your own code is not available anymore. It has been compiled and the debugger only has access to the binary.
14:27:24
pjb
dbotton: you can use a source debugger. For example, with slime, in sldb, you type v to jump to the source code.
14:27:48
dbotton
Unfortunately I have minutes to program between patients and less to author exacting docs, do really appreciate
14:28:39
dbotton
pjb don't think that would be helpful to anyone reading those docs, either they are a beginner or already know that
14:28:40
Guest74
anyways, you look to have a pretty complete system, but at least from this cursory glance it is not what I expected as it seems very web like.
15:14:07
dbotton
Nilby thanks, I love programming and CL with its toolset is so me, combined with availability of true free compilers and commercial compilers, I still kick myself for finding it so late in life
15:16:16
Nilby
dbotton: well I found it early in life, but it took me many years to make any progress
15:18:28
Guest74
my most common hiccup is that while it resembles the language I made in my head, it isn't.
15:20:05
beach
Guest74: Do you mean that you created an incorrect model of how Common Lisp works, or do you mean that you created a different language yourself? Or something else, perhaps?
15:22:21
Guest74
I'd say 'created' but really i'm not sure how much thought it takes to come up with lists of symbols. Then I started searching for a language to write this in and found common lisp, which is a little more than just lists of symbols.
15:28:47
Guest74
tbh, I'm still trying to create the visual interface. symbols in lists, objects in windows, it's all the same.
15:31:35
dbotton
true, but in some ways that is its issue, what is built on top of the core, looks like other languages but often has small differences
15:35:17
Guest74
anybody familiar with dictionaries out there? I'm looking for one dictionary instead of many to encompass things like definition, pronounciation, part of speech, hyphenation, tense, stem, and maybe throw in some antonyms/synonyms etc...
15:40:05
Guest74
Makes me wonder how past lispers wrote typesetters with spell check and grammar analysis.
15:53:16
beach
Guest74: Such a thing would be extremely valuable. I think phoe started something like it, but I don't know how far he got.
16:01:30
beach
You may have to start over then. I suppose it is mainly a matter of finding existing information and turning it into something coherent, making sure that the information is free enough to allow it.
16:03:08
Guest74
I've got free ones for pronounciation, speech recognition/production, phonemes, but nothing like definitions or hyphenation or a comprehensive part of speech one. I guess I need to learn more about where dictionaries live on the web.
16:06:16
Guest74
what do you call a data structure for storing strings in a tree where branches are chosen by characters?
16:08:46
ck_
the discipline is old enough to have "classics", classic papers for example. It's worth spending a bit of time reading some of those
16:52:26
Guest74
apparently wordnet was not by Phoe nor is it access to an online dictionary. The library actually includes all the free data files from wordnet, which while useful for somethings such as text analysis, the data format is inefficient for things like completion.
17:49:32
contrapunctus
Guest74: I see at least one here - https://github.com/CodyReichert/awesome-cl#data-structures
17:51:10
contrapunctus
Is there any way I can _print_ an object to the REPL such that SLIME can inspect it?
18:37:53
mfiano
Or if you use Sly, you can call slynk-mrepl:copy-to-repl-in-emacs from Lisp to write inspectable objects to the REPL
21:12:08
Guest74
contrapunctus: thanks, that'll add 1 to test against the 2 others I found. The one from Xerox looks interesting, if I can get it to run.
21:14:43
Guest74
In case anybody else is interested in words, a man by the name of Grady Ward compiled a whole bunch of dictionaries, parts of speech, thesaurus, hypenation, pronounciation, licenced it royalty free and over 20 years ago put it all in the public domain.
21:16:06
Guest74
Just need to package them all up together and come up with a suitable api, hopefully language agnostic, and have the one dictionary(english) to rule them all(english).
21:41:10
clintm
Before I go off and write it, do any of you know of any packages that implement 'expect'? The command from tcl/tk for scripting command line stuff.
22:25:54
mfiano
I had to upload it on one of my throwaway accounts. apparently there is copyrighted music in it. it didn't flag me though, just showing ads to pay the copyrighter
22:30:50
mfiano
I never thought I'd say this, but I wish I knew javascript well enough to not have to add all kinds of hacks just to get something trivial working for my CL code pasting service.
22:31:18
mfiano
Though from what I understand, even if you are good at it there are all kinds of hacks you need to add to work around this crazy language.
22:35:45
mfiano
yitzi: I only know what I learned writing this (the paste.js file referenced): https://paste.mfiano.net/?hKGILYgajzdkxEUv#L175
22:36:13
mfiano
and it is a mess. I could never figure out how to get centering to work on page load...only works on hash change event
1:53:57
pillton
I have a function which signals MODULE-ERROR when invoked as (F :error). I'd like F to perform a different action and emit a warning when invoked as (F :warn-and-reuse). Unfortunately, CL:WARN only signals conditions of type WARNING. Would you create a new condition class MODULE-WARNING or write a version of WARN which accepts ERROR conditions?
1:54:44
Bike
i would not try to signal an error as a warning, because that confuses how callers can respond to it
1:54:55
Bike
e.g. muffle-warning is an appropriate restart for a handler to use for a warning but not an error
1:56:51
pillton
Yeah. My thoughts as well. The downside of MODULE-ERROR is it tends to be a subclass of a lot of operation specific errors. Reproducing the hierarchy for the warning would be pain.