Fancy Crab
Remæus: Any luck finagling that old code so it's no longer a bramble bush hanging out in the way? | 20:07:32 | Remæus | yes, pushing in a bit |
20:07:44 | Remæus | a screenshot of what you ended up with helpful too |
20:23:48 | Fancy Crab | I don't think I saved it |
20:24:12 | Fancy Crab | I swapped back over to windows after that we hit that |
1 Mar 2020 |
01:10:18 | Remæus | I'm prepping for my 10:30 presentation in Hanoi, sorry I can't be more help today — will push updates to fix your stuff after |
01:10:43 | Remæus | In the meantime, @room could benefit from reviewing these programmer interview questions |
01:24:52 | Earth | You're good. Do your thang |
21:32:47 | | @discord_408724825687719937:fabric.pub changed their display name from Le Sigh to Le Sigh#2008. |
4 Mar 2020 |
04:48:43 | Fancy Crab | I want to finish up the setup so I can get to learning how to code and update. |
04:49:16 | Fancy Crab | I want to be on the team that brings verse up over to VR systems |
08:01:31 | | * shentino In reply to @remaeus:roleplaygateway.com In the meantime, @room could benefit from reviewing these programmer interview questions groans |
08:01:51 | shentino | That is just plain cheating rem :P |
18:23:03 | LawOfTheLand | fuck, the first one I was going t suggest bubble sort |
9 Mar 2020 |
03:46:21 | shentino | Lol, that would have been a good answer just for laughs alone |
12:42:21 | lil_kreen | well its given answer does end in the desired result but I'd argue it doesn't actually give an answer to the question. the only reason it works is because there's no disposal or class properties to worry about for base types. |
12:43:27 | lil_kreen | and if it isn't a managed language their solution to return a new array just leaked an array worth of memory. |
12:45:54 | lil_kreen | not to mention needs 2n worth or memory to 'sort' the array |
12:46:13 | lil_kreen | * not to mention needs 2n worth of memory to 'sort' the array half of which if above, will leak. |
12:49:46 | lil_kreen | * not to mention needs 2n worth of memory to 'sort' the array half of which, if above, will leak. |
12:58:24 | lil_kreen | (ノಠ益ಠ)ノ彡┻━┻ |
13:30:05 | shentino | No actually it doesn't leak |
13:30:37 | shentino | They're assigning elements to the same array |
13:30:58 | shentino | The array is probably being passed by reference or pointer at no point is a new array being actually allocated |
13:37:22 | lil_kreen | I forget about by reference, they tend to be evil to multithreaded code, heh! |
13:39:00 | shentino | Only if you're not careful about scope |
13:39:47 | shentino | But yeah it's like you're passing a piece of paper and they just rewrite it |
13:39:51 | shentino | they're not using a new piece of paper |
13:40:32 | shentino | And no, it doesn't need 2n memory either for the same reason |
13:41:02 | shentino | In fact since it's being rewritten in place it could be argued that the memory it needs has already been allocated by the caller |