Search
Friday, 1st of March 2019, 2:55:05 UTC
2:55:20
verisimilitude
Well, you can displaye, I suppose.
3:01:08
verisimilitude
Displacement doesn't work as nicely as it could with n-dimensional arrays, though.
3:14:22
aeth
verisimilitude: start/end works well... it's just 1D
3:43:50
verisimilitude
Yes, it's just one-dimensional, aeth.
4:04:00
beach
Good morning everyone!
5:07:28
aeth
verisimilitude: Yes, so I think an extension of that would have worked well for arrays
5:09:37
aeth
for 2D (probably the most common after 1D), just selecting a row and a start and an end works for most cases
5:14:37
aeth
or more generally maybe lists for start/end, but that could cons
6:43:18
karlosz
its wrong to assume that array elements are initialized to 0 without specfiying initial element or initial contents right?
6:45:39
specbot
http://www.lispworks.com/reference/HyperSpec/Body/f_mk_ar.htm
6:45:41
beach
"If initial-element is not supplied, the consequences of later reading an uninitialized element of new-array are undefined unless either initial-contents is supplied or displaced-to is non-nil."
6:46:12
pillton
ACTION apologises to beach.
6:46:22
karlosz
right, i was beginning to self doubt myself because the sbcl internals make that assumption somewhere in make-hash-table
6:47:39
pillton
I was about to paste that.
6:48:40
karlosz
er, i just meant in the implementation of hash tables for sbcl
6:49:04
karlosz
an array is created but implicitly assumed to be initialized to zero which was causing problems for me
6:49:21
pillton
Your question pertained to make-array, not make-hash-table.
6:50:39
beach
karlosz: The implementation can obviously rely on its own default.
6:52:42
karlosz
that's true... well, that complicates things a little
7:05:00
verisimilitude
It's just poor practice to do so, yes.
8:12:32
no-defun-allowed
Morning splittist
12:20:26
Lord_of_Life_
** NICK Lord_of_Life
Friday, 1st of March 2019, 14:55:05 UTC