rpg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elosant has quit [Quit: Connection closed for inactivity]
amerigo has quit [Quit: Connection closed for inactivity]
seoushi has quit [Ping timeout: 246 seconds]
<phoe>
optionally you can expand into locally declare notinline if you want to return something that is not the original form but nonetheless has the function form for which the compiler macro is defined
<phoe>
that is to avoid infinite recursion for compiler macroexpansions
terpri has quit [Remote host closed the connection]
terpri has joined #lisp
quazimodo has joined #lisp
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #lisp
pjb has joined #lisp
PuercoPop has joined #lisp
bitmapper has quit [Ping timeout: 240 seconds]
<PuercoPop>
katco: Not sure if it is related to your issue but consider moving the code that pushes features to a before load-op operation. That way it always run when the system is loaded.
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #lisp
stepnem_ has quit [Ping timeout: 240 seconds]
stepnem has joined #lisp
LY has joined #lisp
LY has quit [Remote host closed the connection]
EvW has quit [Ping timeout: 246 seconds]
gko has joined #lisp
LY has joined #lisp
pjb has quit [Ping timeout: 246 seconds]
rumbler31 has joined #lisp
rumbler31 has quit [Ping timeout: 260 seconds]
FreeBirdLjj has joined #lisp
terpri has quit [Remote host closed the connection]
FreeBirdLjj has quit [Ping timeout: 246 seconds]
mikecheck has quit [Remote host closed the connection]
ralt has quit [Quit: Connection closed for inactivity]
pjb has joined #lisp
LY has quit [Remote host closed the connection]
manicennui has joined #lisp
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #lisp
jcowan has left #lisp [#lisp]
hyuke has joined #lisp
FennecCode has joined #lisp
pjb has quit [Ping timeout: 246 seconds]
thmprover has quit [Quit: And Let's Away, to Part the Glories of This Happy Day]
gaqwas has quit [Ping timeout: 265 seconds]
gaqwas has joined #lisp
SGASAU has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 246 seconds]
SGASAU has joined #lisp
wnh__ has joined #lisp
wnh has quit [Ping timeout: 240 seconds]
noskill has quit [Ping timeout: 246 seconds]
orivej has joined #lisp
hyuke has quit [Ping timeout: 246 seconds]
pjb has joined #lisp
orivej has quit [Ping timeout: 246 seconds]
hyuke has joined #lisp
pjb has quit [Ping timeout: 246 seconds]
__jrjsmrtn__ has joined #lisp
freshpassport has joined #lisp
_jrjsmrtn has quit [Ping timeout: 256 seconds]
matzy_ has quit [Ping timeout: 245 seconds]
resttime has quit [Quit: resttime]
<beach>
Good morning everyone!
jesse1010 has quit [Ping timeout: 256 seconds]
Bike has quit [Quit: Lost terminal]
dddddd has quit [Ping timeout: 256 seconds]
_whitelogger has joined #lisp
freshpassport has quit [Read error: Connection reset by peer]
freshpassport has joined #lisp
pjb has quit [Ping timeout: 272 seconds]
gxt has quit [Ping timeout: 240 seconds]
akoana has left #lisp ["Leaving"]
gxt has joined #lisp
kmeow has quit [Ping timeout: 260 seconds]
hyuke has quit [Ping timeout: 260 seconds]
orivej has joined #lisp
pjb has joined #lisp
dmiles has quit [Ping timeout: 260 seconds]
logicmoo has joined #lisp
karlosz has quit [Quit: karlosz]
vaporatorius has quit [Ping timeout: 272 seconds]
karlosz has joined #lisp
vaporatorius has joined #lisp
quazimodo has joined #lisp
sauvin has joined #lisp
wxie has joined #lisp
libertyprime has joined #lisp
vaporatorius has quit [Ping timeout: 260 seconds]
vap1 has joined #lisp
wxie has quit [Ping timeout: 246 seconds]
rumbler31 has joined #lisp
pjb has quit [Ping timeout: 246 seconds]
rgherdt has joined #lisp
rumbler31 has quit [Ping timeout: 246 seconds]
vap1 has quit [Quit: Leaving]
vaporatorius has joined #lisp
terpri has joined #lisp
_whitelogger has joined #lisp
FreeBirdLjj has joined #lisp
FreeBirdLjj has quit [Remote host closed the connection]
terpri has quit [Remote host closed the connection]
terpri has joined #lisp
libertyprime has quit [Quit: leaving]
wxie has joined #lisp
Jeanne-Kamikaze has quit [Quit: Leaving]
pjb has joined #lisp
EvW has joined #lisp
wxie has quit [Ping timeout: 256 seconds]
EvW has quit [Client Quit]
jw4 has quit [Read error: Connection reset by peer]
SGASAU has quit [Ping timeout: 256 seconds]
jw4 has joined #lisp
FreeBirdLjj has joined #lisp
edgar-rft has quit [Remote host closed the connection]
FreeBirdLjj has quit [Remote host closed the connection]
edgar-rft has joined #lisp
karlosz has quit [Quit: karlosz]
edgar-rft has quit [Read error: Connection reset by peer]
cmatei has quit [Remote host closed the connection]
<easye>
Arrg. McCLIM doesn't seem to have remote X11 display working yet <https://pasteboard.co/JbNkDLX.png>. At least I have an instance where the fontconfig autoconfiguration worked to figure out what a correct setup would be.
cmatei has joined #lisp
FreeBirdLjj has joined #lisp
karlosz has quit [Quit: karlosz]
gravicappa has joined #lisp
FreeBirdLjj has quit [Ping timeout: 246 seconds]
pve has joined #lisp
ech has quit [Ping timeout: 272 seconds]
pjb has quit [Ping timeout: 246 seconds]
gravicappa has quit [Ping timeout: 260 seconds]
dale has quit [Quit: My computer has gone to sleep]
shifty has joined #lisp
zymurgy1 is now known as zymurgy
libertyprime has joined #lisp
karswell has quit [Remote host closed the connection]
karswell has joined #lisp
sdumi has quit [Ping timeout: 272 seconds]
sdumi has joined #lisp
pjb has joined #lisp
nullman has quit [Ping timeout: 256 seconds]
nullman has joined #lisp
karswell_ has joined #lisp
karswell has quit [Remote host closed the connection]
quazimodo has quit [Ping timeout: 256 seconds]
amerigo has joined #lisp
drewc has quit [Ping timeout: 272 seconds]
FennecCode has quit [Read error: Connection reset by peer]
FennecCode has joined #lisp
mrcom has quit [Quit: This computer has gone to sleep]
mrcom has joined #lisp
pjb has quit [Ping timeout: 246 seconds]
drewc has joined #lisp
sdumi has quit [Read error: Connection reset by peer]
sdumi has joined #lisp
FennecCode has quit [Quit: ERC (IRC client for Emacs 26.3)]
drewc has quit [Ping timeout: 272 seconds]
iissaacc has joined #lisp
<iissaacc>
sup g
<no-defun-allowed>
Hello iissaacc
whiteline has quit [Read error: Connection reset by peer]
whiteline has joined #lisp
<iissaacc>
just started using common lisp so gonna lurk in here
<iissaacc>
its nice using irc again. been like 10 years
tinga has quit [Remote host closed the connection]
pjb has joined #lisp
drewc has joined #lisp
sdumi has quit [Ping timeout: 256 seconds]
shangul has joined #lisp
<beach>
iissaacc: Welcome!
<beach>
iissaacc: Did you come to #lisp last time you used IRC?
shangul has quit [Ping timeout: 246 seconds]
<jackdaniel>
iissaacc: hey! enjoy :) if you have questions just ask them. there is also #clschool for very basic questions
gravicappa has joined #lisp
whiteline has quit [Remote host closed the connection]
whiteline has joined #lisp
heisig has joined #lisp
<iissaacc>
@beach nah i think i was downloading warez and trolling probably
gravicappa has quit [Ping timeout: 272 seconds]
<iissaacc>
only got into programming later
<iissaacc>
python has everything but i wanted to try something new and different. and lisp seems very different, and its fast which is cool
<iissaacc>
almost too good to be true
<no-defun-allowed>
Sure.
<iissaacc>
@jackdaniel thanks brah
* beach
smiles.
Bourne has quit [Ping timeout: 246 seconds]
<iissaacc>
also how cool is the image based system
<no-defun-allowed>
Probably 7/10 at least?
<beach>
iissaacc: The @ convention is not used on IRC.
<beach>
iissaacc: Just type the nick followed by a colon. Your IRC client should complete for you.
<no-defun-allowed>
I mean, I don't save images to disk to work on programs like I imagine a Smalltalk programmer would, but sure, Common Lisp is very interactive, and you can do a lot without restarting the image.
<no-defun-allowed>
It's not very important or timely; but it'd be nice if someone could skim over it and check if I did something terribly wrong (like not commenting enough, which I have).
Lord_of_Life_ has joined #lisp
ivan` has left #lisp ["Leaving"]
random-nick has joined #lisp
Lord_of_Life has quit [Ping timeout: 246 seconds]
Lord_of_Life_ is now known as Lord_of_Life
<scymtym>
easye: i haven't checked, but the error could mean that clx lacks implementation-specific socket-related functions for the implementation you are using (which seems to be abcl)
LY has joined #lisp
LY has quit [Ping timeout: 272 seconds]
karswell_ has quit [Remote host closed the connection]
karswell_ has joined #lisp
scymtym_ has joined #lisp
scymtym_ has quit [Remote host closed the connection]
rumbler31 has joined #lisp
Bourne has quit [Ping timeout: 260 seconds]
scymtym has quit [Ping timeout: 260 seconds]
rumbler31 has quit [Ping timeout: 260 seconds]
younder has quit [Quit: Leaving]
scymtym has joined #lisp
dra has joined #lisp
Achylles has joined #lisp
iissaacc has quit [Remote host closed the connection]
hiroaki has quit [Ping timeout: 272 seconds]
elosant has quit [Quit: Connection closed for inactivity]
<iissaacc>
the last function here seems to be falling into an infinite loop and i cant see why
<iissaacc>
the input is enwiki8 a big text dump of wikipedia, about 100MB
<iissaacc>
there is lots of CPU activity initially and then nothing but nothing is evaluated
<iissaacc>
could anyone tell me what I am doing wrong? TIA
<beach>
Your code is very hard to read because of the indentation. Did you have TAB characters in it?
<iissaacc>
just whatever the emacs default is
<iissaacc>
oh yeah the paste has screwed it up
<beach>
Yeah, that's the default. I suggest you change that.
<iissaacc>
ok hold up
<Bike>
you can replace (hash-count-incr table key count) with (incf (gethash key table 0) count)
<beach>
iissaacc: To check what your function is doing, hit C-c C-c in SLIME and look at the backtrace.
<beach>
But I suspect chunk is the culprit here.
<beach>
I am thinking n is always greater than the length of the list.
<Bike>
it looks like the length of the list should decrease on each runthrough, though
<Bike>
unless it's infinite or n is zero, i guess?
<beach>
Exactly, so it gets even smaller.
<Bike>
right, so eventually n will be greater than the length and it will hit the base case.
<iissaacc>
beach: SLIME hangs so i cant get a backtrace
<beach>
Oh, sorry. You are right.
<Bike>
iissaacc: hitting C-c C-c should interrupt the hang
<beach>
iissaacc: Make sure you hit C-c C-c very soon after you start your code.
<iissaacc>
ah ok ill just try that
<beach>
iissaacc: This is very strange code though.
<beach>
iissaacc: Why did you write a tail recursive function with an accumulator?
<beach>
... rather than a loop.
<iissaacc>
i came from scheme
<iissaacc>
thats actually at the top of a long file it gets more idiomatic as it goes down i hope
<beach>
Is ACC going to contain a quadratic number of elements?
<iissaacc>
hmm
<iissaacc>
im reading the file line by line so it shouldnt get huge
<iissaacc>
chunk gets called for each line
<beach>
Aside from interrupting the execution, you could TRACE the CHUNK function before starting.
<beach>
That should give you a clue.
<iissaacc>
ive got the backtrace and its working as expected. but there are already a huge amount of entries in the hash table ~1sec after starting it
<iissaacc>
so maybe its a memory thing
<iissaacc>
beach: i will try that, thanks
<beach>
What are the keys of your hash table?
<beach>
I mean their types?
<beach>
Strings?
<iissaacc>
pairs of strings
<beach>
Does it look like your table contains duplicate keys?
<beach>
No, sorry, that should work.
terpri has quit [Remote host closed the connection]
terpri has joined #lisp
igemnace has quit [Quit: WeeChat 2.8]
<beach>
Oh, and did you try with some smaller files?
<iissaacc>
beach: just with a 225kb or so one and it works
amerigo has quit [Quit: Connection closed for inactivity]
<beach>
OK, so no infinite loop.
<beach>
Just a lot of data?
<iissaacc>
yep
<iissaacc>
although......
<iissaacc>
i just tried it again and i notice slime is spamming the file data in the REPL window
<iissaacc>
so maybe slime is trying to do that for the big one and getting stuck
<beach>
If you have some output, sure.
<iissaacc>
oh wait is that becuase I had (trace chunk)
<beach>
Ah, yes.
<beach>
You should know that Common Lisp does guarantee tail-call optimization, so I suggest you rewrite chunk using iteration.
<beach>
Later, when you get things to work, I have some other remarks on your code, but that can wait.
<beach>
For starters, I agree with Bike that your hash-set and hash-code-incr don't improve your code.
<iissaacc>
im keen to hear the remarks
<_death>
your chunk function is very inefficient.. subseq creates a copy of the subsequence, so (subseq list 1) creates a copy of (rest list) every time.. (length list) traverses the whole list where n could be very small, so you can replace the test with (nthcdr n list)
<beach>
iissaacc: I'll wait until you fix your indentation and the problems already mentioned.
<beach>
OK, so LOOP keywords like DO should be first on a line, not last
<iissaacc>
ok
<beach>
And LINE is not a Boolean value. It is a string or the default value NIL. But WHILE takes a Boolean value. So it is better to replace WHILE LINE by UNTIL (NULL LINE)
<_death>
there's no need to use mapcar there, as you don't make use of the result
gko has joined #lisp
FreeBirdLjj has joined #lisp
<beach>
_death: Good catch.
<iissaacc>
got it
<iissaacc>
so you would use another nested (loop)
<beach>
You can use MAPC.
<beach>
It does not return anything, so it does not CONS.
<beach>
I mean, it returns something, but it doesn't CONS.
epony has joined #lisp
<beach>
It doesn't return a list of the applications.
<_death>
there's also no need to call STRING, as line is already a string..
<iissaacc>
right! so its not allocating memory
<iissaacc>
_death readline was giving me an array of characters
<_death>
a string is an array of characters
shifty has quit [Ping timeout: 246 seconds]
shifty has joined #lisp
<_death>
hmm, I've been affirming the consequence.. :) but read-line gives you a string
<_death>
*consequent
<iissaacc>
the str:split was giving me an error unless i converted it that way...
<beach>
What's the error?
<iissaacc>
oh no youre _dead right
<iissaacc>
apologirs
heisig has quit [Quit: Leaving]
<iissaacc>
its slightly faster using mapc according to the time function and uses a bit less memory
<iissaacc>
good tip
<iissaacc>
ok i gtg bed but thanks for the help beach bike and _death
shinohai has quit [Quit: ZNC 1.8.x-git-190-d3011c6e - https://znc.in]
shinohai has joined #lisp
iissaacc has quit [Remote host closed the connection]
theseb has joined #lisp
EvW has joined #lisp
shifty has quit [Ping timeout: 272 seconds]
gaqwas has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 246 seconds]
mmkarakaya has joined #lisp
shangul has joined #lisp
madage has quit [Ping timeout: 240 seconds]
jesse1010 has joined #lisp
bitmapper has joined #lisp
gaqwas has joined #lisp
madage has joined #lisp
pjb has quit [Ping timeout: 246 seconds]
terpri has quit [Remote host closed the connection]
terpri has joined #lisp
vaporatorius has quit [Ping timeout: 265 seconds]
vaporatorius has joined #lisp
pjb has joined #lisp
loli has quit [Quit: WeeChat 2.8]
T3ns0r has quit [Ping timeout: 260 seconds]
<katco>
PuercoPop: re. your comment about moving code that pushes features to a before load-op operation. can you go into more detail? i tried `(defmethod perform :before ((o load-op) (c (eql (find-system :test)))))`, but that doesn't get run when the fasl is loaded.
loli has joined #lisp
terpri has quit [Remote host closed the connection]
narimiran has joined #lisp
vaporatorius has quit [Ping timeout: 272 seconds]
scymtym_ has joined #lisp
terpri has joined #lisp
scymtym has quit [Ping timeout: 260 seconds]
vaporatorius has joined #lisp
vaporatorius has quit [Changing host]
vaporatorius has joined #lisp
cross_ has quit [Remote host closed the connection]
mmkarakaya has quit [Ping timeout: 258 seconds]
EvW has quit [Ping timeout: 246 seconds]
scymtym_ has quit [Remote host closed the connection]
scymtym has joined #lisp
terpri has quit [Remote host closed the connection]
terpri has joined #lisp
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #lisp
terpri has quit [Remote host closed the connection]
terpri has joined #lisp
josemanuel has joined #lisp
cosimone has quit [Quit: Quit.]
thmprover has joined #lisp
heisig has joined #lisp
ralt has joined #lisp
mmkarakaya has joined #lisp
dddddd has quit [Ping timeout: 260 seconds]
gko has quit [Ping timeout: 260 seconds]
rogersm has joined #lisp
hdasch has quit [Read error: Connection reset by peer]
hdasch has joined #lisp
gxt has quit [Ping timeout: 240 seconds]
rogersm has quit [Quit: Leaving...]
gxt has joined #lisp
mmkarakaya has quit [Quit: Connection closed]
<katco>
so, it turns out this was an easy fix. i simply added `sb-cltl2` as a dependency for the `lparallel` system guarded by `#+sbcl`. it seems to me that this is the proper way to conditionally load things into an image, and it seems to be working with loading a generated fasl as well.
gaqwas has quit [Remote host closed the connection]
terpri has quit [Remote host closed the connection]
rpg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oxum has joined #lisp
logicmoo is now known as dmiles
oxum has quit [Client Quit]
<joh11>
Hi everyone ! I am currently tinkering with cl-opengl and sdl2. I managed to get the basic stuff up and running (hello world triangle and such), though I am stuck whenever I try to use more advanced features like VBO or shader programs. Could you help me sort this out ? I tried modifying the example given in cl-opengl "shader-vao.lisp" (it uses glut and i'd like sdl2), though I cannot make it display the triangles ... my code is here :