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 can find the term - ZOMBIE. What does this mean in the context of the ruby code?
ZOMBIE <TAG1> is a term used in the context of memory management to describe an object that has already been marked before destruction, but its finalizer has not yet been executed. This means that the object is already "dead" (that is, its memory can be freed), but it still has some "viability" because the finalizer can perform additional actions before the object is completely destroyed.
Finalizer/Finalizer (Finalizer) is a special method in many programming languages that is called automatically before the object is destroyed by the Garbage Collector. The method is typically used to perform necessary cleanup operations, such as releasing resources that the facility has used throughout its life.
That is, Zombies are an object marked for destruction, but we are still waiting for the finalizer to clear the memory before the final destruction of the object.

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

15 Apr 17:50

Π©ΠΎ Ρ‚Π°ΠΊΠ΅ Снтропія?

meme code
meme code@memecode
15 Apr 18:11

Π©ΠΎ Ρ‚Π°ΠΊΠ΅ HTTP Client hints (ΠŸΡ–Π΄ΠΊΠ°Π·ΠΊΠΈ ΠΊΠ»Ρ–Ρ”Π½Ρ‚Π°)?

meme code
meme code@memecode
18 Apr 05:27

Ѐіксимо ActiveRecord::ProtectedEnvironmentError Ρƒ Π»ΠΎΠΊΠ°Π»ΡŒΠ½ΠΎΠΌΡƒ сСрСдовищі

meme code
meme code@memecode
18 Apr 06:06

Π ΠΎΠ·Π±ΠΈΡ€Π°Ρ”ΠΌΠΎ ΠΏΠΎΠΌΠΈΠ»ΠΊΡƒ PG::ObjectInUse (Ruby on Rails)

meme code
meme code@memecode
27 Apr 09:29

What are CC and BCC in emails? What and how to use?

meme code
meme code@memecode
Π©ΠΎ Ρ‚Π°ΠΊΠ΅ ΠΏΡ€ΠΎΠΌΠΏΡ‚ (prompt) Ρ‚Π° ΠΏΡ€ΠΎΠΌΠΏΡ‚-Ρ–Π½ΠΆΠΈΠ½Ρ–Ρ€Ρ–Π½Π³?
03 May 12:08

Π©ΠΎ Ρ‚Π°ΠΊΠ΅ ΠΏΡ€ΠΎΠΌΠΏΡ‚ (prompt) Ρ‚Π° ΠΏΡ€ΠΎΠΌΠΏΡ‚-Ρ–Π½ΠΆΠΈΠ½Ρ–Ρ€Ρ–Π½Π³?

meme code
meme code@memecode
03 May 13:13

What is Garbage Collector in Ruby? How does it work and why do you need GC?

meme code
meme code@memecode
Π’Ρ€ΠΎΡ…ΠΈ ΠΏΡ€ΠΎ Ρ‚ΠΈΠΏΠΈ Ρ€Π΅Π°Π»Ρ–Π·Π°Ρ†Ρ–Ρ— Ruby (CRuby (MRI), JRuby, Rubinius, TruffleRuby, mruby)
05 May 12:36

Π’Ρ€ΠΎΡ…ΠΈ ΠΏΡ€ΠΎ Ρ‚ΠΈΠΏΠΈ Ρ€Π΅Π°Π»Ρ–Π·Π°Ρ†Ρ–Ρ— Ruby (CRuby (MRI), JRuby, Rubinius, TruffleRuby, mruby)

meme code
meme code@memecode
07 May 07:24

Π©ΠΎ Ρ‚Π°ΠΊΠ΅ Π½Π°Ρ‚ΠΈΠ²Π½ΠΈΠΉ машинний ΠΊΠΎΠ΄?

meme code
meme code@memecode
Π’ΠΌΠΈΠΊΠ°Ρ”ΠΌΠΎ YJIT Ρƒ Ruby 3.2.1 (Ruby on Rails)
08 May 07:57

Π’ΠΌΠΈΠΊΠ°Ρ”ΠΌΠΎ YJIT Ρƒ Ruby 3.2.1 (Ruby on Rails)

meme code
meme code@memecode
09 May 12:43

[Ѐікс] Rails Admin - undefined local variable or method javascript_importmap_shim_nonce_configuration_tag

meme code
meme code@memecode
Π©ΠΎ Ρ‚Π°ΠΊΠ΅ Ρ‚Π΅Ρ…Π½Ρ–Ρ‡Π½ΠΈΠΉ Π±ΠΎΡ€Π³ (technical debt) Π² IT ΠΏΡ€ΠΎΡ”ΠΊΡ‚Π°Ρ…?
13 May 06:17

Π©ΠΎ Ρ‚Π°ΠΊΠ΅ Ρ‚Π΅Ρ…Π½Ρ–Ρ‡Π½ΠΈΠΉ Π±ΠΎΡ€Π³ (technical debt) Π² IT ΠΏΡ€ΠΎΡ”ΠΊΡ‚Π°Ρ…?

meme code
meme code@memecode