Open Side Menu Go to the Top
Register
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

12-13-2018 , 04:35 PM
Quote:
Originally Posted by goofyballer
This sounds like a dystopian hellscape
To some degree it was warranted because when we were in crunch time 2 weeks off from a key developer would kill the project.

However there were definitely dead times and they still just had this aversion to giving out 2 weeks - probably because they were afraid it would catch on.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-13-2018 , 04:47 PM
Quote:
Originally Posted by kerowo
How old was the computer you are replacing? It sounds like you haven't had a new computer for so long it confuses me.
It was only a few months old. Windows 10 machine. Super cheap - cheapest you could get, but it was an HP - so brand name anyway. Hard-drive failed.

Quote:
Originally Posted by suzzer99
Can confirm. I saw Microbet a couple weeks ago and his laptop looked like one I had in the early 2000s.
That's my crappy laptop, not the desktop. It's starting to fail now too. It's from around 2008 - windows 7. Was a cheap computer then too.

I'm going to try to limp along with the laptop until I'm willing to spend $1000+ on a new one.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-13-2018 , 04:49 PM
Sounds like a lot of you work for ****ty employers and/or managers?

I left a pretty decent place for an even better place. I took 7 weeks last year at my old job if you count all the random days off I took as well as normal vacations.

I plan to take 5-7 weeks at new job now as well. I’ll still get as much or more done than coworkers at the same level as me.

Yes, many people won’t use the policy effectively. I definitely plan to use it.

One other positive is that a lot of my coworkers came from my old employer as well and are used to the flexible policy and I think everyone plans to use it.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-13-2018 , 04:51 PM
Quote:
Originally Posted by jmakin
Its a ****ing trap. My place is a FFA with hours and its a nightmare. Creates resentment between people if not well managed (it never is in my opinion).

Idk. I’d love an old school policy, both as a manager and someone whod like to take time off. I’m taking my first non-sick days off on the week of christmas. And I’m just taking two days. That’s for the ENTIRE YEAR and i still felt like I had to justify it and bad for taking it because we’re a little slammed, and if i am out of office i feel like things will fall apart

Dude seriously? Take more time! Nothing will happen to you and you will probably end up being a more effective employee after some much needed recharge time. Take the whole week of Christmas and those first couple days of New Years week off.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-13-2018 , 04:52 PM
I balance it by showing up at 9:30 and leaving at 4:30.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-13-2018 , 04:54 PM
Quote:
Originally Posted by KatoKrazy
Take the whole week of Christmas and those first couple days of New Years week off.
On top of flexible vacation, our company is closed every year for 1-2 weeks around xmas and the new year.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-13-2018 , 04:55 PM
Quote:
Originally Posted by goofyballer
On top of flexible vacation, our company is closed every year for 1-2 weeks around xmas and the new year.

We close week of Christmas. Used to close week of the 4th of July as well.

3 weeks vacation and two of them were mandatory shut down weeks.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-13-2018 , 04:58 PM
Quote:
Originally Posted by jmakin
This is C. Just realloc for basic allocation, free for releasing memory.

I think some locks are being held somewhere. I cant find them. I need a command line tool that can profile memory usage per function.
So you think you're doing a free, but that something isn't actually being freed? A common cause of this is when you are storing a pointer to memory, and that is holding pointers to other memory. If you free the outer level pointer, the inner level won't get freed.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-13-2018 , 05:18 PM
Quote:
Originally Posted by goofyballer
On top of flexible vacation, our company is closed every year for 1-2 weeks around xmas and the new year.
Quote:
Originally Posted by KatoKrazy
We close week of Christmas. Used to close week of the 4th of July as well.

3 weeks vacation and two of them were mandatory shut down weeks.
See if you have to use vacation during these mandatory shutdowns then it's kinda BS. But mandatory shutdowns + "unlimited vacation" is golden.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-13-2018 , 05:19 PM
Lol memory allocation and cleanup. Only time I ever had to mess with that was old iOS programming in the late 00s. It was like 90% of my debugging effort and drove me nuts.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-13-2018 , 05:20 PM
Quote:
Originally Posted by RustyBrooks
So you think you're doing a free, but that something isn't actually being freed? A common cause of this is when you are storing a pointer to memory, and that is holding pointers to other memory. If you free the outer level pointer, the inner level won't get freed.


