freenode/#lisp - IRC Chatlog
Search
6:35:37
mfiano
Hello. Can someone help me out with a function to generate the following? http://paste.lisp.org/display/359377
6:38:07
mfiano
A couple of us have been trying for 2 hours in another channel. Using shared structure is not working
6:41:09
quazimodo
is there a _very_ cheap hash function that can take a deeply nested object and return a hash with a reasonable uniqueness, but not something like md5
6:41:39
quazimodo
basically, a very fast way to say "I'm pretty sure this hash's obejct is different to that has
6:45:18
quazimodo
stream based view rendering off a single atomic state object is using functional lensing. Because of this, subcomponents on the page can't isolate vdom updates to their own 'setStates' and have to update each time _anyone_ does a setstate, because we can't be sure if they're lensed on other component's data
6:45:46
quazimodo
essentially child 1 changes title to 'Hi' and child 3 _must_ update because it's using a lens that _may_ be using child 1's title
6:48:18
quazimodo
because the lens literally takes the entire atomic state object as an argument, then picks and chooses what the child component sees as it's own private state
6:48:36
quazimodo
the child _thinks_ it has a wholey private state, but in fact that representation may bo comprised of many other components states
6:49:04
quazimodo
we either register what it listens to and do checks if those changed, or compare child's previous state to current and if no changes, don't bother emitting a view update event
6:49:16
Shinmera
Then give the lens a capability to tell you whether it cares about another object that you just updated or not.
6:56:16
shka_
mfiano: acumulate variable, not really needed in how this code works, would be more sensible with reduce instead of append/mapcar combo
7:29:10
dtornabene
in sbcl, and i'm getting an "undefined function" via the command line, in sbcl, after having loaded it via quicklisp
7:33:37
loke
secondary benefit is that it's easy to see which package a certain function belongs to.
7:34:32
loke
Most people don't, until they write their first large program and want to change the name of a package (for example), or want to identify all places where a certain package is used, etc...
7:46:13
phoe_
dtornabene: bordeaux-threads and binary-types both use BT nickname, which has last been a problem... one, or two days ago?
7:47:24
dtornabene
interestingly enough i got a problem with an auth failure so I ducked over and tried to connect to a sqlite3 db via datafly....which rec'd use-package
7:49:57
dtornabene
this is the error if anyone has any thoughts on *that* error http://paste.lisp.org/display/359385
7:55:10
dtornabene
so, I'm assuming I should put the ip addr in there then? as in, via the error 127.0.0.1:something?
7:56:12
loke
ACTION uses Kerberos autoentication so I don' thave to deal with passwords, but that takes a bit more effort (the Kerberos support was what I contributed)
7:57:06
dtornabene
i've got the user created via postgres, but I must have bungled the password somehow
7:57:49
loke
dtornabene: plain psql uses local connection, not over the network. There is a config file soemwhere you have to edit to enable network logins.
8:05:49
dtornabene
"host local not found: 3(NXDOMAIN)" after printing "local has address 198.105.254.24" "local has address 198.105.244.24"
8:06:41
loke
you should be using localhost, but you need to make sure the user exists and has a password assigned
8:23:31
dtornabene
loke: fwiw you were dead right, and I really appreciate it, somehow the pswd had gotten messed up. thanks again
8:25:35
phoe_
(loop with x = ... if (foo x) then (if (bar x) (return 1) (return 2)) else (if (baz x) (return 3) (return 4)))
9:08:46
Shinmera
Is it a new ASDF "feature" to complain with an unrecoverable error when a system tries to modify the standard readtable?
9:09:04
Shinmera
This only seems to happen if the readtable modification happens as part of a system loaded through defsystem-depends-on
9:30:21
scymtym
Shinmera: i think the error is signaled by SBCL. try (with-standard-io-syntax (set-dispatch-macro-character #\# #\z (lambda (&rest args) nil))) in the repl. maybe ASDF now restores *READTABLE* to the standard readtable before loading a system or something like that?
9:32:38
scymtym
afaik, there is this "syntax control" branch in the ASDF repository which controls the readtable more strictly. i didn't think that made it into master, though
9:32:42
jackdaniel
https://gitlab.common-lisp.net/asdf/asdf/blob/syntax-control/doc/syntax-control.md
9:36:25
Shinmera
scymtym: It seems it is signalled by SBCL, but I don't understand why it only happens with ASDF 3.3
9:37:15
Shinmera
Furthermore it only happens for defsystem-depends-on. If I first load the dependency manually it works fine.
9:38:06
scymtym
Shinmera: no idea, sorry. maybe ask fare directly or ask on asdf-devel as jackdaniel suggested
9:38:54
scymtym
beach: are funcallable instances involved? it may be the "slyrus bug" unless you already upgraded after that
9:44:52
beach
I guess it doesn't matter. I'll just download the newest version and see whether I still get those errors. If I do, it's my computer. But it occurred to me that, since no other software on my computer seems to have any problems, it might be SBCL.
9:45:13
scymtym
probably 9a20c2c0b04a4b73fd34ac81358082c796a66f68 on Sep 20 which was first included in 1.4.0
9:47:53
beach
Thank you so much! You just saved me the trouble of buying a new computer, installing all the software, etc, et.
9:51:43
scymtym
beach: your welcome. please note though, that i made sure to always say "may" or "probably" :P
9:52:32
beach
Sure. Nothing bad is going to happen to me anyway. I just installed the newest version of SBCL. I'll let you know if the problem happens again.
12:35:23
knobo
the trouble I had some days ago with slime-tramp, was because roswell uses roswell-slime-contribs, not slime-contribs..
13:14:39
jmercouris
In case anyone is wondering what the issue is, I have no idea, but using the kivy available via pip 1.91 did not work, I had to install from source
13:20:59
jmercouris
dlowe: don't worry, I'll get to lisp later today, using CFFI, :D also kind of blasphemous
14:08:56
Shinmera
https://github.com/Shinmera/3d-vectors/blob/master/3d-vectors.asd#L23 https://github.com/Shinmera/3d-vectors/blob/master/3d-vectors-test.asd#L17
14:09:54
Shinmera
Xach: Are you working on running tests automatically as part of the Quicklisp dist or something?
14:10:39
Xach
Shinmera: yes. the model I'm trying now is "run some code, and if there is an error, save and report the transcript"
14:11:01
Xach
So I'm wondering how easy it is for failing tests to signal errors, and if that results in a meaningful transcript
14:11:29
Shinmera
Depends on the testing framework, I suppose. Some of them capture all errors, others don't.
14:11:32
Xach
But the underlying mechanism is purely arbitrary code, so tests can be pretty small and arbitrary and cross-system.
14:12:17
Xach
Prompted by some recent trouble with a couple systems that compiled independently fine, but had fatal runtime problems working together.
14:15:38
Xach
The idea being that in addition to "does it compile" there would be "do all test 'scripts' run without signaling an error"
14:16:36
Xach
And with the intent to make it easy to run by anyone else, too -- not tightly integrated into the quicklisp build stuff
14:16:53
Xach
so I can meaningfully say "check out the latest X and Y and run test script Z to see the problem"
14:17:22
Shinmera
An integration test suite would definitely be a good thing to have, since that's often missing.
14:18:55
Shinmera
3d-vectors uses Parachute, which offers multiple "report types". Another one would signal errors.
14:19:30
Shinmera
Most other frameworks offer only one or the other way, with the usual tendency being towards capturing all errors and just reporting, from what I've seen.
14:20:08
Xach
Can you suggest a way to get an error if there's a test failure? It doesn't have to be pretty
14:20:43
Shinmera
(ql:quickload :3d-vectors-test) (parachute:test :3d-vectors :report 'parachute:interactive)
14:21:18
jackdaniel
asarch: no, clisp is ANSI Common Lisp, GNU Common Lisp is Common Lisp the Language 2
14:24:05
beach
asarch: Neither CLISP nor GCL are very popular choices here, so if you want help to be readily available, it is better to choose something more people use.
14:24:07
Shinmera
Xach: I really wish ASDF offered some kind of way to add options to asdf:test-system so that things like that could be configured from there.
14:25:23
Xach
Shinmera: I wonder about signaling a condition, which would have no effect by default, but for which I could add a handler. but then the question is "which condition?"
14:28:17
Xach
Heh, you could use a simple-condition and stuff arbitrary data into the format-arguments.
15:11:44
phoe_
Xach: I have one question. CL-LZMA has a very small test suite that verifies that the foreign library was imported successfully and works. Is there any article on how that test suite should be invoked?