|
Members in Shoutbox
None.
Shoutbox Search
Shoutbox Commands
/w [name] > Whisper
/r > Reply to last whisper /me > Marks as action Shoutbox Information
Moderators may delete any and all shouts at will.
|
Global Shoutbox
Please log in to shout.
[2016-1-20. : 5:11 am] jjf28 -- either surround the code using the IScriptEntry with "if ( iscriptBin.get<IScriptEntry>(search, offset) ) { ... }" or use a junk entry; assuming we expect some not-founds[2016-1-20. : 5:05 am] O)FaRTy1billion[MM] -- Also I don't know how to handle a script not found. SC does FatalError and doesn't really return ![]() [2016-1-20. : 5:03 am] O)FaRTy1billion[MM] -- dunno, I just did it with IScriptEntry search = iscriptBin.get<IScriptEntry>(offset);[2016-1-20. : 4:58 am] O)FaRTy1billion[MM] -- SC does a lot more pointer-arithmetic-y stuff, but I'll spare this that ![]() [2016-1-20. : 4:56 am] O)FaRTy1billion[MM] -- I was just reading through the source at work and thinking about it[2016-1-20. : 4:56 am] O)FaRTy1billion[MM] -- I dunno what all I need other than buffer's get other than finding iscript header offset, but I haven't gotten that far ![]() [2016-1-20. : 4:55 am] O)FaRTy1billion[MM] -- I'm going to use the buffer class, just having an iscript class is useful for helper functions[2016-1-20. : 4:51 am] jjf28 -- I just abuse the buffer class for the easy "ensure data is found and don't crash if it isn't" behavior ![]() [2016-1-20. : 4:50 am] jjf28 -- if you wanna make a struct/class and use it like that you're welcome to[2016-1-20. : 4:50 am] O)FaRTy1billion[MM] -- really iscript could be fully used as just a buffer, but like functions for finding iscript headers are useful[2016-1-20. : 4:49 am] O)FaRTy1billion[MM] -- AiScripts does a lot more that isn't necessary for iscripts, and then some things not enough[2016-1-20. : 4:49 am] O)FaRTy1billion[MM] -- I just copied AiScripts, but not entirely. I need access to the buffer to read the iscript data so I just made that public[2016-1-20. : 4:48 am] jjf28 -- do the functions in the AiScripts class exhaust everything it would be used for?[2016-1-20. : 4:42 am] O)FaRTy1billion[MM] -- I don't know if I should use it, or make my own iscript class/whatever ;o[2016-1-20. : 4:42 am] O)FaRTy1billion[MM] -- I found an iscriptBin buffer thing, but nothing references it anywhere[2016-1-20. : 4:40 am] O)FaRTy1billion[MM] -- that's funny, I was driving home and I just happened to come across some depleted uranium![2016-1-20. : 4:38 am] dumbducky -- So this guy just lost 130 lbs of depleted uranium, and he decides to go to my alumni facebook group to ask for advice[2016-1-20. : 4:35 am] O)FaRTy1billion[MM] -- Should I play with chkd? I learned today it doesn't load iscript.bin ;o[2016-1-20. : 4:11 am] Moose -- Only checked 11,996,000 fractions instead of 143,988,000, which helps it be that fast XD[2016-1-20. : 4:08 am] Moose -- My code for #73 wasn't totally naive, though, I used a way to generate better guesses for fractions in the bounds[2016-1-20. : 4:07 am] Moose -- Yes, it can, it's supposed to be that counting all of them takes forever (I counted them but with a faster algorithm)[2016-1-20. : 4:07 am] Moose -- Using a script to run it 100 times: real 1m35.955s, so figure 936ms on average[2016-1-20. : 4:04 am] Moose -- This is on a faster machine than the one I wrote the code on the first time[2016-1-20. : 3:58 am] Moose -- You would just need to run a GCD algorithm and check if fractions are between 1/3 and 1/2 12000*11999 = 143,988,000 times[2016-1-20. : 3:57 am] Moose -- I don't have my solution to #73 anymore, but it wasn't terribly long due to the max denominator only being 12000[2016-1-20. : 3:57 am] dumbducky -- How long did 73 take to run? I was thinking about solving it naively just to see[2016-1-20. : 3:55 am] Moose -- To be honest, I solved #73 first, learned algorithms from other people, and then adapted them to #72[2016-1-20. : 3:54 am] dumbducky -- How do you go about solving that? I'm guessing the naive implementation would complete somewhere around the heat death of the universe[2016-1-20. : 3:50 am] jjf28 -- solve some math problem with programming before the heat death of the universe[2016-1-20. : 3:50 am] Moose -- dumbduckydumbducky shouted: what is problem 72 https://projecteuler.net/problem=72[2016-1-20. : 3:46 am] Moose -- jjf28jjf28 shouted: not sure whether to invoke Godwin's Law I'm surprised I haven't yet. I mean, strong leader who is going to act tough, racial scapegoats, and restoring the nation to its former glory... I think they tried that in Europe.[2016-1-20. : 3:46 am] Moose -- Congratulations, the answer you gave to problem 72 is correct. You are the 14318th person to have solved this problem.[2016-1-20. : 3:45 am] * jjf28 not sure whether to invoke Godwin's Law*[2016-1-20. : 3:38 am] Moose -- Unity through getting rid of undesirables, let's Make America Great Again™![2016-1-20. : 3:38 am] Moose -- Silly jjf, there can't be racism if we get rid of all the non-whites and put up walls so they can't get back in. Once that's done, ez unity for those remaining![2016-1-20. : 3:33 am] Moose -- He just wants to Make America Great Again™, don't you want to Make America Great Again™, jjf?[2016-1-20. : 3:27 am] dumbducky -- Ironically, they're discussing whether to ban him from England because he discussed banning people from America. |