Amplituhedron has quit [Ping timeout: 248 seconds]
<ym> How do I convert PDF to cons tree? I found only cl-pdf, but seems like it can only generate and parse.
<pierpa> (cons 'pdf 42)
jmercouris has quit [Ping timeout: 248 seconds]
varjag has quit [Ping timeout: 268 seconds]
thebardian has quit [Remote host closed the connection]
Arcaelyx has joined #lisp
dra has quit [Ping timeout: 248 seconds]
Arcaelyx_ has quit [Ping timeout: 250 seconds]
pjb has joined #lisp
EvW has quit [Ping timeout: 250 seconds]
schoppenhauer has quit [Ping timeout: 248 seconds]
fikka has quit [Ping timeout: 248 seconds]
Rawriful has quit [Quit: WeeChat 1.4]
varjag has joined #lisp
Tobbi has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jlarocco has joined #lisp
mson has quit [Quit: Connection closed for inactivity]
turkja has joined #lisp
varjag has quit [Ping timeout: 260 seconds]
Arcaelyx has quit [Read error: Connection reset by peer]
keep_learning has joined #lisp
Arcaelyx has joined #lisp
lisp_guest has quit [Ping timeout: 248 seconds]
<ym> Seems like prescript is what I need.
raynold has quit [Quit: Connection closed for inactivity]
pjb has quit [Ping timeout: 240 seconds]
asarch has joined #lisp
<asarch> You are in your new job, sitting in front of a brand new All-In-One HP PC desktop, you cannot change nor install anything in that system, your only Lisp environment to improve your work is a copy of the last release of Emacs.
<asarch> Is Emacs a "decent" Lisp environment?
<asarch> You know, the best is SBCL but in life...
<Bike> it's not common lisp. it's a different language
<aeth> Emacs superficially looks like Common Lisp, and even borrows most of Common Lisp in the form of cl-foo macros/functions, but it is not Common Lisp under the hood and the intuition built for one doesn't apply to the other.
pjb has joined #lisp
<aeth> Emacs Lisp is slow and interpreted, so you mostly want to rely on built-ins. Writing fast Emacs Lisp is a totally different experience than writing fast Common Lisp.
<asarch> I know, I know, but actually, it is somehow Lisp
<aeth> Common Lisp is full of rich types, many libraries, and is usually quite optimized.
yrk has joined #lisp
<aeth> Emacs Lisp is basically 1983ish Lisp programming because that's what RMS was used to when writing GNU Emacs.
<aeth> Sure, Common Lisp itself is kind of stuck in the 90s in many ways, but that's a whole extra decade of convenience
Amplituhedron has joined #lisp
JenElizabeth has quit [Ping timeout: 240 seconds]
FreeBirdLjj has joined #lisp
marvin2 has quit [Ping timeout: 248 seconds]
marvin2 has joined #lisp
<aeth> One huge issue with historic Lisps (and even many Schemes) compared to Common Lisp is that you rely on lists far too often to do things that you'd use a different (and probably more efficient and faster) thing for in CL.
drcode has quit [Ping timeout: 248 seconds]
<aeth> It might be more elegant, but you could easily get an accidental 10x slowdown, which is a noticably worse experience.
JenElizabeth has joined #lisp
<aeth> Unless you have immutable lists and are willing to do a lot of magic behind the scenes in the compiler, you're going to have to use something other than lists for most things. The historic approach of using lists for everything, which many historic Lisps encourage, doesn't work more efficiently than alternatives when those lists are mutable cons cells.
eazar001 has joined #lisp
<aeth> e.g. For representing matrices, you probably want a 1D array with a special matref function, or a 2D array (which ideally would be just as efficient when compiled as the former), or even use foreign C memory like the static-vectors library does. Not lists.
<aeth> And mathematical vectors are small enough that you could even consider just having multiple return values as an efficient representation!
yeticry_ has joined #lisp
<aeth> That's the flexibility that CL gives you.
yeticry has quit [Ping timeout: 250 seconds]
Amplituhedron has quit [Ping timeout: 248 seconds]
quazimodo has quit [Read error: Connection reset by peer]
thebardian has joined #lisp
dotc has quit [Quit: restart, brb]
attila_lendvai has quit [Quit: Leaving.]
dotc has joined #lisp
jlarocco has quit [Ping timeout: 260 seconds]
borei has joined #lisp
<borei> hi all !
<borei> quick question - i need to generate key for hash table, the approach that i found is the following:
<borei> (symbol-name (gensym (symbol-name(type-of *atom1*)))), where *atom1* is gonna be value for that key
<borei> does it make sense ?
<pjb> nope.
<pjb> type-of can return non-symbol.
<pjb> You can use the type directly as a key.
<pjb> (let ((h (make-hash-table :test (function equal))) (v (make-array 3 :element-type 'character))) (setf (gethash (type-of 42) h) 42 (gethash (type-of v) h) v) (gethash (type-of 42) h)) #| --> 42 ; t |#
<Guest44476> nice
jameser has joined #lisp
FreeBirdLjj has quit [Remote host closed the connection]
<borei> ok
<Guest44476> that was slick actually
<pjb> (let ((h (make-hash-table :test (function equal))) (v (make-array 3 :element-type 'character))) (setf (gethash (type-of 42) h) 42 (gethash (type-of v) h) v) (let (ks) (maphash (lambda (k v) (push k ks)) h) ks)) #| --> ((integer 0 1152921504606846975) (simple-base-string 3)) |#
raynold has joined #lisp
<pjb> the actual keys depend on the implementation.
FreeBirdLjj has joined #lisp
<pjb> If you want something more conforming, you would have to map the types explicitely. Perhaps using typecase.
Amplituhedron has joined #lisp
<borei> ic
<borei> hmm, can i add something to the key, which is type-of of my object, i mean i need to add some index to it
jameser has quit [Quit: Textual IRC Client: www.textualapp.com]
<borei> so key will be unique
FreeBirdLjj has quit [Ping timeout: 248 seconds]
<Bike> can you not just use the object as a key?
<borei> because in my case (type-of <obj>) will be returning moslty one value
paul0 has joined #lisp
<borei> bike: im just looking for the options that i have
<Bike> but why can't you use the object itself?
<borei> you mean key is a obj and value as a obj ?
<Bike> i don't know, what's the hash table for? how is it used?
<borei> set of the objects which will be rendered
<Bike> you're using the hash table ase a set?
<pjb> Why don't you use a list?
<borei> why not ? i just don't know why it is wrong approach.
<borei> list can work for sure
<pjb> Because gethash is O(64000), while push is O(1).
<Bike> using the hash table as a set is a fine thing to do
jameser has joined #lisp
<pjb> Not when you just fill the table once, and then process the values once, as in a render list!
jameser has quit [Client Quit]
drcode has joined #lisp
pierpa has quit [Quit: Page closed]
neoncontrails has quit [Ping timeout: 240 seconds]
<raynold> ahh it's a wonderful day
AX31_A13X has quit [Quit: AX31_A13X]
fikka has joined #lisp
elimik31 has quit [Ping timeout: 250 seconds]
Amplituhedron has quit [Ping timeout: 268 seconds]
space_otter has joined #lisp
<borei> pjb: can you please explain "type-of can return non-symbol." ???
<pjb> See example above.
mson has joined #lisp
fikka has quit [Ping timeout: 268 seconds]
wheelsucker has quit [Read error: Connection reset by peer]
<asarch> So, definitely, I would stay away from Emacs
<asarch> Thank you guys
<asarch> Thank you very much :-)
<borei> pjb: (type-of (type-of (make-array 3 :element-type 'character)))
<borei> CONS
<borei> ?
<borei> in my approach - i'd exepect symbol
<aeth> asarch: well, usually people use Emacs as the Common Lisp development environment, with slime and paredit (or something similar for parentheses management)
<aeth> There is real no FOSS competition for Lisp (slime) and Scheme (geiser) development.
<asarch> Thank you
<asarch> There is a programming language called Elm (it transpiles into JavaScript). A guy wrote Ellie, the Elm on-line development environment written entirely in JavaScript. You can use as many cores as your system have to compile the code and even use it off-line:
<asarch> Is there something similar for SBCL?
<borei> i started to dive into lisp and emacs 5-6 months ago - from real scratch, i had 0 experience with both of them. Initially i was f...g out, but now once i started to gain some momentum it's getting better. It's just inconvinient some time, not as usual as it was befor. Im trying to follow drmeister approach ".... those languages are just the languages that people started using and so they keep using them.  It is not a choice most people
<borei> make – it is inertia." I was fighting my inertia, still fighting, but i see results.
skali has joined #lisp
test1600 has joined #lisp
<drmeister> Yes, yes! Let the s-expressions flow through you...!
<borei> too early :-)
drcode has quit [Ping timeout: 248 seconds]
skali has quit [Ping timeout: 248 seconds]
<turkja> borei: it for sure is syntactically totally alien in the beginning... i'm also still getting into it.. i've been programming in lisp for about 1,5 years. it's just that i can't go back anymore because of the way lisp code is developed. I mean, lisp/emacs/slime, and the whole thing concept of iterative/interactive/live programming, and the integration of everything, having the live compiler in the image... heck you could even patch the comp
<turkja> iler live etc. This i cannot get anywhere else, so no turning back.
<Xal> turkja: ever tried haskell?
<turkja> Xal: no, i started with CL and have checked other lisp dialects every now and then, but i feel i have still like 10 years of fun with CL :)
nowhere_man has quit [Read error: Connection reset by peer]
pjb` has joined #lisp
nowhere_man has joined #lisp
<turkja> Xal: with "anywhere else" i mean mostly the usual suspects, like C++, java, python..
pjb has quit [Ping timeout: 240 seconds]
<pjb`> borei: so first you see it's not a quick question. second, you would be better served if you explained what you want to do, since it looks like your proposed form is inadequate for anything.
neoncontrails has joined #lisp
<aeth> turkja: Smalltalk would probably be the closest language to what you're talking about.
<aeth> Afaik, CL got this from Smalltalk
jlarocco has joined #lisp
jlarocco has quit [Remote host closed the connection]
<borei> pjb: im absolutely good with your answer, i see where im wrong, and i got some food to digest.
nowhere_man has quit [Read error: Connection reset by peer]
<aeth> At least according to Wikipedia, this is basically just Smalltalk and Lisp.
<borei> to "have fish" against "to know hot to fish" :-)
<borei> "how to fish" ^^
nowhere_man has joined #lisp
vzerda has quit [Ping timeout: 240 seconds]
<turkja> aeth: Smalltalk is cool... i mean i never programmed it but still :D
Kaisyu has joined #lisp
papachan has quit [Quit: WeeChat 0.4.2]
brendyn has joined #lisp
<loke`> turkja: It's kind of neat, but I have issues with it.
<borei> when i've created object of certain type and i request value of that object, im getting (#<obj-type {numbers}>) that numbers what is it ?
drcode has joined #lisp
<borei> address ?
EvW1 has joined #lisp
eazar001 has quit [Quit: WeeChat 1.9.1]
<loke`> borei: It could be. It has no meaning other than to help you distinguish multilpe instanes of the same class.
<loke`> It can't really be the address, since a relocating collector may move an object around.
<borei> tks !
<loke`> borei: If you7 want to implement your own textual representation of the object, just implementt he PRINT-OBJECT method
LiamH has quit [Quit: Leaving.]
d4ryus1 has joined #lisp
d4ryus has quit [Ping timeout: 240 seconds]
<pjb`> borei: beware that type and class are two different concepts in Common Lisp.
pjb` is now known as pjb
<pjb> When objects are printed with #< it's the class name that is used, not the type of the object. The type can be different, notably for instances of system classes.
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
dieggsy has joined #lisp
thebardian has quit [Remote host closed the connection]
nika has joined #lisp
thebardian has joined #lisp
shifty has joined #lisp
EvW1 has quit [Ping timeout: 240 seconds]
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #lisp
fikka has joined #lisp
dieggsy has quit [Remote host closed the connection]
fikka has quit [Ping timeout: 260 seconds]
<beach> Good morning everyone!
<drmeister> In Clasp (and I'm told in sbcl) they allocate simple-base-string's with one extra byte for null terminated strings for C interoperation. Is there ever a reason to allocate more space like that for anything else?
hellcode has joined #lisp
vancan1ty has quit [Ping timeout: 252 seconds]
<drmeister> In order to support the Memory Pool System GC I need to be able to calculate the size of objects from their contents and I just realized that I need to special case simple-base-string for the reason above. I can add a more general mechanism - but I don't see a compelling reason to do so.
vancan1ty has joined #lisp
<Bike> other than alignment and padding stuff nothing comes to mind.
mson has quit [Quit: Connection closed for inactivity]
_whitelogger has joined #lisp
asarch has quit [Quit: Leaving]
skali has joined #lisp
<drmeister> Ok - thanks.
skali has quit [Ping timeout: 260 seconds]
<pjb> drmeister: more vectors are null terminated in usual C programming.
<pjb> drmeister: for example, envv and argv.
<pjb> drmeister: ie. "lists" implemented as vectors of variable length are often terminated with a null pointer.
<drmeister> Hmmm, those are good examples - but the terminating null would be counted in their length.
<drmeister> Not so with null terminated strings.
ahungry has joined #lisp
vancan1ty has quit [Ping timeout: 250 seconds]
Gordo has joined #lisp
<pfdietz> TYPE-OF returns a type specifier, which can be a symbol, a list, or a class object. Is there a clhs bot?
<pfdietz> clhs: type-of
<pfdietz> Hmm.
<Bike> clhs type-of
<pfdietz> :)
White_Flame has quit [Ping timeout: 258 seconds]
jstoddard has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
fikka has joined #lisp
hellcode has quit [Remote host closed the connection]
fikka has quit [Ping timeout: 248 seconds]
<pjb> drmeister: perhaps you want to be able to do (execv (vector "ls" "-l")) without copying the vector and adding null?
White_Flame has joined #lisp
Bike has quit [Quit: Lost terminal]
nsrahmad has joined #lisp
<drmeister> How would I do that?
<pjb> Well, it depends on the representation of data, but the idea would be to add a 0-element to all the vectors, so the case for strings wouldn't be an exception. But of course, it would means that any pointer to a cl:string would have to be a pointer to the cstring (C array of char), and the lisp attributes would have to be stored at other (probably negative) offsets.
<pjb> This could be an implementation strategy for a CL implementation that would aim for data types compatible with C.
orivej has quit [Remote host closed the connection]
orivej has joined #lisp
nsrahmad has quit [Quit: nsrahmad]
<beach> Sounds bad.
<pjb> yes
dddddd has quit [Remote host closed the connection]
z3t0 has joined #lisp
sz0 has joined #lisp
<dmiles> I got TAGBODY/GO working nice! https://pastebin.com/j3ry0Cy9
White_Flame has quit [Ping timeout: 248 seconds]
<dmiles> for return-from i'll still have to use catch/throw though
<beach> Congratulations.
moei has joined #lisp
White_Flame has joined #lisp
asarch has joined #lisp
<asarch> I was compiling SBCL 1.4.0 for Slackware 64 and it failed: http://paste.scsys.co.uk/565732
<asarch> Why?
<asarch> What went wrong?
Zhivago has joined #lisp
Zhivago has quit [Changing host]
Zhivago has joined #lisp
frgo has joined #lisp
frgo has quit [Client Quit]
ahungry has quit [Remote host closed the connection]
z3t0 has quit [Quit: Leaving...]
thebardian has quit [Remote host closed the connection]
Gordo has quit [Ping timeout: 260 seconds]
asarch has quit [Quit: Leaving]
oleo has quit [Quit: Leaving]
drcode has quit [Ping timeout: 248 seconds]
angavrilov has joined #lisp
drcode has joined #lisp
skali has joined #lisp
rpg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
itruslove has quit [Quit: ZNC - http://znc.in]
Guest32325 has quit [Quit: ZNC - http://znc.in]
drcode has quit [Ping timeout: 248 seconds]
PinealGlandOptic has quit [Quit: leaving]
shka has joined #lisp
BitPuffin|osx has quit [Ping timeout: 240 seconds]
fikka has joined #lisp
knobo has joined #lisp
fikka has quit [Ping timeout: 248 seconds]
damke has joined #lisp
lisp_guest has joined #lisp
nirved has joined #lisp
Karl_Dscc has joined #lisp
White_Flame has quit [Ping timeout: 240 seconds]
White_Flame has joined #lisp
pjb has quit [Ping timeout: 240 seconds]
flamebeard has joined #lisp
zmt00 has quit [Quit: Leaving]
flamebeard has quit [Quit: Leaving]
mishoo_ has joined #lisp
caseyowo has quit [Ping timeout: 248 seconds]
damke_ has joined #lisp
damke has quit [Ping timeout: 240 seconds]
Karl_Dscc has quit [Remote host closed the connection]
BigSafari has joined #lisp
dec0n has joined #lisp
pjb has joined #lisp
flamebeard has joined #lisp
skali has quit [Ping timeout: 248 seconds]
fikka has joined #lisp
vlatkoB has joined #lisp
shka has quit [Ping timeout: 248 seconds]
scymtym has quit [Ping timeout: 248 seconds]
orivej has quit [Remote host closed the connection]
orivej has joined #lisp
fikka has quit [Ping timeout: 258 seconds]
dotc has quit [Quit: restart, brb]
dotc has joined #lisp
dotc has left #lisp [#lisp]
borei has quit [Quit: Leaving.]
pillton has quit [Remote host closed the connection]
skali has joined #lisp
pillton has joined #lisp
murii has joined #lisp
pjb has quit [Ping timeout: 240 seconds]
Beetny has joined #lisp
safe has quit [Read error: Connection reset by peer]
skali has quit [Ping timeout: 248 seconds]
scymtym has joined #lisp
varjag has joined #lisp
heisig has joined #lisp
skali has joined #lisp
zaquest has quit [Quit: Leaving]
zaquest has joined #lisp
itruslove has joined #lisp
fikka has joined #lisp
pyx has joined #lisp
pyx has quit [Client Quit]
giraffe has joined #lisp
giraffe is now known as Guest24088
fikka has quit [Ping timeout: 248 seconds]
sz0 has quit [Quit: Connection closed for inactivity]
Amplituhedron has joined #lisp
fikka has joined #lisp
neoncont_ has joined #lisp
neoncontrails has quit [Ping timeout: 268 seconds]
fikka has quit [Ping timeout: 260 seconds]
skali has quit [Ping timeout: 258 seconds]
svetlyak40wt has joined #lisp
fikka has joined #lisp
fikka has quit [Ping timeout: 268 seconds]
space_otter has quit [Remote host closed the connection]
fikka has joined #lisp
svetlyak40wt has quit []
fikka has quit [Ping timeout: 248 seconds]
BigSafari has quit [Quit: Textual IRC Client: www.textualapp.com]
BigSafari has joined #lisp
fikka has joined #lisp
orivej has quit [Ping timeout: 248 seconds]
panji has joined #lisp
_cosmonaut_ has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
scymtym has quit [Read error: Connection reset by peer]
scymtym has joined #lisp
fikka has joined #lisp
hhdave has joined #lisp
vlatkoB has quit [Remote host closed the connection]
hhdave has quit [Ping timeout: 260 seconds]
vlatkoB has joined #lisp
fikka has quit [Ping timeout: 248 seconds]
Amplituhedron has quit [Remote host closed the connection]
fikka has joined #lisp
margeas has joined #lisp
scymtym has quit [Ping timeout: 246 seconds]
fikka has quit [Ping timeout: 248 seconds]
zaquest has quit [Quit: Leaving]
heisig has quit [Quit: Leaving]
zaquest has joined #lisp
fikka has joined #lisp
Amplituhedron has joined #lisp
fikka has quit [Ping timeout: 248 seconds]
zaquest has quit [Quit: Leaving]
<dim> hi
<dim> is there any known traps when moving handler-bind forms into a macro?
fikka has joined #lisp
<Shinmera> Traps like what
<dim> like it used to work and now doesn't anymore, as in the condition is not “caught” by my handler
<Shinmera> Macros just expand to code, so
<dim> for specifics
<dim> Shinmera: yeah, I'm trying to get ideas to debug, I feel stuck
<jackdaniel> there are traps with moving handler-case into handler-bind, because despite superficial similarity they work different
<Shinmera> dim: Try using call-with-style
<dim> line 137 of the same file uses the macro
<dim> jackdaniel: it was an handler-bind already before, because I need to catch a lower level signal (babel decoding)
<dim> pgloader calls into qmynd that calls into babel, and the error handling is done in pgloader
<dim> Shinmera: mmm, okay, trying
<Shinmera> Anyway, there are no "gotchas" specifically related to what you're asking.
<dim> I didn't think there would be, but I've been surprised before
<Shinmera> Try *break-on-signals* to see if it is even happening
<dim> (surprised as in wrong)
<jackdaniel> macro looks just fine at first glance
<Shinmera> *if the condition is even happening
<jackdaniel> (as in - should work)
fikka has quit [Ping timeout: 248 seconds]
<dim> oh I have a backtrace with 0: ((:INTERNAL (PGLOADER.SOURCES:MAP-ROWS (PGLOADER.MYSQL:COPY-MYSQL))) #<BABEL-ENCODINGS::INVALID-GBK-BYTE #x30200543D73D>) Locals: PGLOADER.MYSQL::C = #<BABEL-ENCODINGS::INVALID-GBK-BYTE #x3020051C24CD>
<jackdaniel> you don't catch invalid-gbk-byte
<dim> invalid-gbk-byte has Super classes: #<STANDARD-CLASS BABEL-ENCODINGS:CHARACTER-DECODING-ERROR>
<jackdaniel> aha
<dim> sorry didn't type and copy/paste fast enough
<dim> Precedence List: INVALID-GBK-BYTE, CHARACTER-DECODING-ERROR, CHARACTER-CODING-ERROR, ERROR, SERIOUS-CONDITION, CONDITION, STANDARD-OBJECT, T
orivej has joined #lisp
<dim> that's maybe even more interesting here
<dim> oh
<dim> sorry I just came to understand what's happening now
<dim> reading the backtrace for real
<dim> the error I have happens *within* my signal handler!
<dim> Array index 2 out of bounds for #(163 128) .
<dim> that's from within my handler
<Shinmera> That's something call-with-style would've showed you much quicker.
elimik31 has joined #lisp
<Shinmera> Unless you have performance constraints, using call-with-style for with-* macros is a really good practise.
<dim> in that case, error handling is in the inner-inner loop for pgloader
<dim> errors shouldn't happen often, but still
fikka has joined #lisp
dotc has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
<dim> 2017-11-13T11:23:10.358374+01:00 ERROR funny_string: Illegal GBK character starting at position 2.
<dim> ok now it's handled, and using the call-with style
jmercouris has joined #lisp
hhdave has joined #lisp
Amplituhedron has quit [Remote host closed the connection]
fikka has joined #lisp
<dim> thanks!
fikka has quit [Ping timeout: 260 seconds]
orivej has quit [Ping timeout: 248 seconds]
fikka has joined #lisp
Amplituhedron has joined #lisp
<loke`> dim: Mysql?
<loke`> Pgloader supprots mysql?
<dim> as a data source, yes, sure
<dim> pgloader is now able to do fully automated database migrations from X to PostgreSQL, for X being MS SQL, SQLite and MySQL
<dim> customers are asking about Oracle and Sybase, so I guess that's next
fikka has quit [Ping timeout: 240 seconds]
fikka has joined #lisp
aeth has quit [Ping timeout: 240 seconds]
drcode has joined #lisp
drcode has quit [Remote host closed the connection]
fikka has quit [Ping timeout: 248 seconds]
<loke`> dim: We could definitely use Oracle and Sybase.
<loke`> Those are the database our customers use, and we'll support mssql soon.
<loke`> We have a similar internal conversion tool, but it's slow as fuck./
<loke`> pgloader would be very useful here.
<loke`> Although the Postgres support isn't implemented yet. :-)
Amplituhedron has quit [Remote host closed the connection]
test1600 has quit [Read error: Connection reset by peer]
fikka has joined #lisp
drcode has joined #lisp
anonus has left #lisp ["WeeChat 1.9.1"]
zaquest has joined #lisp
nika has quit []
fikka has quit [Ping timeout: 260 seconds]
<dim> as a source you mean?
<dim> loke`: I will be very happy to have a contributor to pgloader if you're interested in joining the fun!
<dim> otherwise your company can sponsor my work to add Oracle/Sybase!
damke has joined #lisp
<loke`> dim: Right now we don't need to copy to postgres yet, because the application hasn't been ported to Postgres. They will (hopefully) do that once the mssql port is finished.
<loke`> If you have mssql as a destimation, we could use it right now.
<loke`> :-)
damke_ has quit [Ping timeout: 240 seconds]
<dim> Xach: when you have time, could you have a look at https://github.com/dimitri/pgloader/issues/667 ; it might be a QL/buildapp bug there
<dim> the only destination for pgloader is currently PostgreSQL of course
fikka has joined #lisp
<dim> I'm not sure I want to change that... but you could use the code as a framework/lib to add any features you need/want of course
knobo has quit [Ping timeout: 268 seconds]
<loke`> It's OK. I'll be looing closer at pgloader once we have pg support :-)
<dim> nice!
zaquest has quit [Quit: Leaving]
Amplituhedron has joined #lisp
fikka has quit [Ping timeout: 268 seconds]
gigetoo has quit [Ping timeout: 258 seconds]
pjb has joined #lisp
Amplituhedron has quit [Ping timeout: 268 seconds]
fikka has joined #lisp
gigetoo has joined #lisp
knobo has joined #lisp
fikka has quit [Ping timeout: 268 seconds]
neoncont_ has quit [Remote host closed the connection]
neoncontrails has joined #lisp
m00natic has joined #lisp
Amplituhedron has joined #lisp
fikka has joined #lisp
orivej has joined #lisp
emacsoma` has quit [Ping timeout: 240 seconds]
neoncontrails has quit [Ping timeout: 248 seconds]
emacsoma` has joined #lisp
fikka has quit [Ping timeout: 248 seconds]
pedh has joined #lisp
fikka has joined #lisp
norserob has joined #lisp
pjb has quit [Ping timeout: 240 seconds]
scymtym has joined #lisp
panji has quit [Quit: Leaving]
fikka has quit [Ping timeout: 250 seconds]
fikka has joined #lisp
pedh has quit [Quit: pedh]
fikka has quit [Ping timeout: 248 seconds]
murii is now known as Murii
pjb has joined #lisp
fikka has joined #lisp
neoncontrails has joined #lisp
pedh has joined #lisp
Tobbi has joined #lisp
skali has joined #lisp
pedh has quit [Quit: pedh]
skali has quit [Ping timeout: 240 seconds]
<Posterdati> hi
_cosmonaut_ has quit [Ping timeout: 260 seconds]
Denommus has joined #lisp
<phoe> hey
pedh has joined #lisp
Denommus` has joined #lisp
<Posterdati> how can I query a dns server using drakma?
<Shinmera> DNS is not an HTTP protocol.
<Shinmera> So: you cannot.
<Posterdati> Shinmera: ok, because it is binary
<Posterdati> only socket then...
<Shinmera> Binary or not has nothing to do with it. HTTP and DNS are separate protocols. They need different clients.
<phoe> that's what google tells me
<pjb> HTTP is a binary protocol.
<phoe> all protocols are binary protocols when we look from a far away enough perspective
<phoe> "A binary protocol is a protocol which is intended to be read by a machine rather than a human being, as opposed to a plain text protocol such as IRC, SMTP, or HTTP. "
Denommus has quit [Ping timeout: 250 seconds]
<phoe> pjb: ^
Denommus` is now known as Denommus
<Posterdati> (uiop:run-program "dig TXT @ns1.google.com +short o-o.myaddr.1.google.com")
<Posterdati> NIL
<Posterdati> NIL
<Posterdati> 0
<Posterdati> $ dig TXT @ns1.google.com +short o-o.myaddr.1.google.com "80.183.64.145"
<phoe> Posterdati: pastebin pls
<Shinmera> UIOP does not capture stdout by default
<Shinmera> or rather run-program doesn't
<pjb> what's wrong with dragon?
fikka has quit [Ping timeout: 248 seconds]
<phoe> and also mentions usocket that has a GET-HOSTS-BY-NAME function
<Posterdati> phoe: I need to get the adsl ip connection value
<phoe> Posterdati: what do you mean by adsl ip connection value?
<Posterdati> the ip which is assigned by ISP to my modem
pedh has quit [Quit: pedh]
fikka has joined #lisp
dddddd has joined #lisp
<Shinmera> What does DNS have to do with that
<phoe> it doesn't
<phoe> use any kind of external API like https://www.ipify.org/
<Shinmera> Or just ask your OS
<phoe> ^
<phoe> if you're using ADSL, then your OS should have the proper external IP already assigned to it.
<Posterdati> dig TXT @ns1.google.com +short o-o.myaddr.1.google.com
<Posterdati> it has, by using dig
Beetny has quit [Ping timeout: 250 seconds]
zaquest has joined #lisp
<Posterdati> phoe: no, the OS hasn't got the proper external IP... The router has it
<phoe> Posterdati: where is the router?
<Posterdati> router/modem
DGASAU has quit [Ping timeout: 240 seconds]
<phoe> how is the router/modem connected to your computer? USB? WiFi? LAN?
<Posterdati> phoe: LAN
<phoe> in this case use ipify.
<phoe> will be much simpler than querying your router and independent of hardware changes.
<phoe> DNS cannot tell you anything about your external IP address, it's the wrong protocol for this thing.
fikka has quit [Ping timeout: 248 seconds]
<Posterdati> phoe: what about this then --> dig TXT @ns1.google.com +short o-o.myaddr.1.google.com
<phoe> Posterdati: if it works, then sure - your CL basically tells Linux to ask Google for your IP this way
<Posterdati> phoe: exactly!
<phoe> good then
<Posterdati> phoe: but this ipify you mention would be better
pedh has joined #lisp
<phoe> because you can use drakma :)
<Posterdati> phoe: yes
<phoe> and make a simple REST query.
<phoe> so you become independent of dig and dependent on drakma.
_cosmonaut_ has joined #lisp
sz0 has joined #lisp
ebrasca has left #lisp ["ERC (IRC client for Emacs 25.3.1)"]
fikka has joined #lisp
<Posterdati> phoe: dependency is a must have today... :)
<Posterdati> phoe: (drakma:http-request "https://api.ipify.org" :method :get)
<Posterdati> phoe: sounds great to me
fikka has quit [Ping timeout: 240 seconds]
skali has joined #lisp
<Posterdati> phoe: thanks!
<phoe> Posterdati: no problem
wxie has joined #lisp
fikka has joined #lisp
skali has quit [Ping timeout: 260 seconds]
fikka has quit [Ping timeout: 250 seconds]
fikka has joined #lisp
wxie has quit [Remote host closed the connection]
fikka has quit [Ping timeout: 240 seconds]
Amplituhedron has quit [Ping timeout: 240 seconds]
quazimodo has joined #lisp
phadthai has quit [Ping timeout: 268 seconds]
phadthai has joined #lisp
fikka has joined #lisp
aeth has joined #lisp
rpg has joined #lisp
Murii has quit [Ping timeout: 240 seconds]
damke_ has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
damke has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 250 seconds]
fikka has joined #lisp
orivej has joined #lisp
shifty has quit [Remote host closed the connection]
fikka has quit [Ping timeout: 248 seconds]
papachan has joined #lisp
Tobbi has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pedh has quit [Quit: pedh]
fikka has joined #lisp
neoncontrails has quit [Remote host closed the connection]
neoncontrails has joined #lisp
neoncont_ has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
pedh has joined #lisp
neoncontrails has quit [Ping timeout: 250 seconds]
quazimodo has quit [Ping timeout: 258 seconds]
BigSafari has quit [Quit: Textual IRC Client: www.textualapp.com]
fikka has joined #lisp
Patzy has quit [Ping timeout: 240 seconds]
pedh has quit [Quit: pedh]
_paul0 has joined #lisp
Murii has joined #lisp
test1600 has joined #lisp
paul0 has quit [Ping timeout: 258 seconds]
mson has joined #lisp
test1600 has quit [Quit: Leaving]
pedh has joined #lisp
Jesin has quit [Quit: Leaving]
Tobbi has joined #lisp
drcode has quit [Ping timeout: 252 seconds]
pedh has quit [Quit: pedh]
Tobbi has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pedh has joined #lisp
Bike has joined #lisp
okflo has joined #lisp
LiamH has joined #lisp
vlatkoB has quit [Remote host closed the connection]
raynold has quit [Quit: Connection closed for inactivity]
Achylles has joined #lisp
<Achylles> is there a range function for lisp? Like (1..10)
<Achylles> How do I print this range?
<lieven> Achylles: such a function is not included in the standard
<Achylles> :(
<lieven> (loop for i from 1 to 10 do (format t "~A~%" i)) or variations thereof
<beach> Achylles: What is it that you would like to do with such a range?
<marvin2> as far as range alone the closet there is in standard library is: (loop for i from 1 to 10 collect i)
<beach> Exactly.
<Achylles> I am studying maths and I'd like to represent the natural numbers set with in maths is: N {1,2,3,4,5,...}
<jackdaniel> you may be interested in library series
jollygood2 has joined #lisp
<Achylles> and N* {0,1,2,3,4,5,...}
<beach> That's different. The natural numbers is an infinite set, not a range.
<Shinmera> You'll want lazy sequences or generators for that kind of thing.
<Achylles> Shinmera, give me an example...
<beach> Achylles: It would be much better if you gave examples of what you want to do with the infinite sets and with ranges.
pedh has quit [Quit: pedh]
<jackdaniel> http://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node1.html has appendixes describing series and generators
<jackdaniel> they are both not part of the standard
<jackdaniel> but series are implemented as a library for sure
<jackdaniel> not sure about the generators
damke has joined #lisp
damke_ has quit [Ping timeout: 240 seconds]
<Achylles> I would like to define, say a N function, just for me to remember the natural set numbers using lisp instead of writing down everything on a paper with a pen...
<Achylles> I do not know if it is possible to study maths with lisp...
<beach> Achylles: What would that function do?
<jdz> Wouldn't one of the symbolic maths programs more suited for this?
oleo has joined #lisp
<jackdaniel> you may represent it as a symbol, but I think that you confuse a little computing with math
<jackdaniel> like in: say how vs say what
<Achylles> the thing is that, I want to learn lisp while studying maths...
<Achylles> or the other way round...
<jmercouris> Achylles: I don't think that's a good idea, Lisp is distinctly different from Math
<pjb> Achylles: do you mean ℕ ?
<Achylles> yes.
<pjb> ℕ is a set. If you want to consider it as a function, then it is characterised by its indicator function.
<pjb> (defun ℕ (x) (and (integerp x) (not (minusp x))))
sz0 has quit [Quit: Connection closed for inactivity]
<beach> Achylles: It is not very clear what it is that you want to do with those sets, so it is hard to give you any precise help.
<pjb> (ℕ 42) #| --> t |# (ℕ 'foo) #| --> nil |#
<pjb> (defun ℕ∩ (set) (remove-if-not #'ℕ set)) (ℕ∩ '(42 -2 foo 2.0)) #| --> (42) |#
knobo has quit [Ping timeout: 240 seconds]
<beach> Achylles: What pjb is showing you is a representation of such a set as a characteristic function.
<Achylles> beach, I have tried studying gcd, lcm and factorizing a number using lisp and it worked.
<beach> Definitely.
<Achylles> I think, at least some maths themes can be studied with lisp...
<pjb> Of course.
<beach> Right again.
<Achylles> jdz, which programs, for example...
<jdz> I've heard names mathematica, maxima, macsyma, also probably wolfram alpha.
<pjb> Achylles: you may also try ACL2.
<Achylles> Should I give up using lisp for studying maths? What do you think...
<jackdaniel> maxima is written in lisp
<jackdaniel> and you still can drop down to repl if you want
<pjb> ACL2 is a theorem prover based on a subset of CL (and implemented in CL).
<Achylles> jdz, some of them uses python
<Achylles> like sage...
<Achylles> but, I am interested more in lisp
<pjb> Achylles: definitely use lisp to study maths (and anything else).
<jdz> Learning everything at once is a sure way to get confused.
sjl has joined #lisp
<Colleen> sjl: Shinmera said at 2017.11.10 11:54:16: I reworked the docs for Harmony and included some actual examples. Hope that helps! https://shirakumo.github.io/harmony/ Still haven't completed the CoreAudio backend or made buffer-sources convenient, though.
neoncont_ has quit [Remote host closed the connection]
Tobbi has joined #lisp
<pjb> Achylles: cf. eg. Reasoning about qualitative temporal information with S-words and S-languages -- Irène Durand, Sylviane Schwer in https://www.european-lisp-symposium.org/static/proceedings/2008.pdf
<Achylles> Ok I will have a look at maxima and acl2
<jdz> I'm pretty sure PAIP also has a chapter on doing symbolic maths.
<Achylles> is paip a lisp program?
<pjb> book
fikka has quit [Ping timeout: 240 seconds]
<beach> minion: Please tell Achylles about PAIP.
<minion> Achylles: PAIP: Paradigms of Artificial Intelligence Programming
<pjb> See also sicp and sicm!
fikka has joined #lisp
Tobbi has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fikka has quit [Ping timeout: 260 seconds]
dyelar has joined #lisp
eudoxia has joined #lisp
deba5e12 has quit [Quit: WeeChat 1.9.1]
deba5e12 has joined #lisp
fikka has joined #lisp
Tobbi has joined #lisp
cromachina has quit [Read error: Connection reset by peer]
_cosmonaut_ has quit [Ping timeout: 240 seconds]
fikka has quit [Ping timeout: 240 seconds]
fikka has joined #lisp
malice has joined #lisp
eudoxia has quit [Quit: Leaving]
Patzy has joined #lisp
Tobbi has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hexfive has joined #lisp
fikka has quit [Ping timeout: 248 seconds]
Tobbi has joined #lisp
rippa has joined #lisp
pjb has quit [Ping timeout: 240 seconds]
pjb has joined #lisp
fikka has joined #lisp
didi has joined #lisp
Jesin has joined #lisp
<didi> When you define a macro, and use it inside your package, do you define it in a separate file, loaded first?
<jmercouris> didi: Yes, many do
margeas has quit [Ping timeout: 248 seconds]
<jmercouris> didi: I have a file called macro.lisp which gets loaded before all of my other files
<didi> jmercouris: Thanks.
<jmercouris> didi: No problem!
Josh_2 has joined #lisp
_cosmonaut_ has joined #lisp
<Shinmera> I don't
<Shinmera> I define the macro where it is appropriate contextually. Singling macros out as some kind of special thing seems odd.
<didi> Shinmera: But how do you compile them? If I use a macro before defining it, the compiler barfs.
Tobbi has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Tobbi has joined #lisp
<jmercouris> Shinmera: You know, I thought so as well at first, but whenever I had a macro that combined two or more functions from discrete files it was hard to think about the placement of said macro
<jmercouris> Shinmera: Obviously that is to say you are far more experienced than me, but I prefer just loading them before everything else to avoid any ambiguity
norserob has quit [Quit: leaving]
<Shinmera> didi: You just put it in the file before you use it?
<Bike> "combined"?
<pjb> The thing is that the functions used by the macro must be available in the evaluation environment used by the compilation environment to expand the macros.
<didi> Shinmera: Indeed. But then I start a dance of killing and yanking macros.
<Bike> didi: the compiler goes through files top to bottom compiling. if it sees a defmacro it will install the macro right then. if it sees a macro form but the macro hasn't been installed, it will probably think it's a function call and problems will happen. so, macros first
_rumbler31 has joined #lisp
<pjb> The file macros.lisp should contain those functions (and not necessarily the macros), so that you may easily load this file in the startup environment, (from which the evaluation environment is initialized).
<didi> Bike: Thanks.
norserob has joined #lisp
FreeBirdLjj has joined #lisp
tumdum has joined #lisp
tumdum has joined #lisp
tumdum has quit [Changing host]
<Shinmera> jmercouris: I've literally never seen people place macros into a separate file called "macros.lisp"
<pjb> find ~/quicklisp -name macro\*.lisp
<Shinmera> pjb: I don't doubt the existence. I just haven't come across it in my own viewings.
flamebeard has quit [Quit: Leaving]
<scymtym> Shinmera: i do that frequently but with the opposite rationale: the file is almost always the final file of the (ASDF) module and provides a layer of syntatic sugar that is independent of the function-based interface of the module
BitPuffin|osx has joined #lisp
<pjb> The thing is that if you have function used by macros that also use some of your macros (which further use other functions you define), and furthermore, you define constants that you want to use at read time eg. for case labels, etc, you quickly end up having to put the whole file in (eval-when (:compile-toplevel :load-toplevel :execute) …).
flazh has quit [Ping timeout: 240 seconds]
<pjb> In this situation, it's simplier to put them in separate files, and loading them in the required order.
EvW has joined #lisp
flazh has joined #lisp
<Achylles> thx to all for the help and orientation...
<Achylles> Probably, maxima is what I as looking for...
<Bike> having separate files for compile time stuff would make sense if we commonly used actual phasing
<pjb> Achylles: depends on the kind of maths you want to do. Maxima is not symbolic enough for me…
<jmercouris> Shinmera: When I first asked about this question several weeks ago, perhaps months now, the response I got was, "sure, I put them in separate file" from a few people
<jmercouris> Bike: I had reversed the order in my head, I meant to say that two or more discrete forms within two different files depend on the same macro
<Achylles> pjb, ok. Any advice about a symbolic enough for you?
<Shinmera> jmercouris: :shrug: I can only report on what I know.
<pjb> Achylles: I'd have more fun with ACL2 I guess. (if only I had the time to do so).
<pjb> Or I'd make my own euclidian geometry mathematician in lisp…
<Achylles> pjb, apt install acl2?
<jmercouris> didi pjb: Here's what exists on my computer for people using macros https://gist.github.com/9e92ddaf1777ac00cc9af7af02fbbc92
<pjb> I guess so.
<didi> jmercouris: Thanks.
<pjb> didi: jmercouris: not much indeed. In the usual case it's not needed.
<jmercouris> pjb: I also have very few things installed
mson has quit [Quit: Connection closed for inactivity]
<jmercouris> pjb: .quicklisp/quicklisp/quicklisp/dists/quicklisp/software: contains 14 lines
zmt00 has joined #lisp
lnostdal has quit [Ping timeout: 240 seconds]
<Achylles> pjb, installing acl2 here to have a try...
happy-dude has joined #lisp
<Achylles> :)
lnostdal has joined #lisp
hexfive has quit [Ping timeout: 240 seconds]
eudoxia has joined #lisp
fikka has quit [Ping timeout: 248 seconds]
Xal has quit [Ping timeout: 248 seconds]
Xal has joined #lisp
hyp3rbor3a has joined #lisp
dec0n has quit [Read error: Connection reset by peer]
hyp3rbor3a has quit [Quit: Leaving]
hyp3rbor3a has joined #lisp
vlatkoB has joined #lisp
<_rumbler31> so when a defun form is read, any macros that it uses must be already defined?
<_rumbler31> and is the same true of functions?
hyp3rbor3a has quit [Client Quit]
<Shinmera> No
<Shinmera> To both
<_rumbler31> this might sound stupid, but I know what happens in c, but I've heard a lot about *correct* build order in lisp and haven't yet encountered situations where I had to be specific
<Shinmera> When a form is /compiled/ that contains macro forms, then those macros must already be defined. Naturally.
<Shinmera> When a form is /evaluated/ that contains function calls, then those functions must already be defined. Naturally.
<_rumbler31> I see what you mean
Denommus has quit [Ping timeout: 250 seconds]
hexfive has joined #lisp
Jesin has quit [Ping timeout: 240 seconds]
<_rumbler31> although I still don't think I understand *what* happens *when*, for example. I have a file with a function that uses a macro. When I (load the file, does it matter which is placed first in the file? Same question for different files
<Shinmera> When a file is loaded, each form in the file is compiled and loaded one by one.
<Shinmera> So yes, the macro must be defined before the function.
Jesin has joined #lisp
<Shinmera> Or rather, the macro must be defined before its usages, or the compiler will compile the forms with standard evaluation rules in place, meaning it will probably be interpreted as a function call.
<sjl> Has anyone written a beginners guide to the various "times" in CL? e.g. read vs compile vs load vs execute
<sjl> It would be helpful to point folks to.
<Shinmera> I plan to write about that in my book, but that doesn't exist yet.
knobo has joined #lisp
<sjl> "Why do I need an eval-when around this function?" -> "Because macro X later in the file needs it during macroexpansion, but normally it wouldn't be evaluated til later"
<Shinmera> I feel like a lot of people get confused because they have preconceptions about how things work in other languages, even though the process isn't very complicated in CL.
<sjl> http://fare.livejournal.com/146698.html is the only writing I can recall reading about recently
<Xach> That's the peril of differential learning of new stuff
<Shinmera> Indeed.
<sjl> If the process isn't very complicated, it should be easy to clearly document then :)
varjag has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
<Shinmera> Simply documenting it, and fighting people's ideas of what's going on to actually help them grasp it, are two different things.
<sjl> "Hey, this works differently than languages you're used to. Here's a guide that explains how all the pieces work."
<Shinmera> It ain't that easy
<sjl> Correct, because we don't have the guide.
* Shinmera sighs
<sjl> "the guide" is random fragments of IRC
<sjl> people explaining bits and pieces of the process
xrash has joined #lisp
<sjl> we tell people "no, macros don't need to be available at read time" and then a week later they wonder why their reader macros aren't working
rocx has quit [Quit: classes]
<Bike> fare's is the only one i remember, not counting the clhs
<Bike> normally i'd say the clhs is fine, except that the compile file handling has that ridiculous table
<Shinmera> fare's more for people that are curious about details than for people that just need to grok the fundamentals.
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #lisp
<Xach> sjl: in K&R's C book, they say "this works differently from pascal and fortran like so"
<Xach> sjl: amusing to read even in the 90s and not getting any more timely
<sjl> heh
<Xach> but, into voids like these can spring terrible "tutorials", like erann gat's package guide
<Xach> so a good guide would be good, i think
FreeBirdLjj has quit [Remote host closed the connection]
thinkpad has quit [Ping timeout: 240 seconds]
pjb has quit [Ping timeout: 240 seconds]
<dim> Xach: when you have time, could you have a look at https://github.com/dimitri/pgloader/issues/667 ; it might be a QL/buildapp bug there (sorry for reposting, didn't use a memo, and not sure you've seen it)
damke_ has joined #lisp
malice has quit [Remote host closed the connection]
<XachX> Ok
damke has quit [Ping timeout: 240 seconds]
didi` has joined #lisp
didi has quit [Disconnected by services]
didi` is now known as didi
_rumbler31 has quit [Quit: Leaving...]
caseyowo has joined #lisp
_rumbler31 has joined #lisp
margeas has joined #lisp
pjb has joined #lisp
skali has joined #lisp
FreeBirdLjj has joined #lisp
jollygood2 has quit [Ping timeout: 268 seconds]
caseyowo has quit [Ping timeout: 260 seconds]
_cosmonaut_ has quit [Ping timeout: 248 seconds]
epony has quit [Read error: Connection reset by peer]
knobo has quit [Ping timeout: 250 seconds]
damke has joined #lisp
damke_ has quit [Ping timeout: 240 seconds]
varjag has joined #lisp
papachan has quit [Quit: WeeChat 0.4.2]
Karl_Dscc has joined #lisp
caseyowo has joined #lisp
dcluna has quit [Ping timeout: 240 seconds]
dcluna has joined #lisp
<didi> To change/add alist key/values I use (union (list cons) alist :key 'car :test my-key-test). Is there a common name for this form or a form that doesn't use (list cons)?
<Bike> you should just put new conses in front, probably. assoc has to go left to right.
<Bike> do you have to do it non destructively?
<didi> Bike: Hum. I think "yes", but what if I didn't? alexandria's (setf (assoc ...))?
<Josh_2> should I still use the naming convention of adding a p to the end of my fun name if it returns a list or nil?
<Josh_2> It will be used like a predicate
fikka has joined #lisp
Karl_Dscc has quit [Remote host closed the connection]
<Bike> didi: setf assoc-value in alexandria is what i was thinking of, yeah.
<Bike> Josh_2: seems fine. the standard has digit-char-p which returns a useful value and not just a boolean
<didi> Bike: Thank you.
<sjl> digit-char-p is the function I always forget exists, specifically because its name ends in -p
papachan has joined #lisp
Denommus has joined #lisp
epony has joined #lisp
<Bike> if it returns a list but you don't use that fact it's certainly fine
<Josh_2> Thanks Bike
<sjl> make sure the list that it returns is never nil
xrash has quit [Ping timeout: 248 seconds]
Tobbi has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xrash has joined #lisp
FreeBirdLjj has quit [Remote host closed the connection]
mson has joined #lisp
hhdave has quit [Ping timeout: 258 seconds]
zaquest has quit [Quit: Leaving]
Tobbi has joined #lisp
<Xach> dim: took a peek at the log, but i've never seen anything like that. that is normally the point at which sbcl exits.
<Xach> oh, hmm. i see more.
<Xach> dim: i'm really curious to know more about the systems.cdb-tmp thing. it seems like a possible race between two quicklisp activities in parallel
<Xach> the sort of thing that would happen with two independent processes or two threads trying to build the systems cache at once.
attila_lendvai has joined #lisp
rgrau has joined #lisp
<pjb> didi: (setf alist (acons k v alist))
m00natic has quit [Remote host closed the connection]
<pjb> or (push (cons k v) alist)
<pjb> of course, in general it's combined with a binding, so you only have (let ((alist (acons k v alist))) …)
<dim> Xach: yeah it looked foreign to me too, hence asking your help
<Xach> dim: if it's reproducible, a backtrace could help track down what's up.
<Xach> dim: if my guess about a race is right, though, it possibly won't be reproducible.
<Xach> dim: i wonder about maybe make -j parallelism somewhere?
<dim> do you want to ask on the issue at github, or should I proxy your questions? (happy to if you prefer)
<didi> pjb: Thanks. I don't think comfortable mutating this particular data structure tho. Also, it will later be used to write a particular format to disc and the function don't keep track of already written key to disc, so there will be duplicates.
<Xach> dim: proxy svp
<didi> s/think/feel
dra has joined #lisp
<pjb> didi: acons and push doesn't mutate anything!
EvW has quit [Quit: EvW]
<scymtym> Xach: i think that is likely, looking at the rest of the output. for example, the initial git clone operations seem interleaved as well. maybe the reporter has something in their environment that enables make parallelization by default
<didi> pjb: True.
Tobbi has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Xach> dim: scymtym is more observant than i!
flak has joined #lisp
dra has quit [Quit: Leaving]
<dim> thanks scymtym and Xach, answering to that effect then
<dim> I totally missed that :/
shka has joined #lisp
rippa has quit [Ping timeout: 248 seconds]
<shka> good evening
<Josh_2> hey slime just had a heart attack
dcluna has quit [Ping timeout: 250 seconds]
<Josh_2> I kept getting an error about a thread lockout
asarch has joined #lisp
dcluna has joined #lisp
rgrau has quit [Ping timeout: 268 seconds]
fikka has quit [Ping timeout: 240 seconds]
asarch has quit [Client Quit]
caseyowo has quit [Ping timeout: 240 seconds]
fikka has joined #lisp
<Shinmera> sjl: CoreAudio drain now finally works.
<sjl> nice
<Shinmera> Harmony now has native backends for all three major OSs
<Shinmera> Unsurprisingly, OS X and Windows were the worst to work with.
Amplituhedron has joined #lisp
caseyowo has joined #lisp
vlatkoB has quit [Remote host closed the connection]
papachan has quit [Quit: WeeChat 0.4.2]
vlatkoB has joined #lisp
<pjb> Impedence mismatches…
<Shinmera> More like undocumented mess for one, and overly involved and complicated for the other.
gendl has quit []
caseyowo has quit [Ping timeout: 240 seconds]
gendl has joined #lisp
raynold has joined #lisp
fortitude has joined #lisp
aeth_ has joined #lisp
kmb has joined #lisp
vlatkoB has quit [Read error: Connection reset by peer]
zaquest has joined #lisp
vlatkoB has joined #lisp
aeth has quit [Ping timeout: 240 seconds]
zaquest has quit [Remote host closed the connection]
EvW1 has joined #lisp
georgiy has joined #lisp
Fare has joined #lisp
pseudonymous has joined #lisp
aeth_ is now known as aeth
Rawriful has joined #lisp
<Fare> Hi
neoncontrails has joined #lisp
<Fare> What's the best library to read and write binary data off/on a byte stream?
<Shinmera> fast-io is pretty nice.
<Shinmera> It doesn't do stuff like letting you declare container layouts, but it gives you a fast, low-level mechanism to read binary data.
neoncontrails has quit [Remote host closed the connection]
skali has quit [Ping timeout: 240 seconds]
skali has joined #lisp
neoncontrails has joined #lisp
neoncontrails has quit [Remote host closed the connection]
neoncontrails has joined #lisp
<Shinmera> Speaking of that, do we have a byte-wise UTF8 decoder? Babel requires you to read the entire string into a byte buffer first.
<Shinmera> Being able to decode directly to a string would be nice.
skali has quit [Ping timeout: 248 seconds]
<Bike> how would you do that efficiently? read into a shorter byte buffer, and if you end halfway through a codepoint get the next buffer a bit earlier?
damke_ has joined #lisp
<Shinmera> It would have to track bytes until it has a complete codepoint, yeah.
<easye> Sound like a job for continuations...
<eudoxia> mite b cool to try and port this to fast CL: http://nullprogram.com/blog/2017/10/06/
<Shinmera> Sounds like a job you can do perfectly fine without continuations to me
damke has quit [Ping timeout: 240 seconds]
<easye> The branchless decoder is neat, I must admint.
<easye> s/admint/admit/
<Fare> yeah, I remember that very utf8 issue. Ugh.
<Fare> I'm happy to be using Gerbil now, with both continuations and lightweight threads.
<vutral> p
<Fare> I was trying to do incremental parsing of data from hundreds / thousands of clients using utf8 character strings in CL... not as nice as I wanted.
<Fare> I had retrofitted lightweight threads on top of CL using arnesi's call/cc implementation... but if the I/O primitives of the platform are supposed to block a heavy-weight thread, you lose.
fiveop has joined #lisp
<Fare> and doing utf8 input could block waiting for the next packet, so had to be specifically avoided.
<didi> What is a lightweight thread?
<Fare> a thread implemented on top of call/cc
<Fare> so it carries very little extra state.
<didi> Is it preemptive? Is there a timer?
neoncontrails has quit [Remote host closed the connection]
<Fare> they can be preemptive, but only with compiler support
<didi> The running thread has to explicitly release control?
neoncontrails has joined #lisp
<phoe> I guess so, they need to return their continuation after all if they're call/cc-based
<didi> I see.
<shka> is there anything like cl-cuda but for opencl instead?
Fare has quit [Remote host closed the connection]
<Shinmera> if I remember correctly no, but you can use OpenGL's compute shaders if what you really want is a portable GPU compute engine.
dieggsy has joined #lisp
<shka> i see, thank you
nullniverse has joined #lisp
Ober has joined #lisp
LocaMocha has quit [Ping timeout: 248 seconds]
takitus has joined #lisp
turkja has quit [Read error: Connection reset by peer]
dieggsy has quit [Remote host closed the connection]
christoph_debian has quit [Ping timeout: 240 seconds]
saunahead has joined #lisp
<saunahead> please check out wirktech.com - and contribute with your talent.
<Ober> or not
christoph_debian has joined #lisp
caseyowo has joined #lisp
vlatkoB has quit [Remote host closed the connection]
epony has quit [Read error: Connection reset by peer]
thebardian has joined #lisp
epony has joined #lisp
<jackdaniel> not necessarily, you may have a scheduler which interrupts the green thread with a signal after time slice (if it doesn't yield)
<jackdaniel> funnily enough, I'm working on that right now
<jackdaniel> fwiw arnesi's call/cc implementation is more emulation than the real thing
Denommus has quit [Quit: going home]
EvW1 has quit [Ping timeout: 246 seconds]
EvW has joined #lisp
eudoxia has quit [Quit: Leaving]
thebardian has quit [Remote host closed the connection]
dieggsy has joined #lisp
mson has quit [Quit: Connection closed for inactivity]
saunahead has left #lisp [#lisp]
fiveop has quit []
dyelar has quit [Quit: Leaving.]
zaquest has joined #lisp
k-stz has joined #lisp
scymtym has quit [Ping timeout: 240 seconds]
tumdum_ has joined #lisp
tumdum has quit [Ping timeout: 260 seconds]
okflo has quit [Remote host closed the connection]
dyelar has joined #lisp
WorldControl has joined #lisp
schoppenhauer has joined #lisp
nirved has quit [Quit: Leaving]
flak has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Achylles has quit [Ping timeout: 248 seconds]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #lisp
neoncontrails has quit []
neoncontrails has joined #lisp
<Guest44476> using Silence. not 'on' Signal anymore.
dyelar has quit [Quit: Leaving.]
wooden has joined #lisp
damke has joined #lisp
damke_ has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 268 seconds]
varjag has quit [Ping timeout: 240 seconds]
Jesin has quit [Quit: Leaving]
varjag has joined #lisp
varjag has quit [Remote host closed the connection]
dieggsy has quit [Remote host closed the connection]
klltkr has joined #lisp
jmercouris has quit [Remote host closed the connection]
jmercouris has joined #lisp
jasom has quit [Ping timeout: 255 seconds]
jasom has joined #lisp
caseyowo has quit [Ping timeout: 248 seconds]
fikka has quit [Ping timeout: 248 seconds]
pierpa has joined #lisp
tumdum_ has quit [Ping timeout: 240 seconds]
didi has quit [Remote host closed the connection]
JenElizabeth has quit [Remote host closed the connection]
JenElizabeth has joined #lisp
knobo has joined #lisp
alms_clozure_ has joined #lisp
splittist_ has joined #lisp
rumbler31 has quit [Remote host closed the connection]
mjl_ has joined #lisp
jeremyheiler_ has joined #lisp
rann_ has joined #lisp
Josh_2 has quit [Ping timeout: 268 seconds]
MightyJoe has joined #lisp
ineiros_ has joined #lisp
add^__ has joined #lisp
Kaisyu has quit [Quit: Connection closed for inactivity]
zotan has quit [Ping timeout: 255 seconds]
ggherdov has quit [Ping timeout: 255 seconds]
les has quit [Ping timeout: 255 seconds]
jeremyheiler has quit [Ping timeout: 255 seconds]
rann has quit [Ping timeout: 255 seconds]
alphor has quit [Ping timeout: 255 seconds]
alms_clozure has quit [Ping timeout: 255 seconds]
Sovereign_Bleak has quit [Ping timeout: 255 seconds]
mjl has quit [Ping timeout: 255 seconds]
ineiros has quit [Ping timeout: 255 seconds]
felideon has quit [Ping timeout: 255 seconds]
cyraxjoe has quit [Ping timeout: 255 seconds]
splittist has quit [Ping timeout: 255 seconds]
johs has quit [Ping timeout: 255 seconds]
add^_ has quit [Ping timeout: 255 seconds]
zotan_ has joined #lisp
rann_ is now known as rann
alms_clozure_ is now known as alms_clozure
mjl_ is now known as mjl
jeremyheiler_ is now known as jeremyheiler
splittist_ is now known as splittist
felideon has joined #lisp
zotan_ is now known as zotan
alphor has joined #lisp
les has joined #lisp
pareidolia has quit [Ping timeout: 260 seconds]
<Shinmera> sjl: (harmony-simple:play 'harmony:buffer-source :sfx :buffers (harmony-simple:decode #p"some.wav"))
pareidolia has joined #lisp
Murii has quit [Remote host closed the connection]
k-stz has quit [Remote host closed the connection]
hiq[m] has quit [Ping timeout: 240 seconds]
equalunique[m] has quit [Ping timeout: 240 seconds]
Guest44476 has quit [Ping timeout: 240 seconds]
Jach[m] has quit [Ping timeout: 240 seconds]
CharlieBrown has quit [Ping timeout: 240 seconds]
dahs81[m] has quit [Ping timeout: 250 seconds]
RichardPaulBck[m has quit [Ping timeout: 250 seconds]
l04m33[m] has quit [Ping timeout: 246 seconds]
dirb has quit [Ping timeout: 240 seconds]
happy_gnu[m] has quit [Ping timeout: 240 seconds]
trigt[m] has quit [Ping timeout: 240 seconds]
akr has quit [Ping timeout: 240 seconds]
Guest92038 has quit [Ping timeout: 252 seconds]
hdurer[m] has quit [Ping timeout: 252 seconds]
ArthurAGleckler[ has quit [Ping timeout: 258 seconds]
thorondor[m] has quit [Ping timeout: 250 seconds]
astronavt[m] has quit [Ping timeout: 264 seconds]
fikka has joined #lisp
angavrilov has quit [Remote host closed the connection]
<phoe> (trivial-indent:define-indentation uiop:define-package (4 &lambda &body))
Posterdati has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<phoe> Despite this, the form's first two arguments are still indented by 4.
<phoe> I mean, uh
<phoe> (trivial-indent:define-indentation uiop:define-package (4 &body))
<phoe> I cannot see any changes in indentation after evaluating this. How should I proceed?
<Shinmera> When you try to indent, does the minibuffer tell you anything?
Posterdati has joined #lisp
<phoe> (define-package package &rest clauses)
<Shinmera> Also, check that you have slime-indentation in your setup.
Guest65632 has joined #lisp
<phoe> one second
<phoe> I use spacemacs. Hm.
<phoe> There's no explicit slime-indentation anywhere.
<phoe> Let me look in spacemacs.
<Shinmera> In your slime-setup
<Shinmera> It's a slime contrib
<phoe> ELISP> slime-contribs
<phoe> (slime-company slime-fancy slime-indentation slime-sbcl-exts slime-scratch)
<phoe> I think I have it then
Devon has quit [Ping timeout: 248 seconds]
<phoe> ooh
<phoe> a manual slime-update-indentation fixed this
<Shinmera> The indentation works as expected for me
<Shinmera> Without having to update anything
<phoe> weird
<phoe> slime does not autoupdate indentation then
<Shinmera> Well it sure does for me
xaotuk has joined #lisp
georgiy has quit [Ping timeout: 260 seconds]
Tobbi has joined #lisp
<pseudonymous> Have anyone used ningle and had issues reloading (slime-compile-and-load-file) where requirements functions don't seem to ever get redefined ?
Jesin has joined #lisp
happy_gnu[m] has joined #lisp
akr has joined #lisp
Jach[m] has joined #lisp
dahs81[m] has joined #lisp
CharlieBrown has joined #lisp
RichardPaulBck[m has joined #lisp
dirb has joined #lisp
equalunique[m] has joined #lisp
Guest34211 has joined #lisp
Sovereign_Bleak has joined #lisp
astronavt[m] has joined #lisp
thorondor[m] has joined #lisp
hiq[m] has joined #lisp
hdurer[m] has joined #lisp
l04m33[m] has joined #lisp
trigt[m] has joined #lisp
ArthurAGleckler[ has joined #lisp
_rumbler31 has quit [Ping timeout: 240 seconds]
Ven has joined #lisp
Ven is now known as Guest78171
WorldControl has quit [Quit: Ex Chat]
fikka has quit [Ping timeout: 248 seconds]
bkst_ has quit [Quit: leaving]
bkst has joined #lisp
Rawriful has quit [Quit: WeeChat 1.4]
LiamH has quit [Quit: Leaving.]
xaotuk has quit [Ping timeout: 264 seconds]
Amplituhedron has quit [Ping timeout: 240 seconds]
Bike has quit [Ping timeout: 240 seconds]
hexfive has quit [Quit: WeeChat 1.9.1]
Karl_Dscc has joined #lisp
hhdave has joined #lisp
scymtym has joined #lisp
fikka has joined #lisp
moei has quit [Ping timeout: 248 seconds]
fikka has quit [Ping timeout: 240 seconds]
georgiy has joined #lisp
Guest78171 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
moei has joined #lisp
Karl_Dscc has quit [Remote host closed the connection]
<raynold> ahh it's a wonderful day
fikka has joined #lisp
<Shinmera> Good night!
klltkr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fikka has quit [Ping timeout: 240 seconds]
Achylles has joined #lisp
thinkpad has joined #lisp
fikka has joined #lisp
neoncontrails has quit [Remote host closed the connection]
hhdave has quit [Quit: hhdave]
fikka has quit [Ping timeout: 240 seconds]
<emaczen> How can I get a finer time precision than seconds i.e. #'get-universal-time won't give me milliseconds as far as I know.
Bike has joined #lisp
fikka has joined #lisp
<phoe> emaczen: implementation-dependent
<phoe> generally try get-internal-run-time
Tobbi has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<phoe> but local-time has microsecond precision under sbcl
georgiy has quit [Ping timeout: 240 seconds]
<phoe> and ccl, it seems
vzerda has joined #lisp
pseudonymous has quit [Ping timeout: 246 seconds]
<pjb> (list (get-universal-time) (com.informatimago.common-lisp.cesarum.time:GET-REAL-TIME)) #| --> (3719604099 3.719604098932612D+9) |#
fikka has quit [Ping timeout: 260 seconds]
<sjl> Shinmera: nice!
<sjl> Shinmera: I'll poke at it soon. Got a party tonight and stream tomorrow.
fikka has joined #lisp
caseyowo has joined #lisp
Kaisyu has joined #lisp
BigSafari has joined #lisp
wxie has joined #lisp
<BigSafari> Looking for a way to compare items of two lists with each other and do a AND on all the comparison results.
fikka has quit [Ping timeout: 248 seconds]
<jmercouris> BigSafari: http://cl-cookbook.sourceforge.net/loop.html one of the first examples shows going through two lists
<jmercouris> BigSafari: Starts with the line: "Iterate through two lists in parallel"
<BigSafari> ah, thx
rumbler31 has joined #lisp
sjl has quit [Ping timeout: 248 seconds]
<BigSafari> and if i collect a boolean value, how should i apply "and" to reduct it to one value?
<pjb> BigSafari: (every (function equal) list-1 list-2)
rumbler31 has quit [Ping timeout: 240 seconds]
mishoo_ has quit [Ping timeout: 240 seconds]
BigSafari has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
neoncontrails has joined #lisp
johs has joined #lisp
ggherdov has joined #lisp
<jmercouris> minion: memo for BigSafari: Not sure what you mean about applying "and" to reduce it to one value, if you mean one boolean value, you can use the (and) function (and value1 value2)
<minion> Remembered. I'll tell BigSafari when he/she/it next speaks.
rumbler31 has joined #lisp
<jmercouris> Who programmed the minion?
<pjb> minion: who programmed you?
<minion> superman
<pjb> minion: where are your sources?
<minion> behind you!
<jmercouris> Is it possible to change he/she/it to just say "they" speak, it feels like it would be far simpler
<jmercouris> Lol, very helpful responses from the minion
<jmercouris> Goodnight everyone
kmb has quit [Quit: kmb]
wxie has quit [Quit: Bye.]
rumbler31 has quit [Ping timeout: 248 seconds]
jmercouris has quit [Ping timeout: 248 seconds]
georgiy has joined #lisp