p_l changed the topic of #lisp to: Common Lisp, the #1=(programmable . #1#) programming language | <https://irclog.tymoon.eu/freenode/%23lisp> <https://irclog.whitequark.org/lisp> <http://ccl.clozure.com/irc-logs/lisp/> | ASDF 3.3.4
emerald has quit [Ping timeout: 256 seconds]
Christ0pher has quit [Ping timeout: 272 seconds]
Christ0pher has joined #lisp
_jrjsmrtn has joined #lisp
__jrjsmrtn__ has quit [Ping timeout: 264 seconds]
markong has quit [Read error: Connection reset by peer]
sympt has joined #lisp
rats has joined #lisp
Christ0pher has quit [Ping timeout: 264 seconds]
Christ0pher has joined #lisp
karlosz has quit [Quit: karlosz]
karlosz has joined #lisp
bsd4me has joined #lisp
Christ0pher has quit [Ping timeout: 272 seconds]
kc5tja has joined #lisp
Christ0pher has joined #lisp
<kc5tja> Hello; I'm a new-comer to Common Lisp (using SBCL). I'm attempting to make a macro which synthesizes a keyword symbol from two strings. For example, if I have two strings ABC and DEF, I'd like to create a keyword :ABCDEF.
<kc5tja> Nothing I've tried so far seems to work (make-symbol...) (eval (format nil ":~A~A"...)) etc.
<kc5tja> Any ideas?
anatrope has joined #lisp
Christ0pher has quit [Ping timeout: 272 seconds]
Christ0pher has joined #lisp
kleptoflora has quit [Ping timeout: 246 seconds]
ahungry has joined #lisp
__jrjsmrtn__ has joined #lisp
_jrjsmrtn has quit [Ping timeout: 272 seconds]
<tychoish> kc5tja: I think you can do something weird interning (intern "thing" "KEYWORD")
nikka has quit [Ping timeout: 246 seconds]
<dlowe> no macro required, even
<tychoish> true!
<kc5tja> Ahh, sweet! I wasn't aware that intern took a package parameter. Just looked it up on the hyperspec. I think this will do the trick. Thanks!!
<kc5tja> dlowe: Well, I was trying to minimize the scope of the problem I'm running into. The macro is to replace a (when) form intended to dispatch on keycode handling in a cl-sdl2 game I'm trying to write. And failing. hard.
orivej has joined #lisp
<dlowe> kc5tja: use macroexpand-1 to expand your new macro and then debug that code :) good luck.
<kc5tja> I did that; it is textually the same. This is what baffles me.
<tychoish> why are you trying to replace a when form?
<kc5tja> I'm going to meditate on this over a sub sandwich. I'm positive it's going to be something really silly.
<kc5tja> :)
<kc5tja> There are going to be numerous when forms, all structurally similar.
<kc5tja> I don't really *have* to, but I just think it cleans up the code.
<tychoish> I'd use conds or switches?
<kc5tja> tychoish: I think it'd still be highly repetitive. See https://github.com/sam-falvo/equilibrium-cl/blob/master/eql.lisp#L116-L124
<kc5tja> brb; grabbing food. Thanks all for looking and helping. It is appreciated!
<tychoish> I wouldn't try and refactor so soon/early in a process. also if key events are objects, I'd just write methods and the dispatcher handle the low level stuff
<tychoish> disclaimer: I'm just a guy, and also something of a newb myself, there might be better idioms for this too.
<White_Flame> kc5tja: "scancode-~a" vs "SCANCODE-~a" is likely your problem
<White_Flame> (symbol-name :scancode-w) shows that the actual interned string has been uppercased, which is the reader's default behavior as it consumes your source code
<White_Flame> manually interning a string does not change its case
<White_Flame> tychoish: multiple keys could be pressed for diagonals, while a COND would only process the first one matched
<tychoish> oh good call
jesse1010 has quit [Ping timeout: 264 seconds]
<White_Flame> ah, although this might be edge triggered and dealing with 1 key event at a time, so you might be right
<tychoish> it sure looks like the cond/when thing would be equivalent in that regard
<tychoish> I also haven't really done this kind of event-based thing ever
karlosz has quit [Quit: karlosz]
karlosz has joined #lisp
i0_202365 has joined #lisp
Christ0pher has quit [Ping timeout: 246 seconds]
Christ0pher has joined #lisp
notzmv has quit [Ping timeout: 264 seconds]
EvW has quit [Ping timeout: 246 seconds]
Oladon has joined #lisp
gjulio__ has quit [Ping timeout: 256 seconds]
<kc5tja> White_Flame: Yes! That was the issue! Thank you for pointing that out.
Christ0pher has quit [Ping timeout: 260 seconds]
Christ0pher has joined #lisp
rats has quit [Quit: Connection closed]
john__ has joined #lisp
ahungry has quit [Ping timeout: 272 seconds]
gaqwas has quit [Ping timeout: 256 seconds]
ahungry has joined #lisp
Bike has quit [Quit: leaving]
karlosz has quit [Quit: karlosz]
karlosz has joined #lisp
kc5tja has quit [Quit: leaving]
<beach> Good morning everyone!
gjulio__ has joined #lisp
chipolux has quit [Ping timeout: 260 seconds]
MidHotaru has joined #lisp
<adlai> perfect timing, beach, I have just poured myself my first mug of coffee
<beach> Good! I am working on one myself.
* adlai wonders at the marvels of ASDF fasl translations, that have caused fresh bugs to appear upon reboot
* adlai wonders why ASDF has no force-compile restart
<adlai> e.g., in this case, I "fixed the bug" by doing a force-compile-system on the specific system in which the error was signalled, followed by a regular load-op on the initially loaded system,
nmg has joined #lisp
<White_Flame> I presonally use rm -rf ~/.cache/common-lisp/sbcl*/home/white-flame/git
<White_Flame> which keeps all the quicklisp fasls intact
shangul has joined #lisp
rumbler31 has joined #lisp
<adlai> the error message seemed to suggest that there was some fasl without an in-package form at its start; I was getting a failure to find a symbol, with a name from the internals of a dependency project, in the package that I had at the SLIME REPL
<shangul> lispshell.surge.sh <- A free shell server with many CL implementations and related tools installed.
Christ0pher has quit [Ping timeout: 246 seconds]
Christ0pher has joined #lisp
rumbler31 has quit [Ping timeout: 256 seconds]
karayan has joined #lisp
* adlai is puzzled at how a static CDN can deliver shell access?
orivej has quit [Ping timeout: 256 seconds]
<adlai> oh, that page is just the contact info for requesting shell access >_<
<adlai> shangul: you are using that service for your experiments, instead of running CL locally?
* adlai should probably not request an account, since he arguably is past the "wants to learn programming" stage, having reached the "regrets ever learning" stage
<shangul> adlai, For experiments, unless I they are ARM specific, I use my laptop. But not always I have my laptop with myself.
asarch has joined #lisp
<shangul> Also this is for people other than myself. Installing SLIME in Windows is not easy and straightforward. Also users can try this before actually running Linux on their computer with other tools installed.
<shangul> adlai, Another usage of my server is bypassing firewall blocks. I run sshd on port 443 instead of 22. So you can connect to it from anywhere(sometimes port 22 on some internet connections for example in hotels is blocked)
<shangul> You can connect to my server and from there connect to anywhere you want.
<adlai> minion: portacle?
<minion> portacle: Portacle is a complete IDE for Common Lisp that you can take with you on a USB stick https://shinmera.github.io/portacle/
<shangul> hmm
nmg has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
karlosz has quit [Quit: karlosz]
<shangul> adlai, nice!
<adlai> one last clarification question, and then if I have further questions, I'd rather discuss this issue in PM to unclutter the channel logs:
<shangul> I am emailing this to my friend
<shangul> adlai, feel free to PM me.
nmg has joined #lisp
karlosz has joined #lisp
<adlai> the "soft limits" that are outlined in that landing page include a total CPU time, is that per a certain denominator of wall clock time, or total total that you can ever use?
nmg has left #lisp [#lisp]
<adlai> thank you for the offer to PM
<shangul> I am not sure but I think it is the time which you can use 100% of CPU. After you reach the limit, the CPU usage of your processes will reduce but they won't get stopped. Let me ask in ##linux to make sure.
nmg has joined #lisp
nmg has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
i0_202365 has quit [Remote host closed the connection]
nmg has joined #lisp
gravicappa has joined #lisp
mrcom has quit [Read error: Connection reset by peer]
<adlai> aha, there is indeed no call to cl:in-package at the start of chanl's shim src/trivial-cas.lisp
* adlai wonders what to do about this, since the shim is currently loaded ~before~ the package.lisp
emerald has joined #lisp
emerald has quit [Ping timeout: 264 seconds]
emerald has joined #lisp
varbhat has quit [Quit: varbhat]
akoana has left #lisp ["Leaving"]
asarch has quit [Quit: Leaving]
notzmv has joined #lisp
lucasb has quit [Quit: Connection closed for inactivity]
mrcom has joined #lisp
bhartrihari has left #lisp ["Disconnected: Replaced by new connection"]
bhartrihari has joined #lisp
Christ0pher has quit [Ping timeout: 272 seconds]
Christ0pher has joined #lisp
bhartrihari has left #lisp ["Disconnected: Replaced by new connection"]
bhartrihari has joined #lisp
karlosz has quit [Quit: karlosz]
emerald has quit [Ping timeout: 240 seconds]
emerald has joined #lisp
john__ has quit [Remote host closed the connection]
nokdoot has joined #lisp
nokdoot has left #lisp ["leaving"]
emerald has quit [Quit: WeeChat 2.8]
PuercoPop has quit [Remote host closed the connection]
jeremiah has joined #lisp
MidHotaru has quit [Quit: Connection closed for inactivity]
jeremiah has left #lisp [#lisp]
orivej has joined #lisp
jlarocco has joined #lisp
marusich has joined #lisp
gjulio__ has quit [Ping timeout: 265 seconds]
karlosz has joined #lisp
kleptoflora has joined #lisp
anatrope has quit [Ping timeout: 256 seconds]
bsd4me has quit [Quit: Leaving]
_jrjsmrtn has joined #lisp
__jrjsmrtn__ has quit [Ping timeout: 240 seconds]
brown121407 has joined #lisp
stoneglass has joined #lisp
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #lisp
gjulio__ has joined #lisp
gjulio_ has joined #lisp
gjulio__ has quit [Ping timeout: 256 seconds]
ahungry has quit [Remote host closed the connection]
karlosz has quit [Quit: karlosz]
karlosz has joined #lisp
pve has joined #lisp
gaqwas has joined #lisp
gaqwas has quit [Changing host]
gaqwas has joined #lisp
nikka has joined #lisp
karlosz has quit [Quit: karlosz]
gjulio_ has quit [Ping timeout: 256 seconds]
cosimone has joined #lisp
gravicappa has quit [Ping timeout: 246 seconds]
edgar-rft has joined #lisp
ggole has joined #lisp
Oladon has quit [Quit: Leaving.]
rgherdt has joined #lisp
stoneglass has quit [Quit: stoneglass]
bitmapper has quit [Ping timeout: 272 seconds]
<shangul> Has anyone got a lisp related domain so that they can give me a subdomain?
Christ0pher has quit [Ping timeout: 256 seconds]
Christ0pher has joined #lisp
cosimone has quit [Remote host closed the connection]
cosimone has joined #lisp
<z3t0> shangul: I don't have one. But just curious, what are you planning on using it for?
<shangul> z3t0, lispshell.surge.sh
<z3t0> Ah, that's a really amazing initiative! Thank you for doing it.
davsebamse has joined #lisp
_whitelogger has joined #lisp
nikka has quit [Ping timeout: 260 seconds]
karayan has quit [Ping timeout: 256 seconds]
nikka has joined #lisp
hiroaki has joined #lisp
izh_ has joined #lisp
contrapunctus has joined #lisp
marusich has quit [Ping timeout: 260 seconds]
izh_ has quit [Quit: Leaving]
nikka has quit [Ping timeout: 272 seconds]
random-nick has joined #lisp
<jackdaniel> is there a way to create a reference to the forward-referenced-class without calling (defclass foo (forward-class) ()) and accessing superclasses of foo?
<jackdaniel> (it's not super important, I'm just curious)
<beach> You should be able to use the underlying infrastructure. Like ensure-class, or make-instance in the worst case.
<jackdaniel> ah, right, and that even works, thank you :)
<jackdaniel> (defvar *xxx* (c2mop:ensure-class 'foo :metaclass 'c2mop:forward-referenced-class))
<beach> Anytime. :)
<jackdaniel> (eq *xxx* (defclass foo () ())) ;-> T
<jackdaniel> I didn't think about it because I thought that this would be non-conforming, but otoh why would it be
<beach> Yeah, no reason.
Lycurgus has joined #lisp
isBEKaml has joined #lisp
Lycurgus has quit [Remote host closed the connection]
_jrjsmrtn has quit [Ping timeout: 260 seconds]
__jrjsmrtn__ has joined #lisp
isBEKaml has quit [Quit: leaving]
space_otter has quit [Remote host closed the connection]
rats has joined #lisp
nikka has joined #lisp
Lord_of_Life_ has joined #lisp
Lord_of_Life has quit [Ping timeout: 272 seconds]
Lord_of_Life_ is now known as Lord_of_Life
hiroaki has quit [Ping timeout: 272 seconds]
gravicappa has joined #lisp
terpri__ has joined #lisp
terpri_ has quit [Ping timeout: 256 seconds]
cosimone has quit [Quit: Quit.]
Retropikzel has joined #lisp
Necktwi has quit [Ping timeout: 240 seconds]
markong has joined #lisp
liberliver has joined #lisp
luna_is_here has joined #lisp
nikka has quit [Ping timeout: 265 seconds]
madage has quit [Ping timeout: 240 seconds]
Necktwi has joined #lisp
bhartrihari has left #lisp ["Disconnected: closed"]
bhartrihari has joined #lisp
contrapunctus has left #lisp ["Disconnected: closed"]
markoong has joined #lisp
markong has quit [Ping timeout: 246 seconds]
madage has joined #lisp
ssd532 has quit [Quit: Connection closed for inactivity]
Christ0pher has quit [Ping timeout: 256 seconds]
Christ0pher has joined #lisp
shangul has quit [Ping timeout: 258 seconds]
Bike has joined #lisp
TMA has quit [Ping timeout: 272 seconds]
luna_is_here has quit [Quit: Verlassend]
random-nick has quit [Ping timeout: 246 seconds]
luna_is_here has joined #lisp
Harag has quit [Read error: Connection reset by peer]
terpri__ has quit [Remote host closed the connection]
FreeBirdLjj has joined #lisp
terpri__ has joined #lisp
Harag has joined #lisp
shangul has joined #lisp
random-nick has joined #lisp
random-nick has quit [Remote host closed the connection]
terpri__ has quit [Remote host closed the connection]
terpri__ has joined #lisp
random-nick has joined #lisp
contrapunctus has joined #lisp
FreeBirdLjj has quit [Remote host closed the connection]
q3d has joined #lisp
Christ0pher has quit [Ping timeout: 240 seconds]
Christ0pher has joined #lisp
luna_is_here has quit [Ping timeout: 256 seconds]
vaporatorius__ has joined #lisp
nikka has joined #lisp
nikka has quit [Client Quit]
vaporatorius has quit [Ping timeout: 265 seconds]
abcdef has joined #lisp
abcdef has left #lisp [#lisp]
EvW1 has joined #lisp
gaqwas has quit [Remote host closed the connection]
hiroaki has joined #lisp
rats has quit [Quit: Connection closed]
random-nick has quit [Ping timeout: 272 seconds]
Christ0pher has quit [Ping timeout: 265 seconds]
Christ0pher has joined #lisp
mankaev has quit [Ping timeout: 272 seconds]
jesse1010 has joined #lisp
random-nick has joined #lisp
cosimone has joined #lisp
Retropikzel has quit [Ping timeout: 260 seconds]
mankaev has joined #lisp
mankaev has quit [Read error: Connection reset by peer]
Christ0pher has quit [Ping timeout: 246 seconds]
Christ0pher has joined #lisp
roelj has quit [Remote host closed the connection]
red-dot has quit [Quit: Going offline, see ya! (www.adiirc.com)]
gravicappa has quit [Ping timeout: 258 seconds]
mankaev has joined #lisp
Christ0pher has quit [Ping timeout: 256 seconds]
Christ0pher has joined #lisp
bhartrihari has left #lisp ["Disconnected: Replaced by new connection"]
bhartrihari has joined #lisp
efm has quit [Remote host closed the connection]
EvW1 has quit [Ping timeout: 256 seconds]
mankaev has quit [Read error: Connection reset by peer]
mankaev has joined #lisp
contrapunctus has quit [K-Lined]
bhartrihari has quit [K-Lined]
contrapunctus has joined #lisp
efm has joined #lisp
bhartrihari has joined #lisp
EvW has joined #lisp
bitmapper has joined #lisp
EvW has quit [Ping timeout: 260 seconds]
cosimone has quit [Quit: Quit.]
Christ0pher has quit [Ping timeout: 246 seconds]
liberliver has quit [Quit: liberliver]
Christ0pher has joined #lisp
gaqwas has joined #lisp
gaqwas has quit [Changing host]
gaqwas has joined #lisp
cosimone has joined #lisp
<Xach> well
<Xach> it turns out my builds were failing because i could not require sb-posix at .asd load time
<Xach> fixed!
<tychoish> \o/
asarch has joined #lisp
_jrjsmrtn has joined #lisp
__jrjsmrtn__ has quit [Ping timeout: 264 seconds]
gjulio_ has joined #lisp
Christ0pher has quit [Ping timeout: 260 seconds]
Christ0pher has joined #lisp
bitmapper has quit [Read error: Connection reset by peer]
bitmapper has joined #lisp
gravicappa has joined #lisp
gaqwas has quit [Remote host closed the connection]
efm has quit [Read error: Connection reset by peer]
shka_ has joined #lisp
nicktick has quit [Ping timeout: 258 seconds]
efm has joined #lisp
q3d has quit [Remote host closed the connection]
gjulio__ has joined #lisp
Oladon has joined #lisp
gjulio_ has quit [Ping timeout: 256 seconds]
shangul has quit [Ping timeout: 264 seconds]
Christ0pher has quit [Ping timeout: 258 seconds]
lalilulelo has joined #lisp
Christ0pher has joined #lisp
lalilulelo has quit [Quit: Leaving]
Christ0pher has quit [Ping timeout: 246 seconds]
lavaflow has quit [Ping timeout: 246 seconds]
shangul has joined #lisp
gjulio has joined #lisp
lavaflow has joined #lisp
gjulio__ has quit [Read error: Connection reset by peer]
Inline has joined #lisp
Inline has quit [Remote host closed the connection]
Inline has joined #lisp
blandest has joined #lisp
choegusung has joined #lisp
choegusung has quit [Client Quit]
cosimone has quit [Quit: Quit.]
gjulio has quit [Ping timeout: 258 seconds]
cosimone has joined #lisp
orivej has quit [Ping timeout: 264 seconds]
orivej_ has joined #lisp
gaqwas has joined #lisp
gaqwas has quit [Changing host]
gaqwas has joined #lisp
Necktwi has quit [Quit: leaving]
gjulio has joined #lisp
X-Scale` has joined #lisp
X-Scale has quit [Ping timeout: 256 seconds]
X-Scale` is now known as X-Scale
blandest has quit [Ping timeout: 272 seconds]
notzmv has quit [Ping timeout: 260 seconds]
Oladon has quit [Quit: Leaving.]
karlosz has joined #lisp
vaporatorius has joined #lisp
shangul has quit [Ping timeout: 240 seconds]
terpri has joined #lisp
vaporatorius__ has quit [Ping timeout: 256 seconds]
terpri__ has quit [Ping timeout: 256 seconds]
luna_is_here has joined #lisp
libertyprime has joined #lisp
rumbler31 has joined #lisp
JohnTalent has joined #lisp
<JohnTalent> Why isn't Lisp in the top 20 TIOBE? It's insanity.
<bitmapper> it used to be
<bitmapper> used to be #2
<phoe> JohnTalent: USA DoD pulling out the plug
_paul0 has joined #lisp
paul0 has quit [Ping timeout: 246 seconds]
edgar-rft has quit [Quit: Leaving]
EvW1 has joined #lisp
<aeth> JohnTalent: In short, TIOBE is possibly one of the least reliable metrics of programming language popularity. Unfortunately, TIOBE persists through the years, and the slightly-better websites with brutal takedowns of TIOBE's methodology do not.
<tychoish> the surprising thing is that it was 6 in 2000, I suspect.
<aeth> It's essentially an impossible task, and whichever subset you use will bias you towards different things, like educational software, commercial software, new/trendy web software (Github popularity), etc.
contrapunctus has left #lisp ["Disconnected: closed"]
<aeth> On Github, JavaScript's the #1 language, in banks COBOL might still be the #1 language. How do you come up with something that reliably measures Github activity and bank activity? You don't. Especially banks.
<tychoish> depends a lot on the bank.
<aeth> Every field has its own language. Gamedev is a C++ monoculture, with a bit of Lua scripting sprinkled in. Microsoftland is full of C#, but nowhere else uses it. Machine learning is dominated by Python. There's no way to reliably measure cross-field use of programming language popularity, and do you even want to?
<aeth> The languages you're forced to use for Android or iOS are probably pretty popular because of Android and iOS, but there's basically no reason to use them in environments where you get to choose.
<aeth> In particular, TIOBE severely underestimates the popularity of JavaScript because it's mostly search-based, while sites that are e.g. Github based will probably overestimate it. https://news.ycombinator.com/item?id=19767961
<aeth> IMO, the more useful metric of a language's popularity is the size of its library repositories -- in Common Lisp's case, Quicklisp. This will still hurt languages like COBOL or C# where commercial middleware is more of a thing and FOSS was adopted late, but if you're not willing to pay for commercial middleware, it's probably more useful to you the programmer.
<aeth> It still won't quite work out *quite* right because JS culture prefers microlibraries like is-even.
<aeth> (And some languages like Scheme require a few dozen libraries just to catch up with what CL ships with.)
red-dot has joined #lisp
<aeth> Btw, TIOBE contains entries both "Lisp" and "Common Lisp", and ranks Common Lisp substantially lower, which shows that it is completely clueless with respect to Lisp. There is no "Lisp", unless they want to suggest that LISP 1.5 is extremely more popular than Common Lisp.
<aeth> s/both/for both/
<bitmapper> ahh
<bitmapper> this debate again
<bitmapper> anyway, TIOBE is based on search engine results
<aeth> Which means that TIOBE's basically just noise since Google locked down their algorithms and API a decade ago.
<aeth> Google no longer gives you an accurate indication of results, and can't, really, since it's so customized.
<aeth> And I can search a quote from a webpage, verbatim, in quotes, that I know exists and is indexed, and sometimes won't get the result. Google doesn't care for low volume searches, and often gives either you nothing or a completely irrelevant thing it thinks you meant.
<aeth> s/either you/you either/
space_otter has joined #lisp
<aeth> The most entertaining thing, though, is searching for an error message and getting the source code file containing the error message as the only result.
Josh_2 has joined #lisp
<Josh_2> Hi all
<phoe> heyy
<Josh_2> Is there a way for me to define classes in a way that isn't at the top level?
<Josh_2> the library jonathan requires classes in order to output json objects that aren't just arrays
<Josh_2> the method %to-json is extended so I can output closs classes as JSON
<rumbler31> you mean define classes at runtime?
<rumbler31> or, later in compile time?
<Josh_2> compile time I think
<rumbler31> well I mean... when does it need to exist
<rumbler31> do you have some example code you're trying to make work?
<rumbler31> well so I mean, why do you need it not at the toplevel
<rumbler31> what exactly do you mean by that
<Josh_2> yes https://plaster.tymoon.eu/view/1952#1952 this almost works
<rumbler31> are you needing to create new object definitions at runtime?
<phoe> you can DEFCLASS anywhere you'd like, including IF branches and such
<phoe> oooh, like that
<Josh_2> eh
<Josh_2> I don't think this is the best way to implement what I'm trying to do
<Josh_2> I think I will just make a nice wrapper for defclass and defmethod and just write things out by hand oof
<rumbler31> I've literally done this exact thing before, what do you think is wrong with it?
<Josh_2> Well what I have done works for 1 level of class definitions
<Josh_2> doesn't work with nested definitions
<Josh_2> anyway I think I will try a different approach
<Josh_2> Sorry for wasting y'alls time
<rumbler31> wait, you mean that one member of a class is actually another class?
<Josh_2> In the example *test* there is a list that looks like ("identifier" ("type" "m.id.user")("user" "cheeky-monkey")) this would be another class definition
<Josh_2> so it would make another class associated with the name "identifier" with the two slots, and then the level above would have a slot definition like (identifier :type identifier :accessor identifier) if that makes sense
sympt_ has joined #lisp
<pve> Josh_2: could you have just one class for everything with a properties slots?
<rumbler31> right, I've done that too... you just need to call your list to class definition again, and store the defclass call in a list that gets evaluated later, or in whichever order you need to do
EvW1 has quit [Ping timeout: 256 seconds]
<Josh_2> rumbler31: well I could do it easy If I used eval
<asarch> What can I do when I am evaluating a thread and something fails and it renders into the debug state of SBCL?
<asarch> "#<THREAD "cl-cffi-gtk main thread" RUNNING {1007D01A43}>:"
<rumbler31> don't need eval I don't think
<asarch> If I press Ctrl+D in order to exit SBCL, it doesn't work
<Josh_2> pve: I don't think I can do that because of the way the jonathan library creates JSON from instances of CLOS classes
sympt has quit [Read error: Connection reset by peer]
<rumbler31> a function that goes through slots to detect slots that have a type field, and then sends that slot to to your list to class definition call, storing the results, right?
<Josh_2> oof I could just preprocess the list looking for nested classes and defining them first
<rumbler31> finally reversing the list of class definitions so that they are defined before they're used (if that's even necessary)
<rumbler31> yes
<Josh_2> this wont' have any effect on runtime speed so ¯\_(ツ)_/¯
<Josh_2> okay I will try that
<asarch> debugger invoked on a SIMPLE-TYPE-ERROR in thread
<asarch> #<THREAD "cl-cffi-gtk main thread" RUNNING {1007D08023}>:
<asarch> 1 is not a string designator.
<rumbler31> I got around this by instead of defining subclasses I just used the slot names as a new in place struct, but I just ran an expansion function that took the initial list and detected a new subtype list, and returned the results of the recursive call
<asarch> The current thread is not at the foreground,
<asarch> SB-THREAD:RELEASE-FOREGROUND has to be called in #<SB-THREAD:THREAD "main thread" RUNNING {10009C8083}>
<asarch> for this thread to enter the debugger.
<Josh_2> rumbler31: I think I will try something a long these lines
<rumbler31> you might I guess want to be able to reuse subclasses in individual %to-json methods so that wont work for you
<phoe> asarch: that's a type error
<asarch> If I try to evaluate something, e.g. (sb-ext:exit), it simply doesn't work
<phoe> go to that thread and check the backtrace to see where it blew up.
<asarch> How?
<Josh_2> I might just have to define some classes manually
<phoe> asarch: are you using slime?
<phoe> slime should install its own debugger hook so you get the backtrace in the slime debugger
<asarch> No, SBCL directly from CLI: sbcl --load workspace.lisp
<phoe> asarch: then do as you are told - call SB-THREAD:RELEASE-FOREGROUND from your main thread
<phoe> once that's done, use the SBCL debugger to print the backtrace
<phoe> and debug from there
<asarch> (funcall SB-THREAD:RELEASE-FOREGROUND)?
<phoe> (SB-THREAD:RELEASE-FOREGROUND)
<phoe> in the main thread
<asarch> Gotcha!
<asarch> Thank you!
<asarch> I usually type Ctrl+Z to "release" it :-P
EvW has joined #lisp
brown121407 has quit [Remote host closed the connection]
Inline has quit [Ping timeout: 272 seconds]
<asarch> My log is corrupted :'-(
<asarch> How do you convert 1 into "1"?
Inline has joined #lisp
madage has quit [Ping timeout: 240 seconds]
madage has joined #lisp
<Xach> asarch: so many ways
<asarch> Thank you!
<Xach> asarch: princ-to-string, prin1-to-string, format are a few
akoana has joined #lisp
<asarch> I wonder why not just (string 1)
<asarch> Anyway
<phoe> because it doesn't work
<asarch> Thank you very much! :-)
<phoe> because #'CL:STRING accepts string designators, and a number isn't one
<phoe> because who knows why
<asarch> I know
mathrick has quit [Ping timeout: 240 seconds]
<asarch> It is just, most of OO languages have the String object for string operations
<asarch> let name = new String(12312);
<phoe> in Lisp, this isn't as simple as that
<phoe> things often can be printed in multiple ways, readably/unreadably, numeric settings for float, yadda yadda formatting stuff
<phoe> prin1-to-string and princ-to-string is what you usually want
<phoe> also, there's no "String object" in Lisp, and Lisp strings aren't standard objects that you can MAKE-INSTANCE of
torbo has joined #lisp
<Bike> i don't think coercing things to strings has anything to do with object orientation.
<phoe> ^
<Bike> doing it with numbers is nontrivial. there's selection of base, whether you want a separator, some localization concerns like what you use for a separator, bla bla bla
Inline has quit [Ping timeout: 240 seconds]
<phoe> nah it's easy, you just do String number = new NumberStringBuilder(2).base(10).separator(',').decimalPlaces(4, 2, '0').build();
<Bike> in java it would be toString, except i don't think that works with ints since they're not objects
<phoe> new Integer(2);
<Bike> oh, you do Integer.toString(whatever) instead of whatever.toString()
<phoe> everything is a java object if you believe hard enough
<aeth> In CL, there's very little special treatment for strings because most of the time, they're just treated as arrays or sequences instead.
<aeth> Some languages can have very elaborate special treatment there.
jw4 has quit [Read error: Connection reset by peer]
<aeth> integer to string is pretty trivial most of the time
<aeth> floating point to string is a nightmare
<aeth> I usually use FORMAT to turn numbers into strings even in parts of code that otherwise stylistically don't use FORMAT. This, of course, assumes that the Lisp implementation correctly is handling the floating point issues.
gravicappa has quit [Ping timeout: 258 seconds]
<asarch> movl %eax, "This is a test!"
ggole has quit [Quit: Leaving]
jw4 has joined #lisp
<Bike> that's not an actual runtime operation, your assembler just converts the string into bytes by whatever means.
<Bike> i guess assemblers probably have to support unicode and stuff now? ech.
<Bike> well, storing the address in the register might actually happen though.
<phoe> movlcnvutf8utf16be %eax, "what the hell"
<Bike> wasn't that the king of the north sea empire?
<asarch> movl %ebx, "こんいちわ!"
<asarch> brb!
asarch has quit [Quit: Leaving]
efm has quit [Remote host closed the connection]
efm has joined #lisp
gaqwas has quit [Ping timeout: 256 seconds]
kaftejiman has quit [Remote host closed the connection]
notzmv has joined #lisp
jprajzne has quit [Quit: jprajzne]
jprajzne has joined #lisp
jprajzne has quit [Client Quit]
jprajzne has joined #lisp
aaaaaa has joined #lisp
<aeth> As far as Unicode goes, I personally prefer just adding in an "é" to see what happens.
<aeth> The most wrong answer is if it uses an encoding that isn't Unicode, I guess
<Bike> well that one's in latin-1
markoong has quit [Ping timeout: 258 seconds]
markong has joined #lisp
rumbler31 has quit [Ping timeout: 246 seconds]
pve has quit [Quit: leaving]
gjulio has quit [Ping timeout: 264 seconds]
shka_ has quit [Ping timeout: 260 seconds]
aamukastemato has joined #lisp
X-Scale has quit [Ping timeout: 246 seconds]
X-Scale` has joined #lisp
X-Scale` is now known as X-Scale
cosimone has quit [Remote host closed the connection]
cosimone has joined #lisp
rgherdt has quit [Ping timeout: 272 seconds]
aamukastemato has quit [Quit: Leaving]
mathrick has joined #lisp
markoong has joined #lisp
hiroaki has quit [Ping timeout: 272 seconds]
markong has quit [Ping timeout: 272 seconds]
Lord_of_Life_ has joined #lisp
Lord_of_Life has quit [Ping timeout: 258 seconds]
Lord_of_Life_ is now known as Lord_of_Life
orivej_ has quit [Ping timeout: 256 seconds]
MidHotaru has joined #lisp
efm has quit [Read error: Connection reset by peer]
efm has joined #lisp
random-nick has quit [Ping timeout: 264 seconds]
vornth has joined #lisp
jprajzne has quit [Quit: jprajzne]
jprajzne has joined #lisp
efm has quit [Remote host closed the connection]
jprajzne has quit [Client Quit]
rumbler31 has joined #lisp
akoana has left #lisp ["Leaving"]
jprajzne has joined #lisp
luna_is_here has quit [Ping timeout: 256 seconds]
gioyik has joined #lisp
mrcom has quit [Read error: Connection reset by peer]
jprajzne has quit [Quit: jprajzne]
jprajzne has joined #lisp
efm has joined #lisp
jprajzne has quit [Client Quit]
jprajzne has joined #lisp
aaaaaa has left #lisp [#lisp]
gjulio has joined #lisp
markoong has quit [Ping timeout: 258 seconds]
efm_ has joined #lisp
efm has quit [Ping timeout: 272 seconds]