EVENTUALLY stuff is being freed. But not at any point that makes sense logically. But I do think what you just described is happening
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-13-2018 , 05:20 PM
Quote:
Originally Posted by suzzer99
Lol memory allocation and cleanup. Only time I ever had to mess with that was old iOS programming in the late 00s. It was like 90% of my debugging effort and drove me nuts.


Everything you use relies on this stuff, you’re just abstracted way above it
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-13-2018 , 05:22 PM
Quote:
Originally Posted by microbet
It was only a few months old. Windows 10 machine. Super cheap - cheapest you could get, but it was an HP - so brand name anyway. Hard-drive failed.



That's my crappy laptop, not the desktop. It's starting to fail now too. It's from around 2008 - windows 7. Was a cheap computer then too.

I'm going to try to limp along with the laptop until I'm willing to spend $1000+ on a new one.
With Macs there aren't really super cheap versions so upgrading is really a pretty low key event. I've had 2 or more Macs for the last 10ish years and only been super giddy over speed improvements a couple of times and don't expect to be again until I'm able to get a super iMac pro. With Window's wide price points it seems you can be all over the place price/performance wise.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-13-2018 , 05:23 PM
Quote:
Originally Posted by jmakin
EVENTUALLY stuff is being freed. But not at any point that makes sense logically. But I do think what you just described is happening
std::unique_ptr >>>>>>>>>>> C memory management

Related-ish, we're using an SDK that hands every resource imaginable around in shared pointers and I've spent the last two days trying to figure out where something is holding on to one last shared_ptr reference thus preventing the underlying object from being freed when it should be, which is convincing me that you should never use shared_ptrs without some kind of wrapper class that tracks reference creation in debug builds (but would thus never be transportable across SDK boundaries, so...welp)
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-13-2018 , 05:24 PM
Quote:
Originally Posted by jmakin
Everything you use relies on this stuff, you’re just abstracted way above it
You say that like it's a bad thing...
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-13-2018 , 05:31 PM
SSD are imo the most important feature of any personal computer, I'd consider it insane to buy anything without (or without an immediate plan to fit one).
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-13-2018 , 05:44 PM
Quote:
Originally Posted by jmakin
EVENTUALLY stuff is being freed. But not at any point that makes sense logically. But I do think what you just described is happening
I am sort of confused how something is being freed but you're winding up crashing the server eventually. Maybe I am not understanding well enough.

I mean I can understand how memory is not being freed properly but without garbage collection wouldn't the memory be orphaned indefinitely? Is your program running on an OS that might perform that garbage collection?

The only memory I can think of that would be freed automatically is memory allocated on the stack when a function leaves scope. I am no expert though just really curious now haha.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-13-2018 , 05:45 PM
Quote:
Originally Posted by jmakin
Everything you use relies on this stuff, you’re just abstracted way above it
Everything you use relies on I/O buses and logic gates, you're just abstracted way above it.

I guess my boss wins here because she just has to tell me a few sentences and a program appears.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-13-2018 , 05:54 PM
Quote:
Originally Posted by just_grindin
I am sort of confused how something is being freed but you're winding up crashing the server eventually. Maybe I am not understanding well enough.

I mean I can understand how memory is not being freed properly but without garbage collection wouldn't the memory be orphaned indefinitely? Is your program running on an OS that might perform that garbage collection?

The only memory I can think of that would be freed automatically is memory allocated on the stack when a function leaves scope. I am no expert though just really curious now haha.


I have a server process, and a client process. The client request to connect to the server and gets a pointer back that’s supposed to be like a file descriptor to the server.

As the client I will close this handle with our software API. Client side it seems like all memories being freed properly, but somewhere in the server process, the server is holding onto some memory from this operation, because memory usage slowly creeps up until a crash.

Eventually, if you spam open/close API from the client side youll crash something. But if the server exits normally, it properly frees up whatever has been hogging memory, and valgrind reports no leaks.

