heisig has quit [Read error: Connection reset by peer]
heisig_ has joined #lisp
lnostdal has quit [Max SendQ exceeded]
lnostdal has joined #lisp
fikka has joined #lisp
heisig_ has quit [Quit: Leaving]
jmercouris has joined #lisp
fikka has quit [Ping timeout: 260 seconds]
thinkpad has quit [Ping timeout: 264 seconds]
thinkpad has joined #lisp
damke has quit [Ping timeout: 264 seconds]
pierpa has joined #lisp
mikechen has joined #lisp
Kaisyu has quit [Quit: Connection closed for inactivity]
puchacz has joined #lisp
<puchacz>
hi, in bt:condition-wait and bt:condition-notify - if a lock is a recursive lock, should wait release the lock all recursive levels, to make it free? or just release last level?
<puchacz>
I think it should release it completely, but I have an impression that at least in lispworks it releases only one level
Ven` has quit [Ping timeout: 255 seconds]
<shka>
puchacz: it behaves like in the pthreads
<puchacz>
shka: you mean lisp delegates it to underlying operating system pthreads?
makomo has quit [Read error: Connection reset by peer]
<shka>
first of, bt is for system threads
<shka>
and system threads require to use system api
<shka>
and system api happens to be posix threads
python476 has joined #lisp
<shka>
secondly, BT semantics are very close to those of pthreads
<shka>
so condition variable is condition variable, not a semaphore, mutex is mutex and not critical section
<shka>
puchacz: makes sense?
<puchacz>
shka: not really. my expectation that condition-wait should release recursive lock all the way up comes from java synchronized blocks. this is how it behaves in java
Ven`` has joined #lisp
<puchacz>
is semaphore then something I want?
<shka>
hmm
<shka>
i misunderstood you
<puchacz>
in java, if you have synchronized (lock) {.....} and your thread already owns the lock, you can enter this sort of block as many times as you want. and when you call lock.wait(), it releases it
<shka>
so it behaves like windows critical section
dra has joined #lisp
<shka>
well, BT is more like posix
<shka>
look at this:
sjl has joined #lisp
<shka>
Release the recursive LOCK. The lock will only become free after as many Release operations as there have been Acquire operations. See RELEASE-LOCK for other information.
Fare has quit [Ping timeout: 256 seconds]
<puchacz>
and in posix / BT it behaves like I think I discovered, right? i.e. recursive lock is freed only once when wait is called?
makomo has joined #lisp
makomo has quit [Read error: Connection reset by peer]
pierpa has quit [Ping timeout: 260 seconds]
fikka has joined #lisp
<puchacz>
shka: so what's the equivalent of what I want please? it makes sense if you have 2 public API functions, but function A internally calls function B as well, so both needs to be in critical section, but if B is not called directly by "user", but by A, the lock is already owned.
<shka>
puchacz: honestly, i just don't know anymore, it seems to be so confusing
<shka>
perhaps you can check with other common lisp implementation?
Kundry_Wag has quit [Ping timeout: 240 seconds]
makomo has joined #lisp
makomo has quit [Read error: Connection reset by peer]
<puchacz>
shka: thanks. at least I know that java synchronization has different semantics than posix locks
markong has joined #lisp
sjl has quit [Ping timeout: 240 seconds]
<shka>
puchacz: honestly, i never really liked recursive mutexes to begin with
<puchacz>
shka: this is the use case; A and B both critical, both callable externally and in addition to it, A internally calls B
fikka has quit [Ping timeout: 256 seconds]
Quetzal2 has quit [Remote host closed the connection]
<shka>
why not just mutex for A and mutex for B?
<puchacz>
but I understood that I do not want recursive locks. they behave differently, they cannot be released all levels at once
<shka>
as long as B does not call A you are not getting deadlock anyway
makomo has joined #lisp
<puchacz>
shka: You are right, I can try. and you are reading my mind, I don't like many mutexes because if I do something that allows for calling both ways, I can get a deadlock.
fikka has joined #lisp
<puchacz>
single recursive mutex is fine as long as there is no waiting / notification.
<shka>
puchacz: multiple mutexes are fine, just keep your locking schema well documented and you are golden
<puchacz>
shka: yes, we both understand the problem now
makomo has quit [Read error: Connection reset by peer]
<shka>
recursive mutex has this hackish feel to it anyway
<puchacz>
if you use sort of unwind-protect, you are good
<puchacz>
or whatever higher level macro is provided, like with-recursive-lock
makomo has joined #lisp
<shka>
puchacz: yes, but recursive locks promote poorly scalable applications with very narrow bottlenecks
<shka>
which is not good
<puchacz>
shka: because I mutually exclude more than is actually needed?
makomo has quit [Read error: Connection reset by peer]
<shka>
yes
<shka>
and you ending up with application that can't actually make good use of threads
<puchacz>
true
makomo has joined #lisp
Princess17b29a_ is now known as Princess17b29a
makomo has quit [Read error: Connection reset by peer]
makomo has joined #lisp
makomo has quit [Read error: Connection reset by peer]
makomo has joined #lisp
makomo has quit [Read error: Connection reset by peer]
makomo has joined #lisp
python476 has quit [Read error: Connection reset by peer]
jmercouris has quit [Remote host closed the connection]
Ven`` has quit [Read error: Connection reset by peer]
Ven`` has joined #lisp
fikka has quit [Ping timeout: 264 seconds]
<oleo>
morning
Fare has joined #lisp
makomo has quit [Read error: Connection reset by peer]
makomo has joined #lisp
Naergon has quit [Remote host closed the connection]
makomo has quit [Read error: Connection reset by peer]
makomo has joined #lisp
makomo has quit [Read error: Connection reset by peer]
makomo has joined #lisp
milanj has quit [Quit: This computer has gone to sleep]
lnostdal has quit [Ping timeout: 276 seconds]
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven`` has joined #lisp
Ven`` has quit [Client Quit]
fikka has joined #lisp
lnostdal has joined #lisp
Chream_ has quit [Read error: Connection reset by peer]
Chream_ has joined #lisp
Chream_2 has joined #lisp
Chream_ has quit [Read error: Connection reset by peer]
makomo has quit [Read error: Connection reset by peer]
makomo has joined #lisp
Fare has quit [Ping timeout: 248 seconds]
eminhi has joined #lisp
loginoob has joined #lisp
damke has joined #lisp
fikka has quit [Ping timeout: 260 seconds]
Bike has joined #lisp
m00natic has joined #lisp
nika has quit [Remote host closed the connection]
nika has joined #lisp
roki has joined #lisp
makomo has quit [Read error: Connection reset by peer]
pierpa has joined #lisp
makomo has joined #lisp
nika has quit [Ping timeout: 260 seconds]
makomo has quit [Read error: Connection reset by peer]
roki has quit [Client Quit]
makomo has joined #lisp
fikka has joined #lisp
pioneer42 has left #lisp [#lisp]
milanj has joined #lisp
makomo has quit [Read error: Connection reset by peer]
makomo has joined #lisp
trocado has joined #lisp
dra has quit [Ping timeout: 256 seconds]
makomo has quit [Read error: Connection reset by peer]
makomo has joined #lisp
puchacz has quit [Quit: Konversation terminated!]
lnostdal_ has joined #lisp
lnostdal has quit [Ping timeout: 256 seconds]
logicmoo has quit [Read error: Connection reset by peer]
lnostdal__ has joined #lisp
lnostdal__ is now known as lnostdal
makomo has quit [Read error: Connection reset by peer]
makomo has joined #lisp
lnostdal_ has quit [Ping timeout: 260 seconds]
damke_ has joined #lisp
pierpa_ has joined #lisp
logicmoo has joined #lisp
pierpa has quit [Ping timeout: 260 seconds]
damke has quit [Ping timeout: 264 seconds]
fikka has quit [Ping timeout: 256 seconds]
makomo has quit [Read error: Connection reset by peer]
Satou has joined #lisp
oleo2 has joined #lisp
EvW1 has joined #lisp
damke_ has quit [Ping timeout: 264 seconds]
oleo2 has quit [Ping timeout: 255 seconds]
BlueRavenGT has joined #lisp
damke has joined #lisp
Bike is now known as Bicyclidine
fikka has joined #lisp
damke has quit [Ping timeout: 264 seconds]
damke has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
Ralaver_Master has joined #lisp
trigen has joined #lisp
damke has quit [Ping timeout: 264 seconds]
fikka has joined #lisp
Ralaver_Master has quit [Quit: Leaving]
fikka has quit [Ping timeout: 240 seconds]
fikka has joined #lisp
Ven`` has joined #lisp
fikka has quit [Ping timeout: 248 seconds]
dddddd has joined #lisp
ferple has joined #lisp
zooey has quit [Remote host closed the connection]
zooey has joined #lisp
eminhi has quit [Remote host closed the connection]
fikka has joined #lisp
milanj has quit [Quit: This computer has gone to sleep]
Bike has joined #lisp
fikka has quit [Ping timeout: 264 seconds]
cage_ has joined #lisp
Satou has quit [Quit: Cya soon guys!]
nmajo has quit [Ping timeout: 256 seconds]
rippa has joined #lisp
Arcaelyx has joined #lisp
milanj has joined #lisp
fikka has joined #lisp
nowhereman_ has joined #lisp
nowhere_man has quit [Ping timeout: 248 seconds]
fikka has quit [Ping timeout: 256 seconds]
nmajo has joined #lisp
fikka has joined #lisp
patrixl has quit [Quit: ERC (IRC client for Emacs 26.0.91)]
Kundry_Wag has joined #lisp
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fikka has quit [Ping timeout: 255 seconds]
lnostdal has quit [Ping timeout: 256 seconds]
madrik has joined #lisp
Kundry_Wag has quit [Ping timeout: 240 seconds]
LiamH has joined #lisp
trocado has quit [Ping timeout: 248 seconds]
Sauvin has quit [Ping timeout: 260 seconds]
rumbler31 has quit [Remote host closed the connection]
madrik` has joined #lisp
ferple has quit [Remote host closed the connection]
fikka has joined #lisp
madrik has quit [Ping timeout: 276 seconds]
fikka has quit [Ping timeout: 264 seconds]
mareskeg has joined #lisp
lnostdal has joined #lisp
nmajo has quit [Ping timeout: 255 seconds]
sjl__ has joined #lisp
madrik` has quit [Quit: reboot]
madrik has joined #lisp
Bronsa has joined #lisp
r5n has joined #lisp
<phoe>
Reddit code is full of syntax that uses square brackets, but I cannot find the definition of that bracketed code anywhere.
<phoe>
It seems that the readtable is not triggered when I try to compile the source.
<dlowe>
heh. that's unfortunate.
<phoe>
(file-enable-sql-reader-syntax)
<phoe>
should work I hope
<phoe>
haha! worked
<phoe>
the source code seems incomplete. I can't see the DB schema definition.
damke_ has joined #lisp
Regenaxer has left #lisp [#lisp]
Ven`` has joined #lisp
<dlowe>
the whole thing looks rather trashy. I'm afraid they hacked something together and then declared "lisp is great for prototyping but not for production" without actually trying to design something nice.
<presiden>
oh... reddit is written in lisp
<presiden>
or was
<phoe>
presiden: was
<_death>
it's just a mess of code.. too bad it was released
<phoe>
dlowe: that is my feeling
damke has quit [Ping timeout: 264 seconds]
<phoe>
someone should actually look at this code, make it work, rewrite it properly, and declare that this is how things should be written in Lisp
<phoe>
and not like they God damn did
<phoe>
it's a compile-time mess
<Shinmera>
I doubt that would be of much use other than coming off as arrogant.
<phoe>
more arrogant than writing shitty code like that and then claiming Lisp isn't good enough for production?
<phoe>
kinda doubt that
fikka has joined #lisp
<Bike>
did they actually say that
<dlowe>
they definitely said that
arbv has quit [Ping timeout: 260 seconds]
<Shinmera>
phoe: Regardless of circumstance, it would amount to "wow you fucking suck look at me and how I do it better," which probably would just reinforce people's image of lispers being asshole snobs.
Karl_Dscc has joined #lisp
arbv has joined #lisp
<loginoob>
i like learning cl
<loginoob>
:)
<phoe>
...versus image of Lisp being crap and unsuitable for writing software
<beach>
loginoob: Great!
<_death>
think it's a dead horse.. just continue working on stuff that matters ;)
<Bike>
okay but did they actually say that. is there an actual statement, or are you inferring
<Xach>
Yeah, there were 50 contemporary reddit clones in lisp the day they announced they were switching.
<Shinmera>
phoe: It's just wasted effort though since you're not improving the image.
<Xach>
Nobody cared then and I don't think it matters now.
<dlowe>
Bike: are you gonna make us do the google search ourselves or what
<Bike>
No, I'm just saying, inferring that somebody said something mean about you and responding as if that inference is certainly true is needless escalation.
Karl_Dscc has quit [Remote host closed the connection]
fikka has quit [Ping timeout: 256 seconds]
<beach>
phoe: Put yourself in their situation. You just produced a load of crap with a language that you know isn't popular anyway. Would you say "I made a mess because I am a bad programmer" or would you say "I failed because this language is crap"?
<beach>
phoe: So no matter what you do now, it is too late.
<dlowe>
I think it'd be fine to say "I made a mess because I was hacking stuff together and now we need to do a rewrite to solve our technical debt problem."
<Shinmera>
I don't think reddit is a very significant piece of engineering anyway. Forums softwares are as old as the www.
<beach>
dlowe: It would be fine to say that, but few people would have the courage.
<Shinmera>
dlowe: Yes but beach's way of putting it makes it sound a lot more lofty and, I imagine, has better marketing value.
Karl_Dscc has joined #lisp
<beach>
Also, it is not the first time Lisp has been the scapegoat. Remember the AI winter?
<_death>
I think Lisp was instrumental in helping them get a quick proof of concept.. then of course a rewrite would come, and Aaron Swartz, who wasn't a Lisper, designed a nice simple web framework in Python, so they switched.. he had to promote his way some way
<dlowe>
that seems like a likely turn of events.
sjl__ is now known as sjl
loginoob has quit [Remote host closed the connection]
mareskeg has quit [Quit: mareskeg]
wheelsucker has joined #lisp
<_death>
and as Xach said, simplified reddit clones were created, sometimes to show off Lispy web frameworks (I remember the ucw one..)
FreeBirdLjj has joined #lisp
rumbler3_ has joined #lisp
<dlowe>
yeah, except it turns out the vast majority actually doesn't care at all about what language something is written in.
<dlowe>
the hard part wasn't writing the forum software
fikka has joined #lisp
<Xach>
and there were many years of fringe, about-to-fail, crashing-all-the-time semi-popularity. overnight success takes a while.
random-nick has joined #lisp
<_death>
it's grabbing a big enough userbase, mining their data and selling it off, tweaking their interests and preferences to suit paying customers' will
FreeBirdLjj has quit [Ping timeout: 260 seconds]
rumbler3_ has quit [Ping timeout: 268 seconds]
fikka has quit [Ping timeout: 240 seconds]
damke__ has joined #lisp
damke_ has quit [Ping timeout: 264 seconds]
rumbler3_ has joined #lisp
damke has joined #lisp
mareskeg has joined #lisp
fikka has joined #lisp
damke__ has quit [Ping timeout: 264 seconds]
rumbler3_ has quit [Ping timeout: 240 seconds]
Satou has joined #lisp
flazh has quit [Quit: flazh]
fikka has quit [Ping timeout: 260 seconds]
rumbler3_ has joined #lisp
damke has quit [Ping timeout: 264 seconds]
rumbler3_ has quit [Ping timeout: 240 seconds]
damke has joined #lisp
shifty has quit [Ping timeout: 248 seconds]
dented42 has joined #lisp
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shka has quit [Quit: Konversation terminated!]
rumbler3_ has joined #lisp
Sauvin has joined #lisp
jmercouris has joined #lisp
fikka has joined #lisp
Karl_Dscc has quit [Remote host closed the connection]
rumbler3_ has quit [Ping timeout: 264 seconds]
fikka has quit [Ping timeout: 268 seconds]
felideon has joined #lisp
random-nick has quit [Quit: quit]
rumbler3_ has joined #lisp
damke has quit [Ping timeout: 264 seconds]
lemoinem has quit [Ping timeout: 240 seconds]
damke_ has joined #lisp
Kundry_Wag has joined #lisp
rumbler3_ has quit [Ping timeout: 248 seconds]
nmajo has quit [Ping timeout: 240 seconds]
Kundry_Wag has quit [Ping timeout: 264 seconds]
rumbler3_ has joined #lisp
khisanth_ has quit [Ping timeout: 256 seconds]
rumbler3_ has quit [Ping timeout: 264 seconds]
flazh has joined #lisp
oleo has quit [Quit: Leaving]
yeticry has quit [Ping timeout: 246 seconds]
random-nick has joined #lisp
yeticry has joined #lisp
cpc26 has joined #lisp
cpc26 has quit [Changing host]
cpc26 has joined #lisp
lemoinem has joined #lisp
khisanth_ has joined #lisp
zyaku has quit [Quit: Page closed]
cpc26_ has joined #lisp
nmajo has joined #lisp
cpc26 has quit [Client Quit]
matzy_ has joined #lisp
cpc26_ has quit [Client Quit]
cpc26 has joined #lisp
cpc26 has quit [Changing host]
cpc26 has joined #lisp
EvW1 has quit [Ping timeout: 255 seconds]
thinkpad has quit [Ping timeout: 260 seconds]
puchacz has joined #lisp
<puchacz>
hi, when using sb-ext:run-program on linux, can I set priority to nice and io priority to ionice?
thinkpad has joined #lisp
lnostdal has quit [Ping timeout: 248 seconds]
<puchacz>
or maybe just run it via nice, ok
<puchacz>
I answered my own question :-)
<puchacz>
I think it will work
lemoinem has quit [Ping timeout: 240 seconds]
lnostdal has joined #lisp
lemoinem has joined #lisp
<cgay>
I've never understood the attraction of using both parens and brackets in Lisp dialects. i.e., what problem is it solving?
porky11 has quit [Ping timeout: 256 seconds]
<Shinmera>
Some claim it helps with visual distinction of certain constructs.
<|3b|>
"people don't like parens" is probably main problem :p
damke has joined #lisp
<puchacz>
cgay: it is worse for me. in javascript I have to be very careful how I am closing a statement: ); }} ;)
<cgay>
heh. "I don't like parens so Imma add this other kind of parens into the mix."
<puchacz>
I think they did the same in clojure :(
<cgay>
Seems like it forces you to visually match up your parens more, rather than trusting your indenter.
<puchacz>
I can't match it }}}}. neither can I match ))))
<puchacz>
it is a job for editor
* cgay
is in Java Hell
damke_ has quit [Ping timeout: 264 seconds]
EvW has joined #lisp
<pierpa_>
:(
lnostdal has quit [Ping timeout: 240 seconds]
lnostdal has joined #lisp
ebrasca has left #lisp ["ERC (IRC client for Emacs 25.2.1)"]
blisp has joined #lisp
oleo has joined #lisp
blisp has quit [Remote host closed the connection]
jmercouris has quit [Remote host closed the connection]
onion has quit [Read error: Connection reset by peer]
equwal has joined #lisp
shka_ has joined #lisp
Jen has joined #lisp
porky11 has joined #lisp
asarch has joined #lisp
SuperJen has quit [Ping timeout: 255 seconds]
random-nick has quit [Remote host closed the connection]
Quetzal2 has joined #lisp
random-nick has joined #lisp
energizer has joined #lisp
Bronsa has quit [Ping timeout: 248 seconds]
Satou has quit [Quit: Cya soon guys!]
EvW has quit [Ping timeout: 260 seconds]
cpc26_ has joined #lisp
cpc26_ has quit [Client Quit]
cpc26 has quit []
cpc26 has joined #lisp
cpc26 has quit [Client Quit]
cpc26 has joined #lisp
cpc26 has quit [Changing host]
cpc26 has joined #lisp
dented42 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
puchacz has quit [Read error: Connection reset by peer]
SuperJen has joined #lisp
Jen has quit [Read error: Connection reset by peer]
damke_ has joined #lisp
makomo has joined #lisp
damke has quit [Ping timeout: 264 seconds]
cpc26 has quit [Remote host closed the connection]
cpc26 has joined #lisp
cpc26 has quit [Changing host]
cpc26 has joined #lisp
mareskeg has quit [Quit: mareskeg]
puchacz has joined #lisp
lemoinem has quit [Read error: Connection reset by peer]
k-stz has joined #lisp
Chream_2 has quit [Read error: Connection reset by peer]
Chream_ has joined #lisp
lemoinem has joined #lisp
pierpa_ has quit [Ping timeout: 260 seconds]
loli has joined #lisp
makomo has quit [Read error: Connection reset by peer]
makomo has joined #lisp
makomo has quit [Read error: Connection reset by peer]
makomo has joined #lisp
makomo has quit [Read error: Connection reset by peer]
makomo has joined #lisp
damke_ has quit [Ping timeout: 264 seconds]
random-nick has quit [Read error: Connection reset by peer]
<dlowe>
well, in cl-sql the brackets actually mean a different thing
<dlowe>
but I'm not a fan of it there either
SaganMan has joined #lisp
<dlowe>
In Clojure IIRC, [] makes a vector, but you can freely intermix vectors and lists in your code
<dlowe>
so the style is to alternate, I think
damke_ has joined #lisp
makomo has quit [Read error: Connection reset by peer]
random-nick has joined #lisp
makomo has joined #lisp
<dlowe>
one interesting observation from the reddit source code is that they used defconstant for an array, which makes me believe that they were not using incremental development at all
fikka has joined #lisp
<dlowe>
like, it's probable they were in a edit/restart/reload web dev loop
<Bike>
isn't sbcl the only implementation that's strict about that
<Bike>
i don't know if it was in like 2005
<dlowe>
it has been since I've been using it
<Bike>
oh hey, it's actually in the changelog
<Bike>
"DEFCONSTANT now tests reassignments using EQL, not EQUAL, in order to warn about behavior which is undefined under the ANSI spec. Note: This is specified by ANSI, but it's not very popular with programmers."
<Bike>
in version 0.6.9, but i don't know when that was
makomo has quit [Read error: Connection reset by peer]
<dlowe>
nov 28 2000
<Bike>
welp.
makomo has joined #lisp
<dlowe>
git log sbcl_0_6_9 :)
makomo has quit [Read error: Connection reset by peer]
mflem has joined #lisp
fikka has quit [Ping timeout: 256 seconds]
<phoe>
Hmm.
<phoe>
When I do USOCKET:WAIT-FOR-INPUT on multiple sockets, I get an error, usocket:bad-file-descriptor-error
makomo has joined #lisp
<phoe>
That's normal, because the socket was closed by the other side. But I want to recover from that and keep on waiting on input from other sockets.
FreeBirdLjj has joined #lisp
damke_ has quit [Ping timeout: 264 seconds]
makomo has quit [Read error: Connection reset by peer]
fikka has joined #lisp
<phoe>
wait-for-input accepts a list of sockets. So it would be normal for me to call this function again with a list of sockets that are alive. But the condition that is signaled by USOCKET does not tell me anything about the offending socket.
makomo has joined #lisp
dddddd has quit [Remote host closed the connection]
damke_ has joined #lisp
Kundry_Wag has joined #lisp
<jeosol>
Good morning guys.
<phoe>
hey jeosol
ebrasca has joined #lisp
<jeosol>
hey phoe
<jeosol>
busting my ass, trying to get challenge requirements, close.
fikka has quit [Ping timeout: 264 seconds]
<jeosol>
i am trying to set memory requirements when I call sbcl but it seems my set up is not correct.
<jeosol>
I have this in my emacs file: (setq inferior-lisp-program "/usr/local/bin/sbcl --dynamic-space-size 10000" ...
<dlowe>
are you the redditor who is using lots of memory and crashing in the gc?
<jeosol>
dlowe: hahaha, not at all
<jeosol>
that's funny. I have not taken a look at the code. My problem is fairly large, dealing with several 3d grid array elements with ~ 400, 000 grids
<jeosol>
I am just trying to start sbcl with higher memory as the program tends to hang while loading arrays and just freezes ...,
<dlowe>
what happens when you break into the debugger? (or try)
Kundry_Wag has quit [Ping timeout: 276 seconds]
makomo has quit [Read error: Connection reset by peer]
makomo has joined #lisp
<jeosol>
dlowe: usually, i can't, most times. I write statements to repl to see what program is doing, it loads a bunch of arrays, and somewhere chokes before the end.
damke_ has quit [Ping timeout: 264 seconds]
makomo has quit [Read error: Connection reset by peer]
makomo has joined #lisp
makomo has quit [Read error: Connection reset by peer]
makomo has joined #lisp
dented42 has joined #lisp
dented42 has quit [Client Quit]
madrik has quit [Quit: Sleep]
fikka has joined #lisp
epony has joined #lisp
makomo has quit [Read error: Connection reset by peer]
makomo has joined #lisp
m00natic has quit [Remote host closed the connection]
ebrasca has quit [Remote host closed the connection]
ebrasca has joined #lisp
makomo has quit [Read error: Connection reset by peer]
vtomole has joined #lisp
kajo has joined #lisp
makomo has joined #lisp
fikka has quit [Ping timeout: 268 seconds]
dented42 has joined #lisp
dyelar has joined #lisp
makomo has quit [Read error: Connection reset by peer]
pierpa has joined #lisp
makomo has joined #lisp
makomo has quit [Read error: Connection reset by peer]
makomo has joined #lisp
FreeBirdLjj has quit []
dented42 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
random-nick has quit [Remote host closed the connection]
arrdem has joined #lisp
porky11 has quit [Ping timeout: 255 seconds]
makomo has quit [Read error: Connection reset by peer]
Chream_2 has joined #lisp
Lord_Nightmare has quit [Ping timeout: 260 seconds]
makomo has joined #lisp
milanj has quit [Quit: This computer has gone to sleep]
makomo has quit [Read error: Connection reset by peer]
Chream_ has quit [Ping timeout: 256 seconds]
fikka has joined #lisp
makomo has joined #lisp
Lord_Nightmare has joined #lisp
makomo has quit [Read error: Connection reset by peer]
makomo has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
damke_ has joined #lisp
makomo has quit [Read error: Connection reset by peer]
fikka has joined #lisp
makomo has joined #lisp
nulquen has joined #lisp
porky11 has joined #lisp
fikka has quit [Ping timeout: 256 seconds]
equwal has quit [Remote host closed the connection]
equwal has joined #lisp
makomo has quit [Read error: Connection reset by peer]
Folkol has joined #lisp
nowhere_man has joined #lisp
nowhereman_ has quit [Ping timeout: 255 seconds]
makomo has joined #lisp
josemanuel has joined #lisp
damke_ has quit [Ping timeout: 264 seconds]
makomo has quit [Read error: Connection reset by peer]
fikka has joined #lisp
makomo has joined #lisp
makomo has quit [Read error: Connection reset by peer]
Chream_ has joined #lisp
Chream_2 has quit [Read error: Connection reset by peer]
makomo has joined #lisp
r5n has joined #lisp
makomo_ has joined #lisp
fikka has quit [Ping timeout: 256 seconds]
r5n has quit [Client Quit]
makomo_ has quit [Read error: Connection reset by peer]
makomo has quit [Ping timeout: 256 seconds]
makomo_ has joined #lisp
fikka has joined #lisp
FreeBirdLjj has joined #lisp
puchacz has quit [Quit: Konversation terminated!]
random-nick has joined #lisp
<phoe>
In SLDB, can I run a REPL inside a frame?
fikka has quit [Ping timeout: 256 seconds]
pierpa_ has joined #lisp
fikka has joined #lisp
SaganMan has quit [Quit: laters]
<phoe>
Okay, I got around that.
fikka has quit [Ping timeout: 256 seconds]
makomo_ has quit [Read error: Connection reset by peer]
<phoe>
Roswell users: what is the file that is evaluated on each Lisp startup? Kind of like ~/.sbclrc except for Roswell.
makomo_ has joined #lisp
makomo_ has quit [Read error: Connection reset by peer]
makomo_ has joined #lisp
varjag has joined #lisp
vtomole has quit [Ping timeout: 260 seconds]
fikka has joined #lisp
<mfiano>
phoe: roswell-path/init.lisp. use reader conditionals...it's for all impls
<phoe>
mfiano: thanks.
zaquest has quit [Read error: Connection reset by peer]
zaquest_ has joined #lisp
fikka has quit [Ping timeout: 264 seconds]
makomo_ has quit [Read error: Connection reset by peer]
makomo_ has joined #lisp
makomo_ has quit [Read error: Connection reset by peer]
fikka has joined #lisp
makomo_ has joined #lisp
makomo_ has quit [Read error: Connection reset by peer]
makomo_ has joined #lisp
makomo_ has quit [Read error: Connection reset by peer]
Satou has joined #lisp
makomo_ has joined #lisp
makomo_ has quit [Read error: Connection reset by peer]
vaporatorius has joined #lisp
fikka has quit [Ping timeout: 256 seconds]
makomo_ has joined #lisp
dra has joined #lisp
vap1 has joined #lisp
fikka has joined #lisp
FreeBirdLjj has quit [Remote host closed the connection]
makomo_ has quit [Read error: Connection reset by peer]
<rumbler31>
jeosol: ccl does not require you to specify a max heap size at boot and will resize the heap for you. If you already know you will be using lots of heap you can set the heap size step, the default is 30mb incremebts
fikka has quit [Ping timeout: 264 seconds]
makomo_ has joined #lisp
rumbler3_ has joined #lisp
<jeosol>
rumbler31: thanks for your comment. Unfortunately, I have not run/compiled my code in anything but SBCL and there may be portability issues. After I meet the deadline, I will try to do this.
vaporatorius has quit [Quit: Leaving]
makomo_ has quit [Read error: Connection reset by peer]
makomo_ has joined #lisp
makomo_ has quit [Read error: Connection reset by peer]
makomo_ has joined #lisp
zacts has quit [Quit: WeeChat 1.9.1]
Pixel_Outlaw has joined #lisp
matzy_ has quit [Quit: Page closed]
zacts has joined #lisp
makomo_ has quit [Read error: Connection reset by peer]
tomaw_ is now known as tomaw
makomo_ has joined #lisp
Kundry_Wag has joined #lisp
<jeosol>
How to call SBCL in SLIME but specify dynamic-space-size.
equwal has quit [Remote host closed the connection]
equwal has joined #lisp
makomo_ has quit [Read error: Connection reset by peer]
<Xach>
jeosol: you can set arguments in your inferior-lisp-program. there are many other options.
makomo_ has joined #lisp
fikka has joined #lisp
makomo_ has quit [Read error: Connection reset by peer]
<jeosol>
Xach, I did something like that, but for some reason I get an error. This is what I have: (setq inferior-lisp-program "/usr/local/bin/sbcl --dynamic-space-size 10000" ...)
Kundry_Wag has quit [Ping timeout: 256 seconds]
<mfiano>
phoe: You trying to get reddit working or something?
<Xach>
jeosol: what error
<phoe>
mfiano: I was.
<equwal>
Did you install from source? My SBCL is installed from the repo (binary) and it has always been living in /usr/bin/sbcl. Have you tried $ whereis sbcl ? Sorry if this is out of place, I just joined.
<phoe>
I think I got it to work, more or less, except I have no database schema.
<mfiano>
ah, that's annoying.
<phoe>
I could theoretically reverse-engineer it, but I don't care enough to do it.
Satou has left #lisp ["Bye"]
<jeosol>
equwal; thanks for your comment. Yes, install from source. That where is my SBCL is. Everything works okay, it is just that when I am running a large problem and the whole thing freezes when loading large grid data
<jeosol>
why mfiano?
<jeosol>
Xach: I get the following error when starting sbcl but specifying some heap size: Can't exec program: /usr/local/bin/sbcl --dynamic-space-size 2560, and Process inferior-lisp exited abnormally with code 1
<mfiano>
I migrated to Clojure a month or 2 ago...been sort of keeping quiet about it :/ I'll do my best to maintain the CL libraries I have though.
<jeosol>
what is it like mfiano?
<mfiano>
Wrong channel to discuss that really
<jeosol>
comparison?
<jeosol>
Ok doki
<equwal>
Is there are clojure channel?
<Xach>
jeosol: can you run this at a command line? /usr/local/bin/sbcl --dynamic-space-size 2560
<jeosol>
When I started, I was encouraged to consider it, but my application was heavy on using CLOS, so I stayed with CL
<Xach>
equwal: I don't know, but if there was, I bet it would be #clojure
<equwal>
just joined lol
<jeosol>
yeah, Xach, that works on the command line, but how does one know if that parameter was specified
<jeosol>
I intentionall messed up the name of the dynamic-space-size and SBCL still started ok
<jeosol>
i.e., on the shell
<Xach>
there is a function call that returns the dynamic space size in octets
<Xach>
I don't remember the name but apropos should help find it.
rpg has joined #lisp
<equwal>
How many CLOS objects do you think you are making with that program?
<bjorkintosh>
at least 1!
<bjorkintosh>
sorry. couldn't resist.
<jeosol>
I assume that was for me equwal:
comborico has joined #lisp
<jeosol>
Xach: I did some experiment, if the --dynamic-space-size name is misspelled as I did, SBCL ignores the argument. If it is specified correctly it is used.
<pankracy>
I've got this piece of code, I'm running external program with uiop:run-program which takes more than 10 seconds but it put things to the output
<pankracy>
and I'm trying to consume that stream while program is running
<pankracy>
and that piece of code return empty string after 5 seconds of working
<pankracy>
does anyone has any thoughts how to fix this?
<jeosol>
pankracy: I see some errors in the debugger output, have you fixed those?
<pankracy>
what errors?
<jeosol>
compilation errors?
<cgay>
pankracy: Package BT does not exist.
<jeosol>
sorry, not sure what you wanted us to look at.
<pankracy>
yep, this is only sample, you need to load bt and uiop to run this code
<cgay>
ah, so the compiler errors you posted should be ignored.
<phoe>
t
<jeosol>
I guess so
gaussalpha has joined #lisp
<sjl>
pankracy: I don't think UIOP:RUN-PROGRAM can do async, you'll need to use the implementation-specific things it calls or something like https://github.com/sellout/external-program
<sjl>
the docstring for my version of uiop:run-program says:
<sjl>
> Run program specified by COMMAND, ...; _synchronously_ process its output as specified and return the processing results when the program and its output processing are complete.
<pankracy>
this word probably relates only to that that this is blocking function
<pankracy>
there is also launch-program which is async
ssake has quit [Remote host closed the connection]
<phoe>
^
fikka has quit [Ping timeout: 256 seconds]
<sjl>
If there's some other uiop program-runner that would be an option too
fikka has joined #lisp
handlex has joined #lisp
dyelar has quit [Quit: Leaving.]
fikka has quit [Ping timeout: 248 seconds]
<jackdaniel>
uiop's run-program and launch-program have an additional abstraction baggage over implementation-specific run-program – external-program is more minimal with this regard (simply maps into underlying interface)
Kundry_Wag has joined #lisp
Sauvin has quit [Remote host closed the connection]
gaussalpha has quit [Remote host closed the connection]
Zhivago has quit [Ping timeout: 256 seconds]
damke_ has joined #lisp
Kundry_Wag has quit [Ping timeout: 240 seconds]
damke has joined #lisp
dra has quit [Ping timeout: 256 seconds]
handlex has quit [Quit: handlex]
damke_ has quit [Ping timeout: 264 seconds]
equwal has quit [Remote host closed the connection]
damke has quit [Ping timeout: 264 seconds]
fikka has joined #lisp
Karl_Dscc has joined #lisp
fikka has quit [Ping timeout: 255 seconds]
makomo_ has joined #lisp
shka_ has quit [Ping timeout: 256 seconds]
Lord_of_Life has quit [Ping timeout: 246 seconds]
makomo_ has quit [Read error: Connection reset by peer]
makomo_ has joined #lisp
fikka has joined #lisp
felideon has quit [Ping timeout: 255 seconds]
<rpg>
pankracy: you need to use LAUNCH-PROGRAM from UIOP for asynchronous interaction.
damke has joined #lisp
damke_ has joined #lisp
fikka has quit [Ping timeout: 264 seconds]
makomo_ has quit [Read error: Connection reset by peer]
damke has quit [Ping timeout: 264 seconds]
makomo_ has joined #lisp
damke_ has quit [Ping timeout: 264 seconds]
makomo_ has quit [Read error: Connection reset by peer]
fikka has joined #lisp
makomo_ has joined #lisp
makomo_ has quit [Read error: Connection reset by peer]
makomo_ has joined #lisp
makomo_ has quit [Read error: Connection reset by peer]
Bike has quit [Ping timeout: 260 seconds]
cage_ has quit [Quit: Leaving]
makomo_ has joined #lisp
makomo_ has quit [Read error: Connection reset by peer]
fikka has quit [Ping timeout: 240 seconds]
makomo_ has joined #lisp
raynold has quit [Quit: Connection closed for inactivity]
makomo_ has quit [Read error: Connection reset by peer]
makomo_ has joined #lisp
makomo_ has quit [Read error: Connection reset by peer]
makomo_ has joined #lisp
fikka has joined #lisp
felideon has joined #lisp
makomo_ has quit [Read error: Connection reset by peer]
damke_ has joined #lisp
makomo_ has joined #lisp
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
fikka has quit [Ping timeout: 240 seconds]
makomo_ has quit [Read error: Connection reset by peer]
EvW1 has quit [Ping timeout: 260 seconds]
makomo_ has joined #lisp
makomo_ has quit [Read error: Connection reset by peer]
makomo_ has joined #lisp
damke_ has quit [Ping timeout: 260 seconds]
damke has joined #lisp
pmden has quit [Ping timeout: 252 seconds]
Lord_of_Life has joined #lisp
dra has joined #lisp
dra has quit [Remote host closed the connection]
fikka has joined #lisp
joast has quit [Quit: Leaving.]
Chream_2 has joined #lisp
rumbler31 has quit [Ping timeout: 248 seconds]
damke has quit [Ping timeout: 264 seconds]
makomo_ has quit [Read error: Connection reset by peer]
fikka has quit [Ping timeout: 240 seconds]
makomo_ has joined #lisp
Chream_ has quit [Ping timeout: 256 seconds]
damke_ has joined #lisp
makomo_ has quit [Read error: Connection reset by peer]
nowhereman_ has joined #lisp
makomo_ has joined #lisp
nowhere_man has quit [Ping timeout: 268 seconds]
damke__ has joined #lisp
damke_ has quit [Ping timeout: 264 seconds]
asarch has quit [Quit: Leaving]
makomo_ has quit [Read error: Connection reset by peer]
damke__ has quit [Ping timeout: 264 seconds]
damke has joined #lisp
makomo_ has joined #lisp
cyraxjoe has quit [Remote host closed the connection]
damke_ has joined #lisp
r5n has joined #lisp
fikka has joined #lisp
r5n has quit [Client Quit]
damke has quit [Ping timeout: 264 seconds]
fikka has quit [Ping timeout: 248 seconds]
makomo_ has quit [Read error: Connection reset by peer]
damke_ has quit [Ping timeout: 264 seconds]
makomo_ has joined #lisp
Karl_Dscc has quit [Remote host closed the connection]
damke has joined #lisp
makomo_ has quit [Read error: Connection reset by peer]
<pankracy>
rpg: and how I would do that besides not using bt:make-thread if this doesn't give me anything into the stream
makomo_ has joined #lisp
<rpg>
pankracy: I really don't understand that question (including the question about bt:make-thread)?
makomo_ has quit [Read error: Connection reset by peer]
<rpg>
I'd start by reading the launch-program docstring: (documentation 'uiop:launch-program 'function)
fikka has joined #lisp
makomo_ has joined #lisp
<pankracy>
rpg: when I run a program and this program loads stuff into the stream, I want to have listener on the stream which performs actions regarding output it gets
makomo_ has quit [Read error: Connection reset by peer]
makomo_ has joined #lisp
<pankracy>
rpg: in this example I've got python program that puts one number every second
<pankracy>
and I want to write a listener which consumes every line of that stream when it's pushed by this program
<pankracy>
not the whole output, but line by line
<rpg>
according to the docstring: "If it[the OUTPUT keyword argument]'s :STREAM, a new stream will be made available that can be accessed via PROCESS-INFO-OUTPUT and read from."
makomo_ has quit [Read error: Connection reset by peer]
LiamH has quit [Quit: Leaving.]
<rpg>
hm. Looks like PROCESS-INFO-OUTPUT is not exported from UIOP, which it probably should be.
makomo_ has joined #lisp
<sjl>
rpg: it seems to be in my current sbcl...
<rpg>
OK, that's just a stream. So can you not have a thread that listens on that stream?
ku has joined #lisp
<rpg>
Actually, I think launch program is spawned off as a separate process, so the current process should be able to listen on that stream.
<rpg>
I'm not very clear on what the problem is.
makomo_ has quit [Read error: Connection reset by peer]
<sjl>
pankracy: you're going to want to use :output :stream like rpg said, then grab the stream with process-info-output, and call READ-LINE on it in a loop. whether that loop is in your current thread or a separate thread is up to you.
makomo_ has joined #lisp
damke has quit [Ping timeout: 264 seconds]
<rpg>
If you are worried about it hanging, you will need to manage a timeout.
fikka has quit [Quit: leaving]
k-hos has quit [Ping timeout: 248 seconds]
fikka has joined #lisp
makomo_ has quit [Read error: Connection reset by peer]
damke_ has joined #lisp
makomo_ has joined #lisp
makomo_ has quit [Read error: Connection reset by peer]
random-nick has quit [Remote host closed the connection]
makomo_ has joined #lisp
makomo_ has quit [Read error: Connection reset by peer]
makomo_ has joined #lisp
sjl has quit [Ping timeout: 260 seconds]
makomo_ has quit [Read error: Connection reset by peer]
makomo_ has joined #lisp
<pankracy>
(uiop:process-info-output (uiop:launch-program "python -c \"for i in range(10): print(i); __import__('time').sleep(1)\"" :output :stream))
<pankracy>
rpg: this works fine
<pankracy>
thx
<pankracy>
and doing read-line on that stream
makomo_ has quit [Read error: Connection reset by peer]
makomo_ has joined #lisp
<rpg>
Great! Glad to hear it.
varjag has quit [Quit: ERC (IRC client for Emacs 25.2.1)]
r5n has joined #lisp
r5n_ has joined #lisp
r5n has quit [Read error: Connection reset by peer]
r5n_ has quit [Remote host closed the connection]
equwal has joined #lisp
makomo_ has quit [Read error: Connection reset by peer]
<pankracy>
if I do 3 times (print (read-line s)) in the body section, these all statements will be executed at the same time
<pankracy>
which is then the process is ended
<pankracy>
*which is when
makomo_ has quit [Read error: Connection reset by peer]
quazimodo has joined #lisp
equwal has quit [Remote host closed the connection]
makomo_ has joined #lisp
<pankracy>
so this is exactly the same problem I had with uiop:run-program
equwalLogsServer has joined #lisp
Kundry_Wag has joined #lisp
<Shinmera>
Are you sure python is flushing the output?
makomo_ has quit [Read error: Connection reset by peer]
Zhivago has joined #lisp
<pankracy>
yes, if you run this in your shell you will have program that run 10 seconds, every second it shows you new line
makomo_ has joined #lisp
<rpg>
Is there any chance that what happens here could "look like" a non-interactive output to Python so that it buffers? I.e., python might open the terminal as a line-buffered stream, but the stream it gets from run-program and launch-program might be block-buffered or something crazy.
makomo_ has quit [Read error: Connection reset by peer]
gector has joined #lisp
makomo_ has joined #lisp
<rpg>
pankracy: I think you can just pass python the argument that tells it not to buffer its output, and things should work.
makomo_ has quit [Read error: Connection reset by peer]
makomo_ has joined #lisp
equwalLo` has joined #lisp
makomo_ has quit [Read error: Connection reset by peer]
<pankracy>
(let ((s (uiop:process-info-output (uiop:launch-program "python -c \"import sys;import time; [(sys.stdout.write(\\\"%d\\\\n\\\" % i), sys.stdout.flush(), time.sleep(1)) for i in xrange(10)]\"" :output :stream)))) (print (read-line s))(print (read-line s))(print (read-line s)))
<pankracy>
I've got this code, it works better
makomo_ has joined #lisp
equwalLogsServer has quit [Remote host closed the connection]
makomo_ has quit [Read error: Connection reset by peer]
makomo_ has joined #lisp
dented42 has joined #lisp
giraffe has quit [Remote host closed the connection]
itruslove has quit [Remote host closed the connection]
<rpg>
pankracy: Does your original code also work if you add -u to the python command?
<pankracy>
-u?
raynold has joined #lisp
<pankracy>
when I do run-program and the new python line with flushing, the old code also is not working, maybe some problems with passing stream into the run-program with :stream keyword
<rpg>
pankracy: Seems to be for "use unbuffered i/o" (although it's stupidly also the same as the standard old-school for "usage")
<rpg>
pankracy: I think run-program is intended to run to completion and *then* present the program's output.
<Shinmera>
run-program is synchronous.
orivej has joined #lisp
<pankracy>
rpg: it works better with -u, the async one
Bicyclidine is now known as Bike
equwal has joined #lisp
Amplituhedron has joined #lisp
equwal has quit [Remote host closed the connection]
equwal has joined #lisp
equwal has quit [Remote host closed the connection]
equwal has joined #lisp
equwal has quit [Remote host closed the connection]
equwal has joined #lisp
orivej has quit [Ping timeout: 276 seconds]
bjorkintosh has quit [Quit: Leaving]
nulquen has quit [Remote host closed the connection]
bjorkintosh has joined #lisp
makomo_ has quit [Read error: Connection reset by peer]
prxq has quit [Remote host closed the connection]
Baggers has joined #lisp
matzy_ has joined #lisp
damke has joined #lisp
makomo_ has joined #lisp
<matzy_>
hey, this is a total noob question, but i just installed sbcl and quicklisp, including doing (ql:add-to-init-file). then i realized i dont want the quicklisp folder in my $HOME (I want it in a sub directory of home)
<matzy_>
should I: 1. uninstall and reinstall, specifying the correct dir 2. move and change config files somewhere (i assume?)
<Bike>
i think you can just move it yeah
<Bike>
and then edit .sbclrc
damke_ has joined #lisp
<Shinmera>
Quicklisp is relocatable
<Shinmera>
so just move and adapt the path in the init file.
makomo_ has quit [Read error: Connection reset by peer]
<matzy_>
ok thanks
<matzy_>
Shinmera: is the init file you're speaking of .sbclrc?
<Shinmera>
yes
<matzy_>
ok great
makomo_ has joined #lisp
<makomo_>
are symlinks within local-projects supported?
<Shinmera>
Yes
<makomo_>
because sometimes quicklisp can't find the system even though it's there
<makomo_>
i.e. symlinked correctly
<Shinmera>
Might have to force a scan with (ql:register-local-projects)
<rpg>
makomo_: what CL are you using?
<makomo_>
sbcl
<makomo_>
Shinmera: that's what i would usually do, but even then it wouldn't work sometimes
<Shinmera>
Never observed that myself.
<makomo_>
it's been a while since that happened, but it did happen i'm pretty sure
damke has quit [Ping timeout: 264 seconds]
damke_ has quit [Ping timeout: 264 seconds]
<MetaYan>
It's a bit strange that SBCL follows symlinks in local-projects, while CCL doesn't.
equwalLo` has quit [Remote host closed the connection]
<rpg>
MetaYan: There's no standardization about how to handle symbolic links in CL at all, much less symlinks to directories.
comborico has quit [Quit: Konversation terminated!]
<rpg>
oh, yes, there's not even a notion of "directory" in CL! (there's a directory *function*, but not a directory as a thing)
makomo_ has quit [Read error: Connection reset by peer]
<rme>
I was pretty sure that CCL did the right thing with symlinks in local-projects; I seem to remember a bug fix related to that, but maybe I am wrong.
<rpg>
OK, I have been fighting software all day. I'm going off to get a glass of wine!
makomo_ has joined #lisp
<rpg>
rme: My linux box has symlinks in its ~/common-lisp/ folder, and CCL doesn't follow them, so the libraries are visible to ACL and SBCL but not CCL (through ASDF).
<MetaYan>
I always end up with an empty system-index.txt if I happen to (ql:register-local-projects) in CCL.
<MetaYan>
Both on Linux and Darwin.
<MetaYan>
(because all my local-projects are symlinked)