All original content is created in Ukrainian. Not all content has been translated yet. Some posts may only be available in Ukrainian.Learn more

ZOMBIE in Ruby. What is it?

Post cover: ZOMBIE in Ruby. What is it?
This content has been automatically translated from Ukrainian.
Ruby is a programming language. Everything is clear here. In the code of this language, you may encounter the term - ZOMBIE. What does it mean in the context of Ruby code?
ZOMBIE is a term used in the context of memory management to describe an object that has already been marked for destruction, but its finalizer has not yet been executed. This means that the object is already "dead" (i.e., its memory can be freed), but it still has some "viability" since the finalizer may perform additional actions before the object is completely destroyed.
Finalizer is a special method in many programming languages that is automatically called before an object is destroyed by the garbage collector (Garbage Collector). The method is usually used to perform necessary cleanup operations, such as releasing resources that the object used during its lifetime.
So, a Zombie is an object that has been marked for destruction, but we are still waiting for the finalizer to clean up the memory before the object is finally destroyed.
Like it?React
🧵

This post doesn't have any additions from the author yet.

Feb 10, '24 16:08

What is Hot Potato in software development?

What is PORO in Ruby?
Dec 8, '24 12:46

What is PORO in Ruby?

Enabling YJIT in Ruby 3.2.1 (Ruby on Rails)
May 8, '24 07:57

Enabling YJIT in Ruby 3.2.1 (Ruby on Rails)

Dec 9, '23 12:00

What is inheritance in Ruby? Examples of bad and good inheritance.

Dec 9, '23 12:21

What is polymorphism? An example of using polymorphism in Ruby.

May 3, '24 13:13

What is a Garbage Collector in Ruby? How does it work and what is GC needed for?

What is a prompt and prompt engineering?
May 3, '24 12:08

What is a prompt and prompt engineering?

A bit about Ruby implementation types (CRuby (MRI), JRuby, Rubinius, TruffleRuby, mruby)
May 5, '24 12:36

A bit about Ruby implementation types (CRuby (MRI), JRuby, Rubinius, TruffleRuby, mruby)

May 7, '24 07:24

What is native machine code?

May 9, '24 12:43

[Fix] Rails Admin - undefined local variable or method javascript_importmap_shim_nonce_configuration_tag

Apr 27, '24 09:29

What are CC and BCC in emails? What are they for and how to use them?

What is technical debt in IT projects?
May 13, '24 06:17

What is technical debt in IT projects?

Apr 18, '24 06:06

Analyzing the PG::ObjectInUse error (Ruby on Rails)

Apr 18, '24 05:27

We fix ActiveRecord::ProtectedEnvironmentError in the local environment.

Apr 15, '24 18:11

What are HTTP Client Hints?

Apr 15, '24 17:50

What is entropy?