--- Log opened Wed Feb 05 00:00:49 2014 |
00:02 | | himi [fow035@Nightstar-q9amk4.ffp.csiro.au] has joined #code |
00:03 | | mode/#code [+o himi] by ChanServ |
00:17 | | Turaiel is now known as Turaiel[Offline] |
00:21 | | Orth [Orthia@Nightstar-5m8.1ee.224.119.IP] has quit [Connection reset by peer] |
00:21 | | Orth [Orthia@Nightstar-5m8.1ee.224.119.IP] has joined #code |
00:42 | | You're now known as TheWatcher[T-2] |
00:48 | | You're now known as TheWatcher[zZzZ] |
01:06 | | Kindamoody[zZz] is now known as Kindamoody |
01:30 | | Derakon[AFK] is now known as Derakon |
01:33 | | OrthDroid [Orthia@Nightstar-5m8.1ee.224.119.IP] has joined #code |
01:33 | | Orth [Orthia@Nightstar-5m8.1ee.224.119.IP] has quit [Connection closed] |
01:39 | | Kindamoody is now known as Kindamoody[zZz] |
01:54 | | Orth [Orthia@Nightstar-5m8.1ee.224.119.IP] has joined #code |
01:54 | | OrthDroid [Orthia@Nightstar-5m8.1ee.224.119.IP] has quit [Connection closed] |
02:11 | | Derakon [Derakon@Nightstar-cb57nb.ca.comcast.net] has quit [Client exited] |
02:44 | | OrthDroid [Orthia@Nightstar-5m8.1ee.224.119.IP] has joined #code |
02:44 | | Orth [Orthia@Nightstar-5m8.1ee.224.119.IP] has quit [Connection closed] |
02:45 | <~Vornicus> | Gnaaaaaaaah hatred |
02:45 | | OrthDroid [Orthia@Nightstar-5m8.1ee.224.119.IP] has quit [Connection closed] |
02:45 | | Orth [Orthia@Nightstar-5m8.1ee.224.119.IP] has joined #code |
02:53 | | VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [[NS] Quit: Program Shutting down] |
02:57 | | Orth [Orthia@Nightstar-5m8.1ee.224.119.IP] has quit [Ping timeout: 121 seconds] |
03:12 | | Turaiel[Offline] is now known as Turaiel |
03:13 | | Orthia [orthianz@Nightstar-5m8.1ee.224.119.IP] has quit [Ping timeout: 121 seconds] |
03:14 | | Orthia [orthianz@Nightstar-5m8.1ee.224.119.IP] has joined #code |
03:14 | | mode/#code [+o Orthia] by ChanServ |
03:38 | <~Vornicus> | One thing I dislike about Python as opposed to C++/Java/etc is that when I build classes in Python I can't start with a struct. |
04:05 | | * ToxicFrog implements AST walking, runs the test suite, watches everything explode |
04:05 | | Harlow [harlow@Nightstar-9hnfdm.il.comcast.net] has joined #code |
04:08 | <&ToxicFrog> | EVERY TEST FAILS |
04:08 | <&ToxicFrog> | HUZZAH |
04:08 | < Harlow> | LOL |
04:09 | <~Vornicus> | I'm ...honestly not sure whether that's sarcastic or not |
04:11 | <&ToxicFrog> | Sarcastic. |
04:11 | <&ToxicFrog> | I was hoping this would just work. |
04:18 | < Harlow> | Toxic how big is the project? |
04:20 | | froztbyte [froztbyte@Nightstar-frrora.za.net] has quit [Operation timed out] |
04:21 | <&ToxicFrog> | Harlow: the codebase, or the current change I'm working on? |
04:21 | < Harlow> | The change |
04:21 | | froztbyte [froztbyte@Nightstar-frrora.za.net] has joined #code |
04:22 | | mode/#code [+o froztbyte] by ChanServ |
04:22 | <&ToxicFrog> | ~250 lines, switching vstruct from code generation to AST walking. |
04:25 | <@Reiv> | AST walking? |
04:25 | | * Vornicus fiddles with a thing that's /just/ data declarations, because at the moment he's having trouble keeping track |
04:25 | | [R] [rstamer@genoce.org] has quit [Ping timeout: 121 seconds] |
04:26 | <~Vornicus> | Reiver: So, vstruct, the thing it used to do was, it would read your structure declaration, and create lua code that itself executes to interpret your data. |
04:27 | <~Vornicus> | Now, it instead parses your structure declaration into an Abstract Syntax Tree, which it then uses to decide what to do next in otherwise-static lua code. |
04:27 | <@Reiv> | Was this something they changed on purpose or |
04:27 | <~Vornicus> | This is something TF changed on purpose, yes |
04:28 | <~Vornicus> | It has advantages particularly in reporting errors and preventing crazy security problems. |
04:31 | <~Vornicus> | (it may slow it down some, but not likely very much) |
04:31 | <&McMartin> | ASTs are The Standard Technology for compilers and most modern interpreters |
04:31 | <&ToxicFrog> | It already used an AST internally, but it walked the AST to generate lua code which it then compiled and executed. |
04:32 | <&ToxicFrog> | I'm now switching it to walking the AST for direct execution, which should vastly simplify the code and is also a prerequisite for some of the features I want to add later like intelligent struct splicing. |
04:37 | <~Vornicus> | Which is /really/ to say: Old was: Structure Declaration ---AST Generator---> AST ---Code Generator---> Lua code; Lua Code + Data = Structured data. New is: Structure Declaration ---AST Generator---> AST; Existing Lua Code + AST + Data = Structured Data |
04:39 | <&ToxicFrog> | Well, old was Structure Declaration -> A Shitload Of Regexes -> Lua Code |
04:40 | <&McMartin> | Band Name Alert: Shitload of Regexes |
04:40 | <~Vornicus> | That's an album, surely |
04:46 | <~Vornicus> | also, TF: ;_; ;_; ;_; |
04:48 | | Kindamoody[zZz] is now known as Kindamoody |
04:57 | <&ToxicFrog> | Vornicus: which part are you ;_;ing at? |
04:58 | <~Vornicus> | Shitload Of Regexes to generate lua code |
05:00 | | Derakon [Derakon@Nightstar-cb57nb.ca.comcast.net] has joined #code |
05:01 | | mode/#code [+ao Derakon Derakon] by ChanServ |
05:05 | <&ToxicFrog> | Aah. |
05:05 | <&ToxicFrog> | Hrm. Ok, so the read/write coalescing optimization is going wrong, that accounts for some of the breakage. |
05:21 | | Orth [Orthia@Nightstar-5m8.1ee.224.119.IP] has joined #code |
05:25 | | Derakon is now known as Derakon[AFK] |
05:25 | <&ToxicFrog> | All tests pass \o/ |
05:25 | <~Vornicus> | \o/ |
05:26 | <&ToxicFrog> | It's not done - I had to completely disable buffering optimizations. |
05:30 | | Vornotron [Vorn@Nightstar-sn7kve.sd.cox.net] has joined #code |
05:32 | | Vornicus [Vorn@Nightstar-sn7kve.sd.cox.net] has quit [Ping timeout: 121 seconds] |
05:35 | | himi [fow035@Nightstar-q9amk4.ffp.csiro.au] has quit [Operation timed out] |
05:41 | | Syloq [Syloq@Nightstar-mbk.c3p.254.173.IP] has quit [Z-Lined: Your IP range has been attempting to connect too many times in too short a duration. Wait a while, and you will be able to connect.] |
05:48 | | Syloq [Syloq@Nightstar-mbk.c3p.254.173.IP] has joined #code |
05:48 | | mode/#code [+o Syloq] by ChanServ |
05:55 | | celticminstrel [celticminst@Nightstar-mhtogh.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!] |
06:04 | | RichyB [RichyB@Nightstar-c6u.vd5.170.83.IP] has quit [[NS] Quit: Gone.] |
06:06 | | AverageJoe [evil1@Nightstar-fb1kt4.ph.cox.net] has joined #code |
06:07 | | RichyB [RichyB@Nightstar-c6u.vd5.170.83.IP] has joined #code |
06:20 | | [R] [rstamer@Nightstar-d7h8ki.org] has joined #code |
06:36 | | ErikMesoy|sleep is now known as ErikMesoy |
06:38 | | Orth [Orthia@Nightstar-5m8.1ee.224.119.IP] has quit [Ping timeout: 121 seconds] |
06:44 | | AverageJoe [evil1@Nightstar-fb1kt4.ph.cox.net] has quit [[NS] Quit: Leaving] |
06:48 | < Harlow> | Does anyone know of a good UML application for c++? |
07:01 | | Red_Queen [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code |
07:06 | | macdjord [macdjord@Nightstar-c0i1dq.cable.rogers.com] has quit [Ping timeout: 121 seconds] |
07:10 | | * McMartin � Unicode |
07:19 | | macdjord [macdjord@Nightstar-c0i1dq.cable.rogers.com] has joined #code |
07:24 | <&jerith> | Harlow: What do you need UML for? |
07:29 | < Harlow> | Just looking for a program to use, easy creation of classes, and document setup. |
07:30 | < Harlow> | Fused Negative Multiply-Subtract of Packed Double-Precision Floating-Point Values |
07:30 | < Harlow> | Wrong channel sorry. lol. |
07:32 | <&jerith> | Last time I needed UML (which was almost exactly a decade ago) Enterprise Architect was the software to use. |
07:39 | | Turaiel is now known as Turaiel[Offline] |
08:03 | | Orth [Orthia@Nightstar-5m8.1ee.224.119.IP] has joined #code |
08:18 | | Orth [Orthia@Nightstar-5m8.1ee.224.119.IP] has quit [Ping timeout: 121 seconds] |
08:22 | | Harlow [harlow@Nightstar-9hnfdm.il.comcast.net] has quit [[NS] Quit: BED] |
08:24 | | Orthia [orthianz@Nightstar-5m8.1ee.224.119.IP] has quit [Ping timeout: 121 seconds] |
08:24 | | Orthia [orthianz@Nightstar-5m8.1ee.224.119.IP] has joined #code |
08:24 | | mode/#code [+o Orthia] by ChanServ |
08:34 | | Kindamoody is now known as Kindamoody|out |
08:35 | | Orth [Orthia@Nightstar-5m8.1ee.224.119.IP] has joined #code |
08:48 | | Orth [Orthia@Nightstar-5m8.1ee.224.119.IP] has quit [Ping timeout: 121 seconds] |
09:17 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code |
09:17 | | mode/#code [+o himi] by ChanServ |
09:28 | | You're now known as TheWatcher |
09:53 | < simon_> | here's something weird |
09:53 | < simon_> | or rather, I don't understand it completely, but I suspect it's smart. |
09:53 | < simon_> | assume register $r contains a number of elements |
09:54 | < simon_> | then this guy does: $r := $r + 3; $r := $r >> 2; $r := $r << 2; |
09:55 | <&McMartin> | That is "round up to nearest multiple of 4" |
10:01 | < simon_> | right. so he does this for bytes before calling LoadByte on them, which puzzles me. (since bytes don't need to be word-aligned) |
10:03 | < Vornotron> | ...why would you round /up/ for that |
10:03 | < simon_> | ahhh |
10:03 | < simon_> | I get it. |
10:03 | < simon_> | he's doing heap allocation, and he wants to ensure that the heap pointer is word-aligned for future purposes :) |
10:05 | < simon_> | so e.g. allocating a 3-byte char array doesn't mess up the word-alignment of the next 4-word int array. |
10:07 | < simon_> | Vornotron, in this case, rounding down would leave too little space for the last chars in the array, and the fragmentation is bearable. |
10:07 | < Vornotron> | Yeah but... |
10:07 | < Vornotron> | Why do you load a byte that ... |
10:09 | <&jerith> | Vornotron: You're loading a byte and decrementing $r until $r is zero. |
10:10 | < Vornotron> | ...huh? |
10:10 | <&jerith> | Vornotron: $r contains the size of the array you're loading. |
10:11 | < Vornotron> | Okay, but... Why are we rounding /up/? |
10:11 | < Vornotron> | Aren't we skipping data here? |
10:12 | <&jerith> | No, padding. |
10:12 | < simon_> | Vornotron, sorry, I'm not giving the whole context. we're allocating space for an array of chars by incrementing the heap pointer. there might be 3 chars in that array, but we want to make sure that the heap pointer is word-aligned afterwards. so we round up and accept that a few bytes are unused, but that all bytes are stored. |
10:12 | < Vornotron> | but... |
10:12 | <&jerith> | You need to load the whole array and make sure the next thing is word-aligned. |
10:12 | < Vornotron> | No, this hasn't made sense from the beginning. |
10:13 | < Vornotron> | I don't see you loading the thing you're pointing at - you do this /before/ loading? |
10:13 | < Vornotron> | You've skipped a word. |
10:13 | < simon_> | so what he does is round 3 up to 4, claim that it's word-aligned and allocates that much space, accepting 0-3 bytes fragmentation per allocation. |
10:13 | < simon_> | yeah, this is simply calculating the size to allocate. loading/storing comes afterwards. |
10:15 | | * Vornotron befuddles at it for a moment |
10:32 | < Vornotron> | You don't actually load $r |
10:55 | | Syka [the@Nightstar-c7q.ljk.151.1.IP] has joined #code |
11:01 | < simon_> | Vornotron, no, $r is some offset added to a pointer and used as a 'final' address in an interval of addresses that are loaded. |
11:01 | < Vornotron> | The description made me think you did. |
11:01 | < Vornotron> | Idunno |
12:26 | | Syka [the@Nightstar-c7q.ljk.151.1.IP] has quit [Ping timeout: 121 seconds] |
12:26 | | Syka [the@Nightstar-c7q.ljk.151.1.IP] has joined #code |
12:27 | | Vornotron [Vorn@Nightstar-sn7kve.sd.cox.net] has quit [Connection reset by peer] |
12:57 | | Orthia [orthianz@Nightstar-5m8.1ee.224.119.IP] has quit [Ping timeout: 121 seconds] |
13:12 | | Syka [the@Nightstar-c7q.ljk.151.1.IP] has quit [[NS] Quit: slep] |
13:16 | | Orthia [orthianz@Nightstar-5m8.1ee.224.119.IP] has joined #code |
13:16 | | mode/#code [+o Orthia] by ChanServ |
13:41 | | * gnolam applies hand to forehead. |
13:41 | <@gnolam> | Me stupid. |
13:43 | <@gnolam> | I forgot that "legacy" doesn't just mean "most of the old stuff is written in VB5" but "started on DOS". |
13:44 | | * gnolam switches the decoder to CP 850. |
14:42 | <@Tarinaky> | I thought legacy meant older than that. |
14:48 | <&jerith> | Tarinaky: "Legacy" generally means "older then the new shiny thing we have". |
14:48 | <&jerith> | That often includes everything that's actually in production. |
--- Log closed Wed Feb 05 14:55:56 2014 |
--- Log opened Wed Feb 05 15:05:27 2014 |
15:05 | | TheWatcher [chris@Nightstar-ksqup0.co.uk] has joined #code |
15:05 | | Irssi: #code: Total of 36 nicks [14 ops, 0 halfops, 0 voices, 22 normal] |
15:05 | | mode/#code [+o TheWatcher] by ChanServ |
15:05 | | Reiver [quassel@Nightstar-ksqup0.co.uk] has joined #code |
15:06 | | Irssi: Join to #code was synced in 36 secs |
15:22 | | Red_Queen [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds] |
16:24 | | Red_Queen [Z@Nightstar-ro94ms.balk.dk] has joined #code |
18:07 | | Derakon [chriswei@Nightstar-cb57nb.ca.comcast.net] has joined #code |
18:07 | | mode/#code [+ao Derakon Derakon] by ChanServ |
18:07 | | * Derakon prods his resume. |
18:07 | <&Derakon> | I wrote this thing in LaTeX ages ago, and now barely remember how that markup language works. |
18:08 | <&Derakon> | Ah, needed to use pdflatex instead of pdftex, of course. |
18:23 | | * ToxicFrog tries to figure out where the argument (un)wrapping for vstruct needs to go |
18:48 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds] |
19:03 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code |
19:03 | | mode/#code [+o himi] by ChanServ |
19:07 | | Kindamoody|out is now known as Kindamoody |
19:17 | <@Azash> | via Shiz https://blogs.technet.com/b/exchange/archive/2004/04/08/109626.aspx?Redirected=t rue |
20:07 | | Kindamoody is now known as Kindamoody[zZz] |
21:07 | | Vornicus [Vorn@Nightstar-sn7kve.sd.cox.net] has joined #code |
21:08 | | mode/#code [+qo Vornicus Vornicus] by ChanServ |
21:36 | | Red_Queen [Z@Nightstar-ro94ms.balk.dk] has quit [Ping timeout: 121 seconds] |
22:02 | | Syloq [Syloq@Nightstar-mbk.c3p.254.173.IP] has quit [Ping timeout: 121 seconds] |
22:05 | | Syloq [Syloq@Nightstar-mbk.c3p.254.173.IP] has joined #code |
22:05 | | mode/#code [+o Syloq] by ChanServ |
22:25 | < ErikMesoy> | I keep misreading this assignment on "Endelige tilstandsmaskiner" (finite state machines) as "Elendige tilstandsmaskiner" (wretched state machines, miserable state machines). |
22:25 | <&McMartin> | Hee |
22:26 | < abudhabi_> | Ugh. Anyone know how to edit wordpress themes? |
22:31 | < abudhabi_> | I keep butting my head against the wall of non-discoverability. |
22:32 | < abudhabi_> | My boss wants me to edit the slider to discriminate between pages concerning what it shows. But the theme, as per the designers, does not have this functionality and the only thing they're recommending is to use the Meteor Slides plugin instead. |
22:32 | < abudhabi_> | But the documentation for the Meteor Slides appears to require the ability to actually work with Wordpress. |
22:44 | | gnolam [lenin@Nightstar-usbajb.cust.bredbandsbolaget.se] has quit [Ping timeout: 121 seconds] |
22:46 | | gnolam [lenin@Nightstar-usbajb.cust.bredbandsbolaget.se] has joined #code |
22:46 | | mode/#code [+o gnolam] by ChanServ |
22:48 | | ErikMesoy is now known as ErikMesoy|sleep |
23:40 | | Orth [Orthia@Nightstar-5m8.1ee.224.119.IP] has joined #code |
23:45 | | Derakon [chriswei@Nightstar-cb57nb.ca.comcast.net] has quit [[NS] Quit: leaving] |
--- Log closed Thu Feb 06 00:00:27 2014 |