|
ugh git reset --hard HEAD^ just ate my entire working tree when I wanted to just discard my latest commit fml
|
# ? Jul 14, 2016 20:10 |
|
|
# ? May 23, 2024 17:23 |
|
my first day of git my autistic coworker told me that the best first step when troubleshooting build issues was to run a git clean -xdf. that is a terrible habit to get into, for reasons which i hope are obvious
|
# ? Jul 14, 2016 20:12 |
|
also, shaggar was right. https://bugzilla.xamarin.com/show_bug.cgi?id=33286
|
# ? Jul 14, 2016 20:13 |
|
hobbesmaster posted:this is what happens when every interview question is "manually implement this data structure" no, it's what happens when "unreviewed tool for internal utility" becomes "bedrock component of product test infrastructure" NihilCredo posted:not exactly a hard choice when two options mean immediate freezing or crashing while the third can be fixed by scheduling a program restart every x hours well the hard choice is "trying to pass a known, comment-indicated this-leaks-memory function through peer review" the really hard choice was apparently deciding to have linked list nodes appear in multiple lists, because disposing of them when they're delisted is causing other lists to encounter free'd pointers. gently caress chasing that down btw, the whole file is a word soup of "file_name_list_ptr"
|
# ? Jul 14, 2016 20:14 |
|
are you in c++? lol good luck with that
|
# ? Jul 14, 2016 20:21 |
|
HoboMan posted:are you in c++? lol good luck with that if it were C++ it would be list<string<homebrew_utf_8>> file_name this is C
|
# ? Jul 14, 2016 20:25 |
|
LordSaturn posted:the really hard choice was apparently deciding to have linked list nodes appear in multiple lists what the gently caress? what purpose would this ever serve? and how does the next pointer(s) work for those nodes? just store them in an array, or perhaps in a smaller linked list?
|
# ? Jul 14, 2016 20:29 |
|
YeOldeButchere posted:what the gently caress? what purpose would this ever serve? and how does the next pointer(s) work for those nodes? just store them in an array, or perhaps in a smaller linked list? I don't know, I can't tell, because the file is unreadable hair soup whose erroneous function is relied upon for testing of external customer deliverables and we can't replace it with something written in a good language because its hosed-up configurable data type packing system will not work without a sea of void pointers
|
# ? Jul 14, 2016 20:32 |
|
YeOldeButchere posted:what the gently caress? what purpose would this ever serve? and how does the next pointer(s) work for those nodes? just store them in an array, or perhaps in a smaller linked list? no you see it saves memory when multiple lists have the same item! but yeah i can't think of a way to have that actually work without making the lists all hosed up
|
# ? Jul 14, 2016 20:39 |
|
i could see it as a very specialized data structure if you had data that had a massive quantity of common suffixes, kind of like an "inverted trie" or something, but it sure as gently caress wouldn't have the same interface as a linked list and it wouldn't be called a linked list
|
# ? Jul 14, 2016 20:48 |
YeOldeButchere posted:what the gently caress? what purpose would this ever serve? and how does the next pointer(s) work for those nodes? just store them in an array, or perhaps in a smaller linked list? In pure functional languages, this is often how linked lists which share a common tail will get stored. For example, if you have a list A, and you do: code:
Edit: For bonus fun, the same thing happens with any tree, which can be pretty crazy efficient but is a little hard to reason about. VikingofRock fucked around with this message at 21:25 on Jul 14, 2016 |
|
# ? Jul 14, 2016 21:20 |
|
yeah but you need to have garbage collection for that poo poo to work. if you're in C trying to share nodes between multiple linked lists and you're not using reference counts or something you are just being hosed up and stupid.
|
# ? Jul 14, 2016 21:26 |
|
LordSaturn posted:no, it's what happens when "unreviewed tool for internal utility" becomes "bedrock component of product test infrastructure" can you add a reference count field to your listnode and increment it in the listadd function and decrement it in the remove function and only dispose when the count is 0? i assume you cant or you would have already done that.
|
# ? Jul 14, 2016 21:42 |
|
fleshweasel posted:yeah but you need to have garbage collection for that poo poo to work. and if they added that the whole codebase would get deleted no one's made this joke before right?
|
# ? Jul 14, 2016 21:50 |
LeftistMuslimObama posted:can you add a reference count field to your listnode and increment it in the listadd function and decrement it in the remove function and only dispose when the count is 0? i assume you cant or you would have already done that. Wouldn't you run into trouble with cyclic linked lists?
|
|
# ? Jul 14, 2016 21:58 |
|
VikingofRock posted:You can't mutate anything anyways well see that's kind of a key requirement right there. i'm going to go ahead and hazard a guess that it's not a valid assumption for a linked list in motherfucking C of all languages like, in some functional languages you're dealing with immutable strongly typed data and any deviation from that is utterly verboten at the language level. C is all void pointers all the time, just read and write and cast all that poo poo whenever you want, whatever it's all good who gives a poo poo about what's happening
|
# ? Jul 14, 2016 22:00 |
|
VikingofRock posted:Wouldn't you run into trouble with cyclic linked lists? i mean, it wouldnt be a literal reference count, but a "how many lists am i in" count. but even with a cyclic linked list i'm not sure where your concern would come from? we wouldn't try to follow the chain of references through the list when we want to clean up (thus resulting in counting the same thing a billion times). although now that im thinking about it, how the hell are these linked lists set up so that a listnode can appear in multiple lists? granted ive only implemented the naive version from scratch, but fundamentally isn't a linked list basically done by: code:
|
# ? Jul 14, 2016 22:16 |
|
LeftistMuslimObama posted:although now that im thinking about it, how the hell are these linked lists set up so that a listnode can appear in multiple lists? granted ive only implemented the naive version from scratch, but fundamentally isn't a linked list basically done by: thinking about this whole thing only raises more and more questions. i feel like my initial question is the most appropriate here: YeOldeButchere posted:what the gently caress?
|
# ? Jul 14, 2016 22:31 |
|
LeftistMuslimObama posted:can you add a reference count field to your listnode and increment it in the listadd function and decrement it in the remove function and only dispose when the count is 0? i assume you cant or you would have already done that. *flips over a trap card that says "I don't know where the reference is getting copied so I can't keep an accurate reference count"* YeOldeButchere posted:what the gently caress? there isn't a good reason for it to be the way it is, and how it can possible work right when I stop trying to collect garbage is a mystery. the code with this problem is actually not used by our team or part of our tests, yet has been integrated into the foundation of the deliverable product's test suite. the infinite loops were caused by this code mysteriously forming cycles in its singly-linked lists, btw.
|
# ? Jul 14, 2016 22:54 |
|
LordSaturn posted:the infinite loops were caused by this code mysteriously forming cycles in its singly-linked lists, btw. are you sure this isn't just an elaborate interview question?
|
# ? Jul 14, 2016 23:01 |
|
hmm. apparently in the latest release of xamarin there is an android-specific implementation for the httpclient poo poo. perhaps i am not hosed yet. stay tuned for the thrilling conclusion, after these nuget updates.
|
# ? Jul 14, 2016 23:02 |
|
Bloody posted:like how the hell does this language not already have a preprocessor what language?
|
# ? Jul 14, 2016 23:53 |
|
Jabor posted:are you sure this isn't just an elaborate interview question? the answer is a tortoise and hare algorithm!
|
# ? Jul 14, 2016 23:54 |
|
eschaton posted:what language? verilog
|
# ? Jul 14, 2016 23:57 |
|
LordSaturn posted:if it were C++ it would be list<string<homebrew_utf_8>> file_name pffft, somebody doesn't know C++ list< basic_string<homebrew_utf_8, bespoke_utf_8_traits, fuck_you_we_made_our_own_allocator > >
|
# ? Jul 14, 2016 23:59 |
|
Bloody posted:verilog i could've sworn it ran the C preprocessor before a "build"
|
# ? Jul 15, 2016 00:00 |
|
hobbesmaster posted:pffft, somebody doesn't know C++ it would also have to be "forward_list" instead of list if you really want to optimize that poo poo! i love forward_list if only because it's the only container to have the amazing before_begin() method and associated iterator
|
# ? Jul 15, 2016 00:03 |
|
poo poo that could shave off an entire size_t!
|
# ? Jul 15, 2016 00:08 |
|
eschaton posted:you got a source for that? as far as I know, Xserve always used standard 3.5in SATA drives and they would always work i should have been more specific: the spuds were proprietary and apple would not sell you the spuds without a hilariously marked up drive inside eschaton posted:turns out that if you built MySQL with the same options as for FreeBSD, it performed just fine yes i'm sure benchmarkers are just dumber than poo poo and it wasn't the hosed up posix thread libs
|
# ? Jul 15, 2016 00:13 |
|
BattleMaster posted:was it true that the fancy aluminum cases sagged when hot? they just sagged as they aged i sure hope heat wasn't a factor
|
# ? Jul 15, 2016 00:14 |
|
love the new version of pgAdmin
|
# ? Jul 15, 2016 00:24 |
|
turns out a typo was making my cubes inside out lol I belong in this thread
|
# ? Jul 15, 2016 00:55 |
|
Luigi Thirty posted:turns out a typo was making my cubes inside out lol I belong in this thread you mean a typo was putting your camera on the wrong side of the cube
|
# ? Jul 15, 2016 01:50 |
|
Mr Dog posted:ugh git reset --hard HEAD^ just ate my entire working tree when I wanted to just discard my latest commit fml git
|
# ? Jul 15, 2016 02:06 |
|
LordSaturn posted:*flips over a trap card that says "I don't know where the reference is getting copied so I can't keep an accurate reference count"* so it's not really that they are in multiple lists but that somehow references to the nodes are ending up in the wrong place under mysterious circumstances. that's a bitch to debug because how do you even catch a reference creation at an unknown point to get a stack trace? is there a magic debugger trick to just break on every creation of a pointer of a certain type? a tool like that would get the job done.
|
# ? Jul 15, 2016 02:42 |
|
Bloody posted:verilog aren't `define and friends implemented with a preprocessor?
|
# ? Jul 15, 2016 03:02 |
|
eschaton posted:aren't `define and friends implemented with a preprocessor? hobbesmaster posted:i could've sworn it ran the C preprocessor before a "build" this happens in some toolchains! ours, apparently, supports at best a teeny tiny portion of the preprocessor syntax. basically the only part of the ` syntax that doesnt seem to break is the timestep stuff none of the documents for any of the pieces of the toolchain contain any references to preprocessors or preprocessing
|
# ? Jul 15, 2016 03:17 |
|
Bloody posted:this happens in some toolchains! ours, apparently, supports at best a teeny tiny portion of the preprocessor syntax. basically the only part of the ` syntax that doesnt seem to break is the timestep stuff well, you've already written one Verilog parser…
|
# ? Jul 15, 2016 03:20 |
|
most of a verilog parser full of weird gotchas and failures! much like the language
|
# ? Jul 15, 2016 03:21 |
|
|
# ? May 23, 2024 17:23 |
|
fart simpson posted:you mean a typo was putting your camera on the wrong side of the cube the camera is in the correct place, the problem was it was calculating the flat shading light levels incorrectly and now objects display correctly
|
# ? Jul 15, 2016 03:43 |