freenode/#lisp - IRC Chatlog
Search
1:59:18
mrcode_
does anyone know how to solve a 'warning unused variable autotype_tmp' error from cffi groveller ? seems to prevent loading of a package
2:08:33
iarebatm`
Can anyone recommend a library for parsing arbitrary date/time strings into some sort of standard datetime representation?
2:09:48
iarebatm`
simple-date-time seems to recommend local-time, but local-time doesn't parse formats such as "01/01/2019". net-telent-date is marked as deprecated...
2:10:22
iarebatm`
what's the right thing to do in this case, parse out the date parts and construct my own local-time manually?
2:12:15
pjb
(encode-universal-time (parse-integer string :start 6) (parse-integer string :start 3 :junk-allowed) (parse-integer string :start 0 :junk-allowed))
2:12:41
pjb
(encode-universal-time 0 0 0 (parse-integer string :start 0 :junk-allowed) (parse-integer string :start 3 :junk-allowed) (parse-integer string :start 6))
2:13:50
pjb
or: (apply (function encode-universal-time) 0 0 0 (mapcar (function parse-integer) (split-sequence #\/ string)))
3:52:38
no-defun-allowed
beach: I should thank you for bringing up the mode though, now I can write `((lambda (x) x) 2) evto 2` and feel slightly less icky by using Unicode arrows.
3:54:24
no-defun-allowed
`((lambda (x) x) 2) ↦ 2` Emacs has a weird pause when I load any unicode characters though, possibly because it has to load a fallback font since CMU Typewriter Text doesn't have that character.
3:55:13
beach
I can't imagine having to type things like "first-class global environments", "Common Lisp HyperSpec", "(admittedly small) family", etc. whenever I want to mention those concepts. :)
3:58:19
beach
... and since I am apparently turning dyslexic, I would make typos trying to type those phrases each time, thereby slowing me down even more.
3:59:08
no-defun-allowed
Hm, macOS has an abbrev expander but I always thought it was annoying (since it is bound to autocorrection), which would be handy since Emacs isn't my matrix client.
4:00:44
beach
Now, what I would really like is to be able to use the same abbrev expander everywhere, in the editor, on the command line, etc.
4:01:10
no-defun-allowed
Excellent! The already half-broken input box on riot.im also breaks macOS's autocorrect too.
4:02:40
no-defun-allowed
Maybe matrix-client.el is calling again. Anyways, abbrev is very neat, thanks for mentioning it, beach.
4:47:23
pjb
beach: the problem, is to remember the abbreviations you used for those in-extenso expressions!
5:17:43
pjb
But from what I see how it behaves on smartphones, it's unsatisfactory. Perhaps with a neuralink?
5:20:44
no-defun-allowed
And a neuralink is probably another 10 years away, given the dumb hype you get from Elon, and would cost more than your computer.
7:07:05
JohnMS_WORK
I'm unable to find any examples of sharing C++ classes with ECL. Does anyone else know of any?
8:37:22
MrMc
How do I create a vector of complex numbers? I am doing the following in SBCL but get a warning (MAKE-ARRAY 1024 :ELEMENT-TYPE 'COMPLEX :INITIAL-ELEMENT (COMPLEX 0 0) :FILL-POINTER 0)
8:40:45
jackdaniel
if you put (complex 0.0 0.0) as an initial element there will be no warning too, but if you decide on complex floats then specyfing it as element type may help the compiler
8:43:17
MrMc
So my definition should be (MAKE-ARRAY 1024 :ELEMENT-TYPE '(COMPLEX FLOAT) :INITIAL-ELEMENT (COMPLEX 0.0 0.0) :FILL-POINTER 0)
8:48:56
jackdaniel
I think you gone a little overboard with this paste ,) I'm glad I could be of use
9:24:51
gjvc
* (MAKE-ARRAY 1024 :ELEMENT-TYPE '(COMPLEX FLOAT) :INITIAL-ELEMENT (COMPLEX 0.0 0.0) :FILL-POINTER 0)
9:25:53
no-defun-allowed
yeah, if the fill pointer is at 0, then it's assumed you've only populated up to 0 and the printer will print only up to there
11:37:09
MrMc
I am trying to use (bordeaux-fft:fft source) and get an error: debugger invoked on a TYPE-ERROR in thread The value #(#C(-1197.0d0 2047.0d0) .... ) is not of type (SIMPLE-ARRAY (COMPLEX DOUBLE-FLOAT) (*))
11:39:09
no-defun-allowed
You might get some slack from bordeaux-fft using bordeaux-fft:sfft, but otherwise it expects an array with :element-type (complex double-float).
11:40:36
MrMc
The array I am passing to the function is created as folows (make-array samples-to-allocate :element-type '(complex double-float) :initial-element (complex 0.0d0 0.0d0) :fill-pointer 0)
11:41:45
no-defun-allowed
Are you sure you need it? It looks you likely know how many samples you are going to transform.
12:02:12
MrMc
no-defun-allowed:removing the fill pointer did not resolve my problem but bordeaux-fft:sfft works
12:26:11
beach
jackdaniel has done some work on a CLIM-based documentation system. Either way, something like that (Concordia, was it?) would have to be defined to be used in something like CLIM, and McCLIM is quite usable now.
12:29:56
beach
an inspector (which we also have) that can do much more than the SLIME inspector, ...
12:30:03
beach
an editor (that we don't have, but it is being worked on) that can do much more than Emacs can for Common Lisp code, ...
12:30:07
beach
and a debugger (that we don't have, and for which we only have some ideas) that would be worthy of the name, unlike what we now have.
12:32:24
beach
ACTION is assuming, perhaps incorrectly, that "gd" means "good day" or something like that.
12:36:34
beach
LdBeth: There are two main ideas with Clordane. One is that I want a debugger to much more than something that lets me examine a backtrace when things go wrong. I also want to be able to set breakpoints, including in some system code. The other is that I want it to be possible for one thread to debug the code in another (or several other) threads in the same image.
12:54:39
beach
Oh, and the IDE should obviously contain ways of accessing the documentation in various ways: choosing from menus, clicking on code parts, etc.
12:58:36
beach
LdBeth: The thing about a Zmacs-like is that it is not that simple to do. For example, heisig is working on Trucler that provides incremental lexical environments. Those are needed for a sophisticated analysis of the code. And then it needs support from a compiler too, because only a compiler can determine the role of each expression in the code.
12:59:23
beach
LdBeth: And scymtym is maintaining Eclector, which is going to be used to parse the code in the buffer.
13:00:12
beach
Then that code will be "compiled" using Trucler incremental environments, either by a native compiler or by Cleavir.
13:03:06
beach
Then, errors and warnings signaled by the reader and the compiler need to be handled and presented to the user as appropriate feedback.
13:04:41
beach
LdBeth: As you can see, there are a lot of mutual dependencies here, and all the modules are being worked on. But getting them all done and working together is going to take some more time.
13:19:00
LdBeth
beach: yes. I’m planning on a tool help deriving code from specification and documents and keep docs updated with them. All these seem can be fit into my design, but I should keep up with the progress now
13:30:00
beach
scymtym: Speaking of which, did you ever get around to extracting that new function in Eclector, the one that reads either something that can be returned or something that is skipped?
13:31:56
beach
scymtym: As it turns out, in Second Climacs I couldn't find a suitable way of customizing the SICL reader to do what I need, so I copied the main reader function and modified it. That solution is clearly undesirable, so I would like to rip out that code and replace it with Eclector at some point.