phoe changed the topic of #lisp to: Common Lisp, the #1=(programmable . #1#) programming language | <http://cliki.net/> <https://irclog.tymoon.eu/freenode/%23lisp> <https://irclog.whitequark.org/lisp> <http://ccl.clozure.com/irc-logs/lisp/> | SBCL 1.4.16, CMUCL 21b, ECL 16.1.3, CCL 1.11.5, ABCL 1.5.0
notzmv has quit [Remote host closed the connection]
quazimodo has quit [Ping timeout: 246 seconds]
nullman has quit [Ping timeout: 272 seconds]
baho has joined #lisp
baho has left #lisp [#lisp]
nullman has joined #lisp
notzmv has joined #lisp
void_pointer has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
gigetoo has quit [Ping timeout: 245 seconds]
gigetoo has joined #lisp
techquila has quit [Remote host closed the connection]
techquila has joined #lisp
techquila has quit [Remote host closed the connection]
techquila has joined #lisp
gigetoo has quit [Ping timeout: 268 seconds]
gigetoo has joined #lisp
Lycurgus has joined #lisp
milanj has quit [Quit: This computer has gone to sleep]
dale has quit [Quit: dale]
orivej has quit [Ping timeout: 248 seconds]
anewuser has joined #lisp
flazh has quit [Ping timeout: 245 seconds]
<aeth> Josh_2: the problem is that Lisp is a good language for doing things from scratch, but if something's a lot of work, and there's a library or framework or engine or whatever that already does that work, then it might not be the fastest language for a given task
nisstyre has quit [Quit: WeeChat 2.2]
uplime has quit [Remote host closed the connection]
<White_Flame> but with quicklisp, there's a good availability of libraries now
uplime has joined #lisp
<ck_> Good morning.
CrazyEddy has joined #lisp
wigust- has joined #lisp
wigust has quit [Ping timeout: 248 seconds]
abhixec has quit [Quit: leaving]
ck_ has quit [Quit: dist-upgrade]
dale has joined #lisp
ck_ has joined #lisp
FreeBirdLjj has joined #lisp
<moldybits> aeth: it's a lot more fun, though. :)
khisanth_ has quit [Ping timeout: 245 seconds]
Bike has quit [Quit: Lost terminal]
nanoz has joined #lisp
khisanth_ has joined #lisp
<aeth> moldybits: well, yes, for us
<aeth> the appeal is there for programmers like us, but if someone identifies as a game designer first, that probably means they want to shortcut to the actual game part
<aeth> not always, of course
<aeth> White_Flame: well, library. trivial-gamekit is at the stage where you can recommend it to people. Afaik, everything else is WIP or ancient
mathrick has quit [Ping timeout: 250 seconds]
mingus has quit [Read error: Connection reset by peer]
nanoz has quit [Ping timeout: 248 seconds]
mathrick has joined #lisp
anewuser has quit [Read error: Connection reset by peer]
flazh has joined #lisp
dddddd has quit [Remote host closed the connection]
slyrus_ has joined #lisp
slyrus has quit [Ping timeout: 258 seconds]
manualcrank has quit [Quit: WeeChat 1.9.1]
FreeBirdLjj has quit [Remote host closed the connection]
Lycurgus has quit [Quit: Exeunt]
marusich has joined #lisp
slyrus__ has joined #lisp
xkapastel has quit [Quit: Connection closed for inactivity]
FreeBirdLjj has joined #lisp
linli has joined #lisp
slyrus_ has quit [Ping timeout: 248 seconds]
dreamcompiler has quit [Quit: dreamcompiler]
<beach> Good morning everyone!
linli has quit [Remote host closed the connection]
<ck_> Good morning, beach
vlatkoB has joined #lisp
nanoz has joined #lisp
sauvin has joined #lisp
Lord_of_Life has quit [Ping timeout: 245 seconds]
lavaflow_ has joined #lisp
lavaflow has quit [Ping timeout: 258 seconds]
Lord_of_Life has joined #lisp
phoe has quit [Ping timeout: 252 seconds]
linli has joined #lisp
linli has quit [Ping timeout: 248 seconds]
milanj has joined #lisp
linli has joined #lisp
Josh_2 has quit [Ping timeout: 245 seconds]
linli has quit [Remote host closed the connection]
zotan has quit [Ping timeout: 252 seconds]
frodef has joined #lisp
zotan has joined #lisp
FreeBirdLjj has quit [Remote host closed the connection]
donotturnoff has joined #lisp
FreeBirdLjj has joined #lisp
myrkraverk has quit [Ping timeout: 258 seconds]
quazimodo has joined #lisp
frodef has quit [Remote host closed the connection]
phoe has joined #lisp
quazimodo has quit [Ping timeout: 258 seconds]
quazimodo has joined #lisp
_whitelogger has joined #lisp
linli has joined #lisp
linli has quit [Ping timeout: 246 seconds]
panji has joined #lisp
quazimodo has quit [Ping timeout: 245 seconds]
marusich has quit [Remote host closed the connection]
uplime is now known as lime[_]
<jackdaniel> s/wip/wd/ (work done! ;)
<jackdaniel> bleh, s/ancient/wd/
quazimodo has joined #lisp
agspathis has joined #lisp
nullman has quit [Ping timeout: 245 seconds]
nullman has joined #lisp
donotturnoff has quit [Ping timeout: 248 seconds]
dale has quit [Quit: dale]
<ck_> I don't get it
quazimodo has quit [Ping timeout: 248 seconds]
quazimodo has joined #lisp
quazimodo has quit [Remote host closed the connection]
ecilam has quit [Quit: ZNC - https://znc.in]
nanoz has quit [Ping timeout: 272 seconds]
_whitelogger has joined #lisp
FreeBirdLjj has quit [Remote host closed the connection]
quazimodo has joined #lisp
linli has joined #lisp
FreeBirdLjj has joined #lisp
quazimodo has quit [Remote host closed the connection]
ym555 has quit [Ping timeout: 245 seconds]
quazimodo has joined #lisp
linli has quit [Ping timeout: 245 seconds]
FreeBirdLjj has quit [Ping timeout: 245 seconds]
linli has joined #lisp
<jackdaniel> if something fresh is wip, then something ancient is wd
<MichaelRaskin> Or wa…
FreeBirdLjj has joined #lisp
makomo has joined #lisp
quazimodo has quit [Ping timeout: 268 seconds]
linli has quit [Remote host closed the connection]
slyrus_ has joined #lisp
slyrus__ has quit [Ping timeout: 272 seconds]
gravicappa has joined #lisp
<ck_> or 'works for me'
<ck_> sounds like you're seeing software as meat, the more well-hung the better
quazimodo has joined #lisp
slyrus__ has joined #lisp
slyrus_ has quit [Ping timeout: 272 seconds]
srji has quit [Quit: leaving]
srji has joined #lisp
srji has quit [Client Quit]
slyrus__ has quit [Remote host closed the connection]
slyrus__ has joined #lisp
Josh_2 has joined #lisp
srji has joined #lisp
srji has quit [Client Quit]
srji has joined #lisp
<jackdaniel> not really, but viewing it as something what decays over time is too depressing to take it for granted
FreeBirdLjj has quit [Remote host closed the connection]
<jackdaniel> (hint hint, ansi standard for common lisp did age well, javascript frameworks die in infancy)
quazimodo has quit [Ping timeout: 268 seconds]
<ck_> I think of it as an organism that needs to adapt to survive. bit-rot doesn't happen in a vaccum.
<ck_> sure, no disagreement about the spec here. great stuff.
FreeBirdLjj has joined #lisp
FreeBirdLjj has quit [Remote host closed the connection]
<Godel[m]> Ancient s/w are problematic if they don't have active maintainers, other than that, I don't see a problem with ancient Lisp s/w. Like, SERIES. But then what's the community for? Fork it.
FreeBirdLjj has joined #lisp
linli has joined #lisp
quazimodo has joined #lisp
linli has quit [Ping timeout: 244 seconds]
quazimodo has quit [Ping timeout: 248 seconds]
quazimodo has joined #lisp
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #lisp
clintm has quit [Quit: Textual IRC Client: www.textualapp.com]
quazimodo has quit [Ping timeout: 245 seconds]
FreeBirdLjj has quit [Ping timeout: 245 seconds]
SaganMan has joined #lisp
linli has joined #lisp
linli has quit [Remote host closed the connection]
FreeBirdLjj has joined #lisp
quazimodo has joined #lisp
SaganMan has quit [Ping timeout: 248 seconds]
Josh_2 has quit [Ping timeout: 272 seconds]
quazimodo has quit [Ping timeout: 244 seconds]
orivej has joined #lisp
phoe has quit [Ping timeout: 252 seconds]
phoe has joined #lisp
igemnace has quit [Quit: WeeChat 2.5]
Blue_flame has joined #lisp
phoe has quit [Ping timeout: 250 seconds]
phoe has joined #lisp
SaganMan has joined #lisp
wxie has joined #lisp
random-nick_ has joined #lisp
<MichaelRaskin> Godel: well, you don't need active maintainers, just maintainers ready to issue a fix.
quazimodo has joined #lisp
<MichaelRaskin> ck: bit rot happens because entire ecosystems are built out of software that doesn't actually have a task of processing information, just of interfacing with other software (which is in the same position)
Blue_flame has quit [Ping timeout: 252 seconds]
Blue_flame has joined #lisp
actuallybatman has joined #lisp
random-nick_ has quit [Ping timeout: 244 seconds]
random-nick_ has joined #lisp
<ck_> is that the official definition
makomo has quit [Ping timeout: 258 seconds]
Josh_2 has joined #lisp
quazimodo has quit [Ping timeout: 244 seconds]
<MichaelRaskin> No, but it could as well be…
moldybits has quit [Quit: WeeChat 2.4]
moldybits has joined #lisp
moei has quit [Ping timeout: 246 seconds]
Demosthenex has quit [Ping timeout: 244 seconds]
<ck_> hmm
quazimodo has joined #lisp
quazimodo has quit [Ping timeout: 272 seconds]
Arcaelyx has quit [Ping timeout: 245 seconds]
v88m has quit [Ping timeout: 245 seconds]
quazimodo has joined #lisp
Bike has joined #lisp
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #lisp
quazimodo has quit [Ping timeout: 248 seconds]
FreeBirdLjj has quit [Ping timeout: 245 seconds]
quazimodo has joined #lisp
KaitoDaumto has joined #lisp
quazimodo has quit [Ping timeout: 245 seconds]
frgo has joined #lisp
<frgo> Hi. Quick question: How do I enable the syslog appender in log4cl? Thanks!
nirved_ has joined #lisp
Lord_of_Life has quit [Ping timeout: 246 seconds]
quazimodo has joined #lisp
dddddd has joined #lisp
nirved has quit [Ping timeout: 258 seconds]
<frgo> answer to myself: log4cl:add-appender. Easy. RTFS.
bendersteed has joined #lisp
wxie has quit [Quit: wxie]
Lord_of_Life has joined #lisp
<LdBeth> Good evening
quazimodo has quit [Ping timeout: 245 seconds]
<beach> Hello LdBeth.
atgreen has joined #lisp
Lord_of_Life has quit [Ping timeout: 268 seconds]
Arcaelyx has joined #lisp
Lord_of_Life has joined #lisp
quazimodo has joined #lisp
xkapastel has joined #lisp
grewal_ has quit [Quit: leaving]
quazimodo has quit [Ping timeout: 258 seconds]
SaganMan has quit [Quit: WeeChat 1.6]
mathZ has joined #lisp
mathZ has quit [Read error: Connection reset by peer]
mathZ has joined #lisp
Josh_2 has quit [Read error: Connection reset by peer]
Inline has quit [Ping timeout: 252 seconds]
benkard has joined #lisp
Lycurgus has joined #lisp
mulk has quit [Ping timeout: 244 seconds]
benkard is now known as mulk
* LdBeth uploaded an image: ima_fef0d87.jpeg (32KB) < https://matrix.org/_matrix/media/v1/download/matrix.org/AmfMAKCSYcPBOgurvBqmMVBq >
<LdBeth> What if we could pretty print lisp code like this
<LdBeth> *listing
<Bike> what, like literate programming?
<Bike> i think lisp syntax is more readable than most math notation, though
nowhereman has joined #lisp
<LdBeth> Using none monospace font
<Bike> isn't that latex?
<LdBeth> Yes, like what DEK do I’m literate programming
<Bike> kind of involved, you know
<LdBeth> *in
<LdBeth> That picture has overdone it
<ck_> have you reached an answer to that question yourself?
<ck_> would you expect to understand code much quicker were it pretty-printed that way?
* LdBeth uploaded an image: ima_345500e.png (35KB) < https://matrix.org/_matrix/media/v1/download/matrix.org/bSPHmGTDCFCHZsGqtFzBBrfP >
<LdBeth> Actually, I can type Tex control code manually to do that
<LdBeth> But it could be better with a preprocessor
<LdBeth> ck_: I find TeXed CWEB easier to read than plain text C
lnostdal has quit [Ping timeout: 244 seconds]
lucasb has joined #lisp
<LdBeth> And generally I find relatively long texts are easier to read when printed out compares to computer monitor
bendersteed has quit [Remote host closed the connection]
mathZ has quit [Remote host closed the connection]
<Lycurgus> on actual paper?
<LdBeth> Or e-ink reader
<Bike> if you just want to typeset the code in computer modern that's probably not much trouble
* Lycurgus learned TeX about 25 ya, it was a difficult slog, but it's paid off
* LdBeth uploaded an image: ima_3625414.jpeg (70KB) < https://matrix.org/_matrix/media/v1/download/matrix.org/oAKeAiYknRAldHfDKraAyfMj >
<Lycurgus> even then there was a sense of what is this old broke shit?
<LdBeth> So DEK doesn’t solve this himself
<LdBeth> Lycurgus: yes, as a markup TeX is terrible
<LdBeth> So does LaTeX
<Lycurgus> he's well into his 80s now
varjag has joined #lisp
<Lycurgus> well only 81
manualcrank has joined #lisp
<LdBeth> I learned TeX better after having hands on a actual press
<ck_> okay, I agree about the typesetting. Do you like this CL quick reference you fold lengthwise to make a booklet? I can't think of the name right now, but it is visually very impressive
<ck_> maybe I just reacted aversely to the currying syntax. I never put in the effort to grok that
<LdBeth> CLQR? Of course I love that
<ck_> that's the one, yes
Inline has joined #lisp
karayan has joined #lisp
<ck_> well, if you really wanted nicely typeset cl code in an editor, you could maybe use auctex and hack something together? Or were you thinking about printed documentation
sz0 has quit [Quit: Connection closed for inactivity]
<Godel[m]> LdBeth: For integration with org-mode, you might want to check out literate-lisp from quicklisp. I use it with listings, but could also have syntax highlighting with pygments.
<Lycurgus> whaddabout Erudite?
<LdBeth> Lycurgus: what’s than?
<Lycurgus> a lisp literate p thing, like LP/Lisp
<LdBeth> Lycurgus: oh I got some impression
<LdBeth> But I prefer CLWEB
<Lycurgus> except the latter seems to be verschwinden
<Lycurgus> ah ok
<LdBeth> Actually I applied some hack to CLWEB to produce that lisp code example shown above
<LdBeth> ck_: I’m planning write a preprocessor for the work
<Godel[m]> I thought that was the usual output from listing environment in LaTeX.
* LdBeth uploaded an image: ima_196dc2e.png (34KB) < https://matrix.org/_matrix/media/v1/download/matrix.org/bvVgdiHWJyXVJJzsyALkJqia >
<LdBeth> Nope, listings do that poorly
agspathis has quit [Ping timeout: 258 seconds]
<ck_> Lycurgus: the adjective is 'verschwunden' :)
<Lycurgus> :)
<Godel[m]> LdBeth: Did you try minted environment?
<Godel[m]> with syntax highlighting etc.
lnostdal has joined #lisp
<LdBeth> Göd.el: There’re some limitations particularly working with Common Lisp, for example, reader macros
<Godel[m]> I see.
Arcaelyx has quit [Read error: Connection reset by peer]
buffergn0me has quit [Remote host closed the connection]
buffergn0me has joined #lisp
Bike has quit [Quit: Lost terminal]
Krystof has quit [Read error: Connection reset by peer]
jeosol has quit [Quit: Page closed]
KaitoDaumto has quit [Remote host closed the connection]
karayan has quit [Ping timeout: 256 seconds]
Arcaelyx_ has joined #lisp
Arcaelyx_ has quit [Read error: Connection reset by peer]
Arcaelyx_ has joined #lisp
Arcaelyx_ has quit [Read error: Connection reset by peer]
simendsjo has joined #lisp
mathrick has quit [Ping timeout: 250 seconds]
orivej has quit [Ping timeout: 245 seconds]
Arcaelyx has joined #lisp
Arcaelyx has quit [Read error: Connection reset by peer]
v88m has joined #lisp
nanoz has joined #lisp
mathrick has joined #lisp
ckonstanski has quit [Quit: bye]
actuallybatman has left #lisp ["ERC (IRC client for Emacs 26.2)"]
random-nick_ has quit [Remote host closed the connection]
Demosthenex has joined #lisp
random-nick has joined #lisp
Arcaelyx has joined #lisp
Arcaelyx has quit [Read error: Connection reset by peer]
<sveit> is there a way to delay expansion of a macro until the compiler does type inference/constant propagation? the application is that I have a dictionary of functions that I would like to be inlined if it is possible to deduce from the code. non-portable solutions are fine (SBCL is my usual compiler of choice)
donotturnoff has joined #lisp
lnostdal has quit [Ping timeout: 272 seconds]
Arcaelyx_ has joined #lisp
Arcaelyx_ has quit [Read error: Connection reset by peer]
random-nick has quit [Remote host closed the connection]
Arcaelyx has joined #lisp
Arcaelyx has quit [Read error: Connection reset by peer]
milanj has quit [Quit: This computer has gone to sleep]
Arcaelyx_ has joined #lisp
Arcaelyx_ has quit [Read error: Connection reset by peer]
milanj has joined #lisp
Josh_2 has joined #lisp
Arcaelyx has joined #lisp
vlatkoB_ has joined #lisp
<aeth> sveit: you can inline based on type declarations, and it's done in some libraries via https://github.com/Bike/introspect-environment
<aeth> Unfortunately, not inference.
vlatkoB has quit [Ping timeout: 246 seconds]
<aeth> I guess the next logical step is someone writing a way to do type-inferring type declarations.
random-nick has joined #lisp
orivej has joined #lisp
<Lycurgus> if ur type obsessed there's a lang for that
sauvin has quit [Read error: Connection reset by peer]
NickBusey has quit [Read error: Connection reset by peer]
milanj has quit [Quit: This computer has gone to sleep]
NickBusey has joined #lisp
nowhereman has quit [Ping timeout: 258 seconds]
<aeth> Lycurgus: Well, there's an implementation for that, and it's SBCL... Passes pretty much everything you'd want except type-checking of slots with :type in defclass (but it does check in defstruct typed slots, and it can type-check defclass slots, just not at default optimization levels)
andeee23 has joined #lisp
lnostdal has joined #lisp
andeee23 has quit [Client Quit]
peterhil has joined #lisp
<aeth> (And, importantly, you can work around defclass issues with the metaobject protocol.)
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #lisp
<Josh_2> So I have these functions https://plaster.tymoon.eu/view/1429#1429 and I'm trying to run the (up) and (down) function on a background thread however I always get an error like this and I don't know how to fix it https://i.imgur.com/bJ75YuA.png the functions have to be called from a background thread
<Josh_2> I'm using xlib
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #lisp
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #lisp
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #lisp
orivej has quit [Ping timeout: 248 seconds]
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #lisp
<Josh_2> The functions work just fine at the top level repl
peterhil has quit [Read error: Connection reset by peer]
Arcaelyx has quit [Read error: Connection reset by peer]
peterhil has joined #lisp
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #lisp
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #lisp
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #lisp
Arcaelyx has joined #lisp
Arcaelyx has quit [Read error: Connection reset by peer]
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #lisp
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #lisp
Arcaelyx_ has joined #lisp
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #lisp
<Lycurgus> aeth, I meant haskell
makomo has joined #lisp
peterhil has quit [Read error: Connection reset by peer]
<Lycurgus> i was impressed when I installed sbcl on mac with ports that there's a version adapted for Mach native threads
peterhil has joined #lisp
nowhereman has joined #lisp
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #lisp
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #lisp
peterhil has quit [Read error: Connection reset by peer]
<Josh_2> If I receieve something like (position (x . 123) (y . 345)) and I want to call a function that would take those arguments, would it be better to create a hash table, lookup 'position in that hash table and then extract the args from the sexp above and pass that, or can I just (funcall #'position ..) with the args and have the function defined at top level?
<Josh_2> (positio...) is json sent from another device
NickBusey has quit [Ping timeout: 245 seconds]
<pjb> clhs position
peterhil has joined #lisp
<Josh_2> okay well you know what I mean xD
Blue_flame has quit [Ping timeout: 258 seconds]
<Josh_2> actually no It's a bad idea, just thought about it xD It's plain text over network so you could manipulate the session by sending crafted packets to call specific functions xD
<Josh_2> I will stick to the hash table
peterhil has quit [Read error: Connection reset by peer]
simendsjo has quit [Ping timeout: 258 seconds]
peterhil has joined #lisp
<sveit> aeth: thanks! that seems pretty useful, but I would also like something that will, for example, allow me to wait to macro expand until constant propagation
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #lisp
<sveit> or ask the compiler to propagate constants as much as possible before doing an expansion. or try to expand a constant as much as possible? the idea is that a key into a dictionary is being computed and that function is being called (actually I have something a bit more complicated set up, but this is the basic idea). i have declared tons of things inline, so SBCL shows me that basically all the time, it is able to completely compute
peterhil has quit [Read error: Connection reset by peer]
<sveit> this key; it seems a waste to not use this information to not perform further inlining.
peterhil has joined #lisp
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #lisp
actuallybatman has joined #lisp
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #lisp
<sveit> oh i can probably just use "constant-form-value" in the library you recommended. i will try that, thanks!
Lycurgus has quit [Quit: Exeunt]
<flip214> when using CFFI, can I tell a DEFCNUM which storage size to use? it's packed in some structure, so it's important that it uses the correct size.
donotturnoff has quit [Ping timeout: 272 seconds]
<aeth> sveit: well for handling actual defconstant constants you can do (and (symbolp foo) (constantp foo)) in your macro and if true then do (symbol-value foo) in your macros, which might require those defconstants to be wrapped in eval-when if in the same file, if in CCL
<aeth> iirc
milanj has joined #lisp
<sveit> aeth: oh they're not defconstant constants, just constants that can be computed if the local environment is taken into account
<sveit> but on sbcl (eq (let ((a 1)) (constantp (+ 1 a))) t)
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #lisp
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #lisp
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #lisp
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #lisp
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #lisp
<sveit> also, is there a reason that (it seems) even if a function "f" is declared inline, SBCL never inlines "(apply #'f arg1 '(arg2))" but does inline "(funcall #'f arg1 arg2)"?
<aeth> I would ask that in #sbcl
<pjb> sveit: (eq (let ((a 1)) (constantp (+ 1 a))) t) is not a conforming form.
<aeth> sveit: sometimes if you ask in #sbcl why they don't do an optimization they consider doing that optimization if it's easy enough, or they explain why it's very hard
<pjb> sveit: (assert (let ((a 1)) (constantp (+ 1 a)))) is a conforming form.
<pjb> sveit: if constantp is the function from CL, then you're calling it with as argument 2. 2 is a constant expression: it always evaluates to 2.
<pjb> theefore (assert (let ((a 1)) (constantp (+ 1 a)))) will always return nil.
<pjb> But (eq (let ((a 1)) (constantp (+ 1 a))) t) can return nil or true, depending…
<sveit> i see. does "conforming" mean "allowed by the standard?"
dale has joined #lisp
milanj has quit [Quit: This computer has gone to sleep]
cosimone has joined #lisp
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #lisp
moei has joined #lisp
simendsjo has joined #lisp
cantstanya has quit [Ping timeout: 256 seconds]
cantstanya has joined #lisp
nowhereman has quit [Ping timeout: 258 seconds]
dacoda has joined #lisp
nowhereman has joined #lisp
<sveit> so i guess i still have the same question, to be concrete is there a way to pass or extract the value "4" to the macro foo in "(defun bar () (let ((a 3)) (foo (1+ a))))"?
<sveit> clearly sbcl does the constant propagation and if foo is some inlinable function will definitely get rid of "a" in place of 4 (looking at disassembly), but i would like access to this value
donotturnoff has joined #lisp
<random-nick> sveit: why would you want to access that from a macro?
cosimone has quit [Quit: WeeChat 2.4]
nanoz has quit [Ping timeout: 244 seconds]
<sveit> random-nick: in my case I have a dictionary of values (functions; actually even more data) that can almost always be inlined since the keys into the dictionary can usually be computed at runtime, and if the value is already in the dictionary at the time of the compilation I would like the inlining to happen
<random-nick> why not use a function and a compiler macro?
dacoda has quit [Ping timeout: 258 seconds]
<random-nick> hm. but that still doesn't solve the problem
gravicappa has quit [Ping timeout: 272 seconds]
random-nick has quit [Ping timeout: 246 seconds]
lime[_] is now known as uplime
<sveit> yeah, that doesn't quite work. i have an idea i think is close, which is a macro that expands into (if (constantp x) (... some stuff here that can assume x is known/was propagated forward) (... x only known at runtime)), but I'm still stuck
mathrick has quit [Ping timeout: 276 seconds]
akoana has joined #lisp
cosimone has joined #lisp
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #lisp
mathrick has joined #lisp
wuehlmaus has quit [Ping timeout: 248 seconds]
jeosol has joined #lisp
random-nick has joined #lisp
peterhil has quit [Read error: Connection reset by peer]
orivej has joined #lisp
peterhil has joined #lisp
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #lisp
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #lisp
abhixec has joined #lisp
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #lisp
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #lisp
libre-man has quit [Ping timeout: 245 seconds]
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #lisp
rumbler31 has quit [Ping timeout: 272 seconds]
rumbler31 has joined #lisp
libre-man has joined #lisp
ym555 has joined #lisp
grewal has joined #lisp
kajo has quit [Quit: From my rotting body, flowers shall grow and I am in them and that is eternity. -- E. M.]
vlatkoB_ has quit [Remote host closed the connection]
donotturnoff has quit [Ping timeout: 272 seconds]
orivej has quit [Ping timeout: 245 seconds]
narendraj9 has joined #lisp
cosimone has quit [Ping timeout: 258 seconds]
cosimone has joined #lisp
narendraj9 has left #lisp ["ERC (IRC client for Emacs 26.2)"]
simendsjo has quit [Ping timeout: 272 seconds]
<fiddlerwoaroof> Does anyone happen to use Montezuma (the common lisp implementation of Lucene)?
<minion> fiddlerwoaroof, memo from emaczen: When you get a chance, write a minion memo for me giving the link to your objc/lisp repo
<fiddlerwoaroof> minion: memo for emaczen: my repo is here https://github.com/fiddlerwoaroof/objc-lisp-bridge/
<minion> Remembered. I'll tell emaczen when he/she/it next speaks.
<fiddlerwoaroof> I've been away for a while, hope it hasn't been too long
nolanv has quit [Read error: Connection reset by peer]
cosimone has quit [Ping timeout: 250 seconds]
cosimone has joined #lisp
nolanv has joined #lisp
pest-ctrl has joined #lisp
Josh_2 has quit [Remote host closed the connection]
Josh_2 has joined #lisp
moei has quit [Quit: Leaving...]
ym555 has quit [Quit: leaving...]
ym555 has joined #lisp
josemanuel has quit [Quit: leaving]
cosimone has quit [Ping timeout: 250 seconds]
troydm has quit [Ping timeout: 245 seconds]
troydm has joined #lisp
void_pointer has joined #lisp
mathrick has quit [Ping timeout: 252 seconds]
orivej has joined #lisp
<pjb> fiddlerwoaroof: I used it in botil; but without much success: it is not exactly adapted to what I needed in botil (indexing irc messages).
Jesin has quit [Quit: Leaving]
cosimone has joined #lisp
<fiddlerwoaroof> I've been using it in a long-running service, but I haven't been able to figure out how to prevent it from growing its memory usage indefinitely
<fiddlerwoaroof> Over a (longish) period of time, it seems to allocate a bunch of memory outside of sbcl's gc and never give it up
Jesin has joined #lisp
aedb has joined #lisp
<fiddlerwoaroof> I like it because I use elasticsearch a lot at work, so I'm used to lucene-style databases
t58 has joined #lisp
mathrick has joined #lisp
nowhereman has quit [Ping timeout: 258 seconds]
random-nick has quit [Ping timeout: 258 seconds]
makomo has quit [Ping timeout: 248 seconds]
aedb has quit [Quit: Leaving.]
sauvin has joined #lisp
zymurgy has joined #lisp
ym555 has quit [Quit: leaving...]
lucasb has quit [Quit: Connection closed for inactivity]
cosimone has quit [Ping timeout: 258 seconds]
orivej has quit [Ping timeout: 258 seconds]
hatchback176 has joined #lisp
void_pointer has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
hatchback176 has quit [Remote host closed the connection]
slyrus__ has quit [Quit: Leaving]
varjag has quit [Ping timeout: 268 seconds]
Finnfinn has joined #lisp
orivej has joined #lisp
Lycurgus has joined #lisp
t58 has quit [Quit: Leaving]
varjag has joined #lisp
varjag has quit [Ping timeout: 244 seconds]