code logs -> 2018 -> Sun, 04 Nov 2018< code.20181103.log - code.20181105.log >
--- Log opened Sun Nov 04 00:00:00 2018
00:16
<&McMartin>
Okay, let's start fixing windows bugs that are not Windows bugs, but rather bugs about rectangles of pixels
02:21 Degi_ [Degi@Nightstar-qg1kej.dyn.telefonica.de] has joined #code
02:25 Degi [Degi@Nightstar-mdfo9v.dyn.telefonica.de] has quit [Ping timeout: 121 seconds]
04:24 Derakon is now known as Derakon[AFK]
04:58 celticminstrel is now known as celmin|sleep
06:18 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
06:18 mode/#code [+qo Vornicus Vornicus] by ChanServ
06:24 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
06:59 Degi_ [Degi@Nightstar-qg1kej.dyn.telefonica.de] has quit [Connection reset by peer]
09:59 gnolam [lenin@Nightstar-ego6cb.cust.bahnhof.se] has quit [[NS] Quit: Reboot]
10:01 gnolam [lenin@Nightstar-ego6cb.cust.bahnhof.se] has joined #code
10:01 mode/#code [+o gnolam] by ChanServ
10:34 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code
14:55
<&ToxicFrog>
A pox on all code that has to deal with both x/y and row/col APIs
14:57 Degi [Degi@Nightstar-qg1kej.dyn.telefonica.de] has joined #code
15:17 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
15:17 mode/#code [+qo Vornicus Vornicus] by ChanServ
15:43
<&[R]>
And translate between the two?
15:44
<&[R]>
Because that'd be any strategy game, no?
15:44
<&[R]>
x/y for the window frame, row/col for the game map
15:44
<@ErikMesoy>
Unless the game map uses "provinces" and they're all giant clusters of x/y coordinates, which is a whole new sort of problem.
15:45
<&[R]>
Fair enough
15:46
<@ErikMesoy>
And then there's Dominions which handles this by voronoi: every province has a center pixel defined, when you click on the map you select the province whose center pixel is nearest to that point.
15:47
<~Vornicus>
what're we up to
15:47
<@ErikMesoy>
> ToxicFrog: A pox on all code that has to deal with both x/y and row/col APIs
15:47 * Vornicus checks the second sight
15:47
<~Vornicus>
Oh, very yes
15:48
<~Vornicus>
that's not necessarily any strategy game
15:48
<&[R]>
Any that I've played :p
15:48
<~Vornicus>
like, if it's laid out like Modern Excel, "A1" is technically x/y
15:49
<&[R]>
Age of Wonders, StarCraft, WarCraft, Heroes of Might and Magic, Warlords, etc...
15:49
<~Vornicus>
(r1c1 is of course evil)
16:23
<&ToxicFrog>
[R]: AoW, StarCraft, and WarCraft don't expose the coordinate system
16:24
<&ToxicFrog>
Most strategy games don't
16:24
<&ToxicFrog>
The ones I've played that do use x/y, including chess
16:24
<&ToxicFrog>
In this case the specific issue is that I'm dealing with maps that use x/y for cell addressing, but a drawing API that targets the terminal and thus uses row/col
16:25
<~Vornicus>
coordinate handedness makes me almost as mad
16:26
<&ToxicFrog>
And since the type of all of them is just "int" it's really easy to get wrong!
16:26
<&ToxicFrog>
Vornicus: coordinate handedness? As in, the way you arrange the coordinates in 3-space?
16:27
<@mac>
ToxicFrog: Solution: make them all different subclasses of int.
16:27
<~Vornicus>
That sort of thing but also in 2d
16:28
<~Vornicus>
Consider PostScript vs screen drawing
16:28
<&ToxicFrog>
mac: hmm. I don't actually know if it's possible to annotate an interlanguage call into Java to perform that sort of check.
16:28
<&ToxicFrog>
Vornicus: aah.
16:29
<&ToxicFrog>
(the row/col API is an existing library written in Java; I'm calling it from Clojure)
16:29
<&ToxicFrog>
I mean, an alternative approach would be to redesign the map format and code (which I do have control over) to use row/col
16:30
<&[R]>
ToxicFrog: I meant if you were developping for it
16:30
<~Vornicus>
I absogoddamnlutely hate row/col
17:31 celmin|sleep is now known as celticminstrel
18:51 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
19:41
<&ToxicFrog>
It's x/y but with the axes swapped because fuck you
19:42
<&ToxicFrog>
And there isn't really an excuse for Lanterna to use it rather than X/Y except "because that's how the underlying terminal control codes do it", but it does!
19:42
<&McMartin>
*storing* terminal data row/col is fine
19:42
<&McMartin>
text is row-major
19:53
<&ToxicFrog>
McMartin: right, but Lanterna is specifically for terminal (or terminal-esque; it has a mode that renders to texture instead) graphics and is meant to generally look like a GUI-and-images library
19:53
<&ToxicFrog>
Except that it uses row/col rather than x/y everywhere in the API
20:39 Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has joined #code
20:39 mode/#code [+o Reiv] by ChanServ
21:15 himi [sjjf@Nightstar-v37cpe.internode.on.net] has quit [Connection closed]
22:53 himi [sjjf@Nightstar-1drtbs.anu.edu.au] has joined #code
22:53 mode/#code [+o himi] by ChanServ
23:01
<&McMartin>
celticminstrel: Hey, do you still have that 10.6 machine?
23:04
<@celticminstrel>
Technically, but it's running 10.7 usually.
23:04
<&McMartin>
That's close enough for this, I suppose
23:04
<@celticminstrel>
It's a pain to reboot to 10.6.
23:04
<&McMartin>
Yeah
23:04
<&McMartin>
Basically, I'm messing with AppleScript and have learned a thing that I didn't think actually worked
23:05
<&McMartin>
ISTR that if you wanted to have a script pop up a dialog box you had to tell some other application to do it for you
23:06
<@celticminstrel>
You can certainly do like "tell some app to display dialog..." ...
23:06
<&McMartin>
Yep
23:06
<@celticminstrel>
Display dialog is a scripting addon though, I think.
23:06
<&McMartin>
However, today I learned that at least on recent versions of macOS you can just say "display dialog"
23:06
<&McMartin>
It's part of the Standard Editions that are autoloaded by osascript in 10.14
23:06
<&McMartin>
Derp
23:07
<&McMartin>
Additions
23:07
<&McMartin>
not Editions
23:07
<@celticminstrel>
Yeah, pretty sure that works here.
23:07
<&McMartin>
My question is basically "how far back does this go"
23:07
<@celticminstrel>
Might not have worked say on OS9...
23:07
<@celticminstrel>
(I can't remember clearly that far back though.)
23:07
<&McMartin>
Heh
23:07
<@celticminstrel>
(And no longer have an OS9 machine, sadly.)
23:07
<&McMartin>
One can check in a Terminal with osascript -e 'display dialog "Zomg"'
23:07
<@celticminstrel>
(Sadly because it means I can't play certain games.)
23:08
<@celticminstrel>
execution error: No user interaction allowed. (-1713)
23:08
<&McMartin>
I don't really care prior to 10.9 but if it *does* work on 10.7 or so that's nice
23:08
<&McMartin>
Oh interesting
23:08
<@celticminstrel>
Pretty sure it'll work in scripts not run through the command-line though...
23:08 * McMartin nods
23:09
<&McMartin>
Right now I'm reworking some horrific combination of bash and -- originally -- x11 cli tools
23:09
<&McMartin>
into a horrific mash of bash and applescript
23:09
<&McMartin>
I'd *prefer* to not need to add a full ObjC app stub here, but I have a sinking feeling I may need to.
23:10
<@celticminstrel>
Well, display dialog is pretty basic though, IIRC it only supports a certian number of buttons and maybe one text entry field.
23:10
<&McMartin>
Indeed, the actual application is using "choose from list"
23:11
<&McMartin>
(Being as it is about 8 applications in one bundle, and while all other systems would just have all 8 executables sitting wherever, here to keep them and their frameworks and data in one place, there's a launcher script to pick which one you want to run on launch.)
23:11
<&McMartin>
(The 'real' solution would be to make it a busybox-like application but that is infeasible as an OS-specific build option)
23:13 celmin [celticminst@Nightstar-l19e78.dsl.bell.ca] has joined #code
23:13 mode/#code [+o celmin] by ChanServ
23:14 celticminstrel [celticminst@Nightstar-rbetlj.dsl.bell.ca] has quit [Ping timeout: 121 seconds]
23:14 celmin is now known as celticminstrel
23:15
<@celticminstrel>
Back
23:15
<@celticminstrel>
...or maybe not.
23:15 celticminstrel [celticminst@Nightstar-l19e78.dsl.bell.ca] has quit [[NS] Quit: KABOOM! It seems that I have exploded. Please wait while I reinstall the universe.]
23:15 celticminstrel [celticminst@Nightstar-l19e78.dsl.bell.ca] has joined #code
23:15 mode/#code [+o celticminstrel] by ChanServ
23:16
<@celticminstrel>
Back now.
23:23 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has quit [Ping timeout: 121 seconds]
23:24
<&McMartin>
... when I export a script as an application it somehow turns it into a Java classfile
23:52 Degi [Degi@Nightstar-qg1kej.dyn.telefonica.de] has quit [Connection closed]
23:57 Kindamoody|afk is now known as Kindamoody
--- Log closed Mon Nov 05 00:00:02 2018
code logs -> 2018 -> Sun, 04 Nov 2018< code.20181103.log - code.20181105.log >

[ Latest log file ]