jackdaniel changed the topic of #commonlisp to: Common Lisp, the #1=(programmable . #1#) programming language | Wiki: <https://www.cliki.net> | IRC Logs: <https://irclog.tymoon.eu/libera/%23commonlisp> | Cookbook: <https://lispcookbook.github.io/cl-cookbook> | Pastebin: <https://plaster.tymoon.eu/>
kagev has joined #commonlisp
dirtcastle has quit [Ping timeout: 252 seconds]
igemnace has quit [Ping timeout: 252 seconds]
rgherdt_ has quit [Remote host closed the connection]
random-nick has quit [Ping timeout: 265 seconds]
jeosol has quit [Quit: Client closed]
igemnace has joined #commonlisp
kevingal has joined #commonlisp
kevingal_ has joined #commonlisp
occ has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
occ has quit [Ping timeout: 265 seconds]
occ has joined #commonlisp
hrberg has quit [Ping timeout: 250 seconds]
hrberg has joined #commonlisp
dcb has quit [Quit: MSN Messenger 3.8]
skin has joined #commonlisp
samedi has quit [Remote host closed the connection]
skin has quit [Quit: Leaving.]
pranavats has left #commonlisp [Error from remote client]
waleee has quit [Ping timeout: 250 seconds]
Fare has joined #commonlisp
occ has quit [Ping timeout: 248 seconds]
occ has joined #commonlisp
msavoritias has quit [Ping timeout: 252 seconds]
azimut has joined #commonlisp
jeosol has joined #commonlisp
dirtcastle has joined #commonlisp
shka has joined #commonlisp
msavoritias has joined #commonlisp
Lumine has joined #commonlisp
Cymew has joined #commonlisp
kenran has joined #commonlisp
rgherdt has joined #commonlisp
<bitblit1> <aeth> "But now you win because now..." <- aeth: Ah, now that makes sense
<bitblit1> random-nick: aeth Thanks. I totally agree. Will do that now.
Cymew has quit [Ping timeout: 246 seconds]
occ has quit [Ping timeout: 268 seconds]
occ has joined #commonlisp
pve has joined #commonlisp
euandreh has quit [Ping timeout: 265 seconds]
loke[m] has joined #commonlisp
loke_ has joined #commonlisp
<loke_> jackdaniel: are you around?
<loke_> jackdaniel: I'm trying to get climaxima back up with the latest version of mcclim and maxima, and I suffered a regression at McCLIM commit: d04aef1a194ea2129e07d829b656d40d80f505a5
<loke_> I need to understand what the change does in order to figure out how to solve the issue.
loke_ has quit [Client Quit]
<loke[m]> There, got the matrix channel to work properly.
LW has joined #commonlisp
LW has quit [Client Quit]
luna-is-here has joined #commonlisp
Brucio-61 has quit [Ping timeout: 260 seconds]
Brucio-61 has joined #commonlisp
Brucio-61 has quit [Ping timeout: 260 seconds]
Brucio-61 has joined #commonlisp
scymtym has joined #commonlisp
cage has joined #commonlisp
<jackdaniel> loke[m]: I willbe in 30m
<jackdaniel> did you see my question on #clim re bidi?
<loke[m]> jackdaniel: sorry, no. I've been busy with a million things for the last several months.
<jackdaniel> it was a day or two ago
<loke[m]> jackdaniel: It does ring a bell. It may have passed by my screen, but I didn't pay much attention. Sorry.
<loke[m]> What was it about?
<jackdaniel> the function you have ported seems to return strings in reverse order
<loke[m]> Which one?
<jackdaniel> btw bidi and vertical text are coming to mcclim soon(tm)
<loke[m]> Oh, you mean the one that extracts rtl runs?
<jackdaniel> in the system mcclim-bidi,the only exported function.
<jackdaniel> yes
kevingal has quit [Remote host closed the connection]
kevingal_ has quit [Remote host closed the connection]
euandreh has joined #commonlisp
occ has quit [Ping timeout: 276 seconds]
Posterdati has quit [Ping timeout: 276 seconds]
<loke[m]> I did not know it was broken. When I used it, it worked fine. But I may have used it backwards. :-)
<jackdaniel> well, I'm not sure whether it is broken, so I've asked for clarification! https://irclog.tymoon.eu/libera/%23clim?around=1679253495#1679253495
<jackdaniel> I've started using the computer now, so I'll see to the commit you've asked about. perhaps we should move to #clim
Posterdati has joined #commonlisp
LW has joined #commonlisp
<jackdaniel> loke[m]: I've answered there
<loke[m]> jackdaniel: I see.
<loke[m]> That result looks good to me.
<loke[m]> I presume your concern is that "daniel" comes last?
<jackdaniel> yes, and note that the second argument is NIL, so it is computing the line that goes from left to right
<loke[m]> Oh right. It appears it's always in rtl context.
<loke[m]> Let me see.
<jackdaniel> well, not really! if you pass the r2l-context then the output is different
<jackdaniel> it looks to me as if the list simply needs nreverse
<jackdaniel> but I've wanted to ask the person who may know the first thing about bidi :)
<loke[m]> I'm testing with this: `(mcclim-bidi:directions "This is a test. في هذا اليوم. Another string." nil)`
<loke[m]> If you change NIL to T, it returns the same thing.
<loke[m]> Clearly a bug.
<jackdaniel> with the string I've proposed I have different results
<loke[m]> Yeah. But it does mean the issue is deeper than just reversing.
<loke[m]> I'm looking at the code now.
<jackdaniel> I see. Thanks for looking into it.
<jackdaniel> I've figured out what we should do wrt vertical scripts mixed with bidi :)
Fare has quit [Ping timeout: 250 seconds]
<loke[m]> jackdaniel: there's something weird going on. I'm stepping through it.
Posterdati has quit [Ping timeout: 246 seconds]
<loke[m]> But I have to go to my kid's school for a bit. I'll continue after.
<jackdaniel> OK, keep me posted :) thanks
lisp123 has joined #commonlisp
son0p has quit [Ping timeout: 250 seconds]
Posterdati has joined #commonlisp
lisp123 has quit [Remote host closed the connection]
lisp123 has joined #commonlisp
lisp123 has quit [Ping timeout: 276 seconds]
random-nick has joined #commonlisp
szkl has joined #commonlisp
tyson2 has joined #commonlisp
euandreh has quit [Ping timeout: 246 seconds]
notzmv has joined #commonlisp
easye has quit [Ping timeout: 264 seconds]
easye has joined #commonlisp
jeosol has quit [Ping timeout: 260 seconds]
euandreh has joined #commonlisp
dcb has joined #commonlisp
jonatack3 has joined #commonlisp
jonatack2 has quit [Ping timeout: 248 seconds]
gnoo has quit [Ping timeout: 260 seconds]
markb_one has joined #commonlisp
<loke[m]> jackdaniel: OK, I was tricked by my test strings.
<loke[m]> jackdaniel: You're definitely right. You can just `NREVERSE` the list `RESULT` at the end of `DIRECTIONS`
<loke[m]> s/`/`./
<loke[m]> (sorry for the markup, I forgot I'm using an IRC channel)
jmdaemon has quit [Ping timeout: 265 seconds]
<loke[m]> There is room to optimise this code to use arrays instead of lists as well.
<loke[m]> There are a set of functions which accept and returns lists of symbols, where the list is always the same size as the string. We can gain a lot of speed by changing it to an array and modifying it in place.
markb_one has quit [Quit: Leaving]
son0p has joined #commonlisp
gnoo has joined #commonlisp
gnoo has quit [Ping timeout: 265 seconds]
markb_one has joined #commonlisp
Cymew has joined #commonlisp
X-Scale has joined #commonlisp
gnoo has joined #commonlisp
<jackdaniel> thanks for confirming this. for now I want to get the abstraction right
<jackdaniel> because there are a few moving parts: there is a page direction, a line direction and finally the text direction that may vary within the line
X-Scale43 has joined #commonlisp
<jackdaniel> page and line direction are the compositor things while the individual fragment of text direction should be handled by the renderer
X-Scale has quit [Ping timeout: 260 seconds]
neon_ has quit [Remote host closed the connection]
neon__ has joined #commonlisp
X-Scale43 is now known as X-Scale
gnoo has quit [Ping timeout: 246 seconds]
tyson2 has quit [Remote host closed the connection]
kaskal has quit [Ping timeout: 255 seconds]
notzmv has quit [Ping timeout: 265 seconds]
gnoo has joined #commonlisp
X-Scale has quit [Ping timeout: 260 seconds]
anticomputer has quit [Remote host closed the connection]
anticomputer has joined #commonlisp
X-Scale has joined #commonlisp
gnoo has quit [Ping timeout: 265 seconds]
jeosol has joined #commonlisp
zxcvz has joined #commonlisp
paul0 has quit [Remote host closed the connection]
paul0 has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 265 seconds]
Lord_of_Life has joined #commonlisp
perrierjouet has quit [Quit: WeeChat 3.8]
lisp123 has joined #commonlisp
lisp123 has quit [Ping timeout: 255 seconds]
perrierjouet has joined #commonlisp
Brucio-61 has quit [Ping timeout: 260 seconds]
lagash has quit [Quit: ZNC - https://znc.in]
_paul0 has joined #commonlisp
paul0 has quit [Killed (NickServ (GHOST command used by _paul0!~paul0@191.251.43.96))]
scymtym has quit [Ping timeout: 256 seconds]
lagash has joined #commonlisp
gnoo has joined #commonlisp
<jcowan> jackdaniel: have you seen https://unicode.org/notes/tn22/RobustVerticalLayout.pdf ?
<jcowan> It shows images of Arabic text in a Mongolian matrix where the Arabic text has been rotated either counter-clockwise (read down, like the Mongolian) or clockwise (read up).
<jcowan> There is also a neat example of English text reading upwards at the left edge of a table, but with embedded Chinese that is read downwards (in the normal direction for Chinese), thus requiring the bidi algorithm even though both English and Chinese are LTR when horizontal.
<jcowan> "There simply is no traditional Japanese method of setting Devanagari text."
perrierjouet has quit [Quit: WeeChat 3.8]
<pjb> jcowan: magnific pdf there…
gnoo has quit [Ping timeout: 248 seconds]
pranavats has joined #commonlisp
Colleen has quit [Remote host closed the connection]
Brucio-61 has joined #commonlisp
Colleen has joined #commonlisp
occ has joined #commonlisp
Noisytoot has quit [Read error: Connection reset by peer]
<gendl__> SBCL: `(format nil "~8f" -0.0)` --> `" -0.0"`
<gendl__> CCL: `(format nil "~8f" -0.0)` --> `" -0.0"`
<gendl__> Allegro CL: `(format nil "~8f" -0.0)` --> `" 0.0"`
<gendl__> Which impls above are ansi compliant ?
<gendl__> (this format statement is from cl-pdf by the way, I'm setting up regression pipeline testing which includes some PDF output and trying to get the same input to yield identical output on all three of these impls)
lagash has quit [Quit: ZNC - https://znc.in]
<gendl__> it seems CCL is prepending an extra space of padding - it feels like internally it's treating the -0.0 as 0.0 and not counting the `-` as a character.
Noisytoot has joined #commonlisp
<gendl__> As far as I understand, the Allegro CL output is compliant - implementations are allowed for format `-0.0` as `0.0` -- Allegro does this, and prepends 5 spaces as does CCL, but in the case of Allegro the 5 spaces prepended appears correct because the `-` is not there.
neon_ has joined #commonlisp
<semz> ~8f is explicitly supposed to always output 8 characters, so CCL is definitely wrong here
neon__ has quit [Remote host closed the connection]
lagash has joined #commonlisp
<gendl__> Are there any printer parameters or format directives to make it always include, or always suppress, the `-` ?
<semz> (well, always*, since it can output more if it's impossible to fit the value in there. but this isn't the case here)
<gendl__> In order to get my regression tests working with currently existing CCL (and with Allegro CL and SBCL, which both appear compliant but are giving different outputs) I think I will have to pre-process my test data to replace the `" -0.0"` or `" -0.0"` or `" 0.0"` with a normalized string e.g. `" 0.0"` (i.e. normalize on the Allegro version). So I'll need a regular expression which matches those three strings
<gendl__> but is unlikely to match other strings in my output. ChatGPT suggests `^\s*[-0\.]+0$`
<gendl__> i'll test that, but at first glance it looks like it will miss `" 0.0"` (maybe that doesnt' matter because i'm normalizing to that anyway)
neon_ has quit [Ping timeout: 246 seconds]
<semz> ~@f will always print the sign
skin has joined #commonlisp
skin has quit [Client Quit]
<gendl__> semz: thanks, ah, I see it will print either `-` or `+`. Good to know. In this case, the format code in question is in the cl-pdf library, so I don't have direct control over that nor would I ask the cl-pdf maintainers to change anything just for this reason. But the regexp provided by chatGPT does match all 3 variants, so i'll just run the seed data and my test output through a replace-regexp, before comparing.
skin has joined #commonlisp
<gendl__> and the issue appears to be captured already in this CCL issue: https://github.com/Clozure/ccl/issues/406. CK-DE provided a long test case for formatting floats with ~f. SBCL and Lispworks appear compliant. I'll comment on that issue with Allegro output for the given test suite.
<ixelp> Numerous incorrect printings of floating point numbers with FORMAT directive ~F · Issue #406 · Clozure/ccl · GitHub
skin has quit [Remote host closed the connection]
<jackdaniel> jcowan: I have not seen this article, thanks!
skin has joined #commonlisp
<jackdaniel> regarding clockwise/counter-clockwise render I'm aware of that, that basically comes with the fact that vertical page may go left-to-right (lines), or right-to-left
<jackdaniel> there is also that thing called "full width character" which is not rotated
<jcowan> Mongolian however always goes left to right, and still Arabic can be embedded in it either way.
<jcowan> (to be read TTB or BTT)
<jcowan> My answer to https://www.quora.com/Why-are-some-language-scripts-like-Mongolian-written-vertically-instead-of-horizontally may provide some historical insight into the issue
<ixelp> Why are some language scripts like Mongolian written vertically instead of horizontally? - Quora
skin has quit [Remote host closed the connection]
skin has joined #commonlisp
szkl has quit [Ping timeout: 250 seconds]
bjorkint0sh has joined #commonlisp
bjorkintosh has quit [Ping timeout: 250 seconds]
szkl has joined #commonlisp
Cymew has quit [Ping timeout: 246 seconds]
X-Scale has quit [Quit: Client closed]
X-Scale has joined #commonlisp
perrierjouet has joined #commonlisp
skin has quit [Remote host closed the connection]
skin has joined #commonlisp
waleee has joined #commonlisp
delv has joined #commonlisp
McParen has joined #commonlisp
occ has quit [Ping timeout: 250 seconds]
jeosol has quit [Quit: Client closed]
gnoo has joined #commonlisp
lagash has quit [Quit: ZNC - https://znc.in]
lagash has joined #commonlisp
X-Scale has quit [Quit: Client closed]
gnoo has quit [Ping timeout: 252 seconds]
Perflosopher has joined #commonlisp
jonatack3 has quit [Quit: WeeChat 3.8]
Gleefre has joined #commonlisp
rgherdt has quit [Read error: Connection reset by peer]
rgherdt has joined #commonlisp
<beach> The dictionary entry for the declaration OPTIMIZE says that the consequences are unspecified if a quality appears more than once with different values. But what if such a quality appears once in each of two different consecutive declarations in the same form?
<beach> Also, a (nother) WSCL issue: The dictionary entry for the declaration DECLARATION uses the term "declaration name", but I think it should be "declaration identifier". No?
<beach> The dictionary entry for the declaration TYPE also uses "name of a declaration" and "declaration name".
jeosol has joined #commonlisp
waleee has quit [Ping timeout: 264 seconds]
waleee has joined #commonlisp
scymtym has joined #commonlisp
gnoo has joined #commonlisp
mzan has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<jcowan> beach: I don't think consecutiveness matters, so presumably the later declaration wins; the effective scope of the earlier declaration just happens to be empty.
<Bike> not sure i like the idea of saying declarations have any order whatsoever.
neon_ has joined #commonlisp
<beach> I tend to agree.
<jcowan> So you are saying the scope of a global declaration is the whole program, or the current file, or what?
<beach> I wasn't thinking of proclamations here, but declarations.
<beach> It would make sense to respect the order of proclamations.
mzan has joined #commonlisp
<jcowan> Proclamations are defined as global declarations, so by "declarations" here you mean local declarations?
<jcowan> Unfortunately 3.3.4 is silent as to the scope of declarations that aren't bindings, unless I am misreading it.
kenran has quit [Remote host closed the connection]
<skin> What about `declaim`?
<skin> http://www.lispworks.com/documentation/lw50/LWUG/html/lwuser-90.htm#:~:text=There%20are%20two%20distinct%20uses%20of%20declare%2C%20one,code%20faster%2C%20or%20with%20more%20sophisticated%20debugging%20options.
<ixelp> 9.5 Declare, proclaim, and declaim
<skin> jcowan: I see, I didn't know about `proclaim`, they're sort of the same thing
X-Scale has joined #commonlisp
<jcowan> `Proclaim` is just a more convenient way of writing a global declaration.
<pjb> declaim. proclaim is only for run-time.
igemnace has quit [Quit: WeeChat 3.8]
X-Scale has quit [Client Quit]
<pjb> (macroexpand-1 '(declaim (optimize (speed 1)))) #| --> (progn (eval-when (:compile-toplevel) (ccl::compile-time-proclamation '((optimize (speed 1))) nil)) (eval-when (:load-toplevel :execute) (proclaim '(optimize (speed 1))))) ; t |#
<jackdaniel> afair the implementation may treat declaim as file-local compilation declamation
<jackdaniel> i.e after compiling the file the declaration does not stay in the global environment
<pjb> So, one more reason not to use proclaim (even in an eval-when). You definitely don't want a compiled file to change your declarations…
delv has quit [Quit: Konversation terminated!]
Gleefre has quit [Remote host closed the connection]
jmdaemon has joined #commonlisp
glaucon has joined #commonlisp
pranavats has left #commonlisp [Error from remote client]
jonatack has joined #commonlisp
X-Scale has joined #commonlisp
lisp123 has joined #commonlisp
lisp123 has quit [Ping timeout: 250 seconds]
gnoo has quit [Ping timeout: 246 seconds]
neon_ has quit [Ping timeout: 264 seconds]
euandreh1 has joined #commonlisp
euandreh has quit [Ping timeout: 255 seconds]
euandreh1 is now known as euandreh
gnoo has joined #commonlisp
cage has quit [Quit: rcirc on GNU Emacs 28.2]
jeosol has quit [Quit: Client closed]
zxcvz has quit [Quit: zxcvz]
pranavats has joined #commonlisp
X-Scale has quit [Quit: Client closed]
morganw has joined #commonlisp
jmdaemon has quit [Ping timeout: 268 seconds]
kenran has joined #commonlisp
lagash has quit [Quit: ZNC - https://znc.in]
McParen has left #commonlisp [#commonlisp]
lagash has joined #commonlisp
easye has quit [Remote host closed the connection]
easye has joined #commonlisp
Lumine has quit [Quit: sleep]
easye has quit [Remote host closed the connection]
easye has joined #commonlisp
pranavats has left #commonlisp [Disconnected: Replaced by new connection]
pranavats has joined #commonlisp
jmdaemon has joined #commonlisp
pve has quit [Quit: leaving]
Gleefre has joined #commonlisp
<White_Flame> -*- ober wonders if anyone deploys images still.
<White_Flame> executable images, sure
<White_Flame> when a customer wants a program to do X, and just wants it invoked by whatever their devops does, regardless of language implemented
<White_Flame> and of course, lisp implementations are deployed as images ;)
glaucon has quit [Read error: Connection reset by peer]
Gleefre has quit [Remote host closed the connection]
markb_one has quit [Ping timeout: 260 seconds]
markb1 has quit [Ping timeout: 256 seconds]
gnoo has quit [Ping timeout: 246 seconds]
rgherdt_ has joined #commonlisp
rgherdt has quit [Ping timeout: 250 seconds]
neon has joined #commonlisp
OlCe``` has quit []
OlCe has joined #commonlisp
markb1 has joined #commonlisp
markb_one has joined #commonlisp
kenran has quit [Remote host closed the connection]
ec has quit [Remote host closed the connection]
Alfr is now known as Guest9127
Guest9127 has quit [Killed (sodium.libera.chat (Nickname regained by services))]
Alfr has joined #commonlisp
neon has quit [Ping timeout: 250 seconds]
gnoo has joined #commonlisp
ec has joined #commonlisp
qhong has quit [Ping timeout: 248 seconds]
morganw has quit [Remote host closed the connection]
lxi has joined #commonlisp
gnoo has quit [Ping timeout: 248 seconds]
masinter has joined #commonlisp
skin has quit [Ping timeout: 264 seconds]
gnoo has joined #commonlisp
random-nick has quit [Ping timeout: 264 seconds]
Lumine has joined #commonlisp
jmdaemon has quit [Ping timeout: 264 seconds]
cognemo has quit [Ping timeout: 268 seconds]
skin has joined #commonlisp
shka has quit [Ping timeout: 268 seconds]
lisp123 has joined #commonlisp
cognemo has joined #commonlisp
jmdaemon has joined #commonlisp
LW has quit [Quit: WeeChat 3.6]
rgherdt_ has quit [Remote host closed the connection]
skin has quit [Quit: Leaving.]
Gleefre has joined #commonlisp
Gleefre has quit [Remote host closed the connection]