Search
Monday, 21st of August 2017, 22:42:42 UTC
22:46:29
malice
axion: actually I'm doing it so that I know the expected type
22:49:55
slyrus
is there a dedicated channel to lisp web stuff, particularly caveman/clack/ningle/lack/etc...?
0:32:03
QualityAddict
** NICK Guest76076
1:36:03
lerax
Pipelines in Python: https://gist.github.com/ryukinix/1e99bac3d49f81f006c620d102675e16 :v
2:52:43
eeyyy
Hey i just started learning this a week ago and i put in the code (defmacro unless (condition &rest body) '(if (not ,condition) (progn ,@body))) and got an error. Anyboody know what i did wrong?
2:53:18
axion
You didn't use a quasiquote for starters
2:58:31
Bike
you'll probably get a complaint for trying to redefine the CL macro "unless", so give it a different name.
3:21:56
emaczen
If I run (sb-thread:make-thread ...) in a loop, will the threads be running concurrently?
3:23:50
Bike
if they dont end too soon, sure
3:24:16
emaczen
Bike: Yep, they are taking some time...
3:35:16
loke
emaczen: Just don't start too many, or you might cause the system to grind to a halt.
3:37:00
emaczen
loke: is 20 some too many?
3:43:19
loke
emaczen: It also depends on what they do. If each thread is using 100% CPU, then obviously there is little benefit of starting more than the number of threads in the CPU (where by "cpu thread" i refer to "virtual" cpu's, = cores*hyperthread)
3:43:54
loke
Once you start nmore than, say, 20Ă—the number of cores in the machine, you'll start to feel it.
3:44:16
loke
If, on the other hand, the threads are mostly idle, you can easily start thousands without any problems.
3:44:59
emaczen
loke: I think it is stalling pretty bad...
3:45:19
emaczen
loke: is there a lisp way to check the number of cores?
3:45:21
loke
emaczen: "htop" is a useful command to monitor
3:45:33
loke
emaczen: No. but use htop in a terminal.
3:46:24
emaczen
is that the same thing is top?
3:46:32
loke
It's a better version of top
3:46:33
emaczen
eshell won't let me run htop
3:46:56
malice
nproc tells you how many cores you have
3:47:07
loke
emaczen: Um... no. I doubt you'll be able to run any program in eshell that uses terminal controls.
3:47:18
loke
Just open a normal terminal. You don't have to do _everything_ in emacs ;-)
3:47:23
malice
and should be bundled with your OS. your OS might not provide htop out of the box
3:47:32
malice
but you might want to install it, it's a better top.
3:48:21
loke
malice: OK, OK... M-x terminal then :-)
3:48:49
loke
I seem to recall there is an emacs package that does something similar to top, in a buffer?
3:49:24
loke
https://www.emacswiki.org/emacs/TopMode
3:49:38
malice
I often press that by accident
3:49:39
emaczen
ok I am installing htop
3:49:50
loke
htop is pretty awesome
3:50:01
malice
emaczen: if you just want to check how many cores you have though, nproc is more than enough
3:50:32
loke
cat /proc/cpuinfo | grep processor | wc -l
3:51:14
loke
That saiid, I figured that emaczen also wanted to monitor CPU load during his threading examples.
3:52:55
malice
that might be useful
3:53:08
malice
also, if you have some simple task that you just want to parallelize, GNU parallel is also a good choice
4:15:11
beach
Good morning everyone!
5:10:35
PuercoPop
has someone used https://common-lisp.net/project/clonsigna/ ?
5:31:02
shka_
there are download stats
5:31:03
shka_
http://blog.quicklisp.org/2017/08/july-2017-quicklisp-download-stats.html
5:31:16
shka_
i'm surprised to not see regexps here!
5:32:29
shka_
also, numbers seems to be growing
5:33:52
malice
shka_: surprised to not see regexps in download stats?
5:34:20
shka_
it is not top downloaded library as it seems
5:35:05
malice
I'm curious whether the stats include deps or not.
5:35:13
aeth
shka_: alexandria is always going to be the top downloaded library because of holes in the standard.
5:35:55
aeth
Most of the top downloaded projects are things that are core in many modern languages.
5:36:28
shka_
aeth: i don't care :P
5:36:50
aeth
Not everyone works with text, almost everyone works with something that alexandria covers because it's more general.
6:42:16
fiddlerwoaroof
PuercoPop: I have
6:42:35
fiddlerwoaroof
It works pretty well, IIRC, but the docs aren't always accurate
6:44:13
pillton
aeth: Stop confusing language and library.
8:07:37
shka
malice: i don't use any markup other than lisp itself
Tuesday, 22nd of August 2017, 10:42:42 UTC