Shadowing Practice: You are wasting memory - Learn English Speaking with Video

בחר מצב תרגול

כל מצב פותח חדר תרגול במסך מלא.

27 משפטים
אם המשפטים קצרים או ארוכים מדי, לחץ על ערוך כדי להתאים אותם.
1
Take a look at this C code and tell me what the output of that printf will be.
2
If you said 12, you are correct, and that's because each integer is 4 bytes wide.
3
Now, what happens if I add a character to the structure?
4
You probably already know that a character has a size of 1 byte, but if we run this program, we can see that the structure became 16 bytes.
5
This happens because of memory alignment.
6
You can imagine memory as a row of numbered boxes, where each number represents an address.
7
Each box can hold exactly one byte.
8
We know that on 64-bit machines an integer is usually four bytes.
9
For it to be aligned, its address must be a multiple of its size.
10
If a value is not aligned, on some architectures and older computers, working with it might be slower.
11
But how is the structure represented in memory by the compiler?
12
The structure is represented as a series of consecutive values, each starting at a specific padding from the beginning of of the structure.
13
The padding is needed so that each value is correctly aligned.
14
As you can see here, the value D would occupy only one byte, but three extra bytes are added so that the value C is correctly aligned.
15
If we add another character at the end of the structure, another 3 bytes of padding are added because the whole structure must be aligned to the alignment of the structure itself,
16
which is the maximum alignment between the members of the structure.
17
This way, when creating an array of this structure, the first member is always correctly aligned.
18
So to save memory, we can move our characters close together
19
so that only 2 bytes of padding are added making the whole thing 16 bytes instead of 20, while keeping everything correctly aligned.
20
We can check that in C as well.
21
As you can see, this code represents what was shown in the previous images.
22
Now take a look at the output of this.
23
If we move E, like this, the output changes.
24
Now if you want to ignore alignment and remove padding for some reason, you can use the packed attribute like this on GCC and CLang and the compiler will not insert any padding,
25
as you can see here from this output, but note that on some architectures this might make the code slower.
26
So in conclusion, if you don't wanna waste memory over padding, remember to place your structural members correctly.
27
Bye!

הורד אפליקציה

כל מה שאתה צריך כדי לדבר בשטף

הגיית AIציון לכל משפט
תרגול IPAשלוט בכל צליל
אוצר מיליםבנה את מאגר המילים שלך
משחק אוצר מיליםלמד תוך כדי משחק
FOR YOU

המלץ על סרטון

אוצר מילים והערות הגייה לשיעור הזה

שיעור הדיבור הזה ברמה C1 מבוסס על הסרטון “You are wasting memory”. המילים שחוזרות הכי הרבה: byte, structure, padding, aligned, correctly. בסרטון הזה יש 27 משפטים ו-415 מילים לתרגול Shadowing. הדיבור נמשך 2:28. הדובר מדבר בקצב טבעי של כ-169 מילים בדקה, קרוב לשיחה יומיומית. רק 81% מהמילים נמצאות בין 3,000 המילים הנפוצות ביותר באנגלית, כך שאוצר המילים מאתגר.

אוצר מילים מרכזי בסרטון הזה

9 המילים המתקדמות ביותר בסרטון, עם ההגייה והמשמעות שלהן:

מילההגייהמשמעות
output שם עצם/ˈaʊtpʊt/פֶּלֶט
architecture שם עצם/ˈɑː.kɪˌtɛk.t͡ʃə/אַדְרִיכָלוּת, אַרְכִיטֶקְטוּרָה
ignore פועל/ɪɡˈnɔː/הִתְעַלֵּם
conclusion שם עצם/kənˈkluːʒən/מסקנה
insert פועל/ɪnˈsɝt/לְהַכְנִיס
attribute שם עצם/ˈæt.ɹɪˌbjut/לוואי, לְוַאי
byte שם עצם/baɪt/בַּיִת
compiler שם עצם/kəmˈpaɪlɚ/מְהַדֵּר
integer שם עצם/ˈɪn.tɪ.d͡ʒə(ɹ)/שלם, מספר שלם

הגייה ששווה לשים לב אליה

  • הצלילים של “sh” ו-“zh”: conclusion /kənˈkluːʒən/, structural /ˈstɹʌk(t͡)ʃəɹəl/
  • מילים ארוכות — שימו לב להטעמה: architecture /ˈɑː.kɪˌtɛk.t͡ʃə/, consecutive /kənˈsɛkjʊtɪv/

צלילים שדוברי עברית מתקשים בהם:

  • /æ/ — פתוח יותר מה-“אֶ” העברית, לא כמו “a” ב-“cup”: pad /pæd/, attribute /ˈæt.ɹɪˌbjut/
  • /r/ — הלשון לא נוגעת בשום מקום, לא ה-“ר” הגרונית: correctly /kəˈɹɛk(t).li/, structural /ˈstɹʌk(t͡)ʃəɹəl/, array /əˈɹeɪ/, attribute /ˈæt.ɹɪˌbjut/, integer /ˈɪn.tɪ.d͡ʒə(ɹ)/
  • עיצור קולי בסוף מילה — /b/, /d/, /g/, /z/, /v/ בלי להפוך אותם לאטומים: pad /pæd/, consecutive /kənˈsɛkjʊtɪv/

איך לתרגל עם הסרטון הזה

  1. הקשיבו לכל הסרטון פעם אחת בלי לדבר, ורשמו את המילים שאתם לא מכירים.
  2. התחילו במהירות 0.75×, תרגלו Shadowing משפט אחר משפט, וחזרו למהירות רגילה כשזה מרגיש קל.
  3. הקליטו את עצמכם והשוו למקור, תוך תשומת לב למילים כמו output, architecture, ignore.

מהי טכניקת השאדואינג?

שאדואינג היא טכניקת למידת שפה מבוססת מדע שפותחה במקור להכשרת מתורגמנים מקצועיים ופופולרית על ידי הפוליגלוט ד"ר אלכסנדר ארגואלס. השיטה פשוטה אך עוצמתית: אתה מקשיב לאודיו באנגלית ילידית וחוזר עליו בקול רם מיד — כמו צל העוקב אחרי הדובר עם עיכוב של 1–2 שניות בלבד. בניגוד להאזנה פסיבית או תרגילי דקדוק, שאדואינג מכריח את המוח והשרירים בפה לעבד ולשחזר דפוסי דיבור אמיתיים בו זמנית. מחקרים מראים שזה משפר משמעותית את דיוק ההגייה, האינטונציה, הקצב, הדיבור המחובר, הבנת השמיעה ושטף הדיבור — מה שהופך אותו לאחת השיטות היעילות ביותר להכנה לIELTS Speaking ולתקשורת באנגלית בעולם האמיתי.

טכניקת Shadowing: קרא את המדריך המלא שלב אחר שלב →