freenode/lisp - IRC Chatlog
Search
3:45:57
kinope
I have yet to use the facilities provided by CLOS, so in the interest of growing my knowledge and also in the interest of not taking pride in being unorthodox without reason, I'm going to rewrite my closure classes as standard ones. Any performance improvements will be a bonus.
7:42:29
beach
True. But radians are not real units. It is sometimes convenient to think of them as such, but they really aren't.
7:55:39
beach
Posterdati: But if you multiply a value by 2*pi, does it change the unit? Like if you have a distance of 2km and multiply it by 2*pi, do you now have km*rad/cycle?
7:56:19
no-defun-allowed
Posterdati: Read the backlog. I did, and I got 6.283... rad/s, or 2π rad/s, or 1 cycle/s
7:58:16
Posterdati
beach: you always have a 2pi constant which is not the case, look for example at the formula for the eddy current loss there is f not omega!
8:36:44
easye
Is there a defined "rounding-mode" for internal operations in ANSI? I seeminly need to choose among <https://docs.oracle.com/javase/8/docs/api/java/math/RoundingMode.html> for ABCL.
8:37:17
Posterdati
no-defun-allowed: again 1 hertz != 6.28... rad/s, frequency is not angular velocity
8:38:46
easye
Guess I will go with HALF_EVEN Rounding mode to round towards the "nearest neighbor" unless both neighbors are equidistant, in which case, round towards the even neighbor.
8:47:01
easye
I'm try to the code that gives a double-float from a ratio for values between least-positive-normalized-double-float and least-positive-double-float in java. Need to pick a rounding algorithim.
8:54:14
easye
Upon further rubber ducking of my question, I don't think it would be covered in ANSI Common Lisp.
9:19:40
edgar-rft
easye: CLHS ROUND says: round and fround produce a quotient that has been rounded to the nearest mathematical integer; if the mathematical quotient is exactly halfway between two integers, (that is, it has the form integer+1/2), then the quotient has been rounded to the even (divisible by two) integer.
10:45:42
phoe
Online Lisp Meeting #2 starts in 15 minutes. Speaker: Michael Raskin, "Integrating with UNIX from Common Lisp via FS API" - https://www.twitch.tv/TwitchPlaysCommonLisp
10:49:28
phoe
Michael said that now is the best time for him, plus the times are fluid to suit the presenter the best
10:50:26
phoe
Plus, 13:00 CEST seems like a time that can suit the eveningpeople from Australia, afternoon people from Asia, midday people from Europe, and all the poor souls from Americas who need to wake up early
10:51:39
phoe
but, I don't want to stick to a single time - whenever the author says they would like the meeting to be held, I will attempt to hold it
11:47:06
MichaelRaskin
Technically I did not say it is better than Tue 18:00, just the same — but indeed it covers well the people overseas for whom 18:00 CEST was bad.
13:34:59
MajCon
Haha :-). It's a bit early (like 1 month early) but I've been using Racket+Redex for doing my master's thesis on using formal methods for WebAssembly. Is that the kind of stuff you think people would be interested in hearing about?
13:36:25
phoe
this is a Common Lisp place, so we are just slightly off topic; mind if we take it to #lispcafe?
13:57:50
flip214
when using cl-jupyter, only the current result is shown. How can I configure it to have a history, only changing previous cells by explicit intent?
14:30:42
yottabyte
hi all, I'm trying to make a simple executable to test, but when I run "(sb-ext:save-lisp-and-die "hello.exe" :toplevel #'main :executable t)" in slime I get "Cannot save core with multiple threads running."
14:30:46
yottabyte
I was just following this: https://stackoverflow.com/questions/14171849/compiling-common-lisp-to-an-executable
14:37:21
yottabyte
so I can compile a program that accepts a file as an argument and loads and compiles it so I don't have to start a sbcl session to make an executable
14:48:19
jmercouris
however, probably I should launch that in a new thread to avoid blocking, right?
14:50:17
patlv
Hi all, I've been using the Sxql package from Eitaro Fukamachi with great success, now I'm trying to call a stored procedure in mysql with it, it's not documented, anybody knows if it is possible?
15:01:02
jackdaniel
having hooks is clearly better, because you may feed it with something what's already part of the image (i.e climacs or some sed-like repl)
15:05:29
jackdaniel
"says something about quicklisp" is not the same as "does not work on quicklisp", is it?
15:05:58
phoe
jmercouris: yes, it is available on standard quicklisp dist, and the readme of that project explicitly states that
15:29:38
borei
well, after getting some result (doing 3D learning project, linear algebra etc) i started to understand that my approach is not in lisp way. Im using CLOS - it works very well, but starting to read "Let Over Lambda" - pointed me that there is alternative, and that alternative is even more powerful then CLOS, but not easy to understand.
15:32:32
beach
Closures can be used as a poor man's object system, but it is definitely not recommended when you have CLOS.
15:32:43
pjb
Well, it depends on the scope of the project. closures are anonymous objects with one (or very few "methods").
15:33:20
borei
just understanding how they work in connection with lisp macro system will bring me to the higher level
15:33:36
beach
I think #lisp has picked up a habit of contesting everything I say, so I will just shut up.
15:34:00
pjb
beach: it's not contesting everything. It's that everything is gray, and depends on the context.
15:34:26
pjb
OO is good, closures are good. one needs to understand both, and to use them in the right circumstances.
15:35:19
Bike
closures aren't really an alternative to clos. you could implement clos using closures as objects, probably.
15:35:21
borei
so question is very basic, but i can't jump over that problem, i even don't know if my approach is correct
15:36:45
Bike
the binding of X takes place at macroexpansion time, so in the expansion X is unbound.