code logs -> 2016 -> Mon, 03 Oct 2016< code.20161002.log - code.20161004.log >
--- Log opened Mon Oct 03 00:00:56 2016
00:38 * Vornicus vornballs
00:49 * McMartin implements window painting functions in Win32 without a net or helper libraries
00:49
<&McMartin>
Some days you just need to getRect()
00:54
<&Derakon>
Without .NET, eh?
00:59
<&McMartin>
Indeed not~
00:59
<&McMartin>
But also without MFC or ATL.
01:00 * McMartin gets performance characteristics that can be summarized as "are you *sure* you don't want to use DirectX for this"
01:00
<&McMartin>
(Nothing awful, just visible flicker on resize)
01:05 * [R] found simple GDI to be performant enough
01:05
<&[R]>
Unless they broke performance since Win98...
01:06
<&McMartin>
Oh, it's performant just fine
01:06
<&McMartin>
It's just not utterly flawless
01:06
<&[R]>
Meh
01:06
<&McMartin>
The way a GPU-rescale would be
01:10
<&McMartin>
On any operation but live-resize, it runs fine.
01:24 catadroid` [catadroid@Nightstar-btu8s5.dab.02.net] has joined #code
01:26 * McMartin implements his traditional First Graphics Program with Win32/GDI. https://hkn.eecs.berkeley.edu/~mcmartin/screenshots/WinCCA.png
01:27 catadroid [catadroid@Nightstar-7ib3rv.dab.02.net] has quit [Ping timeout: 121 seconds]
01:27
<&McMartin>
Up next: embedding it as a child window in a slightly more sophisticated main window, so that I might actually use that as a testbed for the old program I actually want to adapt.
01:29
<&McMartin>
Updating that at 50 FPS *does* produce visible tearing, though.
01:29
<~Vornicus>
yay the cca
01:30
<&McMartin>
Man, that's using 9.2% of a core.
01:30
<&McMartin>
Tsk~
01:41 * McMartin replaces the Sleep() call with a timer-based system, gets way better speed out.
01:43
<&Derakon>
...yes, that is a good change.
01:43
<&McMartin>
Also increased CPU utilization, so I guess we can't have everything~
01:43
<&McMartin>
But it is probably trying much harder to actually hit that 50fps cadence now.
01:45
<&McMartin>
12KB executable, and it's even written in an actual programming language~
02:07 * McMartin blinks
02:07
<&McMartin>
Hey, and it doesn't appear to be relying on any wacky runtimes, either. I wonder if that's changed in the Win10 SDKs...
02:07 * McMartin goes to see what WINE makes of it.
02:10
<&McMartin>
Oop, nope, welp, there it is
02:10
<&McMartin>
Gonna have to use a different toolchain once I have it all working theh way I want.
02:24
<&[R]>
TIL that you have to have an entry in /etc/shadow for the user for passwd to write there, even if the password field in /etc/passwd is x.
02:24
<&[R]>
(For some reason, I have neither useradd, nor adduser)
02:24
<&[R]>
(So I am using vim and passwd)
02:48
<&[R]>
$ chromium
02:48
<&[R]>
[28704:28718:1003/013115:ERROR:bus.cc(432)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused
02:48
<&[R]>
$ ls -l /var/run/dbus/system_bus_socket
02:48
<&[R]>
srwxrwxrwx 1 root root 0 Oct 3 01:30 /var/run/dbus/system_bus_socket
02:48
<&[R]>
I'm slightly confused to as what chromium is complaining about here
02:48
<&[R]>
I just started dbus up
02:48
<&[R]>
I'm not seeing any noise from dbus in /var/log/messages either
03:09
<&McMartin>
Those of you who have done MinGW cross-compilation: does the cross-compiler have its own version of windows.h or do you need to feed it the headers from a Windows SDK?
03:19
<&ToxicFrog>
Last time I used it it didn't need me to fetch anything special
03:19
<&ToxicFrog>
But I'm not sure if that's because it didn't need windows.h, because one of the packages that it had as a dependency pulled it in, or because nothing I wrote depended on windows.h
03:23 Vornotron [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
03:26
<&McMartin>
Yeah, that also matches my experience, and my caveats
03:27 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
03:27 * McMartin pulls down mingw32-headers to check.
03:36
<&McMartin>
/usr/i686-w64-mingw32/sys-root/mingw/include/windows.h is in fact a file.
03:37
<&McMartin>
And it does in fact indirectly include prototypes for, among other things, CreateWindowExW
04:54 Derakon is now known as Derakon[AFK]
05:19
<&McMartin>
Welp. That took me up to 13KB, but now it will preserve the aspect ratio of the stuff it draws. \o/
05:36 * McMartin then gets a MinGW build in, which takes it up to 18KB, but that's still quite reasonable.
05:38
<&McMartin>
... WINE's implementation of GDI may actually be faster than Win10's... or maybe it's not correctly implementing SetTimer and thus is just running flat out.
05:41
<&McMartin>
Given that the CPU usage seems to be 4x under Wine, I'm going to go with "WINE's implementation of SetTimer is bugged"
05:46
<&McMartin>
400 lines of code total, it seems.
05:46
<&McMartin>
Not shabby
05:56 gizmore [kvirc@Nightstar-3jt8p4.dip0.t-ipconnect.de] has joined #code
06:05 gizmore [kvirc@Nightstar-3jt8p4.dip0.t-ipconnect.de] has quit [Connection closed]
06:05 gizmore [kvirc@Nightstar-3jt8p4.dip0.t-ipconnect.de] has joined #code
06:29 Kindamoody[zZz] is now known as Kindamoody
07:53 Kindamoody is now known as Kindamoody|afk
07:54 catadroid [catadroid@Nightstar-8qmm32.dab.02.net] has joined #code
07:57 catadroid` [catadroid@Nightstar-btu8s5.dab.02.net] has quit [Ping timeout: 121 seconds]
08:30 macdjord is now known as macdjord|slep
09:01 catadroid` [catadroid@Nightstar-8qmm32.dab.02.net] has joined #code
09:01 catadroid [catadroid@Nightstar-8qmm32.dab.02.net] has quit [The TLS connection was non-properly terminated.]
09:03 celticminstrel [celticminst@Nightstar-c9802h.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
09:22 Vornotron [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
10:28 catadroid` [catadroid@Nightstar-8qmm32.dab.02.net] has quit [[NS] Quit: Bye]
10:39 catadroid [catadroid@Nightstar-8qmm32.dab.02.net] has joined #code
14:14
< catadroid>
I predict a riot
14:14
< catadroid>
We've nearly run out of milk and it's only just past lunchtime
14:14
<@TheWatcher>
Oh dear
14:14
<@TheWatcher>
I recommend hiding under your desk until the screaming subsides
14:20
< catadroid>
Already bunkering up
14:24 catadroid` [catadroid@Nightstar-091dpe.dab.02.net] has joined #code
14:27 catadroid [catadroid@Nightstar-8qmm32.dab.02.net] has quit [Ping timeout: 121 seconds]
14:35 catadroid` is now known as catadroid
14:39 gizmore [kvirc@Nightstar-3jt8p4.dip0.t-ipconnect.de] has quit [Ping timeout: 121 seconds]
14:40 gizmore [kvirc@Nightstar-jsauup.dip0.t-ipconnect.de] has joined #code
15:05 * TheWatcher hairpulls at html+css
15:06
<@TheWatcher>
There are 3 pixels here that should not be here. Why are they here?! ARGH
15:29 macdjord|slep is now known as macdjord|wurk
16:48
< catadroid>
I've done about a half hour of actually coding today, but I've got our load times down by a factor of about 4x
17:09
<@Tamber>
Half an hour of coding, Seven and a half just sitting there thinking real hard?
17:11
< catadroid>
Seven and a half hours sitting here thinking "god I'm tired I would rather be cuddled up in bed with my boyfriend where is the tea"
17:12
<@Tamber>
Ah, that feel.
17:48 celticminstrel [celticminst@Nightstar-c9802h.dsl.bell.ca] has joined #code
17:48 mode/#code [+o celticminstrel] by ChanServ
18:06 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
18:06 mode/#code [+qo Vornicus Vornicus] by ChanServ
19:05 catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code
19:18 Kindamoody|afk is now known as Kindamoody
19:27 catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has quit [[NS] Quit: Leaving]
20:34
<&[R]>
Fuck. Can someone teach MS how to do non manditory file locking? Having an unusable computer for 2 hours is bullshit.
20:35
<&McMartin>
It's the same way everyone else pretends to
20:36
<&McMartin>
e.g., putting all your valuables on the table with a little sign that says "plz do not steel"
20:37
<&[R]>
?
20:40
<&McMartin>
I'm saying advisory locks aren't locks
20:48 Derakon[AFK] is now known as Derakon
20:51
<&McMartin>
(I'm also saying that AFAIK using the techniques for "advisory locks" on POSIX using the file system work fine on NTFS, as long as you don't actually lock the file for real)
20:51
<&McMartin>
(since that, as you note, locks the file)
20:52
<&McMartin>
The specific imagery of leaving your priceless magical artifacts on a card table in the middle of the park with a little sign saying "PRICELESS APOCALYPTIC MAGICAL ARTIFACTS, PLZ DO NOT STEAL" is from the late and much-lamented superhero MMO City of Heroes.
20:53
<&McMartin>
Because that is totally how the low-level Magic arcs seemed to roll.
20:54 catadroid` [catadroid@Nightstar-92tu11.dab.02.net] has joined #code
20:57 catadroid [catadroid@Nightstar-091dpe.dab.02.net] has quit [Ping timeout: 121 seconds]
21:18 Derakon [chriswei@Nightstar-5mvs4e.ca.comcast.net] has quit [[NS] Quit: Leaving]
21:18 Derakon [chriswei@Nightstar-5mvs4e.ca.comcast.net] has joined #code
21:18 mode/#code [+ao Derakon Derakon] by ChanServ
21:59 Derakon [chriswei@Nightstar-5mvs4e.ca.comcast.net] has quit [[NS] Quit: Leaving]
22:16 mac [macdjord@Nightstar-tol.t6i.225.24.IP] has joined #code
22:16 mode/#code [+o mac] by ChanServ
22:18 macdjord|wurk [macdjord@Nightstar-tol.t6i.225.24.IP] has quit [Ping timeout: 121 seconds]
22:21 catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code
22:56 * TheWatcher eyes http://www.smbc-comics.com/comic/p-humans
22:57
< catalyst>
IT ME
22:57
<@Tamber>
Hey, I resemble that remark!
22:57 mode/#code [+ooooo catalyst gizmore jeroud Pink catadroid`] by Tamber
22:57 Irssi: #code: Total of 39 nicks [39 ops, 0 halfops, 0 voices, 0 normal]
23:09 * Vornicus secretly replaces catalyst with either Terry Crews or Dio
23:13
<@catalyst>
o:
23:14
<@catalyst>
Dio?
23:21 gnolam [quassel@Nightstar-t2vo1j.tbcn.telia.com] has joined #code
23:21 mode/#code [+o gnolam] by ChanServ
23:23
<~Vornicus>
antagonist in Jojo's Bizarre Adventure.
23:30 himi [sjjf@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
23:35
<~Vornicus>
famous for showing up and explaining how some terrible thing has happened but it was not the villain they'd expected: it was HIM, DIO!
23:42 * McMartin suggests that it might instead be the great DON PAOLO, in disguise!
23:44
<@catalyst>
:O
23:44
<@catalyst>
Why are these characters all male
23:44
<&McMartin>
"Bombastic idiot" codes as male
23:45
<&McMartin>
At least that style of bombast
23:45 * catalyst eyes the US
23:45
<@catalyst>
oh, right
23:45
<&McMartin>
The closest female equivalent of that I can come up with is basically Maleficent
23:45
<&McMartin>
And say what you will
23:45
<&McMartin>
Maleficent has style
23:46
<&McMartin>
The great DON PAOLO also has more humble origins, that it turns out the protagonist knows
23:46
<&McMartin>
I found him much more entertaining once that came out and all the characters realize they'd known him before his supervillainous lifestyle
23:47
<&McMartin>
And how it continues to drive him nuts from then on he's just "Paul"
23:47
<~Vornicus>
Hey, dio is from japan
23:47
<~Vornicus>
I can't even remember where DON PAOLO is from
23:47
<&McMartin>
Professor Layton
23:48
<&McMartin>
He had the accordion sting whenever he showed up
23:48
<~Vornicus>
oh right, him
23:48
<&McMartin>
And his best moments by far were when he decides he should maybe be saving the day instead
23:48
<&McMartin>
Especially since this also means accordions = drama and implausible awesomeness
23:49
<&McMartin>
... and especially when *that* aspect was imported into the otherwise ill-fated Phoenix Wright crossover, and Wright ends up getting progressively more aggressive accordionality as he presses witnesses ever harder
23:49
<~Vornicus>
You know something big will happen when the accordions come along
23:49
<&McMartin>
Indeed.
23:49
<&McMartin>
I don't know who decided that, and whether they were L5 or Capcom
23:50
<&McMartin>
But that person was clearly Very Correct About Many Things.
23:51 gnolam [quassel@Nightstar-t2vo1j.tbcn.telia.com] has quit [[NS] Quit: Z?]
--- Log closed Tue Oct 04 00:00:12 2016
code logs -> 2016 -> Mon, 03 Oct 2016< code.20161002.log - code.20161004.log >

[ Latest log file ]