freenode/lisp - IRC Chatlog
Search
9:54:18
phoe
White_Flame: "/pub/garbage on cs.utexas.edu holds papers about garbage collection, persistence, and memory hierarchy implementation."
10:06:25
no-defun-allowed
If they interleave that with actually useful work (provided they don't study memory management for work), it might be incremental.
11:21:51
phoe
Is there a portability library that defines a common condition type for errors signaled by no-applicable-method?
11:22:46
phoe
or should I write my own method for #'no-applicable-method and signal my own error if I want it?
12:47:25
dokma
How do I alter (add-hook 'cuda-mode-hook 'linum-mode) to set linum-mode to relative ??
12:55:35
splittist
dokma: (serapeum:add-hook hook fun &key append) . You can see the implementation here: https://github.com/ruricolist/serapeum/blob/64f0c4a161bbbda7c275012ca1415b4293b9e169/hooks.lisp#L6 . Or it could be - and has been - implemented in CL many different ways.
12:58:59
scymtym
dokma: common lisp has the builtin macroexpand hook which works differently compared to emacs' concept of hooks. there are libraries for hooks in common lisp as pointed out by splittist. the emacs lisp code you are looking for might be (add-hook 'cuda-mode-hook (lambda () (display-line-numbers-mode 1) (setf display-line-numbers 'relative)))
14:27:15
phoe
There was a slime command that evaluated an expression and inserted the eval result next to it. What was it?
15:29:20
sabrac
why does ironclad:prng-random-data open /dev/urandom and never provide a way to close it? Or am I missing something?
15:38:10
_death
a common criticism of /dev/urandom is that it can become unavailable when there are no file descriptors available
15:38:33
sabrac
stress testing an update to postmodern triggered a "too many open files to /dev/urandom" error. And it became unavailable as you just said.
15:41:05
sabrac
Yes. If I do not, I trigger another error claiming a private thread violation. Still trying to figure that one out.
15:41:24
_death
indeed the code in that file looks a bit strange, since it creates one for each thread :/
16:00:28
_death
(I believe it's safe for multiple threads to read from the same urandom fd.. see also https://stackoverflow.com/questions/12245054/linux-3-5-safe-to-read2-from-same-fd-open2-dev-urandom-from-multiple )
16:16:22
_death
closing the file descriptor means you may need to reopen urandom, leading to a greater chance of failure
16:29:15
Shinmera
I think in my web framework I have an explicit workaround where I bind each thread to a new rng
16:42:58
_death
I guess it could fail because of read-sequence (and not posix read).. maybe specifying that the stream is not buffered would make sense on some implementations, or maybe straight posix calls is a better alternative.. choices
16:51:41
_death
seems dl.acm.org removed my IP ban ;).. I'm gonna create a list of the stuff I wanna download and slowleech it
17:36:11
jmercouris
however, can I use Lisp to somehow introspect what the keycode actually is as a character when printed on screen?
17:37:14
jmercouris
I believe I would need to know what kind of keyboard the user has, as well as what operating system they are on
17:42:28
mercourisj
I know this is a Lisp channel, but why do other languages use such varied syntax for function calls and data passing
17:42:52
mercourisj
I'm just thinking for example about the << operator in C++, and wondering why you would possibly need it
17:43:34
mercourisj
BTW, thanks for the feedback about chars, I decided to do it in C++, but my message did not go through about that
17:45:59
jmercouris
I'm just struggling to imagine a justification for this, I always accepted it when I first learned the languages, but now I am wondering why anyone would do that
17:47:45
jmercouris
I'm looking for some overarching reasoning behind the justification of different calling conventions in languages
17:48:19
jackdaniel
homoiconity is great and all, but it is not that elaborate syntax is without merit - good syntactic sugar gives your code a well justified mold
17:49:29
jackdaniel
"ordinary" function calling notation is directly inherited from standard math notation
17:50:11
jmercouris
and why did they think it was a wise idea to combine so many notations and patterns?
17:52:33
_death
nobody decided the syntax of math, people came up with their own notations and some prevailed over others, sometimes for good reasons, other times not
18:06:19
pjb
jmercouris: you can use com.informatimago.common-lisp.cesarum.ascii:ascii-code and code-ascii.
18:07:57
pjb
and (com.informatimago.common-lisp.cesarum.character:standard-character-is-ascii-coded-p) #| --> t |#
21:28:11
pjb
lxbarbosa: and of course, there are a ton of esoteric programming languages. Piet, BrainFuck, etc.
21:29:02
pjb
lxbarbosa: even Life. Have a look at life in life: https://www.youtube.com/watch?v=xP5-iIeKXE8