Am i explaining it right? Sorry, i am not good at this stuff
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-13-2018 , 05:55 PM
Quote:
Originally Posted by just_grindin
I mean I can understand how memory is not being freed properly but without garbage collection wouldn't the memory be orphaned indefinitely? Is your program running on an OS that might perform that garbage collection?
It's really not uncommon. Let's say you have, I dunno, a user record. There's like a session object that's holding a pointer to the user record. But there's also a login manager or something, that's holding pointers to several user records.

So you free() your session object but you forget to free the data pointed to in the session. Later on the session object frees all the user records so in the long term there's no leak. But in the shorter term you're accumulating user records in memory. If the session object goes a long time between freeing it's user records you could accumulate a lot of them.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-13-2018 , 05:57 PM
Quote:
Originally Posted by RustyBrooks
It's really not uncommon. Let's say you have, I dunno, a user record. There's like a session object that's holding a pointer to the user record. But there's also a login manager or something, that's holding pointers to several user records.



So you free() your session object but you forget to free the data pointed to in the session. Later on the session object frees all the user records so in the long term there's no leak. But in the shorter term you're accumulating user records in memory. If the session object goes a long time between freeing it's user records you could accumulate a lot of them.


This is exactly what’s happening. Some struct somewhere holds a pointer to some other struct which in turn holds pointers. It’s a mess to try to dig through the src and see where.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-13-2018 , 05:59 PM
Ah yea the client/server stuff was where I was getting confused. Was thinking all memory was local. Makes total sense to me in that context.

No @jmakin you were explaining it well enough I just don't work as regularly with these things as most people itt.

Edit: Thanks @RustyBrooks for taking the time to explain.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-13-2018 , 07:13 PM
Quote:
Originally Posted by suzzer99
Everything you use relies on I/O buses and logic gates, you're just abstracted way above it.
Pfft, everything you use relies on silicon wafers that are doped with progressive electron densities, you're just abstracted way above it. (This is the lowest level I personally know how to deal with, probably to a physicist there are lower ones)
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-13-2018 , 07:33 PM
You bet your ass - we're talking quantum tunneling through a potential charge barrier. We actually learned about it in physics but that's all I remember.

https://physics.stackexchange.com/qu...tors-and-silic

Quote:
The assignment of the group was to seek a solid-state alternative to fragile glass vacuum tube amplifiers. Their first attempts were based on Shockley's ideas about using an external electrical field on a semiconductor to affect its conductivity. These experiments mysteriously failed every time in all sorts of configurations and materials. The group was at a standstill until Bardeen suggested a theory that invoked surface states that prevented the field from penetrating the semiconductor.
Quote:
Here unk(r) is a function with the same periodicity as the crystal, n is the band index and k is the wave number. The allowed wave numbers for a given potential are found by applying the usual Born–von Karman cyclic boundary conditions The termination of a crystal, i.e. the formation of a surface, obviously causes deviation from perfect periodicity. Consequently, if the cyclic boundary conditions are abandoned in the direction normal to the surface the behavior of electrons will deviate from the behavior in the bulk and some modifications of the electronic structure has to be expected.
Well duh. I mean it seems so obvious in retrospect.

This actually gibes with the way we learned it and is mostly understandable:

Quote:
To explain the physical working of a (bipolar) transistor, quantum mechanics is essential in the following sense. You need to know that electrons in a semiconductor occupy allowed energy bands and that there is a so called conduction band where electrons can move freely and an almost fully occupied valence band where missing electrons can be considered to behave as positive quasi-particles called holes. The occupation statistics is Fermi-Dirac statistics which includes the Pauli principle. Furthermore, by introducing impurities with quantum mechanical ionization energies that donate or accept electrons you can dope the semiconductor, i.e., you can create regions of the semiconductor with predominantly electron or hole conduction, which is essential for the device operation. With these fundamental results of the quantum theory of semiconductors, you can describe the working of transistors pretty much classically. For example, electrons and holes can be considered to be point particles which can be generated or recombine with a certain probability. Further, they can diffuse and drift in an electric field experiencing phenomenologically a "resistive friction" in the crystal lattice.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-13-2018 , 07:34 PM
Meh, once you get away from neuro transmitters and inhibitors it’s all abstractions anyway...
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote

      